/* Press article pages. Tokens mirror the ones in index.html; if the palette
   there changes, change it here too. Kept separate so the homepage stays a
   single self-contained file with no render-blocking stylesheet request. */
:root {
  --paper:        oklch(0.975 0.004 250);
  --paper-2:      oklch(0.948 0.007 252);
  --ink:          oklch(0.21 0.03 258);
  --ink-2:        oklch(0.36 0.025 258);
  --muted:        oklch(0.44 0.018 258);
  --line:         oklch(0.87 0.010 255);
  --accent:       oklch(0.47 0.15 262);
  --accent-strong:oklch(0.39 0.14 262);
  --on-ink:       oklch(0.96 0.006 250);
  --on-ink-muted: oklch(0.80 0.020 255);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans:  'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 64px);
  color-scheme: light;
  accent-color: var(--accent);
  scrollbar-color: var(--line) var(--paper);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.7;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  display: flex; flex-direction: column; min-height: 100dvh;
}
::selection { background: var(--accent); color: var(--on-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
footer :focus-visible { outline-color: oklch(0.84 0.08 258); }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0; left: 50%; translate: -50% -120%; z-index: 40;
  background: var(--accent); color: var(--on-ink); text-decoration: none;
  padding: 0.85rem 1.5rem; font-weight: 600; transition: translate 0.25s var(--ease-out);
}
.skip-link:focus { translate: -50% 0; }

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem var(--gutter); border-bottom: 1px solid var(--line);
}
.site-logo {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  text-decoration: none; letter-spacing: -0.01em;
}
.back-link {
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.back-link:hover { color: var(--accent); }
.back-link .arrow { transition: transform 0.3s var(--ease-out); }
.back-link:hover .arrow { transform: translateX(-4px); }

main { flex: 1; padding: clamp(48px, 8vw, 104px) var(--gutter); }
article { max-width: 46rem; margin: 0 auto; }

.kicker {
  font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: baseline;
}
.kicker .pub { color: var(--ink-2); font-weight: 600; }
h1 {
  font-family: var(--serif); font-weight: 500; text-wrap: balance;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.excerpt {
  border-left: 2px solid var(--accent); padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0; display: flex; flex-direction: column; gap: 1.1rem;
}
.excerpt p {
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.5; color: var(--ink);
}
.excerpt .attrib { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); }
.context { color: var(--ink-2); margin: 2rem 0; }
.context p + p { margin-top: 1rem; }

.source {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start;
}
.source-note { font-size: 0.875rem; color: var(--muted); max-width: 46ch; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.9375rem; font-weight: 600; padding: 0.9rem 1.5rem;
  background: var(--accent); color: var(--on-ink);
  text-decoration: none; border: 1px solid transparent;
  transition: background-color 0.2s;
}
.btn:hover { background: var(--accent-strong); }

footer {
  background: var(--ink); color: var(--on-ink-muted);
  padding: 2.25rem var(--gutter); border-top: 1px solid oklch(0.96 0.006 250 / 0.1);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; font-size: 0.875rem;
}
.footer-logo { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--on-ink); text-decoration: none; }

@media (max-width: 600px) {
  .site-head { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .excerpt { padding-left: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Cross-document View Transitions with the homepage: the press headline morphs
   into this page's title and the logo stays anchored. Unsupported browsers
   navigate normally. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
  .kicker, .context, .excerpt, .source { animation: settle 0.8s var(--ease-out) both; }
  .context { animation-delay: 0.08s; }
  .excerpt { animation-delay: 0.16s; }
  .source  { animation-delay: 0.24s; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
.site-logo { view-transition-name: site-logo; }
