/* Clearview Studios — editorial stylesheet. Clearview brand theme (ported from blog.clearview.team):
   Inter (UI/display) + Source Serif 4 (long-form), ink/pulse/paper palette. */

:root {
  color-scheme: light;

  /* ----- Clearview brand palette (mirror of _tailwind/theme.css on the blog) ----- */
  /* ink — slate scale */
  --ink-50: #f4f5f7;  --ink-100: #e6e8ec; --ink-200: #cacfd8; --ink-300: #a4abb9;
  --ink-400: #7c8499; --ink-500: #5a6377; --ink-600: #404959; --ink-700: #2e3645;
  --ink-800: #252d3c; --ink-900: #212b3a; --ink-950: #171e2a; --ink-1000: #0b111b;
  /* pulse — accent blue */
  --pulse-300: #8aa4f7; --pulse-400: #5a7eef; --pulse-500: #3f66e0; --pulse-600: #2a57d5; --pulse-700: #2247b0;
  /* paper — warm editorial */
  --paper: #faf7f2; --paper-deep: #f0ebe0;

  /* ----- Semantic (light) ----- */
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: var(--paper-deep);
  --ink: var(--ink-950);
  --text: var(--ink-900);
  --muted: var(--ink-600);
  --faint: var(--ink-400);
  --line: var(--ink-200);
  --line-strong: var(--ink-300);
  --rule: var(--ink-200);
  --accent: var(--pulse-600);
  --accent-ink: var(--pulse-700);
  --accent-wash: rgba(42, 87, 213, 0.07);
  --ring: rgba(42, 87, 213, 0.32);
  --emphasis: #c0312e;        /* editorial red — kickers, signal dots, meta */
  --warning: #e07a2a;
  --success: #28c840;
  --shadow-sm: none;
  --shadow-md: 0 8px 24px -14px rgba(23, 30, 42, 0.18);
  --shadow-lg: 0 20px 50px -24px rgba(23, 30, 42, 0.28);

  --radius: 12px;
  --radius-sm: 6px;
  --wrap: 1200px;
  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

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

/* Dark palette — applied by explicit opt-in OR system preference when not opted into light.
   Kept in two selector groups because CSS can't combine a selector with @media in one rule;
   both apply the same token set below. Dark values mirror the blog's [data-theme="dark"] tokens. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--ink-1000); --surface: var(--ink-950); --surface-2: var(--ink-800);
    --ink: #ffffff; --text: var(--ink-50); --muted: var(--ink-300); --faint: var(--ink-400);
    --line: var(--ink-800); --line-strong: var(--ink-700); --rule: var(--ink-800);
    --accent: var(--pulse-400); --accent-ink: var(--pulse-300);
    --accent-wash: rgba(90, 126, 239, 0.12); --ring: rgba(90, 126, 239, 0.38);
    --emphasis: #e45c5c; --warning: #f19249; --success: #4cde60;
    --shadow-sm: none;
    --shadow-md: 0 8px 28px -14px rgba(0,0,0,0.7);
    --shadow-lg: 0 20px 55px -24px rgba(0,0,0,0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--ink-1000); --surface: var(--ink-950); --surface-2: var(--ink-800);
  --ink: #ffffff; --text: var(--ink-50); --muted: var(--ink-300); --faint: var(--ink-400);
  --line: var(--ink-800); --line-strong: var(--ink-700); --rule: var(--ink-800);
  --accent: var(--pulse-400); --accent-ink: var(--pulse-300);
  --accent-wash: rgba(90, 126, 239, 0.12); --ring: rgba(90, 126, 239, 0.38);
  --emphasis: #e45c5c; --warning: #f19249; --success: #4cde60;
  --shadow-sm: none;
  --shadow-md: 0 8px 28px -14px rgba(0,0,0,0.7);
  --shadow-lg: 0 20px 55px -24px rgba(0,0,0,0.8);
}

* { 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; } }

/* ======================================================================
   Shared primitives — one source of truth for patterns that repeat.
   Component rules below only override; they should not restate these.
   ====================================================================== */

/* Uppercase micro-label (kickers, eyebrows, section/rail/related/footer heads). */
.kicker, .eyebrow, .section-label, .rail-head, .related-head, .footer-head,
.brief-kicker, .lead-kicker, .masthead-sections a, .masthead-eyebrow,
.tickerbar-cat, .tickerbar-label, .lead-flag, .footer-coord, .credit {
  text-transform: uppercase;
  letter-spacing: .14em;
}

/* Surface card family — same bg, border, radius, hover; variants add media/padding. */
.card, .essential-card, .related-item, .author-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color .2s ease;
}
.card:hover, .essential-card:hover, .related-item:hover { border-color: var(--line-strong); }

/* Media box with cover image that gently zooms on parent hover. */
.card-media, .essential-media, .lead-figure {
  background: var(--surface-2);
  overflow: hidden;
}
.card-media img, .essential-media img, .lead-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img,
.essential-card:hover .essential-media img,
.lead-link:hover .lead-figure img { transform: scale(1.03); }

/* Serif title treatment shared across cards, briefs, leads, articles. */
.card-title, .essential-title, .related-title, .brief-title, .lead-title, .article-title,
.prose h2, .prose h3, .author-name, .rail-head, .nameplate, .masthead-tag,
.sources h2 {
  font-family: var(--serif);
}
.card-title, .essential-title, .related-title, .brief-title {
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.24; color: var(--ink);
  transition: color .18s;
}
.card:hover .card-title,
.essential-card:hover .essential-title,
.related-item:hover .related-title,
.brief-item a:hover .brief-title,
.lead-link:hover .lead-title { color: var(--accent); }

/* Monospaced coord/meta/time pattern. */
.lead-meta, .brief-time, .rail-count, .related-meta, .topbar-inner,
.tickerbar-label, .footer-coord, .footer-contact a, .credit, .tickerbar-item {
  font-variant-numeric: tabular-nums;
}

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

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) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 3px; flex: none;
  background: var(--ink);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; line-height: 1; letter-spacing: -0.025em; display: block; }
.brand-tag { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; margin-top: 2px; display: block; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { position: relative; font-weight: 500; font-size: .9rem; color: var(--text); padding: 6px 0; letter-spacing: -0.005em; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); 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: 4px; padding: 8px 14px; font: inherit; font-size: .88rem; width: 170px;
  transition: border-color .18s, box-shadow .18s, width .18s;
}
.site-search input:focus { outline: none; border-color: var(--ink); box-shadow: none; width: 200px; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px;
  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(--ink); }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 17px; height: 17px; }
.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(--emphasis); 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: .82rem; font-weight: 500; padding: 6px 13px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .18s, color .18s;
  letter-spacing: -0.005em;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 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);
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease;
}
.card:hover { 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: 22px; flex: 1; }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }

.kicker {
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.card-title { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.22; margin: 0; letter-spacing: -0.02em; color: var(--ink); transition: color .18s; }
.card:hover .card-title { color: var(--accent); }
.card-dek { color: var(--muted); font-size: .94rem; line-height: 1.5; margin: 0; }
.card-meta { color: var(--faint); font-size: .78rem; margin-top: auto; padding-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* 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: 48px; }
.pagination .pg {
  font-weight: 500; font-size: .88rem; padding: 10px 18px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .18s, color .18s;
  letter-spacing: -0.005em;
}
.pagination .pg:hover { border-color: var(--ink); color: var(--ink); }
.pagination .pg-info { color: var(--faint); font-size: .82rem; margin: 0 auto; font-variant-numeric: tabular-nums; letter-spacing: .03em; }

/* ---------- article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 40px 0 80px; }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 24px; display: flex; gap: 8px; letter-spacing: .02em; }
.crumbs a:hover { color: var(--accent); }
.article-head { margin-bottom: 28px; }
.article-head .kicker { font-size: .72rem; }
.article-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.032em; margin: 14px 0 18px; color: var(--ink); }
.article-dek { font-size: 1.22rem; color: var(--muted); line-height: 1.5; margin: 0 0 24px; letter-spacing: -0.01em; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.article-meta .byline { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text); }
.article-meta .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); position: relative; }
.article-meta .avatar::after { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.article-media img { border-radius: var(--radius-sm); margin: 10px 0 28px; width: 100%; }

.prose { font-size: 1.12rem; line-height: 1.72; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-of-type { font-size: 1.16rem; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; margin-top: 2em; letter-spacing: -0.02em; color: var(--ink); }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-top: 1.6em; letter-spacing: -0.015em; color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose blockquote {
  border-left: 2px solid var(--accent); margin: 1.6em 0; padding: 2px 0 2px 22px;
  color: var(--ink); font-family: var(--serif); font-size: 1.28rem; font-style: italic; line-height: 1.5; letter-spacing: -0.015em;
}
.prose code { background: var(--surface-2); padding: 2px 7px; border-radius: 4px; font-size: .88em; }
.prose pre { background: #0f1113; 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-sm); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; 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: .76rem; text-transform: uppercase; letter-spacing: .08em; }

.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
   ====================================================================== */

/* hairline signature bar at the very top */
.accent-bar { height: 2px; background: var(--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: 8px 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.topbar-mark { color: var(--muted); font-weight: 500; letter-spacing: .08em; }
.topbar-coord { font-variant-numeric: tabular-nums; color: var(--faint); }
@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: 56px 0 28px; border-bottom: 1px solid var(--rule); }
.masthead-eyebrow {
  font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.masthead-eyebrow::before,
.masthead-eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.nameplate {
  font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(3rem, 12vw, 7.5rem); line-height: .92; letter-spacing: -0.04em;
  margin: 0; color: var(--ink);
}
.masthead-tag {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--muted); margin: 18px 0 26px;
  letter-spacing: -0.01em;
}
.masthead-sections {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  border-top: 1px solid var(--line); padding-top: 18px; max-width: 820px; margin: 0 auto;
}
.masthead-sections a {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; 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: 44px 0 12px; }
.front .lead { padding-right: 48px; border-right: 1px solid var(--line); }
.front .rail { padding-left: 40px; }
@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: 22px; background: var(--surface-2); border: 1px solid var(--line);
}
.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: var(--surface-2);
  display: grid; place-items: center;
}
.lead-aperture::before {
  content: ""; width: 36%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 8%, transparent 9%);
}
.lead-flag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 3px;
  background: var(--ink); color: var(--bg);
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.lead-flag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--emphasis); }
.lead-kicker { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lead-title {
  font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(1.95rem, 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -0.028em;
  margin: 0 0 14px; color: var(--ink); transition: color .18s;
}
.lead-link:hover .lead-title { color: var(--accent); }
.lead-dek { font-size: 1.1rem; line-height: 1.5; color: var(--muted); margin: 0 0 18px; max-width: 58ch; }
.lead-meta { font-family: var(--mono); font-size: .76rem; color: var(--faint); margin: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* the brief + sections rail */
.rail-head {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.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 16px; padding: 16px 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: .78rem; color: var(--faint); font-weight: 500;
  padding-top: 3px; letter-spacing: .04em;
}
.brief-kicker { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brief-title { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; line-height: 1.28; color: var(--ink); transition: color .18s; letter-spacing: -0.015em; }
.brief-item a:hover .brief-title { color: var(--accent); }
.brief-time { font-family: var(--mono); font-size: .7rem; color: var(--faint); letter-spacing: .03em; }

.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: 12px 0; font-weight: 500; font-size: .92rem; color: var(--text); letter-spacing: -0.005em; }
.rail-sections a:hover { color: var(--accent); }
.rail-count { font-family: var(--mono); font-size: .74rem; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .03em; }

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

/* ======================================================================
   Refined footer
   ====================================================================== */
.site-footer { border-top: 1px solid var(--rule); margin-top: 60px; padding: 56px 0 44px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 36px 44px; }
.footer-brand-col .footer-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand-col .brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.025em; color: var(--ink); }
.footer-desc { color: var(--muted); max-width: 44ch; margin: 0 0 16px; font-size: .92rem; line-height: 1.6; }
.footer-coord { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; margin: 0 0 18px; }
.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: .7rem; font-weight: 600; letter-spacing: .18em; 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: .9rem; width: fit-content; letter-spacing: -0.005em; }
.footer-col a:hover { color: var(--accent); }
.footer-contact .footer-note { color: var(--faint); font-size: .82rem; line-height: 1.55; margin: 6px 0 0; max-width: 36ch; }
.footer-contact a { font-family: var(--mono); font-size: .84rem; color: var(--accent); letter-spacing: .01em; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px;
  color: var(--faint); font-size: .8rem; letter-spacing: .01em;
}
.footer-tagline { font-family: var(--serif); font-style: italic; letter-spacing: -0.01em; }
@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: 44px;
  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: var(--surface-2); position: relative; overflow: hidden; }
span.author-avatar { background: var(--ink); }
span.author-avatar::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
img.author-avatar { object-fit: cover; border: 1px solid var(--line); display: block; }
.author-name { font-weight: 600; margin: 0 0 4px; color: var(--ink); letter-spacing: -0.01em; }
.author-bio { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0 0 8px; }
.author-link { font-size: .84rem; font-weight: 600; color: var(--accent); letter-spacing: .01em; }

.related { max-width: 1200px; margin: 60px auto 0; padding-top: 32px; border-top: 1px solid var(--rule); }
.related-head { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin: 0 0 22px; }
.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: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.related-item:hover { border-color: var(--line-strong); }
.related-title { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.24; color: var(--ink); transition: color .18s; letter-spacing: -0.015em; }
.related-item:hover .related-title { color: var(--accent); }
.related-meta { font-family: var(--mono); font-size: .72rem; color: var(--faint); margin-top: auto; letter-spacing: .03em; }

/* ======================================================================
   Live headline ticker (home)
   ====================================================================== */
.tickerbar {
  display: flex; align-items: stretch; border-top: 1px solid var(--rule); 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(--ink); color: var(--bg);
  font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 0 18px;
}
.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: 10px 24px; font-size: .88rem; color: var(--text); border-right: 1px solid var(--line); letter-spacing: -0.005em; }
.tickerbar-item:hover { color: var(--accent); }
.tickerbar-cat { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tickerbar-dot { width: 5px; height: 5px; 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: 44px 0 10px; }
.essentials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.essential-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); color: inherit;
  transition: border-color .2s ease;
  position: relative;
}
.essential-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--ink);
}
.essential-card:hover { border-color: var(--line-strong); }
.essential-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.essential-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.essential-card:hover .essential-media img { transform: scale(1.03); }
.essential-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.essential-title { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.24; letter-spacing: -0.02em; 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: 500;
  font-size: 3.2em;
  line-height: .82;
  padding: 6px 10px 0 0;
  color: var(--ink);
  font-optical-sizing: auto;
}

/* ======================================================================
   About page — editorial landing layout
   ====================================================================== */
.about-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 0 72px;
}
.about-page section + section { margin-top: 56px; }

.about-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 22px;
}
.about-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

.about-hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.about-lede {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 22ch;
}
.about-sub {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 0 32px;
}

/* Magazine-style meta strip: label on top, value below, hairline-divided. */
.about-hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-hero-meta li {
  padding: 14px 20px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.about-hero-meta li:first-child { border-left: 0; padding-left: 0; }
.about-hero-meta li:not(:first-child) { padding-left: 20px; }
.about-hero-meta-label {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-hero-meta strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
@media (max-width: 720px) {
  .about-hero-meta { grid-template-columns: repeat(2, 1fr); }
  .about-hero-meta li:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .about-hero-meta li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .about-hero-meta li:nth-child(even) { padding-left: 20px; }
  .about-hero-meta li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.about-section-label {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 24px;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink);
}
.about-section-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Pillars grid */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-pillar {
  background: var(--surface);
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .2s ease;
}
.about-pillar:hover { background: var(--surface-2); }
.about-pillar-num {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.about-pillar-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.about-pillar-body {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .about-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .about-pillars { grid-template-columns: 1fr; }
}

/* How we work — numbered masthead list, intentionally NOT the same card grid
   as the pillars above, to break the formulaic three-grids-in-a-row pattern. */
.about-standards-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.about-standard {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: baseline;
  column-gap: 32px;
  row-gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.about-standard:first-child { border-top: 0; }
.about-standard-mark {
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: -0.015em;
  padding-top: 4px;
}
.about-standard-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.about-standard-body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 62ch;
}
@media (max-width: 560px) {
  .about-standard { grid-template-columns: 48px 1fr; column-gap: 20px; padding: 18px 0; }
  .about-standard-mark { font-size: 1.15rem; padding-top: 2px; }
  .about-standard-head { font-size: 1.15rem; }
  .about-standard-body { font-size: .96rem; }
}

/* Beyond the headlines — history & destinations showcase */
.about-beyond-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px 40px;
  align-items: start;
  margin-bottom: 26px;
}
.about-beyond-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.about-beyond-lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 54ch;
}
.about-beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-beyond-card {
  background: var(--surface);
  color: inherit;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: background .2s ease;
  position: relative;
}
.about-beyond-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.about-beyond-card:hover { background: var(--surface-2); }
.about-beyond-card:hover::before { transform: scaleX(1); }
.about-beyond-kicker {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-beyond-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink);
  transition: color .18s;
}
.about-beyond-card:hover .about-beyond-heading { color: var(--accent); }
.about-beyond-sub {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.about-beyond-footnote {
  margin: 20px 0 0;
  color: var(--faint);
  font-size: .9rem;
}
.about-beyond-footnote a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.about-beyond-footnote a:hover { color: var(--accent); text-decoration-color: var(--accent); }

@media (max-width: 900px) {
  .about-beyond-head { grid-template-columns: 1fr; }
  .about-beyond-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .about-beyond-grid { grid-template-columns: 1fr; }
}

/* Mission / pledge block */
.about-pledge {
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-pledge .about-section-label { margin-bottom: 14px; }
.about-pullquote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 54ch;
}

/* Writer / author block */
.about-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.about-author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  display: block;
}
.about-author-body { min-width: 0; }
.about-author-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 4px;
}
.about-author-role {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.about-author-bio {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 56ch;
}
.about-author-contact {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.about-author-contact > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-author-contact dt {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-author-contact dd {
  margin: 0;
  color: var(--text);
  font-size: .95rem;
}
.about-author-contact a {
  font-family: var(--mono);
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.about-author-contact a:hover { text-decoration-color: var(--accent); }

@media (max-width: 560px) {
  .about-author { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .about-author-photo { width: 92px; height: 92px; }
  .about-author-contact { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 560px) {
  .about-page { padding: 32px 0 56px; }
  .about-page section + section { margin-top: 44px; }
  .about-pledge, .about-contact { padding: 22px 20px; }
  .about-author { flex-direction: column; gap: 18px; padding: 22px; }
  .about-author-mark { width: 60px; height: 60px; }
  .about-author-mark::after { width: 18px; height: 18px; }
}

/* 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; }
}

/* ======================================================================
   Mobile refinements
   Layered on top of earlier rules. Three breakpoints:
   - tablet   (≤ 860)
   - phone    (≤ 560)
   - small    (≤ 420)
   ====================================================================== */

/* Prevent accidental horizontal scroll without creating a nested scroll
   container: `overflow-x: clip` behaves like hidden for overflow painting
   but, unlike `hidden`, doesn't establish a scroll container — so wheel and
   touchpad events are not swallowed by html/body on macOS Safari / Chrome. */
body { overflow-x: clip; -webkit-tap-highlight-color: transparent; }

/* On touch devices, :hover sticks after a tap. Guard transform/scale effects
   so cards don't stay raised after a user has moved on. */
@media (hover: none) {
  .card:hover, .essential-card:hover, .related-item:hover,
  .chip:hover, .pagination .pg:hover, .footer-social a:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .card:hover .card-media img,
  .essential-card:hover .essential-media img,
  .lead-link:hover .lead-figure img { transform: none; }
  .card:hover .card-title,
  .related-item:hover .related-title,
  .essential-card:hover .essential-title,
  .lead-link:hover .lead-title { color: var(--ink); }
}

/* Tablet (≤ 860px) */
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 44px 0 24px; }
  .masthead { padding: 42px 0 20px; }
  .masthead-eyebrow { margin-bottom: 14px; letter-spacing: .18em; }
  .masthead-tag { margin: 12px 0 20px; }
  .masthead-sections { gap: 6px 20px; padding-top: 14px; }
  .front { padding-top: 32px; }
  .article { padding: 28px 0 56px; }
  .related { margin-top: 44px; padding-top: 26px; }
}

/* Phone (≤ 560px) */
@media (max-width: 560px) {
  /* Tighter side gutters, with iOS safe-area insets so content clears the
     rounded-corner / notch region on landscape too. */
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  body { font-size: 16px; }

  /* Header: tighter row, bigger tap targets, hide the brand eyebrow. */
  .header-inner { gap: 12px; padding: 10px 0; }
  .brand { gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 1.28rem; }
  .brand-tag { display: none; }
  .header-actions { gap: 8px; }
  .icon-btn { width: 44px; height: 44px; }
  .site-search input { width: 130px; padding: 10px 14px; font-size: .9rem; }
  .site-search input:focus { width: 150px; }
  /* Fade edge on the horizontally scrolling nav so users see there's more. */
  .site-nav {
    position: relative;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    padding-right: 10px;
  }
  .site-nav a { font-size: .95rem; padding: 6px 0; }

  /* Topbar is decorative; shrink on phones. */
  .topbar-inner { padding: 6px 0; font-size: .62rem; letter-spacing: .06em; }

  /* Masthead: no wasted height. */
  .masthead { padding: 32px 0 16px; }
  .masthead-eyebrow { font-size: .68rem; letter-spacing: .16em; margin-bottom: 10px; }
  .nameplate { font-size: clamp(2.8rem, 15vw, 4.2rem); letter-spacing: -0.04em; }
  .masthead-tag { font-size: 1rem; margin: 10px 0 16px; }
  .masthead-sections { gap: 6px 16px; padding-top: 12px; max-width: none; }
  .masthead-sections a { font-size: .72rem; }

  /* Tickerbar: slimmer. */
  .tickerbar-label { padding: 0 12px; font-size: .62rem; }
  .tickerbar-item { padding: 9px 18px; font-size: .84rem; gap: 8px; }

  /* Front page stacks earlier (at 860). Reduce bottom spacing. */
  .front { padding: 24px 0 4px; }
  .front .lead { padding-bottom: 24px; margin-bottom: 24px; }
  .rail-head { font-size: .72rem; }
  .brief-item a { padding: 13px 0; gap: 2px 12px; }
  .brief-title { font-size: 1rem; }

  /* Hero */
  .hero { padding: 32px 0 16px; }
  .hero-head { margin: 14px 0 16px; }
  .hero-lede { font-size: 1.04rem; line-height: 1.5; }
  .chips { gap: 8px; margin-top: 20px; }
  .chip { font-size: .82rem; padding: 7px 13px; }

  /* Lists / feed */
  .list-head { padding: 32px 0 20px; }
  .section-label { margin-bottom: 20px; }
  .grid { gap: 16px; }
  .card-body { padding: 16px 16px 18px; gap: 8px; }
  .card-title { font-size: 1.2rem; }
  .card-dek { font-size: .92rem; }
  .card-lead .card-body { padding: 24px 20px; gap: 12px; }
  .card-lead .card-title { font-size: clamp(1.7rem, 7.2vw, 2.4rem); }
  .card-lead .card-dek { font-size: 1.05rem; }

  /* Essentials single column, tighter. */
  .essentials { padding: 30px 0 4px; }
  .essentials-grid { grid-template-columns: 1fr; gap: 14px; }
  .essential-media { aspect-ratio: 16 / 10; }
  .essential-body { padding: 14px 16px 18px; gap: 7px; }
  .essential-title { font-size: 1.12rem; }

  /* Pagination: full-width, center page info. */
  .pagination { margin-top: 32px; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .pagination .pg { padding: 12px 18px; }
  .pagination .pg-info { flex-basis: 100%; text-align: center; margin: 2px 0 4px; order: -1; }

  /* Article page */
  .article { padding: 22px 0 48px; }
  .article-head { margin-bottom: 20px; }
  .article-title { line-height: 1.08; margin: 10px 0 14px; letter-spacing: -0.025em; }
  .article-dek { font-size: 1.12rem; line-height: 1.45; margin-bottom: 18px; }
  .article-meta { padding: 12px 0; gap: 6px 12px; font-size: .82rem; }
  .article-media img { border-radius: var(--radius-sm); margin: 6px 0 22px; }
  .prose { font-size: 1.06rem; line-height: 1.72; }
  .prose > p:first-of-type { font-size: 1.12rem; }
  .prose h2 { font-size: 1.4rem; margin-top: 1.7em; }
  .prose h3 { font-size: 1.18rem; margin-top: 1.4em; }
  .prose blockquote { font-size: 1.14rem; padding-left: 16px; margin: 1.3em 0; }
  .prose pre { padding: 14px; font-size: .88rem; }
  .prose ul, .prose ol { padding-left: 1.1em; }
  .prose > p:first-of-type::first-letter {
    font-size: 3em; padding: 5px 8px 2px 0; line-height: .82;
  }

  .tag-row { margin-top: 32px; }
  .tag { padding: 7px 12px; }
  .author-card { padding: 18px; gap: 14px; margin-top: 32px; }
  .author-avatar { width: 42px; height: 42px; }

  .sources { margin-top: 32px; padding-top: 18px; }
  .sources h2 { font-size: 1.05rem; }
  .sources ul { font-size: .9rem; }

  .related { margin-top: 36px; padding-top: 22px; }
  .related-head { margin-bottom: 16px; }
  .related-item { padding: 16px; }
  .related-title { font-size: 1.05rem; }

  /* Footer: tighter, centered bottom row. */
  .site-footer { margin-top: 40px; padding: 36px 0 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .footer-grid { gap: 28px; }
  .footer-brand-col .brand-name { font-size: 1.2rem; }
  .footer-social a { width: 42px; height: 42px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 28px; padding-top: 18px; }

  /* Search page: input sized for thumbs. */
  #search-input { font-size: 1.08rem; padding: 14px 16px; }
}

/* Small phone (≤ 420px) */
@media (max-width: 420px) {
  .wrap {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .header-inner { gap: 10px; }
  /* Reclaim space: drop the inline search field. Users can reach search
     from the footer; a dedicated mobile menu is out of scope here. */
  .site-search { display: none; }
  .site-nav { gap: 14px; }

  /* Topbar coord was already hidden ≤ 460; keep the mark too. */
  .topbar-mark, .topbar-coord { display: none; }

  /* Masthead stays punchy without blowing out height. */
  .nameplate { font-size: clamp(2.5rem, 16vw, 3.6rem); }
  .masthead-tag { font-size: .95rem; }

  /* Article: drop cap gets in the way on very narrow lines. */
  .prose > p:first-of-type::first-letter {
    font-size: 2.6em; padding: 4px 7px 2px 0;
  }

  /* Footer grid already collapses to 1 col at ≤ 480. Center brand block. */
  .footer-brand-col .footer-brand { gap: 10px; }
  .footer-desc { max-width: none; }
}

/* ======================================================================
   Call-to-action panel — article foot and About page.
   ====================================================================== */
.cta-panel {
  margin: 48px 0 8px;
  padding: 30px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.cta-panel-kicker {
  margin: 0 0 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.cta-panel-title {
  margin: 0 0 20px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.22;
  letter-spacing: -0.02em; color: var(--ink); max-width: 42ch;
}
.cta-btn {
  display: inline-block;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.cta-btn:hover { background: var(--accent-ink); transform: translateY(-1px); }
@media (hover: none) { .cta-btn:hover { transform: none; } }

/* ======================================================================
   Theme polish layer — brand-forward refinements (restrained, hairline).
   Appended last so these win the cascade.
   ====================================================================== */

/* Bring the brand's aurora accent into the token set (mirror of the blog). */
:root { --aurora-400: #8a74ff; --aurora-500: #6b5bff; --aurora-600: #5644e6; }

/* Signature gradient hairline across the very top of every page. */
.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--pulse-600), var(--aurora-500) 55%, var(--pulse-500));
}

/* Crisper, variable-font rendering. */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4,
.nameplate, .article-title, .prose h2, .prose h3,
.card-title, .lead-title { font-optical-sizing: auto; }

/* Branded text selection. */
::selection { background: var(--accent-wash); color: var(--ink); }

/* Accessible, on-brand focus ring. */
a:focus-visible, button:focus-visible, input:focus-visible,
.cta-btn:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Prose links: a soft brand underline that fills in on hover. */
.prose a {
  color: var(--accent-ink);
  text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent);
  transition: color .15s ease, text-decoration-color .15s ease;
}
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Editorial pull-quote: accent rule, serif italic, confident size. */
.prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--accent);
  background: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}

/* First paragraph reads as a confident lead-in. */
.prose > p:first-of-type { color: var(--ink); }

/* Nav + masthead links: pulse underline that grows on hover. */
.site-nav a, .masthead-sections a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size .2s ease, color .15s ease;
}
.site-nav a:hover, .masthead-sections a:hover { background-size: 100% 1.5px; }

/* Article hero image: a touch more presence within the hairline aesthetic. */
.article-media img { border-radius: var(--radius); }
.article-media .credit { margin-top: 10px; }

/* Tighten tag chips toward the brand. */
.tag:hover, .tags a:hover { border-color: var(--accent); color: var(--accent); }

/* ======================================================================
   2026 refresh layer — modern editorial trends, within the hairline aesthetic.
   Sticky glass header, expressive fluid display type, soft accent glow,
   gradient CTA, animated card accent-reveal. Appended last (wins cascade).
   ====================================================================== */

/* Sticky, translucent header with backdrop blur. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

/* Expressive, fluid display nameplate. */
.nameplate {
  font-size: clamp(2.7rem, 7.5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

/* Soft brand glow behind the masthead (home). */
.masthead { position: relative; isolation: isolate; }
.masthead::before {
  content: "";
  position: absolute;
  inset: -45% 0 auto 0;
  height: 360px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 100% at 50% 0%,
    color-mix(in srgb, var(--accent) 15%, transparent),
    color-mix(in srgb, var(--aurora-500) 8%, transparent) 45%,
    transparent 72%);
}

/* Gradient CTA button, brand pulse to aurora. */
.cta-btn {
  background: linear-gradient(135deg, var(--pulse-600), var(--aurora-500));
}
.cta-btn:hover { background: linear-gradient(135deg, var(--pulse-700), var(--aurora-600)); }

/* Animated accent line that reveals on card hover (hairline, not a shadow). */
.card { position: relative; }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--pulse-600), var(--aurora-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  z-index: 1;
}
.card:hover::before { transform: scaleX(1); }

/* Nicer paragraph rag and heading balance (modern browsers). */
.prose p, .article-dek, .hero-lede, .about-sub { text-wrap: pretty; }

/* Fluid vertical rhythm for major sections. */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 34px); }
.masthead { padding-block: clamp(44px, 6vw, 72px) clamp(20px, 3vw, 30px); }

/* ======================================================================
   Trend-informed typography (2026): expressive display + editorial marks.
   Research consensus: oversized, confident type; warm/human editorial feel;
   high contrast; restrained (deliberately not loud / dopamine / Y2K).
   ====================================================================== */

/* More expressive, oversized headlines. */
.article-title { font-size: clamp(2.4rem, 6vw, 3.9rem); letter-spacing: -0.038em; }
.hero-head { letter-spacing: -0.03em; }
.prose h2 { font-size: 1.62rem; }

/* Editorial section marker: a short brand rule above each article H2. */
.prose h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: .55em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pulse-600), var(--aurora-500));
}

/* Confident, high-contrast kickers: the one place loud color earns its keep. */
.lead-kicker, .brief-kicker, .about-eyebrow, .masthead-eyebrow { color: var(--accent); }

/* Warmer, more human serif rendering. */
.prose, .article-dek, .about-lede, .nameplate, .article-title {
  font-feature-settings: "liga" 1, "calt" 1;
}

/* ======================================================================
   Home masthead hero — value proposition + primary CTA (venture studio).
   ====================================================================== */
.masthead-lead {
  max-width: 54ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.masthead-cta {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.masthead-cta-link {
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.masthead-cta-link:hover { color: var(--accent); border-color: var(--accent); }

/* Section nav sits a touch lower now that the hero carries a CTA. */
.masthead-sections { margin-top: 34px; }

/* A single pinned Essential reads as a wide feature, media beside the text. */
.essentials-grid:has(.essential-card:only-child) { grid-template-columns: 1fr; }
.essentials-grid:has(.essential-card:only-child) .essential-card { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
.essentials-grid:has(.essential-card:only-child) .essential-media { height: 100%; min-height: 220px; }
@media (max-width: 720px) {
  .essentials-grid:has(.essential-card:only-child) .essential-card { grid-template-columns: 1fr; }
  .essentials-grid:has(.essential-card:only-child) .essential-media { min-height: 180px; }
}

/* ======================================================================
   wiz.io-inspired topic filter chips (home section nav) + cleaner feed.
   ====================================================================== */
.masthead-sections {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 34px;
}
.masthead-sections a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  background-image: none;            /* cancels the underline-grow from the polish layer */
  font-size: .86rem; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  color: var(--muted);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.masthead-sections a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
}

/* Feed: a cleaner, airier grid header in the wiz spirit. */
.feed .section-label, .essentials .section-label {
  font-size: .74rem; letter-spacing: .16em; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}

/* ======================================================================
   Essentials feature: fill the body (excerpt + read link), center it.
   ====================================================================== */
.essential-dek { color: var(--muted); font-size: .98rem; line-height: 1.55; margin-top: 2px; }
.essential-more { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: 6px; }
.essentials-grid:has(.essential-card:only-child) .essential-body {
  justify-content: center; gap: 12px; padding: 34px 36px;
}
.essentials-grid:has(.essential-card:only-child) .essential-media { min-height: 300px; }
.essentials-grid:has(.essential-card:only-child) .essential-title { font-size: 1.7rem; }
