/* Typesetter's site.
 *
 * The site is a typeset page, set in the app's own default theme (Manuscript: Newsreader on
 * #fbfaf7) so the marketing page and the preview pane are one design. Two voices only: the
 * serif is what is SET, the mono is what is SOURCE, which is the product. One accent, a
 * rubric red, used where a rubricator would use it: the section marks, one word in the
 * headline, the emphasis, the price. The brief and the critique passes are in DESIGN.md. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --ink: #1d1f24;
  --ink-2: #4c5159;
  --muted: #6b717c;
  --invisible: #c8c6c0;
  --hair: rgba(29, 31, 36, 0.14);
  --hair-soft: rgba(29, 31, 36, 0.08);
  --rubric: #b03a2e;
  --rubric-deep: #8e2d23;
  --rubric-dim: rgba(176, 58, 46, 0.55);
  --rubric-ghost: rgba(176, 58, 46, 0.1);
  --caret: #12786a;
  /* The Midnight editor theme, the source pane's stage. */
  --stage: #12161d;
  --stage-2: #191f28;
  --stage-ink: #dfe4ec;
  --stage-muted: #8a97a8;
  --stage-hair: rgba(255, 255, 255, 0.09);
  --stage-caret: #7ee3c0;

  --serif: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", monospace;
  --measure: 62ch;
  --edge: clamp(1.1rem, 4vw, 3.5rem);
  --lh: 1.65rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-set: cubic-bezier(0.62, 0.02, 0.18, 1.01);

  /* The names the secondary pages and the generated pages were written against. Aliases,
     so a page written before the redesign still reads in the new system. */
  --ink-line: var(--hair);
  --ink-raised: var(--paper-2);
  --paper-dim: var(--ink-2);
  --paper-faint: var(--muted);
  --mint: var(--caret);
  --mint-deep: var(--caret);
  --amber: #9a6b12;
  --radius: 3px;
  --gutter: var(--edge);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain. Fixed, above everything, below the pointer. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--rubric); color: var(--paper); }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--muted); border: 3px solid var(--paper-2); border-radius: 10px; }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.02; font-weight: 400; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; font-weight: 400; letter-spacing: -0.016em; }
h3 { font-size: 1.22rem; line-height: 1.3; }
h1 em, h2 em { font-style: italic; color: var(--rubric); font-weight: 400; }

p { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
p.lede { font-size: clamp(1.15rem, 1.5vw, 1.32rem); line-height: 1.5; color: var(--ink); max-width: var(--measure); }
p.lede strong { font-weight: 500; }
strong { font-weight: 600; color: var(--ink); }
small, .small { font-size: 0.86rem; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--rubric-dim);
    text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: text-decoration-color 0.3s var(--ease); }
a:hover { text-decoration-color: var(--rubric); }

code, .mono {
  font-family: var(--mono);
  font-size: 0.86em;
}
p code { background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; color: var(--ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--edge); }
.num { font-variant-numeric: tabular-nums; }

/* ---- Labels: the mono voice ------------------------------------------------- */

.kicker {
  display: block;
  margin: 0 0 1.2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker::before { content: ""; display: inline-block; width: 2.4rem; height: 1px; background: var(--rubric); vertical-align: middle; margin-right: 0.8rem; }
.kicker b { color: var(--rubric); font-weight: 500; }

/* ---- Masthead --------------------------------------------------------------- */

.rail { position: fixed; top: 0; left: 0; z-index: 70; height: 2px; width: 100%; pointer-events: none;
        background: linear-gradient(90deg, var(--rubric) 0 var(--p, 0%), transparent var(--p, 0%)); }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
header.site .wrap { display: flex; align-items: center; gap: 1.6rem; height: 64px; }

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark b { color: var(--rubric); font-weight: 500; }
/* W5, the lockup: the chosen mark (2B4) next to the name set plainly in Newsreader. The
   mark is the real favicon file rather than a copy of its paths, so the tab icon and the
   header can never disagree. */
.wordmark { display: inline-flex; align-items: center; gap: .45em; }
.wordmark .wm-mark { width: 1.08em; height: 1.08em; border-radius: .22em; display: block; }

header.site nav { margin-left: auto; display: flex; gap: 1.5rem; align-items: center; }
header.site nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
}
header.site nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rubric); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
header.site nav a:hover { color: var(--ink); }
header.site nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status b { color: var(--ink); font-weight: 500; }
header.site nav + .status { margin-left: 0; }

/* The pilcrow that shows invisibles, the way the app can. */
.pilcrow {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.pilcrow:hover { color: var(--ink); border-color: var(--ink-2); }
.pilcrow[aria-pressed="true"] { color: var(--paper); background: var(--rubric); border-color: var(--rubric); }
/* The masthead holds a wordmark, five links, a status line and the pilcrow. The status goes
   first, the links go on a phone, where the page is one scroll and the links have nothing
   to do that scrolling does not. */
@media (max-width: 1100px) { .status { display: none; } }
@media (max-width: 760px) { header.site nav { display: none; } .pilcrow { margin-left: auto; } }

/* Invisibles on. Pilcrows in the theme's invisibles color, and the baseline. */
[data-invisibles="on"] .prose-body p::after,
[data-invisibles="on"] p.lede::after,
[data-invisibles="on"] .set p::after,
[data-invisibles="on"] .row p::after,
[data-invisibles="on"] .faq p::after { content: " ¶"; color: var(--invisible); }
[data-invisibles="on"] main {
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - 1px), var(--hair-soft) calc(var(--lh) - 1px) var(--lh));
}

/* ---- Buttons ---------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.button:hover { background: var(--rubric); border-color: var(--rubric); transform: translateY(-1px); }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--hair); }
.button.quiet:hover { background: transparent; color: var(--rubric); border-color: var(--rubric); }
.button .arr { transition: transform 0.4s var(--ease); }
.button:hover .arr { transform: translateX(3px); }

/* ---- Sections --------------------------------------------------------------- */

section { padding: clamp(3.4rem, 7vw, 6.6rem) 0; }
section + section { border-top: 1px solid var(--hair); }

/* Section mark and sticky heading beside a scrolling body. */
.sec { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 5rem); align-items: start; }
.sec-head { position: sticky; top: 92px; }
.sec-mark { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.8vw, 1.6rem); color: var(--rubric); line-height: 1; margin-bottom: 0.9rem; }
.sec-head h2 { margin-bottom: 0.7rem; }
.sec-head p { color: var(--ink-2); font-size: 1.02rem; margin: 0; }
.sec-body { max-width: 62rem; }
@media (max-width: 900px) {
  .sec { grid-template-columns: 1fr; gap: 1.6rem; }
  .sec-head { position: static; }
}

/* ---- Hero -------------------------------------------------------------------- */

.hero { padding: clamp(3.4rem, 8vw, 7rem) 0 clamp(2.4rem, 5vw, 4rem); border-bottom: 0; }
.hero h1 { max-width: 15ch; margin-bottom: 0.45em; }
.hero h1 .l2 { display: block; padding-left: clamp(0px, 5vw, 4.5rem); }
.hero h1 .l3 { display: block; padding-left: clamp(0px, 10vw, 9rem); }
.hero .lede { margin-top: 0; }
.hero .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; align-items: center; }
.hero .note { margin: 1.1rem 0 0; color: var(--muted); font-size: 0.92rem; font-style: italic; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.imprint {
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.imprint dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.imprint dt { margin: 0; color: var(--muted); text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.16em; padding-top: 0.15em; }
.imprint dd { margin: 0; color: var(--ink); font-size: 0.74rem; letter-spacing: 0.04em; }
.imprint dd em { font-style: normal; color: var(--rubric); }
.imprint .stamp { margin: 1.1rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0; color: var(--ink-2); }
@media (max-width: 1000px) { .hero .wrap { grid-template-columns: 1fr; } .imprint { display: none; } }

/* ---- The press: source and set, in step ------------------------------------- */

.press { padding-top: 0; }
.press-head {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.press-head .kicker { margin: 0; }
.press-head .replay {
  margin-left: auto;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: none; border: 0; padding: 0.3rem 0; color: var(--ink-2); cursor: pointer;
  border-bottom: 1px solid var(--hair); transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.press-head .replay:hover { color: var(--rubric); border-color: var(--rubric); }

.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.pane { min-width: 0; }
.pane-label {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 1rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--hair);
}
.pane-label i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.source { background: var(--stage); color: var(--stage-ink); }
.source .pane-label { color: var(--stage-muted); border-bottom-color: var(--stage-hair); }
.source-stack { position: relative; }
.source-stack textarea {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; resize: none; border: 0; outline: 0;
  padding: 1.2rem 1.3rem 1.4rem; background: transparent; color: transparent; caret-color: var(--stage-caret);
  font-family: var(--mono); font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.9rem); line-height: 1.7;
  white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden;
}
.source-stack textarea::selection { background: rgba(126, 227, 192, 0.25); }
.source-stack textarea:disabled { cursor: default; }
.edit-hint { margin-left: auto; color: var(--stage-caret); opacity: 0.8; }
.source pre {
  margin: 0;
  padding: 1.2rem 1.3rem 1.4rem;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.9rem);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 100%;
}
.source .t-m { color: var(--stage-muted); }
.source .t-h { color: #9fd8ff; font-weight: 600; }
.source .t-s { color: #f0b27a; font-weight: 600; }
.source .t-e { color: #e3b58a; font-style: italic; }
.source .t-l { color: #7ee3c0; }
.source .t-x { color: #e39ac0; }
.source .t-f { color: #b39bf5; }
.source .t-q { color: #8a95a6; }
.source .caret {
  display: inline-block; width: 2px; height: 1.15em; background: var(--stage-caret);
  vertical-align: text-bottom; margin-left: 1px; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.set { background: var(--paper); color: var(--ink); border-left: 1px solid var(--hair); }
.set .pane-label { color: var(--muted); }
.set .doc { padding: 1.2rem 1.5rem 1.4rem; font-size: 1.02rem; line-height: 1.6; }
.set .doc > * { transition: opacity 0.35s var(--ease-set), transform 0.35s var(--ease-set); }
.set .doc > .arrive { opacity: 0; transform: translateY(4px); }
.set .doc h2 { font-size: 1.55rem; margin: 0 0 0.5em; letter-spacing: -0.01em; }
.set .doc p { margin: 0 0 0.8em; color: var(--ink); }
.set .doc p:last-child { margin-bottom: 0; }
.set .doc .callout { border: 1px solid #bfe0d0; background: #eaf6f0; border-radius: 4px; padding: 0.55rem 0.8rem; margin: 0 0 0.8em; font-size: 0.95rem; }
.set .doc .callout b { display: block; color: #1d7a52; font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em; margin-bottom: 0.1rem; }
.set .doc ul.tasks { list-style: none; padding: 0; margin: 0 0 0.8em; }
.set .doc ul.tasks li { padding-left: 1.6em; position: relative; }
.set .doc ul.tasks li::before { content: ""; position: absolute; left: 0.1em; top: 0.42em; width: 0.8em; height: 0.8em; border: 1px solid var(--muted); border-radius: 2px; }
/* The check is drawn, centered, rather than a glyph nudged into the corner. */
.set .doc ul.tasks li.done::before { background: var(--caret) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbfaf7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat; border-color: var(--caret); }
.set .doc .math { font-style: italic; }
.set .doc .math sub { font-size: 0.7em; }
.set .doc .math .rad { text-decoration: overline; }
.set .doc code { font-family: var(--mono); font-size: 0.86em; background: var(--paper-2); padding: 0.05em 0.3em; border-radius: 3px; }
.set .doc .fn { font-size: 0.7em; vertical-align: super; color: var(--rubric); text-decoration: none; }
.set .doc .footnotes { border-top: 1px solid var(--hair); margin-top: 1rem; padding-top: 0.6rem; font-size: 0.86rem; color: var(--ink-2); }
.set .doc .footnotes p { color: var(--ink-2); }
.set .doc .current { box-shadow: -1.5rem 0 0 -1.4rem var(--rubric); }
@media (max-width: 760px) {
  .panes { grid-template-columns: 1fr; }
  .set { border-left: 0; border-top: 1px solid var(--hair); }
}
.press .under { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* ---- Specimen rows: the writing behaviors --------------------------------- */

.rows { border-top: 1px solid var(--hair); }
.row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hair);
}
.row .glyph small { font-size: 0.72em; vertical-align: 0.08em; }
.row .glyph {
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rubric);
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.row h3 { margin-bottom: 0.3rem; font-weight: 500; }
.row p { margin: 0; font-size: 1rem; max-width: 58ch; }
@media (max-width: 520px) { .row { grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0.8rem; } .row .glyph { font-size: 1.2rem; } }

/* ---- The case: everything the preview sets ---------------------------------- */

.case {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.6rem;
  text-wrap: balance;
}
.case i { font-style: normal; color: var(--rubric); padding: 0 0.35em; }

/* Two facts, one hairline between. Equal width, equal height. */
.facts { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-top: 1px solid var(--hair); }
.facts > div { padding: 1.4rem 0; }
.facts > div + div { border-left: 1px solid var(--hair); padding-left: 2rem; }
.facts > div:first-child { padding-right: 2rem; }
.facts h3 { margin-bottom: 0.4rem; font-weight: 500; }
.facts p { margin: 0; font-size: 1rem; }
.facts p + p { margin-top: 0.7em; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--hair); padding-left: 0; }
  .facts > div:first-child { padding-right: 0; }
}

/* ---- Folder listing --------------------------------------------------------- */

.listing {
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-x: auto;
}
.listing b { color: var(--ink); font-weight: 500; }
.listing .conflict { color: var(--rubric); }
.listing .dim { color: var(--muted); }

/* ---- The printed table ------------------------------------------------------ */

.compare { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: left; padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.compare th:first-child, .compare td:first-child { padding-left: 0; }
.compare thead th { font-family: var(--mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.compare tbody th { font-weight: 400; color: var(--ink); }
.compare td { color: var(--ink-2); }
.compare .no { color: var(--muted); }
.compare tr.ours th, .compare tr.ours td { color: var(--rubric); font-weight: 500; }
.compare tr.ours { background: var(--rubric-ghost); }
.compare tr.ours th:first-child { padding-left: 0.6rem; }
.compare + p, .compare-note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--muted); font-style: italic; }
@media (max-width: 560px) { .compare { font-size: 0.9rem; } .compare th, .compare td { padding: 0.6rem 0.4rem; } }

/* ---- The gap: three shapes, no names ---------------------------------------- */

.gap-line { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; color: var(--ink); margin: 0; letter-spacing: -0.016em; }
.gap-line em { color: var(--rubric); }
.gap-line + .gap-line { padding-left: clamp(0px, 3vw, 2.4rem); }
.gap-line + .gap-line + .gap-line { padding-left: clamp(0px, 6vw, 4.8rem); }
.gap-note { margin-top: 1.6rem; max-width: 52ch; font-size: 1.02rem; }

/* ---- Price ------------------------------------------------------------------ */

.price-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-top: 1px solid var(--hair); }
.price-grid > div { padding: 1.6rem 0; }
.price-grid > div + div { border-left: 1px solid var(--hair); padding-left: 2.2rem; }
.price-grid > div:first-child { padding-right: 2.2rem; }
.amount { font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums; }
.amount em { display: block; font-style: italic; color: var(--rubric); font-size: 0.3em; letter-spacing: 0; margin-top: 0.5em; line-height: 1.2; }
.price-grid ul { list-style: none; padding: 0; margin: 1.3rem 0; }
.price-grid li { padding-left: 1.5rem; position: relative; margin-bottom: 0.45rem; color: var(--ink-2); font-size: 1rem; }
.price-grid li::before { content: "¶"; position: absolute; left: 0; color: var(--rubric); }
.price-grid .foot { color: var(--muted); font-size: 0.9rem; font-style: italic; margin: 0; }
.price-grid h3 { font-weight: 500; margin-bottom: 0.5rem; }
.price-grid p { font-size: 1rem; }
.price-grid .button { margin-top: 0.4rem; }
@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-grid > div + div { border-left: 0; border-top: 1px solid var(--hair); padding-left: 0; }
  .price-grid > div:first-child { padding-right: 0; }
}

/* ---- Questions -------------------------------------------------------------- */

.faq { max-width: var(--measure); border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); padding: 0.95rem 0; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: baseline; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--rubric); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0.6rem 0 0; font-size: 1rem; }

/* ---- Colophon --------------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--ink);
  padding: 2.6rem 0 3.6rem;
  color: var(--ink-2);
  font-size: 0.92rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 1.8rem; align-items: baseline; }
footer.site a { color: var(--ink); text-decoration-color: var(--hair); }
footer.site a:hover { text-decoration-color: var(--rubric); }
footer.site .spacer { margin-left: auto; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---- Reveal ----------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.compare tbody tr { transition: background 0.3s var(--ease); }
.compare tbody tr:hover { background: var(--paper-2); }
.row { transition: background 0.3s var(--ease); }
.row:hover .glyph { color: var(--rubric-deep); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity 0.3s; transform: none; filter: none; }
  .source .caret { animation: none; }
  .set .doc > * { transition: none; }
  .button, .button .arr, header.site nav a::after { transition: none; }
}

/* ---- Secondary pages: prose, notes, the queue -------------------------------- */

.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem) !important; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; font-weight: 500; }
.prose ul { color: var(--ink-2); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose-body p { color: var(--ink-2); }

/* Note pages and the artifacts index were written against .cards / .card / .pair. They keep
   working, now as hairline-framed paper blocks rather than raised dark cards. */
.cards { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); background: var(--hair); border: 1px solid var(--hair); }
/* Seven cards never leave one alone on a grey gap: the odd one out goes full width, on purpose. */
.cards > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards > :last-child:nth-child(3n + 1) { grid-column: auto; } .cards > :last-child:nth-child(2n + 1) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .cards > :last-child { grid-column: auto; } }
.card { background: var(--paper); padding: 1.4rem 1.5rem; border-radius: 0; text-decoration: none; color: inherit; transition: background 0.35s var(--ease); }
a.card:hover { background: var(--paper-2); }
.card h3 { margin-bottom: 0.4rem; font-weight: 500; }
.card p { margin: 0; font-size: 0.98rem; }
.card .mark { color: var(--rubric); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.6rem; display: block; line-height: 1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: stretch; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }
.pair .card { border: 1px solid var(--hair); border-radius: var(--radius); }
.pane { border-radius: var(--radius); }

.item { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--paper); padding: 1.3rem 1.4rem; margin-bottom: 1rem; }
.item.blocking { border-color: var(--rubric-dim); }
.item h3 { margin-bottom: 0.35rem; font-weight: 500; }
.item .why { color: var(--ink-2); font-size: 0.98rem; margin: 0 0 0.7rem; }
.item .fact { font-family: var(--mono); font-size: 0.84rem; color: var(--caret); }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
       padding: 0.2rem 0.55rem; border-radius: 2px; margin-bottom: 0.6rem; border: 1px solid transparent; }
.tag.blocks { background: var(--rubric-ghost); color: var(--rubric); border-color: var(--rubric-dim); }
.tag.soon { background: rgba(18, 120, 106, 0.1); color: var(--caret); }
.tag.held { background: var(--paper-2); color: var(--ink-2); }
dl { margin: 0.6rem 0 0; }
dt { color: var(--muted); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.7rem; }
dd { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.96rem; }
.set .doc blockquote { margin: 0 0 0.8em; padding-left: 1em; border-left: 3px solid var(--hair); color: var(--ink-2); font-style: italic; }
.set .doc blockquote p { color: var(--ink-2); }

/* A grid item's automatic minimum is its min-content width, so one long unbroken line in a
   listing (or a balanced paragraph's odd measurement) can push a column past the viewport. */
.sec > *, .facts > *, .price-grid > *, .panes > *, .hero .wrap > * { min-width: 0; }

/* The blocker page numbers every item, because Derick answers it by number from a phone
   hours later with no transcript in front of him. The numbers are STABLE: an item keeps
   its number when it closes and the next new one takes the next number, so "6 is done"
   means the same thing next month. */
.item { position: relative; padding-left: 3.6rem; }
.item .num { position: absolute; left: 1.2rem; top: 1.25rem; font-family: var(--mono);
             font-size: 0.82rem; font-weight: 500; color: var(--paper); background: var(--ink);
             border-radius: 3px; padding: 0.1rem 0.36rem; }
.item.blocking .num { background: var(--rubric); }
.item.shut { opacity: 0.72; border-color: var(--hair-soft); background: var(--paper-2); }
.item.shut .num { background: var(--caret); }
.item.shut h3 { text-decoration: none; }
.tag.shut { background: rgba(18, 120, 106, 0.12); color: var(--caret); border-color: rgba(18,120,106,.3); }
@media (max-width: 560px) { .item { padding-left: 1.4rem; padding-top: 2.6rem; }
  .item .num { left: 1.4rem; top: 1rem; } }

/* ---- Early access: the subscription slip ------------------------------------ */
/* A printed page asks for an address with a slip bound into the back: a ruled
   plate, set apart from the text block, in the rubric. Not a card, not a grey
   box. It sits at the foot of § 5 because the price is what it is about. */

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; border: 0; }

.note-early { margin-top: 0.35rem; }
.note-early a { color: var(--rubric); text-decoration: none; border-bottom: 1px solid var(--rubric-dim); }
.note-early a:hover { border-bottom-color: var(--rubric); }

.slip {
  scroll-margin-top: 6rem;
  margin-top: clamp(1.8rem, 3.6vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--rubric);
  /* The printer's double rule: thick over thin. */
  box-shadow: inset 0 3px 0 0 var(--paper-2), inset 0 4px 0 0 var(--rubric-dim);
  padding: clamp(1.3rem, 2.6vw, 2rem);
  position: relative;
}
@media (max-width: 820px) { .slip { grid-template-columns: 1fr; } }
.slip > * { min-width: 0; }
.slip .kicker { margin-bottom: 0.9rem; }
.slip h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 0.6rem; text-wrap: balance;
}
.slip h3 span { display: block; }
.slip h3 em { font-style: italic; color: var(--rubric); }
.slip p { color: var(--ink-2); margin: 0; max-width: 46ch; font-size: 1rem; }
.slip p b { color: var(--ink); font-weight: 500; }

.earlyform { display: grid; gap: 0.6rem; }
.earlyform input[type="email"] {
  width: 100%; min-height: 48px;
  font: 400 1rem/1.2 var(--mono);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--hair); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.earlyform input[type="email"]::placeholder { color: var(--muted); }
.earlyform input[type="email"]:focus-visible { outline: 2px solid var(--rubric); outline-offset: 1px; }
.earlyform .button { min-height: 48px; width: 100%; justify-content: center; }
.earlynote {
  margin: 0; font-family: var(--mono); font-size: 0.72rem; line-height: 1.6;
  letter-spacing: 0.04em; color: var(--muted); overflow-wrap: anywhere; text-wrap: balance;
}
.earlymsg {
  margin: 0; font-family: var(--mono); font-size: 0.78rem; line-height: 1.5;
  color: var(--ink-2); overflow-wrap: anywhere;
}
.earlymsg.is-bad { color: var(--rubric-deep); }
.earlydone {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 1rem; line-height: 1.5; color: var(--ink-2); outline: 0;
  animation: earlyin 0.3s var(--ease) both;
}
.earlydone strong { color: var(--ink); font-weight: 500; }
.earlytick { flex: 0 0 auto; width: 1.35em; height: 1.35em; margin-top: 0.15em; color: var(--rubric); }
@keyframes earlyin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .earlydone { animation: none; } }
