/* Hosted walkthrough: b.akery's approved Docket palette, type and boule. */
@import url("/assets/tokens.css");

@font-face {
  font-family: Archivo;
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("/assets/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--ink-body);
  background: var(--bench);
  font: 17px/1.6 var(--font-body);
  background-image:
    radial-gradient(circle at 17% 32%, var(--fleck-a) .6px, transparent .7px),
    radial-gradient(circle at 62% 71%, var(--fleck-b) .5px, transparent .6px);
  background-size: 37px 41px, 53px 47px;
}
::selection { background: var(--accent); color: var(--cta-ink); }
html, textarea { scrollbar-color: var(--ink-line) var(--bench); }
button, a { touch-action: manipulation; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.55rem var(--pad);
  border-bottom: 1px solid var(--ink-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
header > div:first-child { display: flex; align-items: center; gap: 1.2rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font: 400 1.75rem/1 var(--font-stamp);
  letter-spacing: -.035em;
  white-space: nowrap;
}
.wordmark::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: currentColor;
  -webkit-mask: url("/assets/boule.svg") center/contain no-repeat;
  mask: url("/assets/boule.svg") center/contain no-repeat;
}
.wordmark-image {
  display: block;
  width: 6rem;
  aspect-ratio: 3857/936;
  background: currentColor;
  -webkit-mask: url("/assets/wordmark.svg") center/contain no-repeat;
  mask: url("/assets/wordmark.svg") center/contain no-repeat;
}
.lab { color: var(--ink-muted); font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; }
.edition { color: var(--ink-muted); font-size: .75rem; line-height: 1.5; text-align: right; }
main { max-width: 1240px; margin: auto; padding: 4rem var(--pad) 1rem; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,5vw,4rem); align-items: start; }
h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-stamp);
  font-weight: 400;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem,5vw,4.5rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 1.75rem; }
h1 em { color: var(--accent); font-style: normal; }
.eyebrow { color: var(--ink-muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 1.5rem; }
.intro { font-size: 1.2rem; line-height: 1.55; margin: 0 0 1.5rem; max-width: 45ch; }
.hero > div:first-child > p:not(.intro):not(.eyebrow) { max-width: 48ch; }
.note { color: var(--ink-muted); font-size: .9rem; }
.pill { display: inline-block; color: var(--ink-muted); border: 1px solid var(--ink-line); padding: .3rem .5rem; font-size: .67rem; margin: .25rem .2rem .25rem 0; }

.stage { background: var(--sheet-card); box-shadow: var(--lift-high); }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--ink-line); color: var(--ink-muted); font-size: .64rem; line-height: 1.5; letter-spacing: .045em; text-transform: uppercase; }
.stage-top > span:last-child { flex-shrink: 0; font-family: var(--font-measure); font-size: .8rem; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.tabs { display: flex; gap: .3rem; padding: .85rem 1.4rem 0; }
.tabs button { flex: 1; min-height: 44px; padding: .65rem .25rem; background: transparent; border: 0; border-bottom: 2px solid var(--ink-line); color: var(--ink-muted); font-size: .8rem; }
.tabs button:hover { color: var(--accent); }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.content { padding: 1.75rem; min-height: 450px; }
.tag { color: var(--ink-muted); font-size: .7rem; line-height: 1.5; letter-spacing: .045em; text-transform: uppercase; }
.content h2 { font-size: clamp(1.55rem,2.4vw,1.9rem); line-height: 1.15; margin: .75rem 0 1.5rem; }
.quote { margin: 0 0 1.4rem; padding: 1.15rem 1.25rem; background: var(--stock-owner); color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.row { border-top: 1px solid var(--ink-line); padding: .75rem 0; }
.row strong { display: block; font-size: .75rem; color: var(--ink-muted); margin-bottom: .25rem; }
.row p { margin: 0; font-size: .95rem; }
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px;
  padding: .8rem 1.1rem;
  border: 1px solid var(--cta);
  border-radius: 0;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bench); }
.primary:active { transform: translateY(1px); }
.secondary { background: transparent; color: var(--ink); border-color: var(--ink-line); }
.secondary:hover { background: var(--sheet-card); }
.stagenote { color: var(--ink-muted); font-size: .75rem; line-height: 1.5; margin: 1.4rem 0 0; }

.comparison { border-top: 1px solid var(--ink-line); margin-top: 4.5rem; padding-top: 2.5rem; }
.comparison h2 { font-size: clamp(1.9rem,3.5vw,2.7rem); line-height: 1.12; margin: 0 0 1.25rem; }
.comparison > p { max-width: var(--measure); }
.compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin: 2rem 0; }
.compare-card { padding: clamp(1.3rem,3vw,2rem); background: var(--sheet-card); border-top: 2px solid var(--ink-line); }
.compare-card.carried { border-top-color: var(--accent); }
.compare-card h3 { font-size: clamp(1.4rem,2.5vw,1.9rem); line-height: 1.15; margin: 1rem 0 1.5rem; }
.compare-card blockquote { margin: 0 0 1.25rem; padding: 0; font-size: 1.1rem; color: var(--ink); }
.compare-card p { font-size: .9rem; }
.compare-card a { font-size: .9rem; font-weight: 700; }
.compare-note { color: var(--ink-muted); font-size: .8rem; }

.try { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.8fr); gap: 3rem; border-top: 1px solid var(--ink-line); margin-top: 4rem; padding-top: 2.5rem; }
.try h2 { font-size: clamp(1.9rem,3vw,2.4rem); line-height: 1.1; margin: 0 0 1.25rem; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.number { font: 400 1.25rem/1 var(--font-measure); color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.05rem; line-height: 1.3; margin: .75rem 0; }
.steps p { color: var(--ink-muted); font-size: .85rem; }
code { font-family: var(--font-measure); font-size: .85rem; overflow-wrap: anywhere; }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 48px; padding: .8rem .6rem; border: 1px solid var(--ink-line); border-radius: 0; background: var(--sheet-card); color: var(--ink); text-align: left; }
.cmd:hover { border-color: var(--accent); }
.copy-label { color: var(--ink-muted); font-size: .65rem; }
.install { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.75rem; font-size: .8rem; }
.install a { padding-block: .45rem; }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--ink-line); color: var(--ink-muted); font-size: .75rem; }
#status { min-height: 24px; margin-top: .75rem; color: var(--accent); font-size: .8rem; }

dialog { width: calc(100% - 2rem); max-width: 660px; max-height: 85vh; padding: clamp(1.25rem,4vw,2rem); overflow: auto; border: 1px solid var(--ink-line); background: var(--bench); color: var(--ink-body); box-shadow: var(--lift-high); }
dialog::backdrop { background: color-mix(in srgb, var(--stock-scorch) 75%, transparent); }
dialog h2 { clear: both; font-size: clamp(1.8rem,4vw,2.25rem); line-height: 1.15; margin: 1rem 0 1.5rem; }
dialog p { font-size: .9rem; }
dialog .eyebrow { padding-top: .75rem; }
textarea { width: 100%; min-height: 180px; padding: 1rem; border: 1px solid var(--ink-line); border-radius: 0; background: var(--sheet-card); color: var(--ink); caret-color: var(--accent); font: .9rem/1.6 var(--font-body); }
.close { float: right; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--ink-line); border-radius: 0; background: transparent; color: var(--ink); }
.close:hover { background: var(--sheet-card); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.not-found main { padding-block: 15vh; }

@media (max-width: 1000px) {
  .lab { max-width: 13ch; }
  .hero { gap: 2rem; }
  .try { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 850px) {
  main { padding-top: 2.5rem; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  h1 { max-width: 12ch; font-size: clamp(3rem,7.5vw,4.3rem); }
  .intro { max-width: 52ch; }
  .lab { display: none; }
  .content { min-height: 0; }
  .foot { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  header { gap: 1rem; padding-block: 1.25rem; }
  .wordmark { font-size: 1.5rem; gap: 8px; }
  .wordmark::before { width: 28px; height: 28px; flex-basis: 28px; }
  .edition { font-size: .65rem; }
  .hero > div:first-child .primary { width: 100%; }
  .intro { font-size: 1.1rem; }
  .stage-top { padding: 1rem 1.15rem; font-size: .6rem; }
  .tabs { padding-inline: 1.15rem; }
  .content { padding: 1.35rem; }
  .content h2 { font-size: 1.75rem; }
  .quote { padding: 1rem; font-size: 1rem; }
  .compare-grid, .steps { grid-template-columns: 1fr; }
  .steps > div { padding-top: 1.1rem; border-top: 1px solid var(--ink-line); }
  .steps h3 { font-size: 1.2rem; }
  .steps p { font-size: .9rem; }
  .cmd { padding-inline: 1rem; }
  .comparison, .try { margin-top: 3rem; padding-top: 2rem; }
}
