:root {
  --bg: #fff;
  --fg: #121212;
  --muted: #5a5a5a;
  --rule: #dfdfdf;
  --rule-strong: #121212;
  --link-hover: #326891;
  --kicker: #5a5a5a;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --blackletter: "UnifrakturMaguntia", "Old English Text MT", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #ececec;
    --muted: #a3a3a3;
    --rule: #333;
    --rule-strong: #ececec;
    --link-hover: #8fbbe0;
    --kicker: #a3a3a3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.4;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link-hover); }
svg { display: block; width: 100%; height: auto; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: 8px 12px; font-family: var(--sans); }
.skip:focus { left: 8px; z-index: 10; }

/* ---------- header ---------- */

.topbar {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 12px; font-family: var(--sans); font-size: 12px; font-weight: 600;
}
.topbar-links a { margin-left: 12px; }
.masthead { text-align: center; padding: 6px 16px 10px; }
.logo {
  font-family: var(--blackletter); font-weight: 400; line-height: 1;
  font-size: clamp(2.6rem, 9vw, 4.6rem); display: inline-block;
}
.logo:hover { color: inherit; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 6px; }
body:not(.front) .logo { font-size: clamp(2rem, 6vw, 2.8rem); }

.sections { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule-strong); }
.front .sections { border-bottom: 3px double var(--rule-strong); }
.sections ul {
  list-style: none; margin: 0 auto; display: flex; justify-content: center; gap: 4px 20px;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.sections ul::-webkit-scrollbar { display: none; }
.sections a { display: block; padding: 10px 0; font-family: var(--sans); font-size: 13px; font-weight: 500; }
.sections a[aria-current="page"] { font-weight: 800; }
@media (max-width: 720px) { .sections ul { justify-content: flex-start; } }

/* ---------- stories ---------- */

.kicker {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--kicker); margin-bottom: 6px;
}
.story-hed { font-family: var(--serif); font-weight: 700; line-height: 1.18; font-size: 1.25rem; }
.story-dek { font-size: 0.95rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.story-meta {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); margin-top: 10px;
}
.story-art { display: block; margin-bottom: 10px; aspect-ratio: 16 / 9; overflow: hidden; }
.story-art svg { height: 100%; }
.story--lead .story-hed { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.12; }
.story--lead .story-dek { font-size: 1.05rem; }
.story--sm .story-hed { font-size: 1.02rem; }

/* ---------- front page ---------- */

.top {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  margin-top: 16px; border-bottom: 2px solid var(--rule-strong); padding-bottom: 24px;
}
.top-main { padding-right: 24px; border-right: 1px solid var(--rule); }
.top-main > .story--lead {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; align-items: start;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.top-main > .story--lead .story-art { order: 2; margin: 0; }
.top-main > .story--lead .story-text { order: 1; }
.top-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; padding-top: 20px; }
.top-pair .story:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 24px; }
.top-pair .story:nth-child(n + 3) { border-top: 1px solid var(--rule); padding-top: 20px; }
.top-side { padding-left: 24px; }
.top-side .story { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.top-side .story:first-child { padding-top: 0; }
.top-side .story:last-child { border-bottom: 0; }

.band { padding: 20px 0 24px; border-bottom: 2px solid var(--rule-strong); }
.band-title {
  font-family: var(--sans); font-size: 14px; font-weight: 700; padding-bottom: 12px;
}
.opinion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.opinion-item + .opinion-item { border-left: 1px solid var(--rule); padding-left: 24px; }
.opinion-author {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 6px;
}
.opinion-item .story-hed { font-size: 1.1rem; }

.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; padding: 8px 0 32px; }
.block { padding-top: 16px; border-top: 1px solid var(--rule-strong); margin-top: 16px; }
.block-title { font-family: var(--sans); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.block .story + .story { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 14px; }

@media (max-width: 960px) {
  .top { grid-template-columns: 1fr; }
  .top-main { padding-right: 0; border-right: 0; }
  .top-side { padding-left: 0; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); }
  .opinion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opinion-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top-main > .story--lead { grid-template-columns: 1fr; gap: 12px; }
  .top-main > .story--lead .story-art { order: 0; }
  .top-pair { grid-template-columns: 1fr; gap: 0; }
  .top-pair .story:nth-child(even) { border-left: 0; padding-left: 0; }
  .top-pair .story + .story { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 16px; }
  .opinion-grid { grid-template-columns: 1fr; gap: 0; }
  .opinion-item + .opinion-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 14px; }
  .blocks { grid-template-columns: 1fr; }
}

/* ---------- section pages ---------- */

.section-head { padding: 28px 0 16px; border-bottom: 1px solid var(--rule-strong); }
.section-head h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; }
.section-lead { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.section-lead .story--lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
.section-lead .story-art { order: 2; margin: 0; }
.stream { list-style: none; margin: 0; padding: 0 0 40px; }
.stream-item {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.stream-item time { font-family: var(--sans); font-size: 12px; color: var(--muted); padding-top: 2px; }
.stream-item .story { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
.stream-item .story-art { order: 2; margin: 0; }
.empty { padding: 40px 0; color: var(--muted); }
@media (max-width: 720px) {
  .section-lead .story--lead { grid-template-columns: 1fr; gap: 12px; }
  .section-lead .story-art { order: 0; }
  .stream-item { grid-template-columns: 1fr; gap: 6px; }
  .stream-item .story { grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; }
}

/* ---------- article ---------- */

.article { max-width: 720px; margin: 0 auto; padding: 32px 0 24px; }
.article-head .kicker a { border-bottom: 1px solid currentColor; }
.article-head h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.1;
}
.article-dek { font-size: 1.25rem; line-height: 1.4; color: var(--muted); margin-top: 14px; }
.article-art { margin: 24px 0 0; }
.article-art figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 6px; text-align: right; }
.article-meta { margin: 20px 0 8px; font-family: var(--sans); font-size: 14px; }
.byline strong { font-weight: 700; }
.dateline { color: var(--muted); font-size: 13px; margin-top: 4px; }
.article-body { font-size: 1.2rem; line-height: 1.6; }
.article-body p { margin: 1.1em 0; }
.article-body h2 { font-size: 1.4rem; margin: 1.6em 0 0.4em; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--fg); font-style: italic; }
.bio { font-style: italic; color: var(--muted); font-size: 1rem; border-top: 1px solid var(--rule); padding-top: 14px; }
.page { padding-bottom: 48px; }

.more { max-width: 1000px; margin: 0 auto; border-top: 2px solid var(--rule-strong); padding: 20px 0 40px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 720px) { .more-grid { grid-template-columns: 1fr; } }

.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 2rem; margin-bottom: 12px; }
.not-found a { text-decoration: underline; }

/* ---------- footer ---------- */

.site-footer { border-top: 2px solid var(--rule-strong); margin-top: 16px; padding: 24px 0 40px; }
.logo--small { font-size: 2rem !important; }
.footer-nav {
  list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
}
.fine-print { font-family: var(--sans); font-size: 12px; color: var(--muted); }
