@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("assets/fonts/azeret-mono-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f3e8d6;
  --paper-2: #e8d8be;
  --paper-3: #fbf5e9;
  --ink: #241710;
  --ink-soft: #6d5140;
  --line: rgba(36, 23, 16, 0.2);
  --line-strong: rgba(36, 23, 16, 0.45);
  --copper: #a34c20;
  --copper-deep: #7c3614;
  --crema: #d9a45f;
  --roast: #3b2318;
  --roast-2: #2a1710;
  --cold: #4f6f79;
  --clean: #62624a;
  --pad: clamp(18px, 4.5vw, 64px);
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--copper) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--copper); color: var(--paper-3); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
img { max-width: 100%; }

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--copper);
  color: var(--paper-3);
  padding: 0.85rem 1.1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--roast);
  color: var(--paper-3);
  border-bottom: 3px solid var(--copper);
}

.bar-in {
  max-width: 1320px;
  margin-inline: auto;
  padding: 0 var(--pad);
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--paper-3);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-a { font-stretch: 112%; }
.brand-b {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crema);
}

.bar-tool {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 245, 233, 0.65);
  white-space: nowrap;
}

.reset {
  background: transparent;
  border: 1px solid rgba(251, 245, 233, 0.4);
  color: var(--paper-3);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.reset:hover { border-color: var(--crema); color: var(--crema); }

/* ---------- intro ---------- */

.intro {
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) var(--pad) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6.2vw, 5.8rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.93;
  letter-spacing: -0.045em;
  max-width: 14ch;
  text-wrap: balance;
}

.standfirst {
  margin: 26px 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.intro-note {
  margin: 22px 0 0;
  border-left: 2px solid var(--copper);
  padding-left: 14px;
  max-width: 52ch;
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- ticket ---------- */

.ticket {
  margin: 0;
  justify-self: end;
  width: min(100%, 380px);
  background: var(--paper-3);
  border: 1px solid var(--ink);
  padding: 18px 18px 14px;
  transform: rotate(-1.2deg);
  position: relative;
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--line);
  pointer-events: none;
}

.ticket-top,
.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
}
.ticket-top { border-bottom: 1px dashed var(--line-strong); padding-bottom: 10px; }
.ticket-foot { border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.ticket-foot span:first-child {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticket .mono { font-size: 0.6rem; }

.ticket-body { padding: 18px 0 14px; position: relative; }
.ticket-big {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ticket-sub {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ticket-grid div { display: flex; flex-direction: column; gap: 2px; }
.ticket-grid dt {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticket-grid dd { margin: 0; font-size: 1rem; font-weight: 700; }

.stamp {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  transform: rotate(7deg);
}

/* ---------- build ---------- */

.build {
  background: var(--paper-2);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(36px, 5vw, 56px) 0;
}
.build-in { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

.build-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}
.build-head .mono { margin: 0 0 8px; }
h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.preset {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
}
.preset:hover { background: var(--paper-3); border-color: var(--ink); }
.preset.is-on { background: var(--roast); border-color: var(--roast); color: var(--paper-3); }

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 5vw, 72px);
  margin-top: 8px;
}

.q {
  border-top: 1px solid var(--line);
  padding: 20px 0 22px;
  min-width: 0;
}
.q:nth-child(-n+2) { border-top: 0; }

.q-head { display: block; }
.q-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.q-title {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.q-hint {
  margin: 3px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 7px 9px 6px;
  text-align: left;
  cursor: pointer;
  min-width: 70px;
}
.chip:hover { background: var(--paper-3); border-color: var(--ink); }
.chip.is-on { background: var(--roast); border-color: var(--roast); color: var(--paper-3); }
.chip-label { display: block; font-size: 0.84rem; font-weight: 700; line-height: 1.1; }
.chip-note {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chip.is-on .chip-note { color: rgba(251, 245, 233, 0.7); }

/* ---------- bench ---------- */

.bench { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.bench-in { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

.bench-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}
.bench-head .mono { margin: 0 0 8px; }

.bench-clock { text-align: right; display: grid; justify-items: end; gap: 1px; }
.bench-clock strong {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.bench-clock .mono { font-size: 0.56rem; }

.lanes { margin-top: 8px; }

.lane {
  border-bottom: 1px solid var(--line);
  padding: 16px 0 10px;
}
.lane.is-over .lane-time b { color: var(--copper); }
.lane.is-open { border-bottom-color: var(--ink); }

.lane-head {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.lane-head:hover .lane-title strong { color: var(--copper); }

.lane-rank {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--copper);
  align-self: start;
  padding-top: 4px;
}
.lane-title { min-width: 0; }
.lane-title strong { display: block; font-size: 1.1rem; letter-spacing: -0.015em; overflow-wrap: break-word; }
.lane-title small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lane-time { text-align: right; }
.lane-time b { display: block; font-family: var(--mono); font-size: 1rem; font-weight: 600; }
.lane-time small {
  display: block;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lane-score {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: 64px;
  text-align: right;
}
.lane-score small {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.track {
  position: relative;
  height: 74px;
  margin: 8px 0 0;
}
.track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  height: 1px;
  background: var(--line);
}
.axis {
  position: absolute;
  top: 55px;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.axis-a { left: 0; }
.axis-b { right: 0; }

.blocks {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 27px;
}
.block {
  position: absolute;
  top: 0;
  height: 27px;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(36, 23, 16, 0.28);
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 25px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 4px;
}
.block.heat {
  background: repeating-linear-gradient(135deg, rgba(109, 81, 64, 0.22) 0 2px, transparent 2px 6px);
  color: var(--ink-soft);
}
.block.milk { background: var(--crema); color: var(--roast); }
.block.black { background: var(--roast); color: var(--paper-3); }
.block.cold { background: var(--cold); color: #fff; }
.block.clean { background: var(--clean); color: #fff; }

.deadline {
  position: absolute;
  top: 12px;
  bottom: 10px;
  left: var(--deadline);
  border-left: 1px dashed var(--copper);
  z-index: 2;
}
.deadline-label {
  position: absolute;
  top: 0;
  left: var(--deadline);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  background: var(--paper);
  padding: 0 3px;
  z-index: 3;
}
.marker {
  position: absolute;
  top: 44px;
  width: 1px;
  height: 18px;
  z-index: 2;
}
.marker::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--paper);
  border: 1px solid var(--ink);
}
.marker.first::before { border-color: var(--copper); background: var(--copper); }
.marker.last { border-left: 1px solid var(--ink); }
.marker.first { border-left: 1px solid var(--copper); }
.playhead {
  position: absolute;
  top: 10px;
  bottom: 6px;
  left: 0;
  width: 1px;
  background: var(--copper);
  opacity: 0;
  z-index: 4;
}
.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.is-running .block {
  animation: block-in 0.16s linear both;
  animation-delay: var(--delay);
}
.is-running .playhead { animation: sweep 2.2s linear both; opacity: 1; }

@keyframes block-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes sweep {
  from { left: 0; }
  to { left: 100%; }
}

.lane-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.lane-note b { color: var(--ink); }
.lane.is-over .lane-note b { color: var(--copper); }

.lane-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 24px;
  background: var(--paper-3);
  border: 1px solid var(--ink);
  padding: 16px 18px;
  margin-top: 10px;
}
.lane-detail[hidden] { display: none; }
.lane-detail p { margin: 0 0 8px; font-size: 0.84rem; line-height: 1.5; }
.lane-detail p:last-child { margin-bottom: 0; }
.lane-detail b { color: var(--copper-deep); }
.lane-buy { border-left: 1px solid var(--line); padding-left: 18px; }
.lane-buy .mono { margin: 0; font-size: 0.52rem; }
.lane-cost { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.lane-buy a {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.bench-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.run {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: var(--paper-3);
  border: 0;
  padding: 13px 17px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.run:hover { background: var(--copper-deep); }
.run:disabled { opacity: 0.55; cursor: wait; }
.run .arrow { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.run-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.6;
}

/* ---------- shortlist ---------- */

.verdict {
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line-strong);
}
.verdict-in { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
.sec-head .mono { margin: 0 0 8px; }
.sec-note {
  margin: 0;
  max-width: 42ch;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: right;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  padding: 18px;
  min-height: 300px;
  text-align: left;
  color: inherit;
  font-family: var(--sans);
  cursor: pointer;
}
.card:hover { border-color: var(--ink); }
.card.is-selected { background: var(--roast); border-color: var(--roast); color: var(--paper-3); }
.card.is-selected .mono,
.card.is-selected .card-class,
.card.is-selected .card-stats small { color: rgba(251, 245, 233, 0.65); }
.card.is-selected .card-line { color: rgba(251, 245, 233, 0.78); }
.card.is-selected .card-line b { color: var(--crema); }
.card.is-selected .card-open { color: var(--crema); border-color: rgba(251, 245, 233, 0.3); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-top .mono { font-size: 0.52rem; }
.card-score {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.card-score small {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.card.is-selected .card-score small { color: rgba(251, 245, 233, 0.65); }

.card-name {
  display: block;
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.card-class {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.card-stats b { display: block; font-family: var(--mono); font-size: 0.9rem; font-weight: 600; }
.card-stats small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card-line {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.card-line b { display: block; margin-bottom: 4px; color: var(--copper-deep); font-weight: 700; }
.card-open {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.levers { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 16px; }
.levers .mono { margin: 0 0 8px; font-size: 0.56rem; }
.lever-row { display: flex; flex-wrap: wrap; gap: 6px; }
.lever {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 11px;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.lever:hover { background: var(--roast); border-color: var(--roast); color: var(--paper-3); }
.lever-note {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--copper-deep);
}

.empty {
  border: 1px solid var(--line-strong);
  padding: 28px;
  background: var(--paper-3);
}
.empty h3 { margin: 6px 0; }
.empty p { margin: 0; color: var(--ink-soft); }

/* ---------- detail ---------- */

.detail {
  background: var(--roast);
  color: var(--paper-3);
  border-top: 4px solid var(--copper);
  padding: clamp(40px, 6vw, 72px) 0;
}
.detail-in {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
}
.detail .mono { color: var(--crema); }
.detail h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.04em; }
.detail h3 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crema);
}
.detail-class {
  margin: 8px 0 18px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 245, 233, 0.65);
}
.detail-why {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(251, 245, 233, 0.86);
}
.detail-why b { color: var(--crema); }
.detail-change {
  margin: 16px 0;
  border-left: 2px solid var(--crema);
  padding-left: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--paper-3);
}
.price-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid var(--crema);
  padding: 11px 14px;
  color: var(--paper-3);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-link:hover { background: var(--crema); color: var(--roast); }
.price-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(251, 245, 233, 0.2);
}
.steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(251, 245, 233, 0.12);
}
.step-name {
  font-size: 0.7rem;
  text-transform: capitalize;
  color: rgba(251, 245, 233, 0.8);
}
.step-bar { height: 7px; background: rgba(251, 245, 233, 0.12); }
.step-bar i { display: block; height: 100%; background: var(--crema); }
.step-bar i.heat { background: rgba(251, 245, 233, 0.35); }
.step-bar i.black { background: #8a5a3a; }
.step-bar i.cold { background: var(--cold); }
.step-bar i.clean { background: var(--clean); }
.step-time {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-align: right;
  color: rgba(251, 245, 233, 0.65);
}
.detail-fine {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: rgba(251, 245, 233, 0.55);
}

.detail-col h3:not(:first-child) { margin-top: 24px; }

.counter-view {
  border: 1px solid rgba(251, 245, 233, 0.25);
  padding: 10px 10px 8px;
}
.counter-ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  color: rgba(251, 245, 233, 0.55);
  margin-bottom: 6px;
}
.counter-surface {
  position: relative;
  height: 118px;
  border-bottom: 2px solid rgba(251, 245, 233, 0.4);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(251, 245, 233, 0.08) calc(10% - 1px) 10%);
}
.counter-machine {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--crema);
  border: 1px solid var(--paper-3);
  color: var(--roast);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  min-width: 42px;
}
.counter-clear {
  position: absolute;
  bottom: 0;
  height: 100%;
  border-left: 1px dashed var(--crema);
  background: rgba(217, 164, 95, 0.12);
}
.counter-note {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  color: rgba(251, 245, 233, 0.55);
}

.cost { border-top: 1px solid rgba(251, 245, 233, 0.2); padding-top: 8px; }
.cost-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 48px;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
}
.cost-label { font-size: 0.7rem; color: rgba(251, 245, 233, 0.8); }
.cost-bar { height: 8px; background: rgba(251, 245, 233, 0.12); }
.cost-bar i { display: block; height: 100%; background: var(--crema); }
.cost-val { font-family: var(--mono); font-size: 0.56rem; text-align: right; }
.cost-note {
  grid-column: 2 / -1;
  margin-top: -4px;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.03em;
  color: rgba(251, 245, 233, 0.5);
}
.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(251, 245, 233, 0.35);
  margin-top: 8px;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cost-total b { font-family: var(--sans); font-size: 1.4rem; letter-spacing: -0.03em; }

/* ---------- catalogue ---------- */

.catalogue {
  padding: clamp(40px, 6vw, 72px) 0;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); margin-top: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 1000px; }
th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.4;
  vertical-align: top;
}
tbody tr:hover { background: var(--paper-2); }
tbody tr.is-selected { background: var(--paper-2); }
td small { display: block; font-family: var(--mono); font-size: 0.48rem; color: var(--ink-soft); }
.row-pick {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font-family: var(--sans);
  cursor: pointer;
}
.row-pick span { display: block; font-weight: 700; }
.row-pick small { margin-top: 2px; }
.row-pick:hover span { color: var(--copper-deep); }
.row-pick.is-disabled { display: block; cursor: default; opacity: 0.55; font-weight: 700; }
.row-pick.is-disabled:hover span { color: inherit; }
.row-buy {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.fit-pill {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 0.55rem;
}
.table-note {
  margin: 12px 0 0;
  max-width: 78ch;
  font-family: var(--mono);
  font-size: 0.55rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

/* ---------- method ---------- */

.method {
  border-top: 1px solid var(--ink);
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.method summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.method summary::-webkit-details-marker { display: none; }
.method summary .mono:first-child { color: var(--ink); }
.method summary .mono:last-child { color: var(--copper); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding: 8px 0 56px;
}
.method h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -0.01em; }
.method p { margin: 0 0 10px; font-size: 0.82rem; line-height: 1.6; color: var(--ink-soft); }
.method .fine {
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.weights { list-style: none; margin: 12px 0; padding: 0; }
.weights li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed var(--line);
  padding: 5px 0;
  font-size: 0.76rem;
}
.weights li span:last-child { font-family: var(--mono); font-size: 0.62rem; }
.conflicts { margin: 8px 0 0; padding-left: 18px; }
.conflicts li { margin-bottom: 7px; font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); }
.conflicts b { color: var(--ink); }
.sources { list-style: none; margin: 0; padding: 0; columns: 1; }
.sources li { border-bottom: 1px solid var(--line); padding: 4px 0; font-size: 0.7rem; break-inside: avoid; }
.sources a { color: var(--ink-soft); text-decoration: none; }
.sources a:hover { color: var(--copper-deep); text-decoration: underline; }

/* ---------- legibility floor ---------- */

.chip-note,
.card-stats small,
.cost-note,
td small,
.ticket-grid dt,
.lane-title small,
.lane-time small,
.axis,
.deadline-label,
.block,
.lane-buy .mono,
.lane-buy a,
.run-note,
.card-top .mono,
.card-class,
.card-open,
.lever-note,
.detail-class,
.detail h3,
.step-time,
.detail-fine,
.counter-ruler,
.counter-machine,
.counter-note,
.cost-val,
th,
.fit-pill,
.table-note,
.method .fine {
  font-size: 0.58rem;
}

/* ---------- footer ---------- */

.foot {
  background: var(--roast);
  color: var(--paper-3);
  border-top: 4px solid var(--copper);
}
.foot-disclosure {
  max-width: 900px;
  margin-inline: auto;
  padding: 28px var(--pad) 8px;
}
.foot-disclosure p {
  margin: 0;
  border: 1px solid rgba(251, 245, 233, 0.25);
  padding: 16px 18px;
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(251, 245, 233, 0.78);
}
.foot-disclosure b { color: var(--paper-3); }
.foot-in {
  max-width: 1320px;
  margin-inline: auto;
  padding: 18px var(--pad) 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
}
.foot-mark { margin: 0; font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; }
.foot .mono { color: rgba(251, 245, 233, 0.6); font-size: 0.55rem; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .intro { grid-template-columns: minmax(0, 1fr) 320px; }
  .detail-in { grid-template-columns: 1fr 1fr; }
  .detail-copy { grid-column: 1 / -1; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .ticket { justify-self: start; width: min(100%, 430px); transform: none; }
  h1 { max-width: 12ch; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .controls { grid-template-columns: 1fr; }
  .q:nth-child(2) { border-top: 1px solid var(--line); }
  .build-head, .bench-head, .sec-head { flex-direction: column; align-items: flex-start; }
  .presets { justify-content: flex-start; }
  .sec-note { text-align: left; max-width: 60ch; }
  .bench-clock { text-align: left; justify-items: start; }
  .lane-head { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .lane-time { display: none; }
  .lane-detail { grid-template-columns: 1fr; }
  .lane-buy { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 10px; }
  .detail-in { grid-template-columns: 1fr; }
  .detail-copy { grid-column: auto; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid > div:last-child { grid-column: auto; }
  .sources { columns: 2; }
}

@media (max-width: 380px) {
  .bar-tool { display: none; }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  .bar-in { min-height: 56px; gap: 10px; }
  .brand-b { display: none; }
  .bar-tool { font-size: 0.5rem; }
  .reset { padding: 6px 8px; font-size: 0.55rem; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  h2 { font-size: 1.7rem; }
  .intro { padding-top: 40px; }
  .ticket-big { font-size: 2rem; }
  .lane-head { gap: 10px; }
  .lane-score { font-size: 1.5rem; min-width: 48px; }
  .lane-title strong { font-size: 0.98rem; }
  .track { height: 80px; }
  .card-score { font-size: 2rem; }
  .sources { columns: 1; }
  .foot-in { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-running .block,
  .is-running .playhead { animation: none; opacity: 1; }
  .block { opacity: 1; }
}
/* Related decisions, last-checked line and touch targets (added 2026-11-06) */
.related-tools { padding-top: 1.6rem; }
.related-title { margin: 0 0 0.5rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.related-tools ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.related-tools a { color: inherit; opacity: 0.9; }
.related-tools a:hover { opacity: 1; text-decoration: underline; }
.last-checked { margin: 0.55rem 0 0; font-size: 0.72rem; letter-spacing: 0.02em; opacity: 0.7; }

/* The quotable answer under the h1. */
.lede-answer { max-width: 62ch; margin: 0 0 0.9rem; font-size: 1.06em; line-height: 1.6; }
