/* ============================================================
   Feature Length — stylesheet
   Serif: Newsreader (titles, excerpts, prose)
   Sans:  Inter (metadata, blurbs, navigation)
   ============================================================ */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-var-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf8f3;
  --ink: #1b1712;
  --muted: #6f695e;
  --faint: #a19a8c;
  --rule: #e5e0d4;
  --rule-strong: #1b1712;
  --accent: #8c3122;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Night mode — opt-in via the masthead switch (persisted per reader). */
html[data-theme="dark"] {
  --paper: #16140f;
  --ink: #e8e3d8;
  --muted: #9b948a;
  --faint: #6c665c;
  --rule: #2d2a23;
  --rule-strong: #e8e3d8;
  --accent: #d06a52;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  padding: 0 24px 72px;
  max-width: 700px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--rule) 55%, transparent);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ------------------------------------------------------- masthead */

.masthead { text-align: center; padding-top: 46px; }
.wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.tagline {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.masthead nav {
  margin-top: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 3px double var(--rule-strong);
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav a:hover, .masthead nav a.active { color: var(--accent); }
.masthead nav a.theme-toggle { color: var(--faint); }
.masthead nav a.theme-toggle:hover { color: var(--accent); }

/* ----------------------------------------------------------- days */

.day { margin-top: 56px; }
.dateline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 34px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.dateline::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------- picks */

.pick { margin: 0 0 46px; }
.pick:last-child { margin-bottom: 0; }

.kicker {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.kicker .by, .kicker .yr, .kicker .sect { color: var(--muted); font-weight: 550; }
.kicker .dot { margin: 0 8px; color: var(--faint); font-weight: 400; }
.kicker .flag {
  background: var(--accent);
  color: var(--paper);
  padding: 2.5px 7px 2px;
  border-radius: 2px;
  letter-spacing: 0.13em;
}

.title {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.004em;
}
.title a { color: var(--ink); text-decoration: none; }
.title a:hover { color: var(--accent); }

.blurb {
  margin: 0 0 11px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
}

.excerpt {
  margin: 0 0 12px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 45%, var(--rule));
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 430;
  font-size: 17px;
  line-height: 1.58;
  color: var(--muted);
}

.meta {
  margin: 0;
  font-size: 12.5px;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--faint);
}
.meta .dot { margin: 0 8px; }
.meta .readlink { color: var(--accent); text-decoration: none; font-weight: 550; }
.meta .readlink:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------- secondary pages */

.page-title {
  margin: 56px 0 12px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
}
.lede { margin: 0 0 34px; font-size: 15px; color: var(--muted); line-height: 1.6; }

.prose {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 17.5px;
  font-weight: 420;
  line-height: 1.66;
}
.prose p { margin: 0 0 1.2em; }
.prose h2 {
  margin: 2em 0 0.7em;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose .smallcaps { font-variant: all-small-caps; letter-spacing: 0.06em; }

.months { list-style: none; margin: 0; padding: 0; }
.months li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule);
}
.months li:first-child { border-top: 1px solid var(--rule); }
.months a {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 19px;
  font-weight: 480;
  color: var(--ink);
  text-decoration: none;
}
.months a:hover { color: var(--accent); }
.months .count { font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }

.more { margin-top: 52px; text-align: center; }
.more a {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-decoration: none;
}
.more a:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty { margin-top: 64px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.7; }

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

footer {
  margin-top: 84px;
  padding-top: 20px;
  border-top: 3px double var(--rule-strong);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}
footer p { margin: 0 0 6px; }
footer a { color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 2px; }
footer a:hover { color: var(--accent); }

/* ------------------------------------------------------ responsive */

@media (max-width: 540px) {
  body { padding: 0 18px 56px; font-size: 15.5px; }
  .masthead { padding-top: 34px; }
  .wordmark { font-size: 36px; }
  .masthead nav { gap: 18px; }
  .title { font-size: 24px; }
  .excerpt { font-size: 16px; }
  .day { margin-top: 46px; }
  .pick { margin-bottom: 40px; }
}

@media print {
  .masthead nav, footer, .more { display: none; }
  body { max-width: none; }
}
