@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── TOKENS ─── */
:root {
  --bg:          #F5F2EC;
  --bg-card:     #EDEAE2;
  --ink:         #1C1917;
  --ink-mid:     #5C5753;
  --ink-muted:   #9C9791;
  --accent:      #7A1F1F;
  --accent-warm: #C4A882;
  --border:      #D8D4CC;

  --serif:  'Libre Baskerville', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;

  --max-w: 740px;
  --wide-w: 1100px;
}

/* ─── BASE ─── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─── SITE NAV ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active {
  font-weight: 500;
}

/* ─── ARTICLE LAYOUT ─── */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── ARTICLE HEADER ─── */
.article-header {
  padding: 72px 0 0;
  border-bottom: 1px solid var(--border);
}
.article-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 28px;
}
.kicker-part {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kicker-divider {
  width: 24px;
  height: 1px;
  background: var(--border);
}
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.article-hed {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.article-deck {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 600px;
  margin-bottom: 32px;
  font-style: italic;
  font-family: var(--serif);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

/* ─── PROSE ─── */
.prose {
  padding: 32px 0 56px;
}
.prose p {
  margin-bottom: 1.6em;
  color: var(--ink);
}
.prose p.drop-cap::first-letter {
  font-family: var(--serif);
  font-size: 4.2em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin: 6px 10px 0 0;
  color: var(--ink);
}

/* Section labels */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.section-num {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--accent);
  font-style: italic;
  min-width: 16px;
}
.section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Pull quotes */
.pullquote {
  margin: 48px -24px;
  padding: 32px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
}
.pullquote-text {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 12px;
}
.pullquote-attr {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Embed placeholder */
.embed-block {
  margin: 48px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.embed-label-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.embed-content {
  padding: 24px;
}
.embed-title {
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 6px;
}
.embed-desc {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* Court exchange */
.court-exchange {
  margin: 48px 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.exchange-header {
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.exchange-line {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.exchange-line:last-child { border-bottom: none; }
.exchange-speaker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 56px;
  padding-top: 3px;
  flex-shrink: 0;
}
.exchange-speaker.judge { color: var(--ink-muted); }
.exchange-speaker.peters { color: var(--accent); }
.exchange-words {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  font-style: italic;
  color: var(--ink);
}

/* Article footer nav */
.article-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 80px;
}
.footer-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.footer-series {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.series-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  background: var(--bg);
  transition: background 0.2s, border-color 0.2s;
  display: block;
}
.series-card:hover {
  background: var(--bg-card);
  border-color: var(--ink-mid);
}
.series-card-part {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.series-card-title {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 12px;
}
.series-card-arrow {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ─── HOME PAGE ─── */
.home-hero {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 100px 2rem 80px;
  border-bottom: 1px solid var(--border);
}
.home-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.home-hed {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 40px;
}
.home-hed em {
  font-style: italic;
  color: var(--ink-mid);
}
.home-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 580px;
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 48px;
}
.home-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Home series grid */
.home-series {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 72px 2rem 100px;
}
.series-grid-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.home-series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.home-series-card {
  background: var(--bg);
  padding: 40px 32px 48px;
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
}
.home-series-card:hover { background: var(--bg-card); }
.card-part-num {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  color: var(--border);
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.card-part-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.card-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
}
.card-subtitle {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mid);
  flex: 1;
  margin-bottom: 32px;
}
.card-read-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.home-series-card:hover .card-read-link { gap: 10px; }

/* ─── UTILITIES ─── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .home-series-grid { grid-template-columns: 1fr; }
  .footer-series { grid-template-columns: 1fr; }
  .pullquote { margin: 40px 0; }
  .home-hero { padding: 64px 1.25rem 56px; }
  .home-series { padding: 48px 1.25rem 72px; }
  .article-wrap { padding: 0 1.25rem; }
}
@media (max-width: 700px) {
  .home-hero > div {
    grid-template-columns: 1fr !important;
  }
}
/* ─── CITATION LINKS ─── */
.prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
