/* Ported from design/html/W-site.html on 14 Nov 2026. Colours, faces and sizes come from tokens.css. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/Newsreader.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/Newsreader-Italic.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/JetBrainsMono.woff2) format("woff2");
}

/* Base */
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); }
a { color: var(--ink); }
a:hover { color: var(--graphite); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a:focus-visible, button:focus-visible, .phrase:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.page { background: var(--paper); color: var(--ink); font-family: var(--font-serif); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wm-ink { fill: currentColor; }
.wm-red { fill: var(--minium); }
.block { display: block; }

/* Layout */
.band { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.rule-top { border-top: var(--stroke-rule) solid var(--ink); }
.rule-bottom { border-bottom: var(--stroke-rule) solid var(--ink); }
.pad-sec { padding-top: 72px; padding-bottom: 96px; }
.pad-get { padding-top: 72px; padding-bottom: 88px; }

/* Mono words */
.mono { font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.mono-xs { font-size: 9.5px; }
.mono-s { font-size: 10px; }
.mono-m { font-size: 11px; }
.graphite { color: var(--graphite); }
.red { color: var(--minium); }

/* The red rule */
.rule-red { height: 2px; width: 30px; background: var(--minium); }
.rule-red--hero { margin: 28px 0 14px; }
.rule-red--sec { margin-bottom: 14px; }
.rule-red--chapter { width: 26px; margin-bottom: 8px; }

/* Header */
.top { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; min-height: var(--target); line-height: 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav a { min-height: var(--target); display: flex; align-items: center; text-decoration: none; }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.display { margin: 0; font-size: clamp(48px, 7vw, 104px); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
.display-red { text-decoration: underline; text-decoration-color: var(--minium); text-decoration-thickness: 3px; text-underline-offset: 10px; }
.fn { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0; color: var(--minium); vertical-align: super; }
.fn--s { font-size: 9px; letter-spacing: normal; }
.lede { position: relative; margin-top: 26px; padding-left: 40px; max-width: 30em; color: var(--minium); font-style: italic; font-size: 19px; line-height: 1.45; }
.lede-mark { position: absolute; left: 2px; top: 6px; }
.lede .note-label { font-size: 10px; margin-bottom: 4px; }
.soon { margin: 40px 0 0; }

/* The specimen: a page of Moby-Dick, with the red pen's notes between the lines */
.specimen { flex: 1 1 400px; min-width: 0; max-width: 480px; margin: 0; }
.sheet { border-top: var(--stroke-rule) solid var(--ink); border-bottom: var(--stroke-rule) solid var(--ink); padding: 18px 0 22px; }
.runhead { display: flex; justify-content: space-between; }
.chapter { display: flex; align-items: flex-end; gap: 12px; margin: 16px 0 18px -4px; }
.chapter-num { font-size: 96px; line-height: 0.78; font-style: italic; font-weight: 300; letter-spacing: -0.07em; }
.chapter-title { font-size: 28px; line-height: 1; }
.prose { font-size: 18px; line-height: 1.62; }
.figcap { margin-top: 10px; }
.mark { display: inline; line-height: inherit; text-decoration: underline; text-decoration-color: var(--minium); text-decoration-thickness: var(--stroke-mark); text-underline-offset: var(--underline-offset); }
.phrase { cursor: pointer; }
.phrase-text { text-decoration-line: none; text-decoration-style: solid; text-decoration-color: var(--minium); text-decoration-thickness: var(--stroke-mark); text-underline-offset: var(--underline-offset); }
.phrase .brk { display: none; color: var(--minium); font-weight: 500; }
.phrase.is-sel .brk { display: inline; }
.phrase.is-sel .phrase-text { background: var(--paper-shade); }
.phrase[data-mark="ask"] .phrase-text { text-decoration-line: underline; }
.phrase[data-mark="plain"] .phrase-text { text-decoration-line: underline; text-decoration-style: dotted; }
.phrase[data-mark="note"] .phrase-text { text-decoration-line: underline; text-decoration-color: var(--pencil); }

/* A note between the lines */
.note { display: block; position: relative; margin: 8px 0 10px; padding-left: var(--note-indent); color: var(--minium); font-style: italic; font-size: 15.5px; line-height: 1.42; }
.note--last { margin-bottom: 0; }
.note--grey { color: var(--graphite); }
.note-label { display: block; font-family: var(--font-mono); font-style: normal; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.note-close { position: absolute; left: -13px; top: -15px; width: var(--target); height: var(--target); display: flex; align-items: center; justify-content: center; color: var(--minium); }
.note--grey .note-close { color: var(--pencil); }
.note-close svg { display: block; }
.note-q { display: block; margin-top: 4px; font-size: 16px; font-weight: 500; font-style: normal; color: var(--ink); }
.note-a { display: block; margin-top: 6px; font-size: 16px; line-height: 1.45; }
.caret { display: inline-block; width: 2px; height: 16px; margin-left: 2px; vertical-align: -2px; background: var(--graphite); }
.note-actions { display: flex; gap: 22px; font-family: var(--font-mono); font-style: normal; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.note-actions button { height: var(--target); text-transform: uppercase; letter-spacing: 0.1em; }
.save { color: var(--ink); text-decoration: underline; text-decoration-thickness: var(--stroke-mark); text-underline-offset: var(--underline-offset); }
.cancel { color: var(--graphite); }

/* The menu: Ask, Plain, Note */
.menu { position: relative; margin: 8px 0 4px; padding-left: var(--note-indent); }
.menu .note-close { top: -1px; left: -16px; }
/* The caret's glyph stays where the board draws it (the button moves 3 px left, the glyph 3 px right), so ASK can start 3 px nearer. */
.menu .note-close svg { position: relative; left: 3px; }
.menu-row { display: flex; flex-wrap: wrap; align-items: center; }
.menu-row button { height: var(--target); padding: 0 var(--space-2) 0 0; display: flex; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--minium); }
.menu-row .menu-note { color: var(--ink); }
.menu-slash { color: var(--graphite); margin-right: 8px; }

/* Headings and columns */
.h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.1; }
.h2--italic { font-style: italic; }
.h2--wide { max-width: 18em; text-wrap: balance; }
.col { border-top: var(--stroke-hair) solid var(--rule); padding-top: 18px; }
.ink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; margin-top: 48px; }
.big { margin: 14px 0 0; font-size: 30px; line-height: 1.2; }
.big--red { font-style: italic; color: var(--minium); }
.big--grey { font-style: italic; color: var(--graphite); }
.small { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--graphite); }
.do-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 56px; margin: 44px 0 0; }
.do-grid .col { padding-top: 16px; }
.do-grid dd { margin: 8px 0 0; font-size: 18px; line-height: 1.55; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 44px; }
.diamond path { fill: var(--minium); }
.promise-grid h3 { margin: 12px 0 0; font-size: 22px; font-weight: 400; }
.promise-grid p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; color: var(--graphite); }

/* The name, on a dark band: the night tokens, scoped to it */
.dark { background: var(--ink); }
.night { color: var(--ink); padding-top: 88px; padding-bottom: 96px; }
.wordmark-big { display: block; width: 100%; max-width: 720px; height: auto; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; padding-top: 12px; border-top: var(--stroke-hair) solid var(--rule); max-width: 720px; color: var(--graphite); }
.facts .red { color: var(--minium); }
.name-copy { margin: 40px 0 0; max-width: var(--measure); font-size: clamp(19px, 2vw, 22px); line-height: 1.6; }

/* Get */
.get-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.tile { width: 64px; height: 64px; border-radius: 14.3px; background: var(--paper); border: var(--stroke-hair) solid var(--rule); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.tile svg { display: block; width: 40px; height: 40px; }
.tile-row { margin-bottom: 16px; }
.get-text { margin: 12px 0 0; font-size: 26px; line-height: 1.25; }
.get-text--small { font-size: 18px; line-height: 1.55; color: var(--graphite); }
.get-grid .soon { margin-top: 22px; }

/* Footer */
.foot { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--graphite); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { min-height: var(--target); display: flex; align-items: center; color: var(--graphite); text-decoration: none; }
.foot > svg { color: var(--ink); }

/* Hit areas of 44: padding that adds to the box a tap lands on but not to the layout (negative margins cancel it) */
.mark { padding: var(--space-2) var(--space-1); margin: calc(var(--space-2) * -1) calc(var(--space-1) * -1); }
.phrase { padding: calc((var(--target) - 1em) / 2) var(--space-1); margin: calc((var(--target) - 1em) / -2) calc(var(--space-1) * -1); }
/* The menu's words are 8 apart. ASK's hit area runs from the caret's 44 (ends 28 in) to PLAIN's (starts 73): 45 wide, and no hit area
   overlaps another. The paddings are measured from the board's spacing, so they stay in px. */
.menu-row [data-act=ask] { padding: 0 15px 0 6px; margin: 0 -7px 0 -6px; position: relative; z-index: 1; }
.note-actions button { padding: 0 var(--space-2); margin: 0 calc(var(--space-2) * -1); }

/* Phone: one column, the specimen first and full width. A placeholder until the owner draws it. */
@media (max-width: 759px) {
  .hero { flex-direction: column; gap: 48px; padding-top: 32px; padding-bottom: 64px; }
  .hero-copy, .specimen { flex: 0 0 auto; width: 100%; max-width: none; }
  .specimen { order: -1; }
  .pad-sec { padding-top: 48px; padding-bottom: 64px; }
  .pad-get { padding-top: 48px; padding-bottom: 64px; }
  .ink-grid, .do-grid, .promise-grid, .get-grid { grid-template-columns: 1fr; gap: 32px; }
  .chapter-num { font-size: 64px; }
  .night { padding-top: 56px; padding-bottom: 64px; }
  .wordmark-big { max-width: 100%; }
  .nav { gap: 4px 16px; }
}

/* The privacy page: one column at one width (the measure at 18 px), a 1.5 px ink rule between the parts */
.policy { padding-top: 48px; padding-bottom: 96px; }
.policy-col { font-size: 18px; max-width: var(--measure); }
.policy-title { margin: 16px 0 24px; font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.1; text-wrap: balance; }
.policy p, .policy li { line-height: 1.6; }
.policy p { margin: 14px 0 0; }
.policy ul { margin: 14px 0 0; padding-left: 1.2em; }
.policy li { margin-top: 6px; }
.policy section { margin-top: 48px; padding-top: 20px; border-top: var(--stroke-rule) solid var(--ink); }
.policy h2 { margin: 0; }
.policy h3 { margin: 28px 0 0; color: var(--graphite); }
.policy table { width: 100%; margin-top: 14px; border-collapse: collapse; }
.policy th, .policy td { padding: 10px 16px 10px 0; text-align: left; vertical-align: top; font-weight: 400; }
.policy td { border-top: var(--stroke-hair) solid var(--rule); font-size: 16px; line-height: 1.5; }
/* A link in running text: the slop is a ::before, so the focus ring stays on the link's own box. It is mostly above, where the link
   paints over the line before it; below, the next line's own words win the tap, so slop there buys nothing. */
.policy a { position: relative; }
.policy a::before { content: ""; position: absolute; inset: calc(var(--target) / -2) 0 calc(var(--space-2) * -1); }
.policy strong { font-weight: 500; }

/* The 404 page (W-404): the home page's header and footer, a chapter numeral, the red pen's note on "missing", and the ways back */
.nf { padding-top: 48px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.nf-copy { flex: 1 1 520px; min-width: 0; }
.nf-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; margin-top: 72px; }
.nf-num { margin-left: -0.05em; font-size: clamp(140px, 17vw, 248px); line-height: 0.78; font-style: italic; font-weight: 300; letter-spacing: -0.07em; }
.nf-title { flex: 1 1 260px; min-width: 0; padding-bottom: 4px; }
.nf-title .rule-red { margin-bottom: 14px; }
.nf-h1 { margin: 0; font-size: clamp(40px, 4.6vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.nf-missing { font: inherit; letter-spacing: inherit; text-decoration: underline; text-decoration-color: var(--minium); text-decoration-thickness: 3px; text-underline-offset: 8px; padding: var(--space-2) var(--space-1); margin: calc(var(--space-2) * -1) calc(var(--space-1) * -1); }
.nf-fn { margin-left: 3px; }
.nf-note { margin-top: 30px; }
.nf-note .note-close { left: -12px; top: -8px; }
.nf-note .note-label { font-size: 10px; margin-bottom: 4px; }
.nf-back { flex: 1 1 360px; min-width: 0; padding-top: 4px; }
.nf-back-head { padding-bottom: 8px; border-bottom: var(--stroke-rule) solid var(--ink); }
.nf-way { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); min-height: var(--target); padding: 18px 0; border-bottom: var(--stroke-hair) solid var(--rule); text-decoration: none; color: var(--ink); }
.nf-way:last-child { border-bottom: 0; }
.nf-way-title { display: block; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.nf-way-sub { display: block; margin-top: 6px; }
.nf-arrow { font-size: 24px; }
