/* Magazine skin. Loads after the classic skin; overrides its look for editorial sites. */

:root {
    --font: 'Source Sans 3', system-ui, sans-serif;
    --serif: 'Merriweather', Georgia, serif;
    --ink: #1a1d23;
    --paper: #ffffff;
    --rule: #e6e8ec;
}

body.skin-magazine { font-family: var(--font); font-size: 19px; background: var(--paper); }
.skin-magazine h1, .skin-magazine h2, .skin-magazine h3 { font-family: var(--serif); letter-spacing: -.01em; }

/* Top bar and masthead */
.mag-topbar { background: var(--ink); color: #c9ced6; font-size: .9rem; }
.mag-topbar__inner { display: flex; justify-content: space-between; padding: 8px 0; gap: 16px; }
.mag-topbar a { color: #fff; text-decoration: none; margin-left: 18px; }

.masthead { border-bottom: 1px solid var(--rule); background: #fff; }
.masthead__inner { text-align: center; padding: 28px 0 18px; }
.masthead__logo img { max-height: 90px; width: auto; margin: 0 auto; }
.masthead__logo span { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink); }
.masthead__logo { text-decoration: none; }
.masthead__tagline { color: var(--muted); margin: 8px 0 0; }

.mag-nav { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: #fff; z-index: 5; }
.mag-nav .site-nav > ul { justify-content: center; gap: 0 28px; }
.mag-nav .site-nav a { text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; font-weight: 700; padding: 14px 2px; }

/* Section titles and kickers */
.section-title { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); margin: 0 0 24px; }
.section-title h2 { font-size: 1.5rem; margin: 0 0 8px; }
.section-title a { font-weight: 600; text-decoration: none; }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand); text-decoration: none; margin-bottom: 6px; }

/* Hero */
.post-hero { display: grid; gap: 32px; padding: 40px 0; }
@media (min-width: 960px) { .post-hero { grid-template-columns: 1.7fr 1fr; } }
.post-hero__lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.post-hero__body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 8px; }
.post-hero__body h2 a, .post-hero__item h3 a, .mag-card h3 a { color: var(--ink); text-decoration: none; }
.post-hero__body h2 a:hover, .post-hero__item h3 a:hover, .mag-card h3 a:hover { color: var(--brand); }
.post-hero__side { display: grid; gap: 20px; align-content: start; }
.post-hero__item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.post-hero__item img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.post-hero__item h3 { font-size: 1.05rem; margin: 2px 0 4px; }

.post-grid, .events-list { padding: 24px 0 40px; }
.mag-card { border: 0; padding: 0; }
.mag-card img { aspect-ratio: 16 / 10; }
.mag-card h3 { font-size: 1.2rem; }

/* Newsletter */
.newsletter { background: var(--ink); color: #fff; margin: 40px 0; }
.newsletter__inner { width: min(760px, 100% - 32px); margin-inline: auto; padding: 48px 0; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.newsletter__form input { font: inherit; padding: 12px 16px; border-radius: 999px; border: 0; min-width: min(320px, 100%); }
.mag-sidebar .newsletter { margin: 0; border-radius: var(--radius); }
.mag-sidebar .newsletter__inner { padding: 24px 20px; }
.mag-sidebar .newsletter h2 { font-size: 1.2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Article */
.article-layout { display: grid; gap: 48px; padding: 32px 0 48px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.article { min-width: 0; }
.article__title { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 6px; }
.article__meta { color: var(--muted); }
.article__image { width: 100%; border-radius: var(--radius); margin: 16px 0 24px; }
.article__body { line-height: 1.75; }
.article__body img { border-radius: 8px; }
.article__body h2 { margin-top: 1.6em; }
.archive__header { padding: 32px 0 8px; }
.mag-sidebar { position: sticky; top: 70px; align-self: start; }

.toc { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0 28px; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; }
.toc .toc__level-3 { margin-left: 1.2em; list-style-type: lower-alpha; }

.weather-link a { font-weight: 600; }
.notice--error { background: #fdecea; }

/* Block editor markup carried over from WordPress */
.article__body .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.article__body .wp-block-column { flex: 1 1 260px; min-width: 0; }
.article__body .wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius); padding: 48px 24px !important; min-height: 0 !important; color: #fff; margin: 24px 0; }
.article__body .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article__body .wp-block-cover__background { position: absolute; inset: 0; opacity: .85; }
.article__body .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; }
.article__body .wp-block-cover p[style*="font-size"] { font-size: clamp(2rem, 8vw, 5rem) !important; }
.article__body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; justify-content: center; }
.article__body .wp-block-button__link { display: inline-block; text-decoration: none; border-radius: 999px; padding: 14px 28px !important; font-size: 1rem !important; background: var(--brand); color: #fff; }
.article__body .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.article__body .wp-block-gallery figure, .article__body .wp-block-image { margin: 16px 0; }
.article__body .wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article__body .wp-block-media-text { display: grid; gap: 24px; align-items: center; margin: 24px 0; }
@media (min-width: 800px) { .article__body .wp-block-media-text { grid-template-columns: 1fr 1fr; } }
.article__body .wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.article__body .wp-block-spacer { height: 24px !important; }
.article__body .wp-block-table table { width: 100%; border-collapse: collapse; }
.article__body .wp-block-table td, .article__body .wp-block-table th { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.article__body blockquote, .article__body .wp-block-quote { border-left: 4px solid var(--brand); padding: 4px 0 4px 20px; margin: 24px 0; font-style: italic; }
.article__body iframe { max-width: 100%; }
.article__body .has-text-align-center { text-align: center; }
.article__body figure figcaption { text-align: center; }
.article__body [style*="padding-bottom:56.25%"], .article__body [style*="padding-bottom: 56.25%"] { position: relative; }

/* Footer */
.mag-footer { background: var(--ink); color: #c9ced6; padding: 56px 0 24px; margin-top: 40px; }
.mag-footer a { color: #fff; }
.mag-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mag-footer__brand { font-family: var(--serif); font-weight: 900; font-size: 1.4rem; color: #fff; }
.mag-footer__heading { font-family: var(--font); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 8px; }
.mag-footer p + .mag-footer__heading { margin-top: 18px; }
.mag-footer__copy { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; font-size: .95rem; }

@media (max-width: 800px) {
    .mag-nav .site-nav > ul { gap: 0; }
    .mag-nav .site-nav a { padding: 10px 2px; }
    .mag-sidebar { position: static; }
}

.share { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 32px 0 16px; font-weight: 600; }
.author-box, .author-header { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.author-header { background: none; padding: 0; }
.avatar--large { width: 80px !important; height: 80px !important; }
.author-box__name { font-weight: 700; margin: 0 0 4px; }
.post-nav { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 24px; }
.post-nav a { text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; }
.post-nav span { display: block; font-family: var(--font); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.post-nav__next { text-align: right; grid-column: 2; }

.category-tiles { padding: 24px 0 40px; }
.category-tiles__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.category-tile {
    display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px; padding: 20px;
    border-radius: var(--radius); color: #fff; text-decoration: none;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, .75)), var(--bg, var(--ink)) center / cover;
}
.category-tile__name { font-family: var(--serif); font-weight: 900; font-size: 1.4rem; }
.category-tile__count { font-size: .9rem; opacity: .85; }
.category-tile:hover .category-tile__name { text-decoration: underline; }
