/* Zurich Eye — modern editorial stylesheet. Fraunces (display) + Inter (UI). */

:root {
  /* light */
  --bg: #f6f6f2;
  --surface: #ffffff;
  --surface-2: #f0f0ea;
  --ink: #14161a;
  --text: #1d2026;
  --muted: #666c78;
  --faint: #6e747e;
  --line: rgba(20, 22, 26, 0.10);
  --line-strong: rgba(20, 22, 26, 0.18);
  --accent: #d11f2d;          /* Zurich red */
  --accent-ink: #b01722;
  --accent-wash: rgba(209, 31, 45, 0.08);
  --ring: rgba(209, 31, 45, 0.35);
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, 0.04), 0 2px 6px rgba(16, 18, 22, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(16, 18, 22, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(16, 18, 22, 0.30);

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  color-scheme: light;
  accent-color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
  :root:not([data-theme="light"]) {
    --bg: #0c0e11;
    --surface: #14171c;
    --surface-2: #1b1f26;
    --ink: #f3f4f6;
    --text: #e7e9ee;
    --muted: #9aa0ab;
    --faint: #8c939f;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #ff5667;
    --accent-ink: #ff7684;
    --accent-wash: rgba(255, 86, 103, 0.12);
    --ring: rgba(255, 86, 103, 0.40);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e11; --surface: #14171c; --surface-2: #1b1f26;
  --ink: #f3f4f6; --text: #e7e9ee; --muted: #9aa0ab; --faint: #8c939f;
  --line: rgba(255, 255, 255, 0.10); --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff5667; --accent-ink: #ff7684; --accent-wash: rgba(255, 86, 103, 0.12);
  --ring: rgba(255, 86, 103, 0.40);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-feature-settings: "cv05", "ss01"; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; padding: 13px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 50% 50%, var(--surface) 0 20%, transparent 21%),
    conic-gradient(from 210deg, var(--accent), var(--accent-ink), var(--accent));
  box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-sm);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.42rem; line-height: 1; letter-spacing: -0.02em; display: block; }
.brand-tag { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-weight: 500; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { position: relative; font-weight: 500; font-size: .93rem; color: var(--text); padding: 4px 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-search input {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 8px 15px; font: inherit; font-size: .88rem; width: 150px;
  transition: border-color .18s, box-shadow .18s, width .18s;
}
.site-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); width: 180px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .18s, background .18s, transform .1s;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-moon { display: none; }
  :root:not([data-theme="light"]) .i-sun { display: inline; }
}

@media (max-width: 760px) {
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 18px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .header-actions { margin-left: auto; }
  .site-search input { width: 120px; }
  .site-search input:focus { width: 140px; }
}

main.wrap { display: block; }

/* ---------- eyebrow / section labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.section-label {
  display: flex; align-items: center; gap: 14px; margin: 0 0 24px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 30px; }
.hero-head {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 18px 0 20px; color: var(--ink); max-width: 16ch;
}
.hero-head em { font-style: italic; color: var(--accent); }
.hero-lede { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.12rem; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  font-size: .84rem; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .18s, background .18s, color .18s, transform .1s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ---------- list headers ---------- */
.list-head { padding: 44px 0 26px; }
.list-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3rem); margin: 10px 0 8px; letter-spacing: -0.025em; color: var(--ink); }
.list-intro { color: var(--muted); margin: 0; max-width: 62ch; font-size: 1.05rem; }
.feed { padding-bottom: 64px; }

/* ---------- card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }

.kicker {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink);
}
.card-title { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; margin: 0; letter-spacing: -0.015em; color: var(--ink); transition: color .18s; }
.card:hover .card-title { color: var(--accent); }
.card-dek { color: var(--muted); font-size: .95rem; line-height: 1.5; margin: 0; }
.card-meta { color: var(--faint); font-size: .8rem; margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }

/* lead card */
.card-lead { grid-column: 1 / -1; }
.card-lead .card-link { display: grid; grid-template-columns: 1.15fr 1fr; }
.card-lead .card-body { padding: clamp(24px, 4vw, 44px); justify-content: center; gap: 16px; }
.card-lead .card-title { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; font-weight: 400; }
.card-lead .card-dek { font-size: 1.12rem; }
.card-lead .card-aside {
  background:
    radial-gradient(120% 120% at 100% 0%, var(--accent-wash), transparent 60%),
    linear-gradient(145deg, var(--surface-2), var(--surface));
  border-left: 1px solid var(--line);
  display: grid; place-items: center; min-height: 240px; position: relative; overflow: hidden;
}
.card-lead .card-aside::before {
  content: ""; width: 58%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 14%, transparent 15% 30%, var(--accent) 31% 33%, transparent 34%);
  opacity: .85;
}
.card-lead .lead-badge {
  position: absolute; top: 18px; left: 18px; font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.card-lead .lead-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) {
  .card-lead .card-link { grid-template-columns: 1fr; }
  .card-lead .card-aside { display: none; }
}

/* ---------- pagination ---------- */
.pagination { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.pagination .pg {
  font-weight: 600; font-size: .9rem; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .18s, background .18s, transform .1s;
}
.pagination .pg:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pagination .pg-info { color: var(--faint); font-size: .85rem; margin: 0 auto; font-variant-numeric: tabular-nums; }

/* ---------- article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 36px 0 72px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--accent); }
.article-head { margin-bottom: 26px; }
.article-head .kicker { font-size: .74rem; }
.article-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.07; letter-spacing: -0.03em; margin: 12px 0 16px; color: var(--ink); }
.article-dek { font-size: 1.28rem; color: var(--muted); line-height: 1.45; margin: 0 0 22px; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; font-variant-numeric: tabular-nums;
}
.article-meta .byline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.article-meta .avatar { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(from 200deg, var(--accent), var(--accent-ink)); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.article-media img { border-radius: var(--radius); margin: 10px 0 28px; width: 100%; }

.prose { font-size: 1.14rem; line-height: 1.78; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-of-type { font-size: 1.2rem; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin-top: 1.9em; letter-spacing: -0.015em; color: var(--ink); }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-top: 1.5em; color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--ring); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent); margin: 1.5em 0; padding: 4px 0 4px 22px;
  color: var(--text); font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.5;
}
.prose code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: .88em; }
.prose pre { background: #15181d; color: #e9eaed; padding: 18px; border-radius: var(--radius-sm); overflow: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tag { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .82rem; color: var(--muted); transition: border-color .18s, color .18s; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

.sources { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 22px; }
.sources h2 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin: 0 0 12px; color: var(--ink); }
.sources ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .93rem; }
.sources li + li { margin-top: .4em; }
.sources a { color: var(--accent); }
.static-page { max-width: 720px; }

/* ---------- search ---------- */
.search-page-form { margin: 10px 0 30px; position: relative; }
#search-input {
  width: 100%; font: inherit; font-size: 1.2rem; padding: 16px 20px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}
#search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.search-result { border-bottom: 1px solid var(--line); padding: 18px 0; }
.search-result h3 { font-family: var(--serif); font-weight: 500; margin: 4px 0; font-size: 1.25rem; }
.search-result h3 a { color: var(--ink); }
.search-result h3 a:hover { color: var(--accent); }
.search-count { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
mark { background: var(--accent-wash); color: var(--accent-ink); padding: 0 3px; border-radius: 3px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 44px 0 56px; background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 28px 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-name { font-size: 1.25rem; }
.footer-desc { color: var(--muted); max-width: 48ch; margin: 0; font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text); font-weight: 500; font-size: .92rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; color: var(--faint); font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 580px) { .footer-inner { grid-template-columns: 1fr; } }

/* ======================================================================
   Statement masthead + front-page editorial layout
   ====================================================================== */

/* thin signature bar at the very top */
.accent-bar { height: 3px; background: linear-gradient(90deg, var(--accent-ink), var(--accent) 45%, var(--accent-ink)); }

/* dateline strip */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.topbar-mark { color: var(--accent-ink); font-weight: 500; }
.topbar-coord { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .topbar-mark { display: none; } .topbar-inner { font-size: .64rem; } }
@media (max-width: 460px) { .topbar-coord { display: none; } }

/* masthead (home page only) */
.masthead { text-align: center; padding: 52px 0 30px; border-bottom: 2px solid var(--ink); }
.masthead-eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.nameplate {
  font-family: var(--serif); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(3.2rem, 13vw, 8.5rem); line-height: .9; letter-spacing: -0.045em;
  margin: 0; color: var(--ink);
}
.masthead-tag {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--muted); margin: 16px 0 24px;
}
.masthead-sections {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
  border-top: 1px solid var(--line); padding-top: 18px; max-width: 760px; margin: 0 auto;
}
.masthead-sections a {
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text);
}
.masthead-sections a:hover { color: var(--accent); }

/* front page: lead + rail */
.front { display: grid; grid-template-columns: 1.65fr 1fr; gap: 0; padding: 40px 0 10px; }
.front .lead { padding-right: 44px; border-right: 1px solid var(--line); }
.front .rail { padding-left: 36px; }
@media (max-width: 860px) {
  .front { grid-template-columns: 1fr; }
  .front .lead { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 32px; }
  .front .rail { padding-left: 0; }
}

/* lead story */
.lead-link { display: block; color: inherit; }
.lead-link:hover { color: inherit; }
.lead-figure {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px; background: var(--surface-2); box-shadow: var(--shadow-sm);
}
.lead-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lead-link:hover .lead-figure img { transform: scale(1.03); }
.lead-aperture {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 130% at 85% 10%, var(--accent-wash), transparent 55%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
  display: grid; place-items: center;
}
.lead-aperture::before {
  content: ""; width: 44%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      var(--surface) 0 16%, transparent 17% 27%,
      var(--accent) 28% 31%, transparent 32% 46%,
      var(--accent-ink) 47% 49%, transparent 50%);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  opacity: .9;
}
.lead-flag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--line);
}
.lead-flag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.lead-kicker { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.lead-title {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 14px; color: var(--ink); transition: color .18s;
}
.lead-link:hover .lead-title { color: var(--accent); }
.lead-dek { font-size: 1.16rem; line-height: 1.5; color: var(--muted); margin: 0 0 16px; max-width: 54ch; }
.lead-meta { font-family: var(--mono); font-size: .78rem; color: var(--faint); margin: 0; font-variant-numeric: tabular-nums; }

/* the brief + sections rail */
.rail-head {
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 4px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.rail-head + .brief { margin-top: 0; }
.brief { list-style: none; counter-reset: brief; margin: 0 0 36px; padding: 0; }
.brief-item { border-bottom: 1px solid var(--line); }
.brief-item a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 15px 0; color: inherit; align-items: start; }
.brief-item a::before {
  counter-increment: brief; content: counter(brief, decimal-leading-zero);
  grid-row: 1 / span 3; font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 600;
  padding-top: 2px;
}
.brief-kicker { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brief-title { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; line-height: 1.25; color: var(--ink); transition: color .18s; }
.brief-item a:hover .brief-title { color: var(--accent); }
.brief-time { font-family: var(--mono); font-size: .72rem; color: var(--faint); }

.rail-sections { list-style: none; margin: 0; padding: 0; }
.rail-sections li { border-bottom: 1px solid var(--line); }
.rail-sections a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-weight: 500; font-size: .95rem; color: var(--text); }
.rail-sections a:hover { color: var(--accent); }
.rail-count { font-family: var(--mono); font-size: .78rem; color: var(--faint); font-variant-numeric: tabular-nums; }

/* feed section below the front splits from it with a rule */
.page-home .feed { border-top: 2px solid var(--ink); margin-top: 40px; padding-top: 28px; }

/* ======================================================================
   Refined footer
   ====================================================================== */
.site-footer { border-top: 2px solid var(--ink); margin-top: 56px; padding: 52px 0 40px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 36px 40px; }
.footer-brand-col .footer-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand-col .brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.footer-desc { color: var(--muted); max-width: 42ch; margin: 0 0 14px; font-size: .94rem; line-height: 1.55; }
.footer-coord { font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--faint); text-transform: uppercase; margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); transition: border-color .18s, color .18s, transform .1s; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-head { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--muted); font-size: .92rem; width: fit-content; }
.footer-col a:hover { color: var(--accent); }
.footer-contact .footer-note { color: var(--faint); font-size: .84rem; line-height: 1.5; margin: 6px 0 0; max-width: 34ch; }
.footer-contact a { font-family: var(--mono); font-size: .86rem; color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  color: var(--faint); font-size: .82rem;
}
.footer-tagline { font-family: var(--serif); font-style: italic; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand-col { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ======================================================================
   Article page: progress, kicker link, tickers, related, author
   ====================================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }
@media (prefers-reduced-motion: reduce) { .read-progress span { transition: none; } }

.crumbs { gap: 7px; align-items: center; }
.crumbs span { color: var(--faint); }
.kicker-link { display: inline-block; }
.kicker-link:hover { color: var(--accent); }
.article-meta .sep { color: var(--faint); }

.ticker-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ticker {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .02em; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface-2);
  font-variant-numeric: tabular-nums;
}

.author-card {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 40px;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.author-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(from 200deg, var(--accent), var(--accent-ink)); box-shadow: inset 0 0 0 2px var(--line-strong); }
.author-name { font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.author-bio { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0 0 8px; }
.author-link { font-size: .85rem; font-weight: 600; color: var(--accent); }

.related { max-width: 1180px; margin: 56px auto 0; padding-top: 30px; border-top: 2px solid var(--ink); }
.related-head { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 680px) { .related-grid { grid-template-columns: 1fr; } }
.related-item { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.related-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.related-title { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; line-height: 1.22; color: var(--ink); transition: color .18s; }
.related-item:hover .related-title { color: var(--accent); }
.related-meta { font-family: var(--mono); font-size: .74rem; color: var(--faint); margin-top: auto; }

/* ======================================================================
   Live headline ticker (home)
   ====================================================================== */
.tickerbar {
  display: flex; align-items: stretch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  margin-top: 0; overflow: hidden; background: var(--bg);
}
.tickerbar-label {
  flex: none; display: flex; align-items: center; background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 0 16px; position: relative;
}
.tickerbar-label::after {
  content: ""; position: absolute; right: -8px; top: 0; bottom: 0; width: 8px;
  background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.tickerbar-viewport { overflow: hidden; flex: 1; }
.tickerbar-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: ticker 60s linear infinite; }
.tickerbar:hover .tickerbar-track { animation-play-state: paused; }
.tickerbar-item { display: inline-flex; align-items: center; gap: 10px; padding: 11px 26px; font-size: .9rem; color: var(--text); border-right: 1px solid var(--line); }
.tickerbar-item:hover { color: var(--accent); }
.tickerbar-cat { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tickerbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tickerbar-track { animation: none; } .tickerbar-viewport { overflow-x: auto; } }

/* the masthead no longer carries the bottom border; the ticker divides it */
.masthead { border-bottom: 0; padding-bottom: 22px; }
.front { padding-top: 44px; }

/* photograph credit caption */
.article-media { margin: 10px 0 28px; }
.credit {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; color: var(--faint);
  margin-top: 8px; text-transform: uppercase;
}
.credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.credit a:hover { color: var(--accent); }

/* ======================================================================
   The Essentials — pinned, sticky front-page evergreen pieces
   ====================================================================== */
.essentials { padding: 40px 0 8px; }
.essentials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.essential-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.essential-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.essential-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.essential-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.essential-card:hover .essential-media img { transform: scale(1.04); }
.essential-body { padding: 15px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.essential-title { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); transition: color .18s; }
.essential-card:hover .essential-title { color: var(--accent); }

/* Drop cap on the first paragraph of an article */
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.4em;
  line-height: .78;
  padding: 7px 10px 2px 0;
  color: var(--accent);
  font-optical-sizing: auto;
}

/* Print: clean article pages, hide chrome */
@media print {
  .site-header, .topbar, .accent-bar, .tickerbar, .site-footer, .read-progress,
  .site-search, #theme-toggle, .related, .pagination, .essentials, .tag-row { display: none !important; }
  html, body { background: #fff; color: #000; }
  .wrap, .article { max-width: none; padding: 0; }
  .prose a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  .article-media img, .prose img { max-width: 100%; }
}

/* ======================================================================
   Theme accessibility: focus rings, Windows High Contrast
   ====================================================================== */
/* Card's focusable link is a child inside overflow:hidden, so its own outline
   is clipped. Move the ring to the card on keyboard focus. */
.card:has(.card-link:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.card-link:focus-visible { outline: none; }
.essential-card:focus-visible,
.related-item:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Windows High Contrast / forced-colors: keep boundaries on elements that
   rely on background or shadow for their shape. */
@media (forced-colors: active) {
  .card, .essential-card, .related-item, .icon-btn, .chip,
  .pagination .pg, .tag, .ticker, #search-input, .site-search input,
  .author-card { border: 1px solid; }
  .site-header, .site-footer { border-color: CanvasText; }
  :focus-visible { outline: 2px solid Highlight; }
}
