/* The look of Spool's site: the first page and the pages about what it does. */
:root {
  --bg: #0d0d0f; --surface: #151518; --raised: #1d1d21; --line: #2a2a30;
  --text: #efe9dc; --muted: #9d968a; --faint: #6f6a61;
  --accent: #4d78ff; --accent-soft: rgba(77, 120, 255, 0.16); --ok: #7fb891;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f1e7; --surface: #fffdf8; --raised: #f0e9db; --line: #dcd3c1;
    --text: #1b1a17; --muted: #635e54; --faint: #8d877b;
    --accent: #1f4fd6; --accent-soft: rgba(31, 79, 214, 0.1); --ok: #2f7d4a;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 11px; font: 600 23px/1 var(--serif); }
.brand .mark { width: 30px; height: 30px; background: var(--accent); -webkit-mask: url(mark.svg) center / contain no-repeat; mask: url(mark.svg) center / contain no-repeat; }
nav { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
nav a:hover { color: var(--text); }

.hero { padding: 64px 0 40px; max-width: 820px; }
h1 { font: 600 clamp(40px, 6.4vw, 68px)/1.04 var(--serif); letter-spacing: -0.015em; margin: 0 0 22px; text-wrap: balance; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 640px; margin: 0 0 30px; }
.lede b { color: var(--text); font-weight: 500; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15.5px; border: 1px solid var(--line); background: var(--surface); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }

.window { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0d0d0f; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.window .bar { display: flex; gap: 7px; padding: 12px 14px; background: #151518; border-bottom: 1px solid #2a2a30; }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2f2f36; }
.hero-shot { margin: 28px 0 0; }

section { padding: 84px 0 0; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 12px; }
h2 { font: 600 clamp(28px, 3.8vw, 40px)/1.12 var(--serif); letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance; }
.sub { color: var(--muted); max-width: 640px; margin: 0; }

.merge { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-top: 36px; }
.stack { display: grid; gap: 10px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 14px 16px; }
.chip b { display: block; font-weight: 600; }
.chip span { color: var(--muted); font-size: 14.5px; }
.chip.maybe { border-style: dashed; background: none; }
.arrow { color: var(--faint); font-size: 30px; }
.one { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 14px; padding: 26px; }
.one .brand { font-size: 28px; margin-bottom: 10px; }
.one p { margin: 0; color: var(--muted); font-size: 15.5px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 36px; }
.grid div { background: var(--bg); padding: 26px 24px; }
.grid h3 { font: 600 19px/1.25 var(--serif); margin: 0 0 8px; }
.grid p { margin: 0; color: var(--muted); font-size: 15.5px; }
.grid > a { background: var(--bg); padding: 26px 24px; }
.grid > a:hover { background: var(--surface); }
.grid > a h3::after { content: ' →'; color: var(--accent); }

.show { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.show.flip { grid-template-columns: 7fr 5fr; }
.show.flip .copy { order: 2; }
.copy ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.copy li { padding-left: 22px; position: relative; color: var(--muted); font-size: 16px; }
.copy li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.copy li b { color: var(--text); font-weight: 600; }

pre { margin: 28px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: 14.5px/1.75 var(--mono); overflow-x: auto; }
pre .c { color: var(--faint); }
.note { color: var(--muted); font-size: 15.5px; max-width: 700px; margin: 18px 0 0; }
.note a, footer a, a.more { color: var(--accent); }
.note a:hover, footer a:hover, a.more:hover { text-decoration: underline; }
a.more { display: block; margin-top: 10px; font-size: 14.5px; }

footer { margin-top: 96px; padding: 30px 0 56px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14.5px; display: grid; gap: 8px; }

@media (max-width: 860px) {
  nav a.hide { display: none; }
  .hero { padding-top: 36px; }
  .merge { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .grid { grid-template-columns: 1fr; }
  .show, .show.flip { grid-template-columns: 1fr; gap: 26px; }
  .show.flip .copy { order: 0; }
  section { padding-top: 60px; }
}

/* The pages beyond the first: a shorter opening, and where one is in the menu. */
nav a[aria-current] { color: var(--text); }
.hero.page { padding: 48px 0 8px; }
.hero.page h1 { font-size: clamp(34px, 5vw, 54px); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 84px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.next a { color: var(--accent); }
.next a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .grid.two { grid-template-columns: 1fr; }
}

/* The first page: an opening, the figure, and what each part of it stands for. */
.hero.home { padding: 72px 0 0; max-width: 860px; }
.hero.home .eyebrow { margin-bottom: 18px; }
.btn.quiet { background: none; border-color: transparent; color: var(--muted); padding: 0 8px; }
.btn.quiet:hover { color: var(--text); border-color: transparent; }
.shot { margin-top: 32px; }
section > a.more { margin-top: 18px; }

.bench-card { margin-top: 52px; }
.bench-card .iso-figure { margin: 0; }
.bench-card .iso-plate { border-radius: 16px 16px 0 0; box-shadow: none; border: 1px solid var(--line); border-bottom: 0; padding: 44px 28px 48px; background: radial-gradient(120% 90% at 50% 0%, var(--raised), var(--surface) 62%); }
.bench-card .iso-plate-corners { inset: 20px 24px; }
.bench-card .iso-plate-corner { font-size: 11.5px; }
/* The figure takes the page's colours, and its one lit part the page's blue. */
.bench-card .iso-plate {
  --anatomy-card: var(--surface); --anatomy-paper: #17171b; --anatomy-face: #212127; --anatomy-top: #25252c;
  --anatomy-shade-0: #111114; --anatomy-shade-1: #151519; --anatomy-shade-2: #19191e; --anatomy-shade-3: #1d1d23;
  --anatomy-lit-top: #2c3a78; --anatomy-lit-shade: #212b5a;
  --anatomy-hi: #e9e3d6; --anatomy-mid: #948e82; --anatomy-lo: #5f5b54; --anatomy-faint: #3b3936; --anatomy-lit: #8ea6ff;
  --anatomy-text: var(--muted); --anatomy-muted: var(--faint); --anatomy-mono: var(--mono); --anatomy-dot: #efe9dc;
  --anatomy-weight: .7px;
}
.bench-card .iso-solid[data-lit] > .iso-fill { fill: var(--anatomy-lit-shade); }
@media (prefers-color-scheme: light) {
  .bench-card .iso-plate {
    --anatomy-paper: #fbf8f0; --anatomy-face: #fffdf8; --anatomy-top: #fffdf8;
    --anatomy-shade-0: #e2d9c7; --anatomy-shade-1: #e9e2d2; --anatomy-shade-2: #f0eadd; --anatomy-shade-3: #f6f1e6;
    --anatomy-lit-top: #dbe4ff; --anatomy-lit-shade: #c3d1fb;
    --anatomy-hi: #2a2824; --anatomy-mid: #827c70; --anatomy-lo: #aea797; --anatomy-faint: #d3cbb9; --anatomy-lit: #1f4fd6;
    --anatomy-halo: #8a8170; --anatomy-dot: #3a3833;
  }
}
.stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 0 0 16px 16px; overflow: hidden; }
.stations a { background: var(--bg); padding: 22px 22px 24px; }
.stations a:hover { background: var(--surface); }
.stations span { font: 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.stations h3 { font: 600 19px/1.25 var(--serif); margin: 10px 0 6px; }
.stations p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.why .chip { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.why .chip b { display: inline; }
@media (max-width: 860px) {
  .hero.home { padding-top: 40px; }
  .bench-card { margin: 36px -24px 0; }
  .bench-card .iso-plate { border-radius: 0; border-left: 0; border-right: 0; padding: 46px 6px 64px; }
  .bench-card .iso-plate-corners { inset: 16px 18px; }
  .stations { grid-template-columns: 1fr 1fr; border-radius: 0 0 14px 14px; margin: 0 -24px; border-left: 0; border-right: 0; border-radius: 0; }
}
@media (max-width: 480px) { .stations { grid-template-columns: 1fr; } }
