/* ---------------------------------------------------------------
   Foundation: tokens and reset.

   These live here rather than in style.css so that everything the
   browser needs arrives in one file. A plugin that skips the theme
   stylesheet then cannot strip the fonts, colours and layout.
   --------------------------------------------------------------- */
:root {
  --ink:        #3D1D06;
  --ink-2:      #5C3A1E;
  --accent:     #D89B02;
  --accent-ink: #8F6600;

  --body:       #5C3A1E;
  --body-2:     #6E4C2E;
  --muted:      #7D6A4E;
  --muted-2:    #A8977B;

  --bg:         #FFFFFF;
  --bg-2:       #FFFFFF;
  --bg-3:       #FAFAF9;

  --dark:       #3D1D06;
  --dark-2:     #2A1204;
  --paper:      #F7F1E6;   /* warm off-white, for type on the dark ground */
  --paper-dim:  rgba(247, 241, 230, 0.62);

  --rule:       #E7E2DA;
  --rule-2:     #D8D1C6;
  --rule-3:     #E7E2DA;

  --font-sans:  'Cairo', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --nav-h:      66px;
  --gutter:     clamp(20px, 3.4vw, 48px);
  --container:  1440px;
}

/* ---------------------------------------------------------------
   Reset
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }

:where(ul[class]), :where(ol[class]) { list-style: none; margin: 0; padding: 0; }

img, picture, svg { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 100;
  font-size: 13px;
  font-weight: 500;
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__rule {
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.dot { color: var(--accent); }

/* On the dark and gold grounds the eyebrow needs its own colour: the grey
   above is for white pages only. */
.eyebrow--dark { color: rgba(255, 255, 255, 0.75); }
.eyebrow--dark .eyebrow__rule { background: var(--accent); }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); }

.btn--ghost { border-color: var(--rule-2); color: var(--ink); padding-inline: 24px; }
.btn--ghost:hover { border-color: var(--ink); }

.btn--sm { padding: 10px 18px; font-size: 12px; letter-spacing: 0.08em; }

/* A row of small buttons: the checklist tools and the voice document tools. */
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.tools .minibtn { background: transparent; cursor: pointer; font-family: inherit; }
.tools .minibtn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.minibtn--quiet { color: var(--muted); }
.minibtn--quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.minibtn.is-confirming { border-color: var(--accent); color: var(--accent-ink); border-style: solid; }


/* Shown, but with nothing behind it yet: the file has not been attached. */
.btn--waiting, .minibtn--waiting { cursor: default; }
.btn--waiting:hover { background: var(--ink); }
a.minibtn--waiting:hover, .minibtn--waiting:hover { background: transparent; color: var(--ink); border-color: var(--rule-2); }

/* ---------------------------------------------------------------
   Nav
   --------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: var(--gutter);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Out of the way while reading down the page, back on the way up. */
.nav--hidden { transform: translateY(-100%); }

.nav__mark { display: flex; align-items: center; color: var(--ink); }

/* The mark is a single-colour symbol, so it follows the nav's own colour. */
.nav__logo { display: block; color: inherit; }

.nav__logo svg {
  display: block;
  height: 28px;
  width: auto;
  transition: color 0.2s ease;
}

@media (max-width: 620px) { .nav__logo svg { height: 24px; } }

.nav__mark:hover .nav__logo { color: var(--accent); }

/* Visible to screen readers, not on screen. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav__right { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }

.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav__list a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-2);
  transition: color 0.2s ease;
}
.nav__list a:hover { color: var(--ink); }

/* The page you are on, marked under the label. */
.nav__list a.is-here { color: var(--ink); position: relative; }

.nav__list a.is-here::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--accent);
}

.nav--over .nav__list a.is-here { color: var(--dark); }
.nav--over .nav__list a.is-here::after { background: var(--dark); }

.nav__panel a.is-here { color: var(--accent-ink); font-weight: 600; background: var(--bg-3); }

/* Phones get the disclosure menu, everything else the inline list. */
.nav__mobile { display: none; }

@media (max-width: 860px) {
  .nav__desktop { display: none; }
  .nav__cta { display: none; }
  .nav__mobile { display: block; position: relative; }
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.nav__toggle::-webkit-details-marker { display: none; }

.nav__toggle-bars,
.nav__toggle-bars::after {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
}

.nav__toggle-bars { position: relative; }
.nav__toggle-bars::after { content: ''; position: absolute; top: 5px; }

.nav__mobile[open] .nav__toggle { border-color: var(--ink); }
.nav__mobile[open] .nav__toggle-bars::after { top: 0; }

.nav__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 14rem;
  padding: 10px 0;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(61, 29, 6, 0.12);
}

.nav__panel ul { list-style: none; margin: 0; padding: 0; }

.nav__panel a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  color: var(--body);
}

/* The one hover that keeps the darker gold: a full-width menu row on white. */
.nav__panel a:hover { background: var(--bg-3); color: var(--accent-ink); }
.nav__panel li:last-child a { color: var(--accent-ink); font-weight: 600; }

/* ---------------------------------------------------------------
   Homepage: the gold room

   Every other page on this site is warm white. The homepage is the book
   cover: a full screen of the brand gold with everything set in the deep
   brown, so a reader landing from the printed code knows at a glance that
   they are in the right place.
   --------------------------------------------------------------- */
.room {
  position: relative;
  background: var(--accent);
  color: var(--dark);
  /* The same hatch the checklist wall uses, at a whisper. */
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(61, 29, 6, 0.05) 0 1px,
    transparent 1px 9px
  );
}

.opening {
  padding-top: calc(var(--nav-h) + clamp(44px, 7vh, 104px));
  padding-bottom: clamp(24px, 3.5vh, 48px);
}

.room .eyebrow--dark { color: rgba(61, 29, 6, 0.62); }
.room .eyebrow__rule { background: var(--dark); }

.opening__title {
  margin-top: clamp(22px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

/* Weight and scale do the work here, not a second typeface. */
.opening__lead {
  font-size: clamp(58px, 12.5vw, 200px);
  font-weight: 800;
  color: var(--dark);
}

.opening__rest {
  margin-top: clamp(6px, 1vw, 14px);
  font-size: clamp(28px, 5.1vw, 82px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(61, 29, 6, 0.82);
  max-width: 22ch;
}

.room .dot { color: #fff; }

.opening__lede {
  margin-top: clamp(22px, 2.8vw, 36px);
  max-width: 50ch;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: rgba(61, 29, 6, 0.78);
}

/* ---------------------------------------------------------------
   The destinations, as boxes on the gold
   --------------------------------------------------------------- */
.board { padding-bottom: clamp(36px, 6vh, 80px); }

.board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 900px) {
  .board__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 22px);
  border: 1px solid rgba(61, 29, 6, 0.3);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  transition: border-color 0.3s ease;
}

/* The gesture the checklist wall makes when a layer fills, inverted: on the
   gold it is the brown that sweeps in. */
.tile::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--dark);
  transition: width 0.42s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.tile:hover::before,
.tile:focus-visible::before { width: 100%; }

.tile > * { position: relative; transition: color 0.3s ease; }

.tile__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tile__name {
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--dark);
  text-wrap: balance;
}

.tile__go {
  font-size: 16px;
  color: rgba(61, 29, 6, 0.55);
  transition: transform 0.3s ease, color 0.3s ease;
}

.tile__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(61, 29, 6, 0.72);
}

.tile__meta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(61, 29, 6, 0.55);
}

.tile:hover,
.tile:focus-visible { border-color: var(--dark); }

.tile:hover .tile__name,
.tile:focus-visible .tile__name,
.tile:hover .tile__go,
.tile:focus-visible .tile__go { color: #fff; }

.tile:hover .tile__meta,
.tile:focus-visible .tile__meta,
.tile:hover .tile__desc,
.tile:focus-visible .tile__desc { color: rgba(255, 255, 255, 0.82); }

.tile:hover .tile__go,
.tile:focus-visible .tile__go { transform: translateX(4px); }

/* The whole screen arrives in one sequence rather than in pieces. */
@media (prefers-reduced-motion: no-preference) {
  .opening__lead,
  .opening__rest,
  .opening__lede,
  .room .eyebrow--dark,
  .board__item {
    opacity: 0;
    animation: bb-rise 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }

  .room .eyebrow--dark { animation-delay: 60ms; }
  .opening__lead       { animation-delay: 120ms; }
  .opening__rest       { animation-delay: 220ms; }
  .opening__lede       { animation-delay: 320ms; }
  .board__item         { animation-delay: calc(400ms + 50ms * var(--row, 0)); }
}

@keyframes bb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* On a phone the whole board has to fit above the fold: someone who just
   scanned the code in Chapter 13 was promised resources, updates and the
   skill without scrolling. The names carry it, so descriptions come off. */
@media (max-width: 620px) {
  .opening { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 18px; }
  .opening__title { margin-top: 16px; }
  .opening__lede {
    margin-top: 14px;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .board__grid { gap: 8px; }
  .tile { padding: 12px 13px; }
  .tile__desc { display: none; }
  .tile__name { font-size: 15px; }
  .tile__meta { padding-top: 10px; font-size: 9px; letter-spacing: 0.14em; }
}

/* ---------------------------------------------------------------
   Nav over the gold room
   --------------------------------------------------------------- */
.nav--over {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(61, 29, 6, 0.16);
}

.nav--over .nav__mark,
.nav--over .nav__list a { color: var(--dark); }
.nav--over .nav__mark:hover .nav__logo { color: #fff; }
.nav--over .nav__list a:hover { color: #fff; }
.nav--over .btn--solid { background: var(--dark); color: var(--accent); }
.nav--over .btn--solid:hover { background: #fff; color: var(--dark); }
.nav--over .nav__toggle { border-color: rgba(61, 29, 6, 0.35); color: var(--dark); }
.nav--over .nav__toggle-bars,
.nav--over .nav__toggle-bars::after { background: var(--dark); }

/* ---------------------------------------------------------------
   Interior page head
   --------------------------------------------------------------- */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 96px));
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}

.page-head__inner { display: grid; gap: clamp(24px, 3vw, 40px); }

@media (min-width: 900px) {
  .page-head__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: end; }
}

.page-head__title {
  margin-top: clamp(18px, 2.4vw, 30px);
  font-size: clamp(38px, 5.6vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
  max-width: 16ch;
}

.page-head__lede {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.6;
  color: var(--body);
  max-width: 52ch;
}

.page-head__note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

.section-head { display: grid; gap: 18px; margin-bottom: clamp(28px, 3.6vw, 44px); }

@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
}

.section-title {
  margin-top: clamp(14px, 2vw, 24px);
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-note { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; color: var(--body); max-width: 46ch; }

.section { padding-block: clamp(48px, 6.5vw, 100px); border-top: 1px solid var(--rule); }
.section--first { border-top: 0; }
.section--tint { background: var(--bg-3); }

/* A band that carries a single panel does not need a section's worth of air
   around it, and the panel's own margin was making the top deeper than the
   bottom. */
.section--band { padding-block: clamp(28px, 3.4vw, 44px); }
.section--band .cross { margin-top: 0; }

/* ---------------------------------------------------------------
   Exercises
   --------------------------------------------------------------- */
.workbook { background: var(--dark); color: #fff; padding-block: clamp(40px, 5vw, 64px); }

.workbook__inner { display: grid; gap: clamp(24px, 3vw, 36px); }

@media (min-width: 900px) {
  .workbook__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); align-items: end; }
}

.workbook__title {
  margin-top: clamp(14px, 2vw, 22px);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  max-width: 20ch;
  text-wrap: balance;
}

.workbook__body { margin-top: 14px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: rgba(255, 255, 255, 0.72); max-width: 52ch; }

.workbook__get { display: flex; flex-direction: column; justify-content: flex-end; }

.workbook__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.workbook__note { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.55); }

.exgrid { display: grid; gap: 12px; }

@media (min-width: 680px)  { .exgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .exgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.excard {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: var(--bg);
}

.excard__chapter {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.excard__title {
  margin-top: 12px;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.excard__title a:hover { color: var(--accent); }

.excard__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.excard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.minibtn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

a.minibtn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.minibtn--pending { color: var(--muted-2); border-style: dashed; cursor: default; }

.excard__go {
  margin-top: auto;
  padding-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-2);
}

.excard__go span { color: var(--accent); display: inline-block; transition: transform 0.2s ease; }
.excard__go:hover { color: var(--accent); }
.excard__go:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------------
   Single exercise
   --------------------------------------------------------------- */
.exercise__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(22px, 2.6vw, 30px); }

/* A centred reading measure: the questions are the whole point of the page. */
.exercise__body { max-width: 78ch; margin-inline: auto; }

.exercise__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.questions { border-top: 1px solid var(--rule-2); }

.question {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0 clamp(12px, 1.6vw, 20px);
  padding-block: clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--rule-2);
}

.question__n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}

.question__text { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--body); }

.exercise__foot { margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 60ch; }

.exnav { border-top: 1px solid var(--rule); padding-block: clamp(24px, 3vw, 40px); }

.exnav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
}

.exnav__link { display: block; min-width: 0; }
.exnav__link--next { text-align: right; }

.exnav__dir {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.exnav__name { display: block; margin-top: 5px; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.exnav__link:hover .exnav__name { color: var(--accent); }

.exnav__all {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.exnav__all:hover { color: var(--accent); }

/* ---------------------------------------------------------------
   Book page
   --------------------------------------------------------------- */
.book-sub {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--body);
  max-width: 34ch;
}

.book-split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }

@media (min-width: 860px) {
  .book-split { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
}

@media (min-width: 860px) {
  /* The cover travels with the contents and stops when they do. */
  .book-split__cover { position: sticky; top: calc(var(--nav-h) + 28px); }
}

.book-split__cover img { width: 100%; max-width: 360px; height: auto; }

.parts { margin-top: clamp(28px, 3.4vw, 40px); border-top: 1px solid var(--rule-2); }

.part {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0 clamp(16px, 2vw, 28px);
  padding-block: clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--rule-2);
}

.part__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 6px;
}

.part__name { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.025em; }
.part__desc { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--body); max-width: 56ch; }

.who-list { margin-top: clamp(28px, 3.4vw, 40px); display: grid; gap: 0; border-top: 1px solid var(--rule-2); }

@media (min-width: 860px) { .who-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); } }

.who-list__item {
  padding: 16px 0 16px 26px;
  border-bottom: 1px solid var(--rule-2);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--body);
  position: relative;
}

.who-list__item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 26px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------------------
   About page
   --------------------------------------------------------------- */
.bio { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }

@media (min-width: 860px) {
  /* The portrait matches the text block's height rather than floating beside
     it, so the two columns start and finish together. */
  .bio--with-photo { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); }
}

.bio__portrait { margin: 0; }

.bio__portrait img {
  width: 100%;
  height: 100%;
  max-height: 30rem;
  object-fit: cover;
  border-radius: 4px;
}

.bio__text { max-width: 62ch; }

.bio__p {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--body);
}

.bio__p + .bio__p { margin-top: 20px; }

/* ---------------------------------------------------------------
   The ventures: a header, then a card each
   --------------------------------------------------------------- */
.vgroup + .vgroup { margin-top: clamp(30px, 4vw, 48px); }

.vgroup__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px clamp(14px, 2vw, 22px);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2vw, 26px);
  background: var(--dark);
  color: #fff;
  border-radius: 4px;
}

.vgroup__name { font-size: clamp(18px, 1.9vw, 24px); font-weight: 600; letter-spacing: -0.025em; }

.vgroup__count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.vgroup__url {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.vgroup__url span { display: inline-block; transition: transform 0.2s ease; }
.vgroup__head:hover .vgroup__url span { transform: translateX(4px); }

.vgroup__label {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 12px;
  margin-top: clamp(16px, 2vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.cards--outside { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }

/* Equal height whatever the description does, so a row of cards reads as a
   row rather than a staircase. */
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 9.5rem;
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vcard:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(61, 29, 6, 0.08);
}

.vcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.vcard__name {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.vcard__status {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(216, 155, 2, 0.16);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}

.vcard__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body-2);
}

.vcard__url {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.vcard__url span { display: inline-block; color: var(--accent); transition: transform 0.2s ease; }
.vcard:hover .vcard__url { color: var(--accent); }
.vcard:hover .vcard__url span { transform: translateX(4px); }
.vcard:hover .vcard__name { color: var(--accent); }

/* The roles outside the group are drawn a shade quieter. */
.vcard--outside { min-height: 0; background: var(--bg-3); }

/* ---------------------------------------------------------------
   Skill page
   --------------------------------------------------------------- */
.get { margin-top: clamp(28px, 3.2vw, 38px); }
.get__note { margin-top: 12px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }

.intake { display: grid; gap: 12px 48px; align-items: start; }

@media (min-width: 900px) {
  .intake { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: start; }
}

.intake__title {
  margin-top: 0;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  max-width: 18ch;
}

.intake__body { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.65; color: var(--body); max-width: 60ch; }

.caps { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }

@media (min-width: 680px)  { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cap { background: var(--bg); padding: clamp(20px, 2.2vw, 30px); }
.cap__name { font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.cap__desc { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--body-2); }

.limits { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }

@media (min-width: 860px) { .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); } }

.limits__item {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--rule-2);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--body);
}

.limits__item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 27px;
  width: 12px;
  height: 1px;
  background: var(--muted-2);
}

.fw { display: flex; flex-wrap: wrap; gap: 8px; }

.fw__item {
  padding: 9px 16px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--body-2);
}

/* ---------------------------------------------------------------
   Install: a rail you can tick off, beside the steps
   --------------------------------------------------------------- */
.install { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }

/* Grid items refuse to shrink below their content by default, and the command
   block below is wider than a phone. Without this the whole page grows to the
   width of that one line and the header slides off the right edge. */
.install > * { min-width: 0; }

@media (min-width: 900px) {
  .install { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
  .rail { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* On a phone the rail and the steps say the same six things one after the
   other, so the rail folds away and the tick moves into the step itself. */
.step__tick { display: none; }

@media (max-width: 899px) {
  .rail { display: none; }

  .step { grid-template-columns: 2.2rem minmax(0, 1fr); }

  .step__tick {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 8px 14px 8px 10px;
    background: var(--bg);
    border: 1px solid var(--rule-2);
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .step__tick:hover { border-color: var(--ink); }

  .step__tick-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--rule-2);
    border-radius: 3px;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .step__tick.is-done { background: var(--bg-3); border-color: var(--rule); color: var(--muted-2); }
  .step__tick.is-done .step__tick-box { position: relative; background: var(--ink); border-color: var(--ink); }

  .step__tick.is-done .step__tick-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(43deg);
  }

  .step__tick .step__tick-label--done { display: none; }
  .step__tick.is-done .step__tick-label--todo { display: none; }
  .step__tick.is-done .step__tick-label--done { display: inline; }
}

.rail__list { display: flex; flex-direction: column; gap: 6px; }

.rail__item {
  display: grid;
  grid-template-columns: 20px 1.6rem minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rail__item:hover { border-color: var(--ink); }

.rail__box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--rule-2);
  border-radius: 3px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rail__n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.rail__label { font-size: 14px; line-height: 1.35; color: var(--ink); }

.rail__item.is-done .rail__box {
  background: var(--ink);
  border-color: var(--ink);
  position: relative;
}

.rail__item.is-done .rail__box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}

.rail__item.is-done { background: var(--bg-3); border-color: var(--rule); }
.rail__item.is-done .rail__label { color: var(--muted-2); }
.rail__item.is-done .rail__n { color: var(--muted-2); }

/* ---------------------------------------------------------------
   A heading that keeps its own column
   --------------------------------------------------------------- */
.split { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); }
  .split__side { position: sticky; top: calc(var(--nav-h) + 24px); }
}

.split__note {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: 38ch;
}

.split .faq { margin-top: 0; }

/* Install is a real sequence, so it is numbered. */
.steps { border-top: 1px solid var(--rule-2); }

.step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 clamp(16px, 2vw, 28px);
  padding-block: clamp(20px, 2.4vw, 28px);
  border-bottom: 1px solid var(--rule-2);
}

.step__n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}

.step__title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.025em; }
.step__body { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--body); }

.terminal { margin-top: clamp(32px, 4vw, 48px); }
.terminal__title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.025em; }
.terminal__body { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--body); }

.terminal__code {
  margin: 18px 0 0;
  padding: clamp(18px, 2vw, 24px);
  background: var(--dark);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  max-width: 100%;
  overflow-x: auto;
}

/* Sideways scrolling inside a code block is miserable on a phone. Wrapping is
   only visual: pre-wrap keeps the real line breaks, so a copied command is
   still the command. */
@media (max-width: 620px) {
  .terminal__code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }
}

.faq { border-top: 1px solid var(--rule); }

.faq__item { padding-block: clamp(18px, 2.2vw, 24px); border-bottom: 1px solid var(--rule); }
.faq__q { font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; letter-spacing: -0.02em; }
.faq__a { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--body); }
.faq__foot { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------
   Prompt library
   --------------------------------------------------------------- */
.prompts { padding-block: clamp(44px, 6vw, 88px); }

.prompt { padding-block: clamp(28px, 3.6vw, 46px); border-bottom: 1px solid var(--rule); }
.prompt:first-child { padding-top: 0; }

.prompt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

.prompt__name {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.prompt__for {
  margin-top: 8px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--body-2);
  max-width: 52ch;
}

.copy {
  flex: none;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy:hover { border-color: var(--ink); }
.copy.is-copied { background: var(--accent); border-color: var(--accent); color: var(--dark-2); }

.prompt__body {
  margin: 0;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--bg-3);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Every bracket is something the reader has to supply. */
.ph {
  color: var(--accent-ink);
  background: rgba(216, 155, 2, 0.12);
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
}

/* Type your own words straight into the brackets. The prompt around them is
   not editable, so the only thing that can change is your part. */
.ph--fill {
  cursor: text;
  border-bottom: 1px dashed var(--accent);
  transition: background 0.18s ease;
}

.ph--fill:hover { background: rgba(216, 155, 2, 0.22); }

.ph--fill:focus {
  outline: none;
  background: rgba(216, 155, 2, 0.3);
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.ph--fill.is-filled { background: rgba(61, 29, 6, 0.07); border-bottom-style: solid; color: var(--ink); }

.cross {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--dark);
  color: #fff;
  border-radius: 4px;
}

.cross__title { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.025em; }
.cross__body { margin-top: 8px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); max-width: 54ch; }
.cross .btn--solid { background: var(--accent); color: var(--dark-2); flex: none; }
.cross .btn--solid:hover { background: #fff; }

/* ---------------------------------------------------------------
   Updates
   --------------------------------------------------------------- */
.updates { border-top: 1px solid var(--rule); max-width: 78ch; }

.update { padding-block: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--rule); }

.update__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  padding: 4px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
}

.chip.chip--version {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.update__title {
  margin-top: 12px;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.update__title a:hover { color: var(--accent); }

.update__excerpt { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--body); }

.update__go {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-2);
}

.update__go span { color: var(--accent); }
.update__go:hover { color: var(--accent); }

.updates__empty { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 50ch; }

.pagination { margin-top: clamp(24px, 3vw, 36px); }

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin-right: 6px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--body-2);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------------------------------------------------------
   Posts, until /updates gets its own templates
   --------------------------------------------------------------- */
.prose { max-width: 72ch; margin-inline: 0 auto; }

.entry + .entry { margin-top: clamp(28px, 3.4vw, 44px); padding-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--rule); }

.entry__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.entry__title a:hover { color: var(--accent); }

.entry__meta {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.entry__excerpt, .entry__content { margin-top: 14px; font-size: 17px; line-height: 1.7; color: var(--body); }
.entry__content p + p { margin-top: 18px; }
.entry__content h2 { margin-top: 32px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.entry__content h3 { margin-top: 26px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.entry__content a { color: var(--accent-ink); border-bottom: 1px solid var(--rule-2); }
.entry__content ul, .entry__content ol { margin: 16px 0 0 20px; }
.entry__content li { margin-bottom: 8px; }

/* ---------------------------------------------------------------
   Voice document

   A tool rather than a form to scroll: the parts sit in a rail with their
   own counts, the fields run two across on a wide screen, and the preview
   shows the document being built.
   --------------------------------------------------------------- */
.voice { padding-block: clamp(32px, 4.5vw, 64px); }

.voice__grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }

@media (min-width: 1000px) {
  .voice__grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(36px, 4vw, 64px); }
  .voice__rail { position: sticky; top: calc(var(--nav-h) + 24px); }
}

.vpanel { padding: clamp(20px, 2.2vw, 26px); border: 1px solid var(--rule-2); border-radius: 4px; background: var(--bg-3); }

.vpanel__count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.vpanel__bar { margin-top: 10px; height: 4px; background: var(--rule-2); border-radius: 2px; overflow: hidden; }
.vpanel__bar span { display: block; height: 100%; width: var(--fill, 0%); background: var(--accent); transition: width 0.4s ease; }

.vparts { margin-top: 18px; border-top: 1px solid var(--rule-2); }
.vparts li { border-bottom: 1px solid var(--rule-2); }

.vpart {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
}

.vpart__name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.vpart:hover .vpart__name { color: var(--accent); }

.vpart__count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.vpart.is-done .vpart__count { color: var(--accent-ink); }

.vpanel__saved { margin-top: 14px; font-size: 11px; letter-spacing: 0.06em; color: var(--muted-2); }
.vpanel__note { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--body-2); }

.vpanel__notion { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.vpanel__notion .link-arrow { margin-top: 0; }

.voice__intro {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--body);
  max-width: 68ch;
  margin-bottom: clamp(24px, 3vw, 34px);
}

.vsection + .vsection { margin-top: clamp(32px, 4vw, 50px); }

.vsection__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.vsection__name {
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.vsection__count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Two across once there is room, and never more than two: these are short
   written answers, and a third column would make the lines too short to read. */
.vfields {
  display: grid;
  gap: 12px;
  margin-top: clamp(16px, 2vw, 22px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .vfields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.vfield {
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: var(--bg);
  transition: border-color 0.2s ease;
}

.vfield:focus-within { border-color: var(--accent); }

.vfield__label { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.vfield__hint { margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.vfield__input {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  resize: vertical;
  min-height: 5.5rem;
}

.vfield__input:focus { outline: none; }
.vfield__input::placeholder { color: var(--muted-2); }

/* ---------------------------------------------------------------
   The preview
   --------------------------------------------------------------- */
.vpreview { grid-column: 1 / -1; }

@media (min-width: 1000px) {
  /* Beside the rail, not under it. */
  .vpreview { grid-column: 2; }
}

.vpreview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.vpreview__title { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.03em; }

.vpreview__body {
  margin: 18px 0 0;
  padding: clamp(20px, 2.4vw, 32px);
  max-width: 88ch;
  background: var(--bg-3);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
  white-space: pre-wrap;
  overflow-x: auto;
}

.example { margin-top: 18px; border: 1px solid var(--rule-2); border-radius: 4px; }

.example__summary {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.example__body {
  padding: 4px 18px 22px;
  border-top: 1px solid var(--rule);
  max-height: 60vh;
  overflow-y: auto;
}

.example__body h2 { margin-top: 24px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.example__body h3 { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--body); }
.example__body p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--body); }
.example__body ul { margin: 10px 0 0 18px; }
.example__body li { font-size: 14px; line-height: 1.6; color: var(--body); margin-bottom: 4px; }

/* ---------------------------------------------------------------
   Signup

   Rendered by the Subscribers plugin, styled here so it matches whatever
   section it sits in.
   --------------------------------------------------------------- */
.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup__fields { display: grid; gap: 10px; }

@media (min-width: 640px) {
  .signup__fields { max-width: 30rem; }
}

.signup__field { margin: 0; }

.signup__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Underline fields, not boxes, like the rest of the site's rules. */
.signup__input {
  width: 100%;
  margin-top: 8px;
  padding: 11px 2px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.signup__input::placeholder { color: var(--muted-2); }
.signup__input:focus { outline: none; border-bottom-color: var(--accent); }

.signup__btn { margin-top: 18px; }

.signup__message {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
}

.signup__note { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------
   The holding page
   --------------------------------------------------------------- */
.is-holding { background: var(--accent); color: var(--dark); }

.holding {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(61, 29, 6, 0.05) 0 1px,
    transparent 1px 9px
  );
}

.holding__inner {
  width: 100%;
  display: grid;
  gap: clamp(28px, 4vh, 48px);
  padding-block: clamp(36px, 8vh, 90px);
}

@media (min-width: 1000px) {
  .holding__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(48px, 6vw, 96px); }
  .holding__brand { grid-column: 1 / -1; }
  .holding__gate { margin-top: 4px; }

@media (min-width: 1000px) { .holding__gate { grid-column: 1 / -1; } }

.gate__summary {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(61, 29, 6, 0.66);
  cursor: pointer;
}

.gate__summary:hover { color: var(--dark); }

.gate__form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.gate__input {
  flex: 0 1 16rem;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(61, 29, 6, 0.35);
  border-radius: 999px;
}

.gate__input:focus { outline: none; border-color: var(--dark); background: #fff; }
.holding .gate__form .btn--solid { background: var(--dark); color: var(--accent); }
.gate__error { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--dark); }

.holding__foot { grid-column: 1 / -1; }
}

.holding__logo svg,
.holding__logo .nav__logo-img { height: 34px; width: auto; color: var(--dark); display: block; }

.holding .eyebrow--dark {
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(61, 29, 6, 0.72);
}

.holding .eyebrow__rule { width: 46px; height: 2px; background: var(--dark); }

.holding__title {
  margin-top: clamp(18px, 2.4vw, 30px);
  font-size: clamp(34px, 5.2vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 18ch;
}

.holding .dot { color: #fff; }

.holding__lede {
  margin-top: clamp(18px, 2.4vw, 28px);
  max-width: 52ch;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: rgba(61, 29, 6, 0.8);
}

/* Time left, in the book's own voice: plain numbers, no ticking drama. */
.countdown { margin-top: clamp(22px, 3vw, 32px); }

.countdown__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(61, 29, 6, 0.72);
}

.countdown__clock { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 34px); margin-top: 14px; }

.countdown__unit { display: flex; flex-direction: column; }

.countdown__n {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

.countdown__l {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(61, 29, 6, 0.6);
}

.holding__aside { display: grid; gap: 14px; align-content: start; }

.holding__form {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(61, 29, 6, 0.28);
  border-radius: 4px;
}

/* Told plainly that it arrived, rather than a line of small print. */
.holding__done { display: grid; gap: 10px; }

.holding__done-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.holding__tick {
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dark);
  color: var(--accent);
  font-size: 14px;
}

.holding__done-note { font-size: 14px; line-height: 1.6; color: rgba(61, 29, 6, 0.75); }

.holding__buy {
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(61, 29, 6, 0.22);
  border-radius: 4px;
}

.holding__buy-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(61, 29, 6, 0.7);
}

.holding__buy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.holding .btn--ghost { border-color: rgba(61, 29, 6, 0.4); color: var(--dark); }
.holding .btn--ghost:hover { border-color: var(--dark); background: var(--dark); color: var(--accent); }

.holding__buy-note { margin-top: 12px; font-size: 12px; color: rgba(61, 29, 6, 0.65); }

/* The early reader tick. */
.signup__beta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(61, 29, 6, 0.18);
  cursor: pointer;
}

.signup__beta input { margin-top: 3px; accent-color: var(--dark); width: 17px; height: 17px; }
.signup__beta-label { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.signup__beta-note { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: rgba(61, 29, 6, 0.68); }

.holding .signup__label { color: rgba(61, 29, 6, 0.7); }
.holding .signup__input { color: var(--dark); border-bottom-color: rgba(61, 29, 6, 0.35); }
.holding .signup__input::placeholder { color: rgba(61, 29, 6, 0.45); }
.holding .signup__input:focus { border-bottom-color: var(--dark); }
.holding .signup__note { color: rgba(61, 29, 6, 0.62); }
.holding .signup__message { color: var(--dark); }
.holding .btn--solid { background: var(--dark); color: var(--accent); }
.holding .btn--solid:hover { background: #fff; color: var(--dark); }

.holding__thanks {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(61, 29, 6, 0.28);
  font-size: 16px;
  font-weight: 600;
}

.holding__gate { margin-top: 4px; }

@media (min-width: 1000px) { .holding__gate { grid-column: 1 / -1; } }

.gate__summary {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(61, 29, 6, 0.66);
  cursor: pointer;
}

.gate__summary:hover { color: var(--dark); }

.gate__form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.gate__input {
  flex: 0 1 16rem;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(61, 29, 6, 0.35);
  border-radius: 999px;
}

.gate__input:focus { outline: none; border-color: var(--dark); background: #fff; }
.holding .gate__form .btn--solid { background: var(--dark); color: var(--accent); }
.gate__error { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--dark); }

.holding__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(61, 29, 6, 0.22);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(61, 29, 6, 0.7);
}

.holding__foot a:hover { color: var(--dark); }

/* ---------------------------------------------------------------
   Updates, email capture
   --------------------------------------------------------------- */
.sub { border-top: 1px solid var(--rule); background: var(--bg-3); padding-block: clamp(52px, 7vw, 96px); }

.sub__inner { display: grid; gap: clamp(28px, 4vw, 40px); }

@media (min-width: 900px) {
  .sub__inner { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: end; }
}

.sub__title {
  margin-top: clamp(16px, 2.2vw, 26px);
  font-size: clamp(26px, 3.1vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
}

.sub__body {
  margin-top: 18px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--body);
  max-width: 46ch;
}

.sub__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sub__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

/* Underline field, not a box. Keeps the section as quiet as the rules
   that structure the rest of the page. */
.sub__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 12px 2px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.sub__input::placeholder { color: var(--muted-2); }
.sub__input:focus { outline: none; border-bottom-color: var(--accent); }
.sub__input:focus-visible { outline: none; }

.sub__btn { flex: none; }

.sub__note { margin-top: 16px; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* ---------------------------------------------------------------
   The book
   --------------------------------------------------------------- */
.buy { background: var(--dark); color: #fff; padding-block: clamp(52px, 7vw, 96px); }

.buy__inner { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }

@media (min-width: 860px) {
  .buy__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); }
}

.buy__title {
  margin-top: clamp(16px, 2.2vw, 26px);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.buy__body {
  margin-top: 18px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  max-width: 52ch;
}

/* Three ways to get the book. Not a sequence, so no numbering: a name, what
   the edition is, and the action, on rules that match the rest of the site. */
.ways { border-top: 1px solid rgba(255, 255, 255, 0.16); }

.ways__item { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }

.ways__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 20px;
  padding-block: clamp(16px, 2vw, 22px);
}

.ways__name {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.ways__detail {
  grid-column: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.ways__action {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.ways__action span { display: inline-block; transition: transform 0.2s ease; }
.ways__link:hover .ways__action span { transform: translateX(4px); }
.ways__link:hover .ways__name { color: var(--accent); }

.ways__link--pending { cursor: default; }
.ways__link--pending .ways__name { color: rgba(255, 255, 255, 0.6); }
.ways__link--pending .ways__action { color: rgba(255, 255, 255, 0.38); }

/* The same rows on a white page: the colours above are for the dark band. */
.ways--light { border-top-color: var(--rule-2); margin-top: clamp(20px, 2.6vw, 30px); }
.ways--light .ways__item { border-bottom-color: var(--rule-2); }
.ways--light .ways__name { color: var(--ink); }
.ways--light .ways__detail { color: var(--muted); }
.ways--light .ways__action { color: var(--ink); }
.ways--light .ways__action span { color: var(--accent); }
.ways--light .ways__link:hover .ways__name { color: var(--accent); }
.ways--light .ways__detail { color: var(--body-2); }

.btn--on-dark.btn--solid { background: var(--accent); color: var(--dark-2); }
.btn--on-dark.btn--solid:hover { background: #fff; }
.btn--on-dark.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn--on-dark.btn--ghost:hover { border-color: #fff; }

/* ---------------------------------------------------------------
   About strip
   --------------------------------------------------------------- */
.who { padding-block: clamp(48px, 6vw, 88px); }

.who__title {
  margin-top: clamp(14px, 2vw, 22px);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.who__body {
  margin-top: 16px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  color: var(--body);
  max-width: 60ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.link-arrow span { color: var(--accent); transition: transform 0.2s ease; display: inline-block; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); padding-top: clamp(40px, 5vw, 64px); }

.site-footer__grid {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr)); gap: clamp(32px, 5vw, 72px); }
}

.site-footer__brand { grid-column: 1 / -1; }

@media (min-width: 900px) { .site-footer__brand { grid-column: auto; } }

.site-footer__logo { display: block; margin-bottom: 14px; color: var(--ink); }
.site-footer__logo svg { height: 26px; width: auto; display: block; }
.site-footer__logo .nav__logo-img { height: 26px; width: auto; display: block; }

.site-footer__mark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-footer__note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}

.site-footer__col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.site-footer__links { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }

.site-footer__links a {
  font-size: 13px;
  color: var(--body-2);
  transition: color 0.18s ease;
}

.site-footer__links a:hover { color: var(--accent); }

.site-footer__heart { color: var(--accent); font-size: 12px; }

.site-footer__credit-link {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.18s ease;
}

.site-footer__credit-link:hover { color: var(--accent); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-block: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
}
