/* ============================================================
   pigments
   ============================================================ */
:root {
  /* graphite, cool-neutral. the old names are kept so every rule that
     already references them lands in the right place on the dark ground. */
  --cream: #12141a;        /* page ground */
  --cream-2: #1b1f27;      /* recessed fill */
  --card: #1a1e26;         /* raised surface */
  --band: #0c0e12;         /* deepest, for full-bleed bands */

  --ink: #e7e9ee;          /* primary text */
  --ink-2: #d3d7df;
  --ink-3: #b4bac6;
  --ink-soft: #949bab;
  --ink-faint: #79818f;

  --vermilion: #c96a52;    /* the cut */
  --vermilion-lo: #33211d;
  --saffron: #c3a054;      /* the record */
  --saffron-lo: #2b2618;
  --teal: #57a894;         /* the survivor */
  --teal-bright: #6fc4ad;
  --teal-lo: #1a2c2a;
  --indigo: #6b86b8;

  --rule: #2c323d;
  --hair: #3a4150;

  --serif: "Newsreader", Georgia, serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

html {
  color-scheme: dark;
}
::selection {
  background: var(--teal-lo);
  color: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 0.98rem + 0.22vw, 1.16rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

/* paper tooth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings:
    "SOFT" 20,
    "WONK" 1;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration-color: var(--vermilion);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--vermilion);
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
}
strong {
  font-weight: 600;
}

.sheet {
  max-width: 78rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
section {
  padding-block: clamp(3rem, 7vw, 6rem);
}
.prose {
  max-width: var(--measure);
}
h2.plate-title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  margin-bottom: 1rem;
}
.lede {
  font-size: clamp(1.14rem, 1rem + 0.62vw, 1.45rem);
  line-height: 1.42;
}

/* chips + rules */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3em 0.65em;
  background: var(--ink);
  color: var(--cream);
}
.chip.v {
  background: var(--vermilion);
}
.chip.s {
  background: var(--saffron);
  color: var(--ink);
}
.chip.t {
  background: var(--teal);
}
.chip.i {
  background: var(--indigo);
}
.plate-no {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}
.plate-no .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.plate-no::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--ink);
}
hr.plate-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ============================================================
   DARK BAND — masthead, title, demo
   ============================================================ */
.band {
  background: var(--band);
  color: var(--ink);
  border-block: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(246, 239, 221, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 239, 221, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
}
.band > * {
  position: relative;
  z-index: 1;
}
.band a {
  text-decoration-color: var(--saffron);
}
.band a:hover {
  color: var(--saffron);
}

.masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(246, 239, 221, 0.22);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 239, 221, 0.62);
}

.mast-links {
  display: flex;
  gap: 1.2rem;
}
.mast-links a {
  color: var(--saffron);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.mast-links a:hover {
  border-bottom-color: var(--saffron);
  color: var(--saffron);
}

.hero-head {
  display: grid;
  gap: clamp(1.2rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  align-items: end;
  padding-block: clamp(2rem, 5vw, 3.6rem) clamp(1.4rem, 3vw, 2.4rem);
}
@media (min-width: 58rem) {
  .hero-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}
.hero-head h1 {
  font-size: clamp(2.7rem, 1.2rem + 6vw, 6.2rem);
  font-weight: 700;
  font-variation-settings:
    "SOFT" 10,
    "WONK" 1;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.hero-head h1 span {
  display: block;
}
.v-diverge {
  color: var(--vermilion);
}
.v-record {
  color: var(--saffron);
}
.v-align {
  color: var(--teal-bright);
}
.hero-head .lede {
  color: rgba(246, 239, 221, 0.9);
}
.hero-head .lede em {
  color: #fff;
  font-style: normal;
  box-shadow: inset 0 -0.42em 0 rgba(216, 66, 42, 0.5);
}
.hero-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.75;
  color: rgba(246, 239, 221, 0.6);
  border-left: 3px solid var(--vermilion);
  padding-left: 0.9rem;
  max-width: 30rem;
}

/* ============================================================
   THE DEMO
   ============================================================ */
.demo {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}
@media (min-width: 62rem) {
  .demo {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
}

.terminal {
  background: var(--card);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  min-height: 24rem;
}
.terminal-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.95rem;
  background: var(--band);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 239, 221, 0.55);
}
#phase {
  color: var(--saffron);
}
.transcript {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.77rem;
  line-height: 1.6;
  /* fixed viewport — the transcript scrolls, the page does not grow */
  height: 19rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 239, 221, 0.25) transparent;
}
.transcript::-webkit-scrollbar {
  width: 6px;
}
.transcript::-webkit-scrollbar-thumb {
  background: rgba(246, 239, 221, 0.22);
}
.turn {
  opacity: 0;
  transform: translateY(6px);
  display: grid;
  grid-template-columns: 3.7rem 1fr;
  gap: 0.7rem;
  align-items: start;
}
.turn.shown {
  animation: settle 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes settle {
  to {
    opacity: 1;
    transform: none;
  }
}
.who {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 239, 221, 0.35);
  padding-top: 0.3em;
}
.turn[data-who="you"] .who {
  color: var(--vermilion);
}
.said {
  color: rgba(246, 239, 221, 0.68);
}
.turn[data-who="you"] .said {
  color: var(--ink);
}
.turn.pivot .said {
  box-shadow: inset 0 -0.5em 0 rgba(216, 66, 42, 0.42);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  background: var(--band);
  flex-wrap: wrap;
}
button {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream-2);
  border: 1px solid var(--hair);
  padding: 0.44rem 0.85rem;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    background 0.15s ease,
    color 0.15s ease;
}
button:hover {
  background: var(--vermilion);
  border-color: var(--vermilion);
  color: var(--band);
}
button:active {
  transform: translateY(1px);
}
button:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}
button[disabled] {
  opacity: 0.3;
  cursor: default;
}
button[disabled]:hover {
  background: var(--cream);
  border-color: var(--ink);
  color: var(--ink);
}
.controls button {
  border-color: var(--hair);
}
button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--band);
}
button.primary:hover {
  background: var(--vermilion);
  border-color: var(--vermilion);
}
.tick {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(246, 239, 221, 0.45);
  margin-left: auto;
}

.tray {
  background: rgba(246, 239, 221, 0.05);
  border: 1px solid rgba(246, 239, 221, 0.16);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.tray-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(246, 239, 221, 0.2);
  padding-bottom: 0.55rem;
  margin-bottom: 0.85rem;
  font-family: var(--mono);
}
.tray-path {
  font-size: 0.69rem;
  color: var(--saffron);
}
.tray-count {
  font-size: 0.64rem;
  color: rgba(246, 239, 221, 0.45);
}
.tray-empty {
  font-family: var(--mono);
  font-size: 0.71rem;
  color: rgba(246, 239, 221, 0.35);
  line-height: 1.9;
  padding: 2rem 0.2rem;
  text-align: center;
}
.slips {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.slip {
  background: var(--card);
  color: var(--ink-soft);
  border-left: 5px solid var(--saffron);
  padding: 0.62rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.69rem;
  line-height: 1.55;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  animation: drop 0.5s cubic-bezier(0.2, 1.1, 0.4, 1) both;
  transition: border-color 0.3s ease;
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-10px) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.slip b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed var(--hair);
  font-size: 0.66rem;
}
.slip .sl {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.655rem;
  line-height: 1.5;
}
.slip .sl:last-child {
  margin-bottom: 0;
}
.slip .sl i {
  font-style: normal;
  font-weight: 600;
}
.slip .sl.a i {
  color: var(--indigo);
}
.slip .sl.b i {
  color: var(--saffron);
}
.slip .sl.c i {
  color: var(--vermilion);
}
.slip.used {
  border-left-color: var(--teal);
}
.tray-foot {
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(246, 239, 221, 0.25);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.8;
  color: rgba(246, 239, 221, 0.5);
  animation: settle 0.5s ease both;
}
/* carries align's colour, because that is where it goes */
.tray-foot .cta {
  display: block;
  margin-top: 0.6rem;
  background: var(--teal-bright);
  color: var(--ink);
  text-align: center;
  padding: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.12s ease;
}
.tray-foot .cta:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ============================================================
   INSTALL BAND
   ============================================================ */
.install-band {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 6px solid var(--saffron);
}
/* the band runs straight into the footer — no paper strip between them */
.install-band + footer {
  margin-top: 0;
  border-top: 1px solid rgba(246, 239, 221, 0.18);
}
.install-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 58rem) {
  .install-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}
.install-title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  color: var(--ink);
  margin: 1rem 0 1rem;
  line-height: 0.98;
}
.install-lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.45;
  color: rgba(246, 239, 221, 0.82);
  max-width: 26rem;
}
.install-foot {
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.8;
  color: rgba(246, 239, 221, 0.55);
  border-left: 3px solid var(--saffron);
  padding-left: 0.9rem;
  margin: 1.6rem 0 0;
  max-width: 27rem;
}
.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.install-steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.install-steps .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--band);
  background: var(--teal-bright);
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
}
.install-steps p {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}
.install-steps p.sub {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(246, 239, 221, 0.55);
}
.install-steps pre {
  background: rgba(231, 233, 238, 0.05);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--saffron);
  color: var(--ink);
  font-size: 0.86rem;
  padding: 0.7rem 0.9rem;
  user-select: all;
  /* a one-line command is longer than a phone is wide: let it scroll on its
     own rather than widening the whole document */
  overflow-x: auto;
}
.hacking {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(246, 239, 221, 0.2);
  padding-top: 1.2rem;
  max-width: 44rem;
}
.hacking summary {
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  cursor: pointer;
}
.hacking p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(246, 239, 221, 0.65);
  margin: 0.9rem 0;
}
.hacking pre {
  background: rgba(231, 233, 238, 0.05);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.76rem;
}

/* ============================================================
   PLATES
   ============================================================ */
.panels {
  display: grid;
  gap: 0;
  border: 3px solid var(--ink);
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 48rem) {
  .panels {
    grid-template-columns: repeat(3, 1fr);
  }
}
.panel {
  padding: clamp(1.1rem, 3vw, 1.8rem);
  min-height: 12rem;
  border-bottom: 3px solid var(--ink);
}
.panel:last-child {
  border-bottom: 0;
}
@media (min-width: 48rem) {
  .panel {
    border-bottom: 0;
    border-right: 3px solid var(--ink);
  }
  .panel:last-child {
    border-right: 0;
  }
}
.panel:nth-child(1) {
  background: var(--saffron-lo);
}
.panel:nth-child(2) {
  background: var(--cream-2);
}
.panel:nth-child(3) {
  background: var(--vermilion-lo);
}
.panel-n {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.9rem;
}
.panel p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}
.panel-quote {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--vermilion);
  margin-bottom: 0.6rem;
  display: block;
}

figure {
  margin: 0;
}
.figure-frame {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: clamp(1rem, 2.5vw, 1.8rem);
  box-shadow: 0 1px 0 var(--hair) inset;
}
figcaption {
  font-family: var(--mono);
  font-size: 0.69rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  line-height: 1.65;
  border-top: 1px solid var(--hair);
  padding-top: 0.7rem;
}
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.ink {
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ink-thin {
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.leader {
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 1.1;
  stroke-dasharray: 2 3.4;
}
.lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}
.lbl-b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--ink);
}

/* record card */
.record-card {
  border: 3px solid var(--ink);
  background: var(--card);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  padding: 1.25rem 1.35rem;
  box-shadow: 10px 10px 0 var(--indigo);
}
.record-fm {
  color: var(--ink-faint);
  border-bottom: 2px dashed var(--hair);
  padding-bottom: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.7rem;
}
.record-line {
  margin-bottom: 0.85rem;
  display: block;
}
.record-line:last-child {
  margin-bottom: 0;
}
.record-line b {
  color: var(--ink);
}
.record-line.k1 b {
  color: var(--indigo);
}
.record-line.k2 b {
  color: var(--saffron);
}
.record-line.k3 b {
  color: var(--vermilion);
}
.record-line span {
  color: var(--ink-soft);
}

.annotations {
  display: grid;
  gap: 1.3rem;
  margin-top: 2rem;
}
@media (min-width: 52rem) {
  .annotations {
    grid-template-columns: repeat(3, 1fr);
  }
}
.anno {
  border-top: 5px solid var(--ink);
  padding-top: 0.75rem;
}
.anno.k1 {
  border-color: var(--indigo);
}
.anno.k2 {
  border-color: var(--saffron);
}
.anno.k3 {
  border-color: var(--vermilion);
}
.anno h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.anno p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   ALIGNMENT STAGE
   ============================================================ */
.align-panel {
  border: 3px solid var(--ink);
  background: var(--card);
  margin-top: 2rem;
  box-shadow: 10px 10px 0 var(--teal);
}
.align-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 1rem;
  background: var(--band);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
#alignState {
  color: var(--saffron);
}
.align-body {
  padding: clamp(1rem, 2.5vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-height: 15rem;
}
.align-body button {
  border-color: var(--ink);
}
.astep {
  animation: settle 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.aline {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
.aline .ok {
  color: var(--teal);
  font-weight: 600;
}

.finding {
  border: 2px solid var(--teal);
  background: var(--teal-lo);
  padding: 1rem 1.1rem;
}
.finding .kind {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}
.finding h4 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.15;
}
.finding p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.finding ul {
  margin: 0.7rem 0 0;
  padding-left: 1.05rem;
  font-family: var(--mono);
  font-size: 0.71rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

.rule-proposal {
  border: 2px dashed var(--saffron);
  background: var(--saffron-lo);
  padding: 0.9rem 1.05rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink);
}
.rule-proposal em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 0.45rem;
}

.choices {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}
.choices .q {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  width: 100%;
  margin-bottom: 0.15rem;
}
.choices button.on {
  background: var(--ink);
  color: var(--cream);
}

.outcome {
  border: 2px solid var(--ink);
}
.outcome-file {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  background: var(--band);
  color: var(--ink);
}
.outcome pre {
  border: 0;
  background: var(--cream-2);
  color: var(--ink-soft);
  margin: 0;
  padding: 0.9rem 1rem;
  white-space: pre-wrap;
}
.outcome .added {
  color: var(--ink);
  font-weight: 500;
}
.outcome .added {
  background: rgba(14, 106, 86, 0.22);
  box-shadow: -3px 0 0 var(--teal);
  display: inline-block;
  width: 100%;
  padding-left: 0.4rem;
}
.verdict-note {
  border-top: 2px solid var(--ink);
  padding: 0.85rem 1rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  background: var(--card);
}
.verdict-note b {
  color: var(--teal);
}
.verdict-note.warn {
  background: var(--vermilion-lo);
}
.verdict-note.warn b {
  color: var(--vermilion);
}

/* shapes */
.shapes {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}
@media (min-width: 54rem) {
  .shapes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.shape {
  border: 3px solid var(--ink);
  padding: 1.2rem;
  background: var(--card);
}
.shape:nth-child(1) {
  box-shadow: 8px 8px 0 var(--vermilion);
}
.shape:nth-child(2) {
  box-shadow: 8px 8px 0 var(--saffron);
}
.shape:nth-child(3) {
  box-shadow: 8px 8px 0 var(--indigo);
}
.shape h3 {
  font-size: 1.3rem;
  margin: 0.8rem 0 0.45rem;
}
.shape p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.shape .verdict {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

/* principle */
.principle {
  background: var(--band);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--vermilion);
  padding: clamp(2rem, 5vw, 3.4rem);
}
.principle p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0;
}
.principle .after {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  line-height: 1.6;
  color: rgba(246, 239, 221, 0.78);
  max-width: var(--measure);
  margin-top: 1.3rem;
  letter-spacing: normal;
}
.principle em {
  color: var(--saffron);
  font-style: normal;
}

/* install */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.6rem;
  margin-top: 1.8rem;
}
@media (min-width: 50rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
.step {
  counter-increment: step;
  position: relative;
  padding-left: 2.7rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.1em;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--vermilion);
  padding: 0.28em 0.45em;
}
.step h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}
pre {
  margin: 0;
  overflow-x: auto;
  background: var(--band);
  color: var(--ink);
  border-left: 2px solid var(--saffron);
  border: 0;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.7;
}
pre .c {
  color: var(--ink-faint);
}
pre .k {
  color: var(--saffron);
}

.note-block {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--ink-soft);
  border-left: 5px solid var(--saffron);
  padding-left: 1rem;
  max-width: 46rem;
}

footer {
  background: var(--band);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-block: 2.2rem 3rem;
  margin-top: clamp(2.5rem, 7vw, 5rem);
}
.foot-grid {
  display: grid;
  gap: 1.6rem clamp(1.4rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
}
@media (min-width: 44rem) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}
.foot-grid h4 {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot-grid p,
.foot-grid ul {
  margin: 0;
}
.foot-grid ul {
  list-style: none;
  padding: 0;
}
.foot-mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.35;
}
.foot-beat {
  color: var(--ink-soft);
}
.foot-legal {
  color: var(--ink-faint);
}
footer a {
  color: var(--ink);
  text-decoration-color: var(--saffron);
}
.foot-grid [aria-current="page"] {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot-grid [aria-current="page"]::before {
  content: "\2014\00a0";
  color: var(--saffron);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.in {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .turn,
  .astep,
  .slip {
    opacity: 1 !important;
    transform: none !important;
  }
}
[hidden] {
  display: none !important;
}

/* ============================================================
   shared: site nav — added when the site became more than one page
   ============================================================ */
.topnav {
  position: relative;
  z-index: 5;
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.1rem var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topnav a {
  color: var(--ink-faint);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.topnav a:hover {
  color: var(--vermilion);
  border-bottom-color: var(--vermilion);
}
.topnav .sep {
  color: var(--hair);
}
.topnav .here {
  color: var(--ink-3);
}
