:root {
  --bg: #F5F0E6;
  --fg: #0F3D3E;
  --muted: #566B65;
  --soft: #4C6A67;
  --body: #2F5452;
  --dim: #6E807A;
  --line: #E2DACB;
  --line-strong: #D3CAB7;
  --grid: #EDE6D9;
  --panel: #EEE7DA;
  --raised: #EBE3D4;   /* one tone step above the ground, used instead of lines */
  --off: #C9BFAB;
  --accent: #E8704A;        /* coral: fills, dots and lines */
  --accent-text: #C24A26;   /* coral as text: a deeper cut that reads on ivory */
  --on-accent: #0F3D3E;     /* ink on coral: ivory on coral is too faint */
  /* Fraunces (display serif, optical sizes) with Hanken Grotesk (text). The serif runs light;
     its optical size follows the font size on its own. */
  --serif: 'Fraunces', Georgia, serif;
  --serif-w: 300;
  --serif-cut: 'opsz' 72;      /* mid sizes: crisp, with room between letters */
  --serif-cut-lg: 'opsz' 144;  /* large display: the sharpest, highest-contrast cut */
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --gutter: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); }
a { color: var(--fg); text-decoration: none; }
a:hover { color: #FFFFFF; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared type */
.serif { font-family: var(--serif); font-weight: var(--serif-w); font-variation-settings: var(--serif-cut); }
.mono { font-family: var(--mono); font-size: 12px; }
.it { font-style: italic; }
.accent { color: var(--accent-text); }

/* Logo: the strategist's 2x2 drawn live by wordmark.js (a point keeps finding its way to the lit
   top-right quadrant), beside the name. The static .mark below is the same mark at rest. */
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.mark-live { width: 28px; height: 28px; flex: none; }
.mark { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; width: 22px; height: 22px; }
.mark span { border: 1.5px solid var(--fg); border-radius: 2px; }
.mark span:nth-child(2) { border: 0; background: var(--accent); }
.brand-name { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; }

.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--on-accent); background: var(--accent);
  transition: background .2s ease, transform .2s var(--ease);
}
.pill:hover { color: var(--on-accent); background: #EE8762; }
.pill:active { transform: scale(.97); }
.underline-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--off);
  transition: text-decoration-color .2s ease;
}
.underline-link:hover { text-decoration-color: var(--accent); }

/* Motion */
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.rise { display: inline-block; animation: rise 1.1s var(--ease) both; }
.rise2 { animation-delay: .12s; }
.fade { animation: fade 1s var(--ease) .5s both; }
@media (prefers-reduced-motion: reduce) {
  .rise, .fade, .marquee, .cue { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
}

/* Moving between the home page and a piece: a short cross-fade, with the piece's title carried
   across (the list title and the article headline share the name piece-title) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
::view-transition-group(piece-title) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .7, 0, 1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
