/* Justin's Finds — v2.1 View Island–inspired editorial theme */

:root {
    --font-display: var(--gh-font-heading, "Playfair Display"), "Playfair Display", "Times New Roman", Times, serif;
    --font-body: var(--gh-font-body, "Newsreader"), "Newsreader", "Times New Roman", Times, serif;
    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --accent: var(--ghost-accent-color, #e31c3d);
    --highlight: #ebe4d4;
    --bg: #f6f6f4;
    --card: #efefed;
    --paper: #ffffff;
    --ink: #161616;
    --muted: #6b6b6b;
    --line: #e4e4e1;
    --bar: #111111;
    --radius: 20px;
    --radius-sm: 14px;
    --max: 1180px;
    --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button, input { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 400; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -40px;
    background: var(--ink); color: #fff;
    padding: 0.5rem 0.8rem;
    z-index: 100;
    border-radius: 6px;
}
.skip-link:focus { top: 0.5rem; }

.shell {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.serif, .story-title, .page-title, .footer-title, .wordmark, .t-card-title {
    font-family: var(--font-display);
    font-weight: 400;
}

/* Header */
.site-header {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 40;
}
.site-header.is-scrolled {
    border-bottom: 1px solid var(--line);
    background: rgba(246, 246, 244, 0.92);
    backdrop-filter: blur(12px);
}
.header-inner {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.header-nav {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    width: min(var(--max), calc(100% - 36px));
    margin: -6px auto 12px;
    display: flex;
    justify-content: center;
}
.header-nav .nav,
.mobile-nav .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.1rem 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav a { color: var(--ink); }
.header-nav a:hover { opacity: 0.65; }
.header-nav a[aria-current="page"],
.header-nav .nav-current a,
.mobile-nav .nav-current a { color: var(--ink); font-weight: 600; }

.wordmark {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    justify-self: center;
}
.wordmark:hover { color: var(--ink); opacity: 0.8; }

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.9rem 0.42rem 1.05rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-subscribe:hover {
    background: var(--ink);
    color: #fff;
}
.btn-arrow { display: inline-flex; }
.btn-subscribe-block { justify-content: center; width: 100%; margin-top: 1rem; }

.listen-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 4px 3px 10px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
}
.listen-pill:hover,
.listen-pill[aria-pressed="true"] {
    background: var(--ink);
    color: #fff;
}
.listen-pill[aria-pressed="true"] .listen-play svg circle { fill: #fff; }
.listen-pill[aria-pressed="true"] .listen-play svg path { fill: var(--ink); }
.listen-ico, .listen-play { display: inline-flex; align-items: center; }
.listen-play svg { display: block; }
.listen-pill-story {
    padding: 6px 14px 6px 6px;
    margin: 22px 0 0;
    font-size: 14px;
}

.menu-toggle {
    display: inline-flex;
    width: 36px; height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.menu-toggle-bars,
.menu-toggle-bars:before,
.menu-toggle-bars:after {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--ink);
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle-bars:before,
.menu-toggle-bars:after {
    content: "";
    position: absolute;
    left: 0;
}
.menu-toggle-bars:before { top: -6px; }
.menu-toggle-bars:after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars:before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars:after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
    display: none;
    padding: 0 20px 24px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu:not([hidden]) { display: block; }
.mobile-nav { padding-top: 8px; }
.mobile-nav .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex-wrap: nowrap;
}
.mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.7rem;
    padding: 6px 0;
}

/* Ticker */
.ticker {
    display: flex;
    align-items: center;
    background: var(--bar);
    color: #fff;
    min-height: 42px;
    width: 100%;
    overflow: hidden;
}
.ticker-label {
    margin: 0;
    padding: 0 22px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.98rem;
    white-space: nowrap;
    flex: 0 0 auto;
    letter-spacing: 0.01em;
}
.ticker-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: ticker-scroll 55s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0 1.15rem;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,0.22);
}
.ticker-item:hover { color: #fff; opacity: 0.8; }
.ticker-next {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
}
.ticker-next:hover { color: #fff; opacity: 0.7; }

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Home */
.home-main { padding: 22px 0 80px; }
.topic-nav {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 4px 0 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}
.topic-nav a:hover { opacity: 0.6; }


/* Homepage hero + chronological feed */
.hero-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 0 28px;
}
.hero-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #d8d8d5;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08);
    transition: transform 0.5s ease;
}
.hero-media:hover img { transform: scale(1.03); }
.hero-body {
    padding: 22px 26px 26px;
}
.hero-meta {
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}
.hero-tag {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
}
.hero-tag:hover { opacity: 0.65; color: var(--ink); }
.hero-title {
    font-size: clamp(1.85rem, 3.4vw, 3.05rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
}
.hero-excerpt {
    margin: 14px 0 0;
    max-width: 42em;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 1.12rem;
    line-height: 1.55;
}
.hero-card.has-no-image .hero-body { padding-top: 28px; padding-bottom: 32px; }

.home-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.home-feed:empty { display: none; }
.post-row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0 20px;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 148px;
    align-items: stretch;
}
.post-row-media {
    display: block;
    overflow: hidden;
    background: #d8d8d5;
    min-height: 148px;
}
.post-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08);
    transition: transform 0.5s ease;
}
.post-row-media:hover img { transform: scale(1.03); }
.post-row-body {
    padding: 18px 22px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.post-row-date {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}
.post-row-title {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.22;
}
.post-row-excerpt {
    margin: 8px 0 0;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.trending-kicker {
    margin: 0 0 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.trending-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr 1.1fr;
    grid-template-areas:
        "photo-lg dark text"
        "photo-sm share wide";
    gap: 16px;
    align-items: stretch;
}
.trending-grid > .t-card-photo-lg { grid-area: photo-lg; }
.trending-grid > .t-card-dark { grid-area: dark; }
.trending-grid > .t-card-text { grid-area: text; }
.trending-grid > .t-card-share { grid-area: share; }
.trending-grid > .t-card-photo-sm { grid-area: photo-sm; }
.trending-grid > .t-card-wide { grid-area: wide; }

.t-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.t-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.t-card-media {
    display: block;
    overflow: hidden;
    background: #d8d8d5;
    flex: 1 1 auto;
    min-height: 0;
}
.t-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08);
    transition: transform 0.5s ease;
}
.t-card-media:hover img { transform: scale(1.03); }

.t-card-photo-lg .t-card-media { min-height: 280px; aspect-ratio: 4 / 3; flex: 1; }
.t-card-photo-sm .t-card-media { aspect-ratio: 4 / 5; min-height: 180px; }
.t-card-wide {
    display: grid;
    grid-template-rows: 1fr auto;
}
.t-card-wide .t-card-media { aspect-ratio: 16 / 9; min-height: 180px; }

.t-card-date {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.7rem;
}
.t-card-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.t-card-title a { color: var(--ink); }
.t-card-title a:hover { color: var(--ink); opacity: 0.7; }
.t-card-excerpt {
    margin: 10px 0 0;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.55;
}
.t-card-meta {
    margin: 14px 0 0;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 12px;
    color: var(--muted);
    padding-top: 10px;
}
.meta-item { display: inline-flex; align-items: center; gap: 5px; }

.word-hl {
    background: var(--highlight);
    color: inherit !important;
    padding: 0 0.18em 0.04em;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Dark featured card */
.t-card-dark {
    background: #111;
    color: #f4f4f4;
    position: relative;
    min-height: 280px;
}
.t-card-dark .t-card-media {
    position: absolute;
    inset: 0;
    flex: none;
    background: #111;
}
.t-card-dark .t-card-media img {
    filter: grayscale(1) contrast(1.1) brightness(0.72);
    height: 100%;
}
.t-card-overlay {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 18px 16px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.82) 100%);
    min-height: 55%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.t-card-date.on-dark { color: rgba(255,255,255,0.82); }
.t-card-dark .t-card-title { font-size: 1.55rem; }
.t-card-dark .t-card-title a { color: #fff; }
.t-card-dark.has-no-image { background: #161616; min-height: 240px; }
.t-card-dark.has-no-image .t-card-overlay { background: none; min-height: 100%; padding-top: 20px; }

/* Text card */
.t-card.has-no-image .t-card-body {
    justify-content: flex-end;
    min-height: 200px;
    padding: 22px 20px 20px;
}
.t-card-photo-lg.has-no-image .t-card-title {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.t-card-photo-sm.has-no-image .t-card-title,
.t-card-wide.has-no-image .t-card-title {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.t-card-text { background: var(--card); }
.t-card-text .t-card-body { padding: 22px 22px 20px; }
.t-card-text .t-card-title { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.18; margin-bottom: 4px; }

/* Share tiles */
.t-card-share {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: transparent;
    padding: 0;
    overflow: hidden;
    align-content: start;
    align-self: start;
    height: auto;
    min-width: 0;
}
.share-tile {
    display: grid;
    place-items: center;
    background: var(--card);
    border: 0;
    border-radius: 16px;
    color: var(--ink);
    cursor: pointer;
    aspect-ratio: 1;
    min-height: 0;
    min-width: 0;
    padding: 0;
}
.share-tile:hover { background: #e6e6e3; color: var(--ink); }
.share-tile svg { width: 18px; height: 18px; }

/* Latest / archives */
.band { margin: 48px 0 24px; }
.band-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.band-head h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.archive-grid .t-card { height: auto; }
.archive-grid .t-card-media { aspect-ratio: 16 / 10; min-height: 0; flex: 0 0 auto; }
.page-head { padding: 36px 0 24px; }
.page-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.page-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.page-dek { color: var(--muted); max-width: 36em; margin: 10px 0 0; font-family: var(--font-body); font-size: 1.15rem; }
.empty-note { color: var(--muted); grid-column: 1 / -1; }

/* Subscribe forms */
.sub-form { width: min(520px, 100%); margin: 0 auto; }
.sub-row { display: flex; gap: 8px; }
.sub-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: var(--paper);
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    color: var(--ink);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--line);
}
.sub-form input[type="email"]:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sub-form button {
    border: 0;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 0.75rem 1.15rem;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.sub-form button:hover { background: #000; }
.sub-form .label-loading,
.sub-form .label-success,
.sub-form .label-error,
.sub-form.loading .label-default,
.sub-form.success .label-default,
.sub-form.error .label-default { display: none; }
.sub-form.loading .label-loading,
.sub-form.success .label-success,
.sub-form.error .label-error { display: inline; }
.sub-success, .sub-error { display: none; margin: 10px 0 0; font-size: 13px; }
.sub-form.success .sub-success { display: block; color: #157a3a; }
.sub-form.error .sub-error { display: block; color: var(--accent); }

/* Article */
.story { padding: 36px 0 20px; }
.story-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 200px);
    gap: 40px;
    align-items: start;
    padding-top: 12px;
    padding-bottom: 8px;
    max-width: 52.5rem;
}
.story-top-page { grid-template-columns: 1fr; }
.story-title {
    font-size: clamp(2.4rem, 5.4vw, 4.15rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 400;
    max-width: none;
}
.story-dek {
    margin: 16px 0 0;
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 36em;
}
.story-byline {
    padding-top: 8px;
    font-size: 13.5px;
    line-height: 1.45;
}
.byline-author {
    margin: 0 0 6px;
    font-weight: 600;
}
.byline-date {
    margin: 0 0 22px;
    color: var(--muted);
}
.byline-tag {
    margin: 0 0 2px;
    font-weight: 600;
}
.byline-label {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 28px 0 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}
.text-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
}
.text-action:hover { opacity: 0.6; }
.text-action.is-static { cursor: default; color: var(--muted); }
.text-action.is-static:hover { opacity: 1; }
.bookmark-btn[aria-pressed="true"] svg { fill: var(--ink); }

.story-media {
    margin: 36px auto 8px;
    background: transparent;
    max-width: 52.5rem;
}
.story-media img {
    width: 100%;
    filter: grayscale(1) contrast(1.06);
}
.story-media figcaption {
    font-size: 12px;
    color: var(--muted);
    padding: 8px 4px 0;
}

.story-body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    color: #2a2a2a;
    max-width: 52.5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 28px 240px 20px 0;
}
.story-body > *:first-child { margin-top: 0; }
.story-body a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.story-body a:hover { color: var(--accent); }
.story-body h2, .story-body h3 {
    font-family: var(--font-display);
    margin: 2rem 0 0.7rem;
    color: var(--ink);
}
.story-body h2 { font-size: 1.8rem; }
.story-body img {
    filter: grayscale(1) contrast(1.04);
    margin: 1.4rem 0;
}
.story-body blockquote {
    margin: 1.6rem 0;
    padding: 0 0 0 1.1rem;
    border-left: 2px solid var(--ink);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.35;
    color: var(--ink);
}

.post-subscribe {
    margin: 36px auto 64px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
}
.post-subscribe .footer-title { font-size: 2rem; margin: 0 0 8px; }
.post-subscribe .footer-copy { margin: 0 auto 16px; color: var(--muted); max-width: 32rem; }
.post-subscribe .footer-kicker { color: var(--muted); }
.more-issues { padding-bottom: 72px; }

/* Footer — quiet, light, to match the monochrome page */
.site-footer {
    background: var(--bg);
    color: var(--ink);
    padding: 56px 0 40px;
    margin-top: auto;
    border-top: 1px solid var(--line);
}
.footer-inner {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: end;
}
.footer-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 10px; color: var(--ink); }
.footer-copy { color: var(--muted); margin: 0 0 18px; max-width: 28rem; font-family: var(--font-body); }
.wordmark-footer { display: inline-block; margin-bottom: 10px; position: static; transform: none; }
.footer-legal, .footer-links { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-links a, .footer-legal { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.site-footer .sub-form { margin: 0; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 28px 0 48px;
    font-size: 14px;
    font-weight: 500;
}
.error-wrap { padding: 80px 0; text-align: center; }

/* Ghost cards */
.kg-width-wide, .kg-width-full { max-width: 100%; }
.kg-image { margin-left: auto; margin-right: auto; }
.kg-card { margin: 1.6rem 0; }

/* Responsive */
@media (max-width: 1080px) {
    .header-nav { display: none; }
    .trending-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "photo-lg photo-lg"
            "dark text"
            "share photo-sm"
            "wide wide";
    }
    .archive-grid { grid-template-columns: 1fr 1fr; }
    .post-row { grid-template-columns: 200px minmax(0, 1fr); }
    .hero-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
    .story-title { max-width: none; }
    .story-body { padding-right: 0; }
    .mobile-menu:not([hidden]) { display: block; }
    .header-inner { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 720px) {
    :root { --radius: 16px; --header-h: 64px; }
    .shell, .header-inner, .footer-inner { width: calc(100% - 28px); }
    .header-left .listen-pill { display: none; }
    .listen-pill-story .listen-label { display: inline; }
    .listen-pill-story { padding: 6px 14px 6px 6px; }
    .wordmark { letter-spacing: 0.1em; font-size: 1.15rem; }
    .header-inner { gap: 8px; }
    body { overflow-x: hidden; }
    .story-body { padding: 24px 0 20px; }
    .story-media { max-width: none; }
    .btn-subscribe { padding-right: 0.85rem; }
    .ticker-label { padding: 0 14px; font-size: 0.88rem; }
    .topic-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .trending-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo-lg"
            "dark"
            "text"
            "share"
            "photo-sm"
            "wide";
        gap: 14px;
    }
    .t-card-share { grid-template-columns: repeat(5, 1fr); }
    .share-tile { min-height: 58px; border-radius: 12px; }
    .t-card-photo-lg .t-card-media,
    .t-card-dark { min-height: 220px; }
    .archive-grid { grid-template-columns: 1fr; }
    .story-top { grid-template-columns: 1fr; gap: 20px; }
    .story-byline { order: -1; padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
    .byline-date { margin-bottom: 0; }
    .sub-row { flex-direction: column; }
    .sub-form button, .sub-form input[type="email"] { width: 100%; text-align: center; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-body { padding: 18px 18px 20px; }
    .post-row {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .post-row-media,
    .post-row-media.is-empty { aspect-ratio: 16 / 9; min-height: 0; }
    .post-row-body { padding: 14px 16px 16px; }
    .home-main { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .t-card-media img, .hero-media img, .post-row-media img, .btn-subscribe { transition: none; }
    .ticker-track { animation: none; }
    .ticker-viewport { overflow-x: auto; }
}
