@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;
}

/* The Seat Box: a chair you sleep in, in a room with one lamp on. Warm
   near-black ground, bone ink, ember for heat and the action, sage for a seat
   proven to fit, clay for one measured too narrow, and a flat grey dash for a
   figure the maker never published. Nothing on this page is drawn to look
   roomier than the listing says. */
:root {
  --ground: #16120f;
  --ground-2: #1d1814;
  --sheet: #231d18;
  --sheet-2: #2b241e;
  --ink: #f2ece2;
  --muted: #a69a8b;
  --line: rgba(242, 236, 226, 0.14);
  --line-2: rgba(242, 236, 226, 0.26);
  --line-3: rgba(242, 236, 226, 0.44);
  --fit: #8fae72;
  --fit-dim: rgba(143, 174, 114, 0.16);
  --amber: #d9a44e;
  --amber-dim: rgba(217, 164, 78, 0.16);
  --clay: #d4694e;
  --clay-dim: rgba(212, 105, 78, 0.16);
  --unknown: #8d8578;
  --unknown-dim: rgba(141, 133, 120, 0.14);
  --action: #e0763f;
  --action-ink: #1a1310;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", monospace;
  --max: 1380px;
  --gutter: clamp(18px, 4.2vw, 56px);
  --label: 0.6875rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
main section[id] { scroll-margin-top: 84px; }
main section[tabindex="-1"]:focus { outline: none; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    radial-gradient(circle at 18% 0%, rgba(224, 118, 63, 0.09), transparent 46%),
    repeating-linear-gradient(0deg, rgba(242, 236, 226, 0.022) 0 1px, transparent 1px 104px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--action); color: var(--action-ink); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) var(--ground); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--ground); }

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--ink); color: var(--ground);
  font-family: var(--mono); font-size: 0.75rem; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.mono {
  font-family: var(--mono); font-size: var(--label); line-height: 1.5;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.none { color: var(--unknown); font-style: italic; }
.warn { color: var(--amber); }

/* ---------- bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
.bar-in { display: flex; align-items: center; gap: 1.2rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; gap: 0.05rem; text-decoration: none; line-height: 1; }
.brand-a { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; font-stretch: 112%; }
.brand-b { font-family: var(--mono); font-size: var(--label); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--action); }
.bar-tool { margin-left: auto; color: var(--muted); }
.bar-live { font-size: 0.85rem; color: var(--muted); }
.bar-live b { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.social { display: flex; gap: 0.35rem; }
.social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  color: var(--muted); text-decoration: none; border: 1px solid transparent;
}
.social svg { width: 17px; height: 17px; }
.social a:hover, .social a:focus-visible { color: var(--ink); border-color: var(--line-2); }
.reset {
  min-height: 44px; padding: 0 0.9rem; background: transparent; color: var(--ink);
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.reset:hover { background: var(--ink); color: var(--ground); }

/* ---------- hero ---------- */
.intro { padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.intro h1 { font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 800; font-stretch: 112%; max-width: 20ch; }
.lede-answer { margin-top: 1.1rem; font-size: 1.08rem; max-width: 60ch; }
.last-checked {
  margin-top: 0.9rem; font-family: var(--mono); font-size: var(--label);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.intro-copy > p:not(.last-checked):not(.lede-answer) { margin-top: 1rem; max-width: 58ch; color: #d6cdc0; }
.intro-specs { display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: 1.5rem; list-style: none; border-top: 1px solid var(--line-2); padding-top: 0.9rem; }
.intro-specs li { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.25rem 0; }
.intro-specs .mono { color: var(--muted); }
.intro-specs b { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }

.card { margin: 0; padding: 1.1rem 1.2rem 1.2rem; background: var(--sheet); border: 1px solid var(--line-2); }
.card-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.card-foot { margin-top: 0.9rem; font-family: var(--mono); font-size: 1rem; }
.card-use { margin-top: 0.2rem; font-size: 0.85rem; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; margin: 1.1rem 0 0; }
.card-grid dt { color: var(--muted); }
.card-grid dd { margin: 0.2rem 0 0; font-family: var(--mono); font-size: 0.85rem; }
.card-link { color: var(--action); }
.card-verdict {
  display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.1rem;
  padding-top: 0.9rem; border-top: 1px solid var(--line-2);
}
.card-verdict .mono { color: var(--muted); }
.card-verdict b { font-size: 1.15rem; letter-spacing: -0.02em; }

/* ---------- note ---------- */
.note {
  display: grid; grid-template-columns: minmax(130px, 170px) 1fr; gap: 1rem 1.6rem;
  padding: 1.1rem 1.2rem; background: var(--ground-2); border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
}
.note-tag { color: var(--amber); }
.note ul { list-style: none; display: grid; gap: 0.5rem; }
.note li { padding-left: 1rem; position: relative; font-size: 0.95rem; color: #d6cdc0; }
.note li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; background: var(--amber); }

/* ---------- section heads ---------- */
.sec-head { margin: 0 0 1.4rem; max-width: 76ch; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.sec-head p { margin-top: 0.7rem; color: #cdc3b6; }
.bench, .shelf, .audit, .catalogue, .method { padding: clamp(2.2rem, 4vw, 3.4rem) 0; }
.bench, .shelf, .audit { border-top: 1px solid var(--line); }

/* ---------- presets ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; align-items: center; }
.preset {
  display: flex; flex-direction: column; gap: 0.15rem; min-height: 48px;
  padding: 0.5rem 0.85rem; background: var(--sheet); color: var(--ink);
  border: 1px solid var(--line-2); text-align: left;
}
.preset b { font-size: 0.92rem; }
.preset .mono { color: var(--muted); }
.preset:hover, .preset:focus-visible { border-color: var(--action); }
.preset-hint { flex: 1 1 18ch; font-size: 0.82rem; color: var(--muted); }

/* ---------- bench ---------- */
.bench-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.85fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
.stage { min-width: 0; }
.stage-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); padding-bottom: 0.5rem; border-bottom: 1px solid var(--line-2); }
.stage-figure { margin: 0; }
.stage-figure svg { display: block; width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--line); border-top: 0; }
.stage-cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; color: var(--muted); }

/* the drawing */
.box-head { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--muted); }
.box-name { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink); }
.box-dim { font-family: var(--mono); font-size: 12.5px; fill: var(--muted); }
.box-dim.is-stated { fill: var(--fit); }
.box-dim.is-unstated { fill: var(--unknown); }
.box-you { font-family: var(--mono); font-size: 12.5px; fill: var(--amber); }
.seat-box { fill: rgba(242, 236, 226, 0.04); stroke-width: 2; }
.seat-box.is-stated { stroke: var(--fit); }
.seat-box.is-unstated { stroke: var(--unknown); stroke-dasharray: 9 7; }
.box-gap { stroke: var(--sheet); stroke-width: 5; }
.body { fill: var(--amber-dim); stroke: var(--amber); stroke-width: 1.5; }
.body.is-fails { fill: var(--clay-dim); stroke: var(--clay); }
.body.is-clears { fill: var(--fit-dim); stroke: var(--fit); }
.body-back { stroke: var(--ink); stroke-width: 2.5; }
.room-line { stroke: var(--ink); stroke-width: 2; }
.wall-line { stroke: var(--line-3); stroke-width: 6; }
.print { fill: var(--fit-dim); stroke: var(--fit); stroke-width: 1.5; }
.print.is-tight { fill: var(--amber-dim); stroke: var(--amber); }
.print.is-fails { fill: var(--clay-dim); stroke: var(--clay); }

.readouts { display: flex; flex-wrap: wrap; gap: 0 1.8rem; margin-top: 1rem; }
.readout { display: flex; align-items: baseline; gap: 0.4rem; }
.readout .mono { color: var(--muted); }
.readout b { font-family: var(--mono); font-size: 1.2rem; font-weight: 600; }
.readout .unit { color: var(--muted); }
.stage-read { margin-top: 0.9rem; padding: 0.8rem 1rem; background: var(--ground-2); border-left: 3px solid var(--action); font-size: 0.95rem; }

/* ---------- controls ---------- */
.controls { display: grid; gap: 1.2rem; }
.control-group { padding: 1rem 1.1rem 1.2rem; background: var(--sheet); border: 1px solid var(--line-2); }
.control-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.control-head h3 { font-size: 1.05rem; }
.control-head .mono { color: var(--muted); }
.field { margin-top: 1rem; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field-head label, .field-head .mono { font-family: var(--mono); font-size: var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field-head output { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; }
.hint { display: block; margin-top: 0.45rem; font-size: 0.8rem; color: var(--muted); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; margin: 0.7rem 0 0;
  height: 28px; background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -12px;
  background: var(--action); border: 2px solid var(--action-ink); border-radius: 50%;
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; background: var(--action);
  border: 2px solid var(--action-ink); border-radius: 50%;
}

.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip, .toggle {
  min-height: 44px; padding: 0 0.9rem; background: transparent; color: var(--ink);
  border: 1px solid var(--line-2); font-size: 0.85rem;
}
.toggle { margin-top: 0.6rem; width: 100%; }
.chip[aria-pressed="true"], .toggle[aria-pressed="true"] {
  background: var(--action); color: var(--action-ink); border-color: var(--action); font-weight: 600;
}
.chip:hover, .toggle:hover { border-color: var(--action); }
.help { padding: 0.9rem 1rem; background: var(--ground-2); border: 1px solid var(--line); }
.help .mono { color: var(--amber); }
.help p + p { margin-top: 0.5rem; font-size: 0.88rem; color: #cdc3b6; }

/* ---------- shelf ---------- */
.result-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line-2); color: var(--muted); }
.shelf-flag {
  margin-top: 1rem; padding: 0.9rem 1.1rem; background: var(--amber-dim);
  border-left: 3px solid var(--amber); font-size: 0.95rem;
}
.shelf-flag.is-stop { background: var(--clay-dim); border-left-color: var(--clay); }
.rows { list-style: none; display: grid; gap: 1rem; margin-top: 1.2rem; }
.row { padding: 1.1rem 1.2rem 1.2rem; background: var(--sheet); border: 1px solid var(--line-2); border-left: 3px solid var(--fit); }
.row.group-1 { border-left-color: var(--amber); }
.row.group-2 { border-left-color: var(--unknown); }
.row.group-3 { border-left-color: var(--clay); opacity: 0.86; }
.row-head { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto auto; gap: 0.8rem 1.1rem; align-items: baseline; }
.row-rank { color: var(--muted); font-size: 1rem; }
.row-ident { display: flex; gap: 0.9rem; align-items: center; min-width: 0; }
.row-photo { flex: none; display: block; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.row-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tbl-photo { display: block; width: 72px; height: 72px; margin-bottom: 0.4rem; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.tbl-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.row-title { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.row-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.row-title .mono { color: var(--muted); }
.row-price, .row-score { display: flex; flex-direction: column; gap: 0.15rem; text-align: right; }
.row-price b, .row-score b { font-family: var(--mono); font-size: 1rem; font-weight: 600; }
.row-price .mono, .row-score .mono { color: var(--muted); }

.reads { list-style: none; display: grid; gap: 0.5rem; margin: 1rem 0 0; }
.read {
  display: grid; grid-template-columns: minmax(84px, 110px) minmax(96px, 124px) 1fr;
  gap: 0.3rem 0.9rem; padding: 0.6rem 0.75rem; background: var(--ground-2);
  border-left: 2px solid var(--unknown); font-size: 0.92rem;
}
.read.is-clears { border-left-color: var(--fit); }
.read.is-tight { border-left-color: var(--amber); }
.read.is-fails { border-left-color: var(--clay); }
.read-head { color: var(--muted); align-self: center; }
.read-tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; align-self: center; color: var(--unknown); }
.read.is-clears .read-tag { color: var(--fit); }
.read.is-tight .read-tag { color: var(--amber); }
.read.is-fails .read-tag { color: var(--clay); }
.read-text { color: #d6cdc0; }
.read-next { grid-column: 3; margin-top: 0.3rem; padding-left: 0.7rem; border-left: 2px solid var(--line-2); font-size: 0.85rem; color: var(--muted); }
.row-why { margin-top: 0.9rem; font-size: 0.92rem; color: #cdc3b6; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  margin-top: 1rem; padding: 0 1.1rem; background: var(--action); color: var(--action-ink);
  border: 1px solid var(--action); font-family: var(--mono); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 40px; }

/* ---------- audit ---------- */
.audit-list { list-style: none; display: grid; gap: 0.5rem; }
.audit-item {
  display: grid; grid-template-columns: minmax(140px, 220px) minmax(72px, 90px) 1fr;
  gap: 0.3rem 1rem; align-items: baseline; padding: 0.75rem 0.9rem;
  background: var(--sheet); border-left: 3px solid var(--unknown);
}
.audit-item.is-full { border-left-color: var(--fit); }
.audit-item.is-empty { border-left-color: var(--clay); }
.audit-item .mono { color: var(--muted); }
.audit-item b { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; }
.audit-note { color: #cdc3b6; font-size: 0.9rem; }

/* ---------- tables ---------- */
.table-hint { color: var(--muted); margin-bottom: 0.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); }
.table-wrap:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 940px; }
caption { text-align: left; }
th, td { padding: 0.7rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--mono); font-size: var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--ground-2); }
tbody th { font-weight: 700; }
tbody th a { color: var(--ink); }
tbody th .mono { display: inline-block; margin-top: 0.2rem; color: var(--muted); }
td .mono { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table-clear { color: var(--fit); }
.chart-note { margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); max-width: 90ch; }

/* ---------- method ---------- */
.method details { background: var(--sheet); border: 1px solid var(--line-2); }
.method summary {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem;
  cursor: pointer; color: var(--muted);
}
.method summary::-webkit-details-marker { display: none; }
.sec-num { color: var(--action); margin-right: 0.6rem; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; padding: 0 1.2rem 1.4rem; }
.method-grid h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.method-grid p { font-size: 0.9rem; color: #cdc3b6; }
.method-grid p + p { margin-top: 0.6rem; }
.limits { list-style: none; display: grid; gap: 0.5rem; margin: 0.6rem 0; }
.limits li { padding-left: 1rem; position: relative; font-size: 0.9rem; color: #cdc3b6; }
.limits li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; background: var(--unknown); }
.sources { list-style: none; display: grid; gap: 0.6rem; }
.sources li { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; }
.sources a { color: var(--action); }
.sources .mono { color: var(--muted); }
.fine { margin-top: 0.8rem; font-size: 0.82rem; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-2); padding: 2.4rem 0 3rem; background: var(--ground-2); }
.related-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.8rem 1.6rem; padding-bottom: 1.2rem; }
.related-title { font-family: var(--mono); font-size: var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.related-tools ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.related-tools a { font-size: 0.92rem; }
.affiliate-disclosure { padding: 1rem 0 1.4rem; font-size: 0.85rem; color: var(--muted); max-width: 92ch; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.foot-mark { font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.foot-in .mono { color: var(--muted); }
.foot-social a { color: var(--muted); }

/* ---------- narrow ---------- */
@media (max-width: 1040px) {
  .intro-grid, .bench-grid { grid-template-columns: minmax(0, 1fr); }
  .note { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .bar-tool, .bar-live { display: none; }
  .row-head { grid-template-columns: 2rem minmax(0, 1fr); }
  .row-price, .row-score { grid-column: 2; text-align: left; flex-direction: row; gap: 0.5rem; align-items: baseline; }
  .read { grid-template-columns: minmax(0, 1fr); }
  .read-next { grid-column: 1; }
  .audit-item { grid-template-columns: minmax(0, 1fr); }
  .intro-specs { gap: 0 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
