/* ==========================================================================
   Daniel Editorial — magazine theme for Lars Daniel
   Paper-and-ink editorial design. Newsreader (serif) + Inter (UI).
   ========================================================================== */

:root {
    --paper: #FBFAF6;
    --paper-deep: #F3F1E9;
    --ink: #16130E;
    --ink-soft: #57534A;
    --ink-faint: #8A857A;
    --rule: #E2DFD4;
    --rule-dark: #16130E;
    --accent: var(--ghost-accent-color, #8C2B2B);
    --serif: var(--gh-font-body, "Newsreader"), "Iowan Old Style", Georgia, serif;
    --serif-display: var(--gh-font-heading, "Newsreader"), "Iowan Old Style", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --w-wide: 1220px;
    --w-text: 42rem;
}

/* ---- Reset-lite ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-optical-sizing: auto;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga", "kern";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; width: 100%; }

/* kicker — small caps label used everywhere */
.kicker {
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}
a.kicker:hover { color: var(--ink); }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead { border-bottom: 2px solid var(--rule-dark); background: var(--paper); }

.masthead-top { border-bottom: 1px solid var(--rule); }
.masthead-top-inner {
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--sans);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.masthead-edition { display: none; }
.masthead-top-links { display: flex; gap: 1.25rem; }
.masthead-top-links a { text-decoration: none; color: var(--ink-soft); }
.masthead-top-links a:hover { color: var(--accent); }

.masthead-brand { text-align: center; padding: 2.4rem 1rem 1.6rem; }
.masthead-wordmark {
    font-family: var(--serif);
    font-optical-sizing: auto;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}
.masthead-wordmark:hover { color: var(--ink); }
.masthead-tagline {
    margin: 0.8rem 0 0;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.masthead-nav {
    border-top: 1px solid var(--rule-dark);
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 1rem;
}
.nav-wrap { overflow-x: auto; display: flex; justify-content: center; }

/* Search band below the nav */
.masthead-search {
    border-top: 1px solid var(--rule);
    padding: 0.85rem 1.25rem;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    max-width: 38rem;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0.7rem 0.65rem 0.7rem 1rem;
    font-family: var(--sans);
    cursor: pointer;
    color: var(--ink-faint);
    box-shadow: 0 1px 0 rgba(22, 19, 14, 0.03);
}
.search-field:hover, .search-field:focus-visible { border-color: var(--ink); }
.search-field:hover .search-hint { background: var(--accent); }
.search-field svg { flex-shrink: 0; color: var(--ink-soft); }
.search-placeholder {
    flex: 1;
    text-align: left;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-hint {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--ink);
    border-radius: 2px;
    padding: 0.35rem 0.7rem;
}
.masthead-nav .nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    white-space: nowrap;
}
.masthead-nav .nav li { margin: 0; }
.masthead-nav .nav a {
    display: inline-block;
    padding: 0.85rem 0.9rem;
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}
.masthead-nav .nav a:hover { color: var(--accent); }
.masthead-nav .nav .nav-current a { box-shadow: inset 0 -3px 0 var(--accent); }

.nav-subscribe {
    position: absolute;
    right: 1.25rem;
    flex-shrink: 0;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--paper);
    background: var(--ink);
    padding: 0.5rem 1rem;
    border-radius: 2px;
}
.nav-subscribe:hover { background: var(--accent); }

.nav-toggle { display: none; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.frame { max-width: var(--w-wide); margin: 0 auto; padding: 0 1.25rem; }

/* ---- Hero: lead story + expert rail ---- */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}
.hero-story { display: flex; flex-direction: column; gap: 1rem; }
.hero-story .hero-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    background: var(--paper-deep);
}
.hero-story h1 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
}
.hero-story h1 a { text-decoration: none; }
.hero-story h1 a:hover { color: var(--accent); }
.hero-dek {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--ink-soft);
    font-weight: 400;
}
.hero-meta, .card-meta {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}

/* ---- Expert rail ---- */
.expert-rail { border-left: 1px solid var(--rule); padding-left: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.expert-card { text-align: center; }
.expert-card .expert-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 1px solid var(--rule);
}
.expert-card h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}
.expert-card .expert-role {
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0.35rem 0 0.75rem;
}
.expert-card p { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }
.expert-links { display: flex; justify-content: center; gap: 1rem; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.expert-links a { text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--rule); padding-bottom: 2px; }
.expert-links a:hover { border-color: var(--accent); color: var(--accent); }
.expert-more {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
}

.rail-list h4, .section-head h2 {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}
.rail-list h4 { padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }
.rail-list ol { list-style: none; margin: 0; padding: 0; counter-reset: rail; }
.rail-list li {
    counter-increment: rail;
    display: flex;
    gap: 0.9rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
}
.rail-list li::before {
    content: counter(rail);
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--ink-faint);
    min-width: 1.2rem;
}
.rail-list a {
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}
.rail-list a:hover { color: var(--accent); }

/* ---- Section bands ---- */
.section-band { padding: 2.2rem 0 0.6rem; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 2px solid var(--ink);
    padding-top: 0.7rem;
    margin-bottom: 1.4rem;
}
.section-head h2 a { text-decoration: none; }
.section-head h2 a:hover { color: var(--accent); }
.section-head .section-all {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-faint);
}
.section-head .section-all:hover { color: var(--accent); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; gap: 0.55rem; }
.card-image-link { display: block; background: var(--paper-deep); }
.card-image { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.card h3 { margin: 0.2rem 0 0; font-size: 1.22rem; font-weight: 600; line-height: 1.22; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-excerpt { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }

.card.is-video .card-image-link { position: relative; }
.card.is-video .card-image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(20, 18, 14, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FBFAF6'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* list variant for archive pages */
.post-list { display: flex; flex-direction: column; }
.list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 2rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--rule);
}
.list-item .card-image { aspect-ratio: 16 / 10; }
.list-item h3 { margin: 0.3rem 0 0.5rem; font-size: 1.5rem; font-weight: 650; line-height: 1.18; }
.list-item h3 a { text-decoration: none; }
.list-item h3 a:hover { color: var(--accent); }

/* ---- Bands: newsletter + book ---- */
.cta-band {
    margin: 3rem 0 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background: var(--paper-deep);
}
.cta-inner {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1.25rem;
}
.cta-inner h2 { font-size: 2rem; margin: 0 0 0.6rem; font-weight: 700; }
.cta-inner p { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 1.05rem; }
.cta-form { display: flex; gap: 0.6rem; max-width: 30rem; margin: 0 auto; }
.cta-form input {
    flex: 1;
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ink);
    background: var(--paper);
    border-radius: 2px;
}
.cta-form button {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--ink);
    border: 0;
    padding: 0 1.4rem;
    border-radius: 2px;
    cursor: pointer;
}
.cta-form button:hover { background: var(--accent); }
.cta-success { display: none; font-family: var(--sans); font-weight: 600; color: var(--accent); }

.book-band { padding: 0.5rem 0 0.25rem; }
.book-sub {
    font-style: italic;
    color: var(--ink-faint);
    margin: -0.35rem 0 0.8rem !important;
    font-size: 1.02rem;
}
.book-cta-row { display: flex; align-items: center; gap: 1rem; margin: 0 !important; }
.book-formats {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* rail book card */
.rail-book {
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--rule);
    padding: 1rem;
    background: #FFFFFF;
    text-align: left;
}
.rail-book-cover { width: 70px; flex-shrink: 0; box-shadow: 3px 4px 0 var(--paper-deep), 3px 4px 0 1px var(--rule); }
.rail-book-title { font-family: var(--serif); font-weight: 600; font-size: 1rem; line-height: 1.25; margin: 0.3rem 0 0.45rem; }

/* in-article book box (trucking + cell phone forensics posts) */
.book-cta-post {
    max-width: var(--w-text);
    margin: 3rem auto 0;
    padding: 1.5rem;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    background: #FFFFFF;
    display: flex;
    gap: 1.4rem;
    align-items: center;
}
.book-cta-post .book-cta-cover { width: 92px; flex-shrink: 0; box-shadow: 4px 5px 0 var(--paper-deep), 4px 5px 0 1px var(--rule); }
.book-cta-post h3 { margin: 0.35rem 0 0.4rem; font-size: 1.25rem; line-height: 1.2; }
.book-cta-post p { margin: 0 0 0.9rem; font-size: 0.95rem; color: var(--ink-soft); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.72rem; }
@media (max-width: 640px) {
    .book-cta-post { flex-direction: column; text-align: center; }
}
.book-inner {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 2.2rem;
    align-items: center;
    border: 1px solid var(--rule-dark);
    padding: 2rem 2.4rem;
}
.book-cover { box-shadow: 6px 8px 0 var(--paper-deep), 6px 8px 0 1px var(--rule); }
.book-copy .kicker { color: var(--ink-faint); }
.book-copy h2 { margin: 0.4rem 0 0.6rem; font-size: 1.7rem; line-height: 1.15; }
.book-copy p { margin: 0 0 1.2rem; color: var(--ink-soft); }
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--paper);
    background: var(--ink);
    padding: 0.7rem 1.3rem;
    border-radius: 2px;
}
.btn:hover { background: var(--accent); }

/* ==========================================================================
   Post page
   ========================================================================== */
.article { padding: 3rem 0 1rem; }
.article-header { max-width: 50rem; margin: 0 auto; text-align: center; padding: 0 1.25rem; }
.article-header .kicker { display: inline-block; margin-bottom: 1rem; }
.article-title {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.012em;
}
.article-dek {
    margin: 1.2rem auto 0;
    max-width: 40rem;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ink-soft);
    font-style: italic;
}
.article-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.6rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--ink-soft);
}
.byline-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article-byline .byline-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.article-byline .byline-name:hover { color: var(--accent); }
.byline-sep { color: var(--rule); }

.article-feature { max-width: 62rem; margin: 2.4rem auto 0; padding: 0 1.25rem; }
.article-feature img { width: 100%; }
.article-feature figcaption, .gh-content figcaption {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--ink-faint);
    padding-top: 0.55rem;
    text-align: left;
}
.article-feature figcaption .credit { text-transform: uppercase; letter-spacing: 0.06em; }

/* body copy */
.gh-content {
    max-width: var(--w-text);
    margin: 2.6rem auto 0;
    padding: 0 1.25rem;
    font-size: 1.185rem;
    line-height: 1.72;
}
.gh-content > * + * { margin-top: 1.35rem; }
.gh-content p { margin: 0; }
.gh-content h2, .gh-content h3 {
    font-weight: 700;
    line-height: 1.2;
    margin: 2.6rem 0 0;
    letter-spacing: -0.005em;
}
.gh-content h2 { font-size: 1.75rem; }
.gh-content h3 { font-size: 1.35rem; }
.gh-content a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.gh-content a:hover { color: var(--accent); }
.gh-content blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ink-soft);
}
.gh-content ul, .gh-content ol { padding-left: 1.4rem; }
.gh-content li + li { margin-top: 0.5rem; }
.gh-content strong { font-weight: 700; }
.gh-content .kg-image-card img { margin: 0 auto; }
.gh-content .kg-embed-card { position: relative; }
.gh-content .kg-embed-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.gh-content hr { margin: 2.6rem auto; width: 120px; border-top: 2px solid var(--rule-dark); }
.gh-content .origin-note { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); }
.gh-content .origin-note a { color: var(--ink-soft); }

/* headings pick up the display serif */
.hero-story h1, .article-title, .archive-header h1, .cta-inner h2, .book-copy h2 { font-family: var(--serif-display); }

/* Koenig width cards */
.gh-content .kg-width-wide { max-width: 62rem; width: calc(100vw - 2.5rem); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { width: 100%; }

/* no drop cap on video posts */
.post-template.tag-video .gh-content > p:first-of-type::first-letter {
    font-size: inherit; float: none; padding: 0; font-weight: inherit; line-height: inherit;
}

/* drop cap on first paragraph of articles */
.post-template .gh-content > p:first-of-type::first-letter {
    font-size: 3.4em;
    font-weight: 600;
    float: left;
    line-height: 0.78;
    padding: 0.08em 0.12em 0 0;
}

/* author box */
.article-author {
    max-width: var(--w-text);
    margin: 3rem auto 0;
    padding: 1.8rem 1.25rem;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--rule);
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
}
.article-author .author-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-author h3 { margin: 0 0 0.1rem; font-size: 1.15rem; }
.article-author h3 a { text-decoration: none; }
.article-author .author-role { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.5rem; }
.article-author p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
.article-author .expert-links { justify-content: flex-start; margin-top: 0.7rem; }

/* related */
.related { padding: 2.5rem 0 3rem; }

/* prev/next pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 0 3rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.pagination a { text-decoration: none; border: 1px solid var(--ink); padding: 0.6rem 1.2rem; border-radius: 2px; }
.pagination a:hover { background: var(--ink); color: var(--paper); }
.pagination .page-number { align-self: center; color: var(--ink-faint); }

/* ==========================================================================
   Tag + author pages
   ========================================================================== */
.archive-header { padding: 3rem 0 1.4rem; border-bottom: 2px solid var(--ink); }
.archive-header .kicker { display: block; margin-bottom: 0.6rem; }
.archive-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.05; }
.archive-header p { margin: 0.9rem 0 0; max-width: 44rem; font-size: 1.1rem; color: var(--ink-soft); }
.archive-body { padding-bottom: 3rem; }

.author-hero { display: flex; gap: 2rem; align-items: center; padding: 3rem 0 1.6rem; border-bottom: 2px solid var(--ink); }
.author-hero .author-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 4rem; border-top: 2px solid var(--rule-dark); background: var(--paper); }
.footer-inner {
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: 3rem 1.25rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
}
.footer-wordmark {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
}
.footer-bio { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); max-width: 34rem; }
.footer-social { display: flex; gap: 1.2rem; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-social a { text-decoration: none; border-bottom: 2px solid var(--rule); padding-bottom: 2px; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-nav h4 {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 0.9rem;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 0.55rem; }
.footer-nav a { text-decoration: none; font-family: var(--sans); font-size: 0.88rem; color: var(--ink); }
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
    border-top: 1px solid var(--rule);
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: 1.1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--ink-faint);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
    .home-hero { grid-template-columns: 1fr; gap: 2rem; }
    .expert-rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2rem; }
    .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .masthead-top-inner { justify-content: center; }
    .masthead-top-links { display: none; }
    .masthead-brand { padding: 1.6rem 1rem 1.1rem; }
    .masthead-nav { justify-content: flex-start; }
    .nav-subscribe { position: static; margin-left: auto; flex-shrink: 0; }
    .masthead-search { padding: 0.7rem 1rem; }
    .search-hint { display: none; }
    .card-grid, .card-grid.cols-4 { grid-template-columns: 1fr; }
    .list-item { grid-template-columns: 1fr; gap: 0.8rem; }
    .list-item .list-thumb { order: -1; }
    .book-inner { grid-template-columns: 1fr; text-align: center; padding: 1.6rem; }
    .book-cover { margin: 0 auto; }
    .article-author { flex-direction: column; }
    .cta-form { flex-direction: column; }
    .cta-form button { padding: 0.75rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-legal { flex-direction: column; gap: 0.3rem; }
}
