/* ============================================================
   Tbfe Kitchen Journal - 2026 redesign
   Palette: warm paper / ink blue / amber. Serif headlines.
   ============================================================ */
:root {
  --paper: #f7f3e9;
  --paper-deep: #ece4d2;
  --surface: #fffdf7;
  --ink: #202a34;
  --ink-soft: #3d4a58;
  --muted: #66727f;
  --line: #ded6c2;
  --line-strong: #c8bea2;
  --brand: #22456b;
  --brand-deep: #16304e;
  --brand-bright: #38639a;
  --accent: #b97a1c;
  --accent-soft: #f4e7cc;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 14px rgba(33, 44, 56, .08);
  --shadow-lift: 0 10px 28px rgba(33, 44, 56, .13);
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.main { min-height: 62vh; padding-top: 70px; }
.eyebrow { color: var(--accent); font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.muted { color: var(--muted); }
.section { padding: 72px 0; }
.section-soft { background: var(--paper-deep); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 6px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; }
.section-head p { margin: 0; max-width: 560px; color: var(--muted); font-size: .88rem; }
.section-head a { flex: none; }

/* Buttons - every call to action is a real button-style link */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--radius); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #f7f3e9; background: var(--brand); box-shadow: 0 3px 12px rgba(34, 69, 107, .28); }
.button-primary:hover { background: var(--brand-bright); box-shadow: var(--shadow-lift); }
.button-accent { color: #fff; background: var(--accent); box-shadow: 0 3px 12px rgba(185, 122, 28, .3); }
.button-accent:hover { filter: brightness(1.06); box-shadow: var(--shadow-lift); }
.button-outline { color: var(--brand); border: 1.5px solid var(--brand); background: transparent; }
.button-outline:hover { background: var(--brand); color: #f7f3e9; }
.button-ghost { color: var(--paper); border: 1.5px solid rgba(247, 243, 233, .45); background: transparent; }
.button-ghost:hover { border-color: var(--paper); background: rgba(247, 243, 233, .1); }
.button-small { min-height: 38px; padding: 0 16px; font-size: .66rem; }

/* Icon helper */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; }
.icon svg { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------------
   Header - deep pine bar with a mega-menu grid
   ------------------------------------------------------------ */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 70px; background: var(--brand-deep); border-bottom: 1px solid rgba(247, 243, 233, .14); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 30, 48, .35); }
.header-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.42rem; font-weight: 700; letter-spacing: .01em; color: #f7f3e9; }
.brand img { height: 34px; width: auto; object-fit: contain; }
.brand .brand-dot { color: var(--accent); }
.desktop-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 8px; color: #d3ccbc; font-size: .76rem; font-weight: 600; letter-spacing: .05em; transition: color .2s, background .2s; }
.nav-item > a:hover, .nav-item > a[aria-current="page"], .nav-item.is-open > a { color: #fff; background: rgba(247, 243, 233, .1); }
.nav-item > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 2px 2px; }
.mega-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px); width: min(560px, 88vw); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 18px 44px rgba(15, 30, 48, .28); opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.mega-menu::before { content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.nav-item.is-open .mega-menu, .nav-item:hover .mega-menu, .mega-menu:focus-within { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-label { margin: 0 0 14px; color: var(--accent); font-size: .6rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega-link { display: flex; align-items: flex-start; gap: 11px; padding: 11px 10px; border-radius: var(--radius); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.mega-link:hover { background: var(--paper); border-color: var(--line); }
.mega-link .mega-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--category, var(--brand)); box-shadow: 0 3px 8px rgba(33, 44, 56, .18); }
.mega-link .mega-icon svg { width: 20px; height: 20px; }
.mega-link strong { display: block; font-size: .82rem; line-height: 1.3; color: var(--ink); }
.mega-link small { display: block; margin-top: 3px; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.mega-foot p { margin: 0; color: var(--muted); font-size: .68rem; }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 8px; background: rgba(247, 243, 233, .12); color: #f7f3e9; cursor: pointer; place-items: center; }
.menu-button:hover { background: rgba(247, 243, 233, .22); }
.menu-button svg { width: 22px; height: 22px; }
.mobile-menu, .menu-overlay { display: none; }

/* ------------------------------------------------------------
   Homepage - three distinct story layouts
   ------------------------------------------------------------ */
.cover-band { padding: 44px 0 8px; }
/* Section 1 - cover story: photo with caption overlay + text-only side column */
.cover-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; align-items: stretch; }
.cover-lead { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--paper-deep); transition: transform .25s ease, box-shadow .25s ease; }
.cover-lead:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cover-lead figure { position: relative; margin: 0; aspect-ratio: 16/8.4; }
.cover-lead figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 33, 51, .9) 0%, rgba(17, 33, 51, .38) 48%, rgba(17, 33, 51, 0) 72%); }
.cover-lead img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cover-lead:hover img { transform: scale(1.03); }
.cover-lead-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 9px; padding: clamp(18px, 3vw, 30px); color: #f7f3e9; }
.cover-lead-copy .card-badge { align-self: flex-start; }
.cover-lead-copy h2 { margin: 0; max-width: 680px; color: #fff; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.18; letter-spacing: -.01em; }
.cover-lead-copy p { display: -webkit-box; margin: 0; overflow: hidden; max-width: 640px; color: rgba(247, 243, 233, .82); font-size: .86rem; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cover-lead-copy .card-meta { margin-top: 2px; color: rgba(247, 243, 233, .75); }
.cover-side { display: flex; flex-direction: column; justify-content: center; padding: 10px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.cover-side-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 2px; border-bottom: 1px solid var(--line); }
.cover-side-item:last-child { border-bottom: 0; }
.cover-side-num { padding-top: 2px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1; color: var(--line-strong); transition: color .2s; }
.cover-side-item:hover .cover-side-num { color: var(--accent); }
.cover-side-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cover-side-copy .card-badge { position: static; align-self: flex-start; }
.cover-side-copy h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cover-side-copy .card-meta { margin-top: 2px; }

/* Home section headings */
.home-heading { margin-bottom: 34px; }
.home-heading > span { color: var(--accent); font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.home-heading h2 { margin: 6px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -.01em; }
.home-heading h2 b { font-weight: inherit; color: var(--brand); font-style: italic; }
.home-heading p { max-width: 660px; margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.home-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
@media (max-width: 760px) { .home-heading-row { flex-direction: column; align-items: flex-start; } }

/* Section 2 - dispatch board: feature row + numbered two-column grid */
.dispatch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.dispatch-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.dispatch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.dispatch-num { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 10px; border-radius: 8px; background: rgba(22, 48, 78, .88); color: #f7f3e9; font-family: var(--serif); font-style: italic; font-size: .9rem; letter-spacing: .08em; }
.dispatch-media { overflow: hidden; aspect-ratio: 16/9; background: var(--paper-deep); }
.dispatch-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dispatch-card:hover .dispatch-media img { transform: scale(1.04); }
.dispatch-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 22px 20px; }
.dispatch-copy .card-badge { position: static; align-self: flex-start; }
.dispatch-copy h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dispatch-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .8rem; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dispatch-copy .card-meta { margin-top: auto; padding-top: 6px; }
.dispatch-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: stretch; }
.dispatch-feature .dispatch-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.dispatch-feature .dispatch-copy { justify-content: center; gap: 10px; padding: clamp(22px, 3vw, 34px); }
.dispatch-feature .dispatch-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); -webkit-line-clamp: 3; }
.dispatch-feature .dispatch-copy p { -webkit-line-clamp: 3; font-size: .84rem; }

/* Section 3 - editor's table: alternating wide rows with roman numerals */
.table-rows { display: flex; flex-direction: column; gap: 22px; }
.table-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 36px); align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.table-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.table-row:nth-child(even) .table-media { order: 2; }
.table-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.table-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; background: var(--paper-deep); }
.table-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.table-row:hover .table-media img { transform: scale(1.04); }
.table-body { display: flex; flex-direction: column; gap: 9px; padding-right: clamp(0px, 2vw, 18px); }
.table-index { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.table-body .card-badge { position: static; align-self: flex-start; }
.table-body h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.18rem, 2vw, 1.48rem); line-height: 1.28; letter-spacing: -.008em; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.table-body p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.table-body .card-meta { margin-top: 4px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.card-meta .meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* Card badge - small terracotta-inked label */
.card-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--category, var(--brand)); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Category shelves - six pantry doors */
.sections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.section-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.section-card::after { content: ""; position: absolute; top: -46px; right: -46px; width: 118px; height: 118px; border-radius: 50%; background: color-mix(in srgb, var(--category) 9%, transparent); transition: transform .3s ease; }
.section-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--category) 45%, var(--line)); box-shadow: var(--shadow-lift); }
.section-card:hover::after { transform: scale(1.25); }
.section-card .section-icon { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--category, var(--brand)); box-shadow: 0 4px 10px rgba(33, 44, 56, .2); }
.section-card .section-icon svg { width: 24px; height: 24px; }
.section-card h3 { position: relative; z-index: 1; margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.22rem; }
.section-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.section-card .section-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.section-card .section-count { color: var(--category, var(--brand)); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

/* ------------------------------------------------------------
   Cards shared by category & related blocks
   ------------------------------------------------------------ */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { overflow: hidden; height: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--paper-deep); }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .card-image { transform: scale(1.04); }
.card-image-wrap .card-badge { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 19px 21px 17px; }
.card-body h3 { margin: 0 0 9px; font-family: var(--serif); font-weight: 600; font-size: 1.06rem; line-height: 1.35; }
.card-body p { display: -webkit-box; margin: 0 0 15px; overflow: hidden; color: var(--muted); font-size: .78rem; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; }

/* ------------------------------------------------------------
   Page hero (category pages) - warm paper banner
   ------------------------------------------------------------ */
.page-hero { position: relative; overflow: hidden; color: #f7f3e9; background: var(--brand-deep); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(720px 300px at 12% 0%, rgba(56, 99, 154, .5), transparent 65%), radial-gradient(560px 260px at 88% 110%, rgba(185, 122, 28, .22), transparent 60%); }
.page-hero-content { position: relative; z-index: 1; padding: 58px 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; color: rgba(247, 243, 233, .62); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumbs .crumb-sep { color: var(--accent); }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.page-hero h1 { margin: 8px 0 10px; max-width: 900px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -.01em; }
.page-hero p { max-width: 730px; margin: 0; color: rgba(247, 243, 233, .8); font-size: .92rem; }
.category-title-row { display: flex; align-items: center; gap: 18px; }
.category-icon { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--category, var(--accent)); box-shadow: 0 6px 16px rgba(0, 0, 0, .28); }
.category-icon svg { width: 30px; height: 30px; }

/* Pagination - numbered squares */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink-soft); font-size: .74rem; font-weight: 700; transition: .2s; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { color: #f7f3e9; border-color: var(--brand); background: var(--brand); }
.pagination .disabled { color: var(--line-strong); background: var(--paper-deep); }

/* ------------------------------------------------------------
   Article page
   ------------------------------------------------------------ */
.reading-progress { position: fixed; z-index: 80; top: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.article-hero { position: relative; display: flex; align-items: end; overflow: hidden; color: #f7f3e9; background: var(--brand-deep); }
.article-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(22, 48, 78, .42) 0%, rgba(22, 48, 78, .55) 45%, rgba(22, 48, 78, .95) 100%); }
.article-hero-content { position: relative; z-index: 2; width: 100%; padding: 62px 0 52px; }
.article-hero h1 { max-width: 880px; margin: 14px 0 16px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.16; letter-spacing: -.01em; }
.article-lead { max-width: 780px; margin: 0; color: rgba(247, 243, 233, .85); font-size: clamp(.92rem, 1.8vw, 1.02rem); line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 22px; color: rgba(247, 243, 233, .75); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }
.article-meta .meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); align-self: center; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: start; padding: 52px 0 72px; }
.article-layout.no-toc { grid-template-columns: minmax(0, 940px); justify-content: center; }
.toc { position: sticky; top: 94px; max-height: calc(100vh - 118px); overflow: auto; padding: 20px 20px 18px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.toc strong { display: block; margin-bottom: 12px; font-family: var(--serif); font-size: .84rem; letter-spacing: .04em; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: .74rem; line-height: 1.45; transition: color .2s, border-color .2s; }
.toc a.sub { padding-left: 24px; }
.toc a:hover { color: var(--brand); border-left-color: var(--accent); }
.article-panel { min-width: 0; padding: clamp(26px, 4.5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.article-body { color: var(--ink-soft); font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.28; letter-spacing: -.005em; scroll-margin-top: 92px; }
.article-body h2 { margin: 2.2em 0 .7em; padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: 1.6rem; }
.article-body h3 { margin: 1.7em 0 .6em; font-size: 1.28rem; }
.article-body p { margin: 1.1em 0; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s; }
.article-body a:hover { color: var(--brand); }
.article-body img { width: auto; max-height: 700px; margin: 1.7em auto; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.article-body blockquote { margin: 1.6em 0; padding: 12px 22px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft); color: var(--ink-soft); font-style: italic; }
.article-body pre { overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-deep); color: #d3ccbc; }
.article-body code { padding: .15em .4em; border-radius: 5px; background: var(--paper-deep); font-size: .88em; }
.article-body pre code { padding: 0; background: transparent; }
.article-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--paper-deep); font-family: var(--serif); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.disclaimer { margin-top: 38px; padding: 16px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--muted); font-size: .74rem; line-height: 1.6; }
.disclaimer strong { color: var(--brand); }

/* ------------------------------------------------------------
   Static pages - each gets its own composition
   ------------------------------------------------------------ */
.content-page { padding: 74px 0; }
.content-card { max-width: 900px; margin: 0 auto; padding: clamp(26px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.content-card h2 { margin-top: 1.7em; font-family: var(--serif); font-weight: 600; font-size: 1.42rem; letter-spacing: -.005em; }
.content-card p, .content-card li { color: var(--ink-soft); }
.content-card a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.content-card a:hover { color: var(--brand); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 25px 0; }
.info-box { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.info-box h3 { margin: 0 0 7px; font-family: var(--serif); font-size: .98rem; }
.info-box p { margin: 0; font-size: .82rem; }

/* About page extras: stat strip + timeline */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0 6px; }
.stat-cell { padding: 20px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }
.stat-cell strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--brand); line-height: 1.1; }
.stat-cell span { display: block; margin-top: 6px; color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; }
.timeline { margin: 24px 0 6px; border-left: 2px solid var(--line-strong); padding-left: 24px; display: flex; flex-direction: column; gap: 22px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-item h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 1.05rem; }
.timeline-item p { margin: 0; font-size: .86rem; color: var(--muted); }

/* Contact page extras: two-lane layout */
.contact-lanes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; margin: 26px 0; }
.contact-card { padding: 30px 28px; border-radius: var(--radius-lg); background: var(--brand-deep); color: #f7f3e9; box-shadow: var(--shadow-lift); }
.contact-card h2, .contact-card h3 { color: #fff; font-family: var(--serif); }
.contact-card p { color: rgba(247, 243, 233, .78); }
.contact-card .contact-mail { display: inline-block; margin: 8px 0 4px; padding: 12px 20px; border-radius: var(--radius); background: rgba(247, 243, 233, .12); border: 1px solid rgba(247, 243, 233, .25); color: #fff; font-family: var(--serif); font-size: 1.05rem; text-decoration: none !important; transition: background .2s; }
.contact-card .contact-mail:hover { background: rgba(247, 243, 233, .2); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.faq-item h3 { margin: 0 0 6px; font-size: .92rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: .8rem; }

/* Privacy page - fully expanded numbered document (never collapsible) */
.policy-doc { counter-reset: policy-section; }
.policy-doc h2 { display: flex; align-items: baseline; gap: 14px; }
.policy-doc h2::before { counter-increment: policy-section; content: counter(policy-section, decimal-leading-zero); flex: none; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--accent); }
.policy-notice { margin: 22px 0; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--paper); }
.policy-notice p { margin: .4em 0; font-size: .84rem; }
.policy-updated { display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Terms page - clause cards with side numbers */
.terms-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 6px; }
.term-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.term-num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.1; color: var(--brand); }
.term-item h2 { margin: 0 0 8px !important; font-size: 1.1rem !important; }
.term-item p { margin: .5em 0; font-size: .84rem; }
.term-item p:first-of-type { margin-top: 0; }
.faq-item a, .info-box a, .timeline-item a, .term-item a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.faq-item a:hover, .info-box a:hover, .timeline-item a:hover, .term-item a:hover { color: var(--brand); }
.contact-card a:not(.contact-mail) { color: #f4e7cc; text-decoration: underline; text-underline-offset: 3px; }
.contact-card a:not(.contact-mail):hover { color: #fff; }

/* ------------------------------------------------------------
   Footer - deep pine, three columns
   ------------------------------------------------------------ */
.site-footer { color: #b2ab9b; background: var(--brand-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; padding: 58px 0 40px; }
.footer-brand .brand { margin-bottom: 4px; }
.footer-brand p { max-width: 380px; margin-top: 14px; color: #97a2b0; font-size: .8rem; line-height: 1.7; }
.footer-title { margin: 0 0 15px; color: #f7f3e9; font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #97a2b0; font-size: .78rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid rgba(247, 243, 233, .14); color: #97a2b0; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-bottom .foot-dot { color: var(--accent); }

/* Reveal animation + misc */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.template-ad-slot { max-width: 1200px; margin: 0 auto; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1020px) {
  .cover-grid { grid-template-columns: 1fr; }
  .cover-lead figure { aspect-ratio: 16/9; }
  .dispatch-grid { grid-template-columns: 1fr; }
  .dispatch-feature { grid-template-columns: 1fr; }
  .dispatch-feature .dispatch-media { aspect-ratio: 16/9; min-height: 0; }
  .table-row, .table-row:nth-child(even) { grid-template-columns: 1fr; gap: 14px; }
  .table-row:nth-child(even) .table-media { order: 0; }
  .table-media { aspect-ratio: 16/9; }
  .sections-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-lanes { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .menu-overlay { display: block; position: fixed; z-index: 59; inset: 0; visibility: hidden; opacity: 0; background: rgba(15, 30, 48, .55); transition: .25s; }
  .menu-overlay.is-open { visibility: visible; opacity: 1; }
  .mobile-menu { display: block; position: fixed; z-index: 60; top: 0; right: 0; width: min(330px, 86vw); height: 100vh; padding: 24px; background: var(--surface); transform: translateX(102%); transition: transform .28s ease; box-shadow: -10px 0 30px rgba(15, 30, 48, .25); }
  .mobile-menu.is-open { transform: none; }
  .mobile-menu .brand { margin-bottom: 26px; color: var(--ink); }
  .mobile-menu nav { display: grid; gap: 4px; }
  .mobile-menu nav a { padding: 12px 14px; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .82rem; letter-spacing: .03em; transition: .2s; }
  .mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: #fff; background: var(--brand); }
  .mobile-menu .mobile-menu-foot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: grid; gap: 8px; }
  .mobile-menu .mobile-menu-foot a { display: block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .74rem; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .footer-grid { gap: 34px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 52px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .cover-band { padding-top: 28px; }
  .cover-lead-copy { padding: 16px 16px 18px; }
  .cover-lead-copy h2 { font-size: 1.4rem; }
  .sections-grid, .article-grid, .info-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; }
  .page-hero-content { padding: 44px 0; }
  .category-title-row { align-items: flex-start; }
  .category-icon { width: 48px; height: 48px; border-radius: 11px; }
  .category-icon svg { width: 24px; height: 24px; }
  .article-hero { min-height: 0; display: block; }
  .article-hero-image { position: relative; inset: auto; height: 320px; object-position: center 58%; }
  .article-hero::after { display: none; }
  .article-hero-content { padding: 28px 0 36px; background: var(--brand-deep); }
  .article-body { font-size: .95rem; }
  .article-body h2 { font-size: 1.38rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .dispatch-copy { padding: 16px 16px 18px; }
  .table-row { padding: 10px; }
  .term-item { grid-template-columns: 1fr; gap: 8px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
