/* The Streator Standard — theme styles
   Built around the masthead logo: cream stock, black ink, olive green,
   heavy serif headlines, condensed-caps labels, star rules. */

:root {
    --paper: #faf3eb;
    --paper-deep: #efe6d6;
    --photo: #e5dccb;
    --ink: #181818;
    --ink-soft: #3a3833;
    --ink-faint: #5b5850;
    --rule: #d9d2c3;
    --olive: #4a5236;
    --olive-dark: #383e28;
    --on-olive: #faf3eb;
    --on-olive-soft: #ede6d8;

    --font-serif: var(--gh-font-body, "Source Serif 4", Georgia, "Times New Roman", serif);
    --font-head: var(--gh-font-heading, "Source Serif 4", Georgia, serif);
    --font-ui: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

    --wrap: 1200px;
    --wrap-wide: 1040px;
    --wrap-narrow: 680px;
    --gutter: 16px;
}

@media (min-width: 700px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--olive); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; background: var(--ink); color: var(--paper); padding: 8px 12px; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* Shared label style: the logo's condensed caps */
.label,
.kicker, .card-meta, .rail-title, .section-title, .section-more, .rail-more,
.masthead-bar, .nav-toggle, .nav-items .nav li a, .story-meta, .story-tags,
.archive-eyebrow, .pagination, .footer-nav, .footer-tagline, .btn {
    font-family: var(--font-ui);
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Star rule: line, star, line */
.star-rule { display: flex; align-items: center; gap: 14px; color: var(--olive); width: 100%; }
.star-rule > span { flex: 1; height: 2px; background: currentColor; }
.star-rule .star { flex: none; }
.star-rule-short { max-width: 420px; margin: 4px auto 18px; }
.star-rule-short > span { height: 1.5px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px;
    font-weight: 700; font-size: 17px;
    background: var(--olive);
    color: var(--on-olive);
    border: 0;
    border-radius: 0;
    padding: 8px 20px;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--olive-dark); color: var(--on-olive); }
.btn-small { font-size: 15px; padding: 6px 16px; }
.btn-ink { background: var(--ink); color: var(--on-olive); border: 2px solid var(--on-olive); }
.btn-ink:hover { background: #000; color: var(--on-olive); }
.icon-btn {
    background: none; border: 0; padding: 0 6px; min-height: 44px; color: var(--ink); cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.icon-btn:hover { color: var(--olive); }
.icon-btn-label { display: none; }
@media (min-width: 560px) { .icon-btn-label { display: inline; } }

/* Masthead */
.masthead-bar { border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 600; color: var(--ink-faint); }
.masthead-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.masthead-place { display: none; }
@media (min-width: 700px) { .masthead-place { display: inline; } }
.masthead-actions { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.masthead-link { font-weight: 700; text-decoration: none; }

.masthead-title {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 22px; padding-bottom: 16px;
}
.masthead-title.is-home { padding-top: 34px; padding-bottom: 20px; gap: 14px; }
.masthead-name { display: block; width: 100%; max-width: 300px; text-decoration: none; }
.masthead-title.is-home .masthead-name { max-width: 460px; }
.masthead-name img { width: 100%; height: auto; margin: 0 auto; }
.masthead-title .star-rule { max-width: 640px; }
.masthead-tagline {
    margin: 0; text-align: center;
    font-family: var(--font-ui); font-size: clamp(15px, 2.6vw, 20px); font-weight: 600;
    text-transform: uppercase; letter-spacing: .16em; color: var(--olive);
}

/* Section nav: heavy rule over, thin rule under, like the logo's rules */
.masthead-nav { position: relative; --nav-top: 3px solid var(--ink); --nav-bottom: 1px solid var(--ink); }
.masthead-nav .nav-toggle { border-top: var(--nav-top); border-bottom: var(--nav-bottom); }

.nav-toggle {
    display: block; width: 100%; min-height: 48px;
    background: none; padding: 10px 0;
    font-weight: 700; font-size: 18px; cursor: pointer; color: var(--ink);
    border-left: 0; border-right: 0;
}
.nav-items { display: none; border-bottom: var(--nav-bottom); }
.nav-items.is-open { display: block; }
.nav-items .nav { list-style: none; margin: 0; padding: 0; }
.nav-items .nav li a {
    display: block; padding: 12px 0;
    font-weight: 700; font-size: 18px;
    text-decoration: none; border-top: 1px solid var(--rule);
}
.nav-items .nav li:first-child a { border-top: 0; }
.nav-items .nav-current a { color: var(--olive); text-decoration: underline; text-underline-offset: 6px; }

@media (min-width: 760px) {
    .nav-toggle { display: none; }
    .nav-items { display: block; border-top: var(--nav-top); padding: 2px 0; }
    .nav-items .nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 40px; }
    .nav-items .nav li a { border: 0; padding: 10px 0; font-size: 20px; }
}

.site-main { min-height: 50vh; }

/* Kickers */
.kicker {
    display: inline-block;
    font-size: 15px; font-weight: 700; letter-spacing: .14em;
    color: var(--olive); text-decoration: none; margin-bottom: 6px;
}
.kicker-satire {
    border: 1.5px solid currentColor; padding: 1px 8px;
}

/* Cards */
.card-title { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-excerpt { margin: 0 0 8px; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.card-meta { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-faint); letter-spacing: .06em; }
.card-image { display: block; background: var(--photo); }

.card-lead .card-image { margin-bottom: 16px; }
.card-lead .card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-lead .card-title { font-size: clamp(32px, 5.4vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; margin-bottom: 12px; }
.card-lead .card-excerpt { font-size: 21px; line-height: 1.45; }

.card-row { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--rule); }
.card-row .card-title { font-size: 25px; font-weight: 800; }
.card-row .card-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 700px) {
    .card-row { grid-template-columns: 1fr 240px; align-items: start; }
    .card-row .card-image { order: 2; }
}

.card-stack { padding: 16px 0 14px; }
.card-stack .card-image { margin-bottom: 12px; }
.card-stack .card-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-stack .card-title { font-size: 22px; font-weight: 800; }
.card-stack .card-excerpt { display: none; }

.card-compact { padding: 14px 0; border-top: 1px solid var(--rule); }
.card-compact .card-title { font-size: 19px; }

/* Homepage */
.home { padding-top: 40px; padding-bottom: 56px; }
.front { display: grid; gap: 32px; }
@media (min-width: 900px) {
    .front { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
}
.rail-title, .section-title {
    font-size: 21px; font-weight: 700; letter-spacing: .12em; color: var(--olive);
    margin: 0; padding-top: 10px; border-top: 3px solid var(--ink);
}
.section-title a { text-decoration: none; }
.front-latest .card-compact:first-of-type { border-top: 0; }
.rail-more, .section-more {
    display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px;
    font-size: 16px; font-weight: 700; color: var(--olive); text-decoration: none;
}
.rail-more:hover, .section-more:hover { color: var(--ink); }

.sections {
    display: grid; gap: 8px 32px; margin-top: 56px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.section-block { margin-top: 0; }
.section-grid { display: grid; gap: 0 28px; }
@media (min-width: 640px) { .section-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .section-grid { grid-template-columns: repeat(4, 1fr); } .section-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Archives */
.archive { padding-top: 40px; padding-bottom: 56px; max-width: calc(860px + 2 * var(--gutter)); }
.archive-head { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.archive-eyebrow { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .14em; color: var(--olive); }
.archive-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 6vw, 56px); line-height: 1.04; margin: 4px 0 8px; }
.archive-desc { margin: 0 0 8px; color: var(--ink-soft); }
.archive-head + .feed .card-row:first-child { border-top: 0; }

.pagination {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--ink);
    font-size: 16px; font-weight: 600;
}
.pagination a { color: var(--olive); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pagination .page-number { color: var(--ink-faint); }

/* Story */
.story { padding-top: 44px; padding-bottom: 32px; }
.story-head { margin-bottom: 32px; text-align: center; }
.story-head .kicker { font-size: 17px; letter-spacing: .18em; }
.story-title {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(34px, 6.4vw, 60px); line-height: 1.04; letter-spacing: -.01em;
    margin: 4px 0 14px;
}
.story-dek { font-size: 22px; line-height: 1.45; color: var(--ink-soft); margin: 0 auto 16px; max-width: 600px; }
.story-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px;
    font-size: 16px; font-weight: 600; letter-spacing: .08em; color: var(--ink-faint);
    margin: 0;
}
.story-byline { color: var(--ink); }

.satire-notice {
    margin-bottom: 28px; padding: 12px 16px;
    border: 1.5px solid var(--olive); background: var(--paper-deep);
    font-size: 17px; line-height: 1.5; text-align: center;
}
.satire-notice strong { color: var(--olive); font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .12em; }

.story-image { margin-top: 0; margin-bottom: 36px; }
.story-image img { width: 100%; }
.story-image figcaption, .gh-content figcaption {
    font-size: 16px; font-style: italic; line-height: 1.45; color: var(--ink-faint);
    margin-top: 10px;
}

/* Post content (Ghost editor output) */
.gh-content {
    display: grid;
    font-size: 21px; line-height: 1.65;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, calc((var(--wrap-wide) - var(--wrap-narrow)) / 2))
        [main-start] min(var(--wrap-narrow), calc(100% - 2 * var(--gutter))) [main-end]
        minmax(0, calc((var(--wrap-wide) - var(--wrap-narrow)) / 2)) [wide-end]
        minmax(var(--gutter), 1fr) [full-end];
}
.gh-content > * { grid-column: main-start / main-end; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content > .kg-width-full img { width: 100%; }

.gh-content > * { margin-top: 0; margin-bottom: 0; }
.gh-content > * + * { margin-top: 1.15em; }
.post-template .gh-content > p:first-child::first-letter {
    float: left; font-family: var(--font-head); font-weight: 800;
    font-size: 4.2em; line-height: .8; margin: .08em .12em 0 0; color: var(--olive);
}
.gh-content h2, .gh-content h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; margin-top: 1.8em; }
.gh-content h2 { font-size: 30px; }
.gh-content h3 { font-size: 24px; }
.gh-content a { color: var(--olive); text-underline-offset: 3px; }
.gh-content a:hover { color: var(--ink); }
.gh-content blockquote:not([class]) {
    margin: 1.4em 0; padding: 18px 0;
    border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
    font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.3; text-align: center;
}
.gh-content blockquote:not([class]) p { margin: 0; }
.gh-content hr { border: 0; border-top: 1px solid var(--rule); width: 100%; margin-top: 2em; margin-bottom: 2em; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .4em; }

.story-foot { margin-top: 40px; }
.story-tags { margin: 18px 0 0; font-size: 16px; font-weight: 600; color: var(--ink-faint); text-align: center; }
.story-tags a { color: var(--olive); font-weight: 700; text-decoration: none; }
.story-comments { margin-top: 36px; }

.related { padding-top: 48px; padding-bottom: 48px; }
.related .section-title { margin-bottom: 4px; }

/* Subscribe band */
.subscribe { background: var(--olive); color: var(--on-olive); margin-top: 40px; }
.subscribe-inner {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
    max-width: calc(760px + 2 * var(--gutter)); padding-top: 56px; padding-bottom: 56px;
}
.subscribe .star { width: 22px; height: 22px; }
.subscribe-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4.6vw, 38px); line-height: 1.1; margin: 0; }
.subscribe-text { margin: 0; color: var(--on-olive-soft); font-size: 19px; line-height: 1.5; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 520px; margin-top: 8px; }
.subscribe-form input {
    flex: 1 1 240px; min-width: 0; min-height: 48px;
    font: inherit; font-size: 18px; padding: 0 16px;
    border: 0; background: var(--paper); color: var(--ink); border-radius: 0;
}
.subscribe-form .btn { min-height: 48px; font-size: 18px; }
.form-message { display: none; width: 100%; margin: 4px 0 0; font-size: 16px; }
.subscribe-form.success .form-success, .subscribe-form.error .form-error { display: block; }
.subscribe-form.loading button { opacity: .6; }

/* Footer */
.site-footer { padding: 48px 0 36px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-logo { display: block; width: 220px; }
.footer-tagline { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .16em; color: var(--olive); }
.footer-est { display: flex; align-items: center; gap: 12px; margin: 0; font-style: italic; font-size: 19px; color: var(--olive); }
.footer-est span { width: 36px; height: 1.5px; background: currentColor; }
.footer-nav .nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 17px; }
.footer-legal { display: flex; gap: 8px; margin: 4px 0 0; color: var(--ink-faint); font-size: 15px; }
.footer-legal a { color: var(--ink-faint); }

/* Error page */
.error-page { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.error-page .masthead-name { max-width: 300px; margin: 0 auto; }
.error-code { font-family: var(--font-ui); font-weight: 700; font-size: 20px; letter-spacing: .2em; color: var(--olive); margin: 32px 0 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Tip lines */
.story-tip { margin: 10px 0 0; font-size: 17px; color: var(--ink-faint); text-align: center; }
.story-tip a, .footer-tip a { color: var(--olive); }
.footer-tip { margin: 0; font-size: 16px; color: var(--ink-soft); }
.related .card-stack { border-top: 0; }
.related .section-grid-3 { gap: 0 32px; }

/* Series */
.series-line { margin: 0 0 16px; font-family: var(--font-ui); font-size: 17px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.series-line a { color: var(--olive); text-decoration: none; font-weight: 700; }
.series-line a:hover { text-decoration: underline; }

.series-box {
    margin-top: 40px; padding: 24px 24px 18px;
    border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
    background: var(--paper-deep);
}
.series-eyebrow { margin: 0; font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.series-name { margin: 4px 0 6px; font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1.15; }
.series-name a { text-decoration: none; }
.series-desc { margin: 0 0 12px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.series-list { margin: 0; padding-left: 1.6em; font-size: 18px; line-height: 1.4; }
.series-list li { padding: 6px 0; }
.series-list li::marker { font-family: var(--font-ui); font-weight: 700; color: var(--olive); }
.series-list a { text-decoration: none; }
.series-list a:hover { text-decoration: underline; }
.series-list .is-current a { font-weight: 700; color: var(--olive); }
.series-list .is-current a::after { content: " (you are here)"; font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.series-next { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--font-ui); font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.series-next a { color: var(--olive); text-transform: none; letter-spacing: 0; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.series-all { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-ui); font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); text-decoration: none; }

/* Series tag page: show the ordered parts instead of the newest-first feed */
.is-series ~ .tag-head, .is-series ~ .tag-feed, .is-series ~ .tag-pagination { display: none; }
.series-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin: 14px 0 6px; }
.series-page { margin-top: 28px; }
.series-parts { list-style: none; margin: 0; padding: 0; }
.series-part { border-top: 1px solid var(--rule); padding-top: 18px; }
.series-part:first-child { border-top: 0; }
.series-part .card-row { border-top: 0; padding-top: 4px; }
.series-part-num { margin: 0; font-family: var(--font-ui); font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }

/* Series index */
.series-grid { display: grid; gap: 32px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.series-card { border-top: 3px solid var(--ink); padding-top: 14px; }
.series-card .card-image { margin-bottom: 12px; }
.series-card .card-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.series-card-title { margin: 0 0 6px; font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.15; }
.series-card-title a { text-decoration: none; }
.series-index { max-width: calc(1000px + 2 * var(--gutter)); }

/* Homepage series band */
.series-band {
    display: grid; gap: 16px 40px; align-items: center;
    margin-top: 48px; padding: 28px 28px;
    border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
    background: var(--paper-deep);
}
@media (min-width: 860px) { .series-band { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.series-band-title { margin: 4px 0 6px; font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
.series-band-title a { text-decoration: none; }
.series-band-latest { margin: 0 0 12px; font-family: var(--font-ui); font-size: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.series-band-latest a { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
