/* The wire room: an ink-and-vermilion newsroom. Display serif, mono dispatch labels,
   "- more -" between sections, "###" at the end. */
:root {
  --paper: #eceee9;
  --sheet: #f7f8f5;
  --ink: #0f1411;
  --ink-2: #1a211c;
  --muted: #566058;
  --line: #cdd2cb;
  --red: #e0361a;
  --red-ink: #ff6a4d;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -.01em; }
h3 { font-size: 26px; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; inset-inline-start: 12px; top: -56px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }

.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* the wire strip */
.strip { background: var(--ink); color: var(--paper); }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; flex-wrap: wrap; }
.strip .label { color: #aab3ab; }
.strip b { color: var(--red-ink); font-weight: 500; }

.top { border-bottom: 2px solid var(--ink); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { font-family: var(--mono); font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.01em; }
.wordmark i { font-style: normal; color: var(--red); margin-inline-end: .35em; }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 15px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--red); }

section { padding: clamp(56px, 8vw, 104px) 0; }
.more { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); padding: 0; margin: 0; border-block: 1px solid var(--line); background: var(--sheet); line-height: 44px; }
.more.last { letter-spacing: .6em; color: var(--red); background: transparent; border: 0; padding: 40px 0 10px; font-size: 18px; }

/* hero */
.hero { padding-top: clamp(40px, 6vw, 80px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.stamp { display: inline-block; border: 2px solid var(--red); color: var(--red); padding: 5px 12px 4px; transform: rotate(-2deg); }
.hero h1 { font-size: clamp(46px, 6.6vw, 92px); letter-spacing: -.02em; margin-top: 22px; }
.hero h1 em { color: var(--red); }
.lede { font-size: 19px; color: #2f3832; margin-top: 26px; max-width: 54ch; }
.lede .dateline { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 13px 22px; font-weight: 600; font-size: 16px; border: 2px solid var(--ink); }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); }
.one-liner { margin-top: 24px; }
.one-liner code { display: inline-block; max-width: 100%; background: var(--ink); color: #e8ece6; padding: 8px 12px; overflow-wrap: anywhere; }

.hero-art { position: relative; aspect-ratio: 1 / 1.18; }
.sheet { position: absolute; width: 64%; background: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.1), 0 30px 60px rgba(15,20,17,.28); }
.sheet-back { right: 0; top: 0; transform: rotate(5deg); }
.sheet-front { left: 0; bottom: 0; transform: rotate(-3deg); }
.sheet:hover { z-index: 2; }

/* facts */
.facts-band { background: var(--ink); color: var(--paper); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.facts li { padding: 30px 26px 30px 0; border-inline-end: 1px solid #2c352f; color: #b9c1ba; font-size: 16px; }
.facts li + li { padding-inline-start: 26px; }
.facts li:last-child { border-inline-end: 0; }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--paper); margin-bottom: 8px; }
.facts-band section, .facts-band { padding: 0; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); counter-reset: s; }
.steps li { counter-increment: s; padding: 26px 28px 8px 0; }
.steps li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--red); margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: #3a443d; }
.ask { margin: 40px 0 0; max-width: 62ch; font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; padding-inline-start: 22px; border-inline-start: 4px solid var(--red); }
.ask footer { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* themes */
.themes-sec { background: var(--sheet); border-block: 2px solid var(--ink); }
.section-lede { color: #3a443d; margin-top: 14px; max-width: 62ch; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 44px 32px; margin-top: 48px; }
.themes figure { margin: 0; }
.themes a { display: block; }
.themes img { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 16px 36px rgba(15,20,17,.18); transition: transform .2s; }
.themes a:hover img { transform: translateY(-4px); }
.themes figcaption { margin-top: 16px; color: #3a443d; font-size: 15px; line-height: 1.5; }
.themes figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.themes figcaption .label { color: var(--red); display: block; margin-bottom: 6px; }

/* formats */
.formats { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; margin-top: 44px; }
.formats pre { margin: 0; background: var(--ink); color: #dfe5de; padding: 22px 24px; line-height: 1.55; font-size: 13px; overflow-x: auto; white-space: pre; border-top: 4px solid var(--red); }
.formats ul { list-style: none; margin: 0; padding: 0; }
.formats li { padding: 18px 0; border-bottom: 1px solid var(--line); color: #3a443d; }
.formats li:first-child { padding-top: 0; }
.formats li b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--ink); line-height: 1.15; }
.formats li code { background: #dfe3dc; padding: 2px 6px; font-size: .84em; overflow-wrap: anywhere; }

/* install */
.install-sec { background: var(--ink); color: var(--paper); }
.install-sec h2 { color: var(--paper); }
.install-sec a { color: var(--paper); }
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.install h3 { font-size: 24px; color: var(--paper); }
.install pre { margin: 14px 0 0; background: var(--ink-2); border: 1px solid #2c352f; border-top: 3px solid var(--red); color: #e8ece6; padding: 18px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { color: #aab3ab; margin-top: 24px; font-size: 15px; }

/* examples */
.examples { list-style: none; margin: 44px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.examples li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.examples .num { font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: .1em; }
.examples h3 { font-size: 28px; }
.examples p { color: #3a443d; font-size: 15px; grid-column: 2; }
.examples .links { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }

.foot { border-top: 2px solid var(--ink); padding: 44px 0 64px; font-size: 15px; color: #3a443d; }
.foot-row { display: grid; gap: 10px; }
.foot .wordmark { color: var(--ink); }

.lost { min-height: 60vh; display: flex; align-items: center; padding: 0; }
.lost h1 { font-size: clamp(48px, 7vw, 88px); margin-top: 18px; }

@media (max-width: 960px) {
  .hero-grid, .formats { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-art { max-width: 480px; width: 100%; margin: 0 auto; }
  .install { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 26px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 16px; }
  .facts li, .facts li + li { padding-inline: 0; border-inline-end: 0; border-bottom: 1px solid #2c352f; }
  .examples li { grid-template-columns: 36px minmax(0, 1fr); }
  .examples .links { grid-column: 2; grid-row: auto; }
  .formats pre { font-size: 12px; }
}
