@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/barlow-condensed-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(fonts/martian-mono.woff2) format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  --paper: #EEF1F2;
  --paper-2: #E3E8EA;
  --ink: #1A1D24;
  --ink-2: #2B303A;
  --graphite: #5A626E;
  --rule: #B9BEC4;
  --red: #C23A22;
  --red-on-ink: #FF7A5C;
  --term-ink: #ECEDE8;
  --term-dim: #9AA1AC;
  --term-del: #FF8A73;
  --term-ok: #A9D8B8;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --hair: 1px solid var(--rule);
  --line: 1.5px solid var(--ink);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--graphite) var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
  font-feature-settings: "lnum", "tnum";
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }
.defs { position: absolute; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
code { font-family: var(--mono); font-size: .8em; font-stretch: 87.5%; letter-spacing: -.01em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; text-wrap: balance; }
p { margin: 0; }

.ico { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- sheet ---------- */
.sheet { position: relative; padding: var(--s3); }
.frame { border: var(--line); outline: 1px solid var(--ink); outline-offset: 5px; }
.zones { display: none; }

@media (min-width: 900px) {
  .sheet { padding: 2.5rem 2.75rem; }
  .zones { display: flex; position: absolute; font: 500 .75rem/1 var(--display); color: var(--graphite); letter-spacing: .08em; }
  .zones-x { left: 2.75rem; right: 2.75rem; top: .9rem; justify-content: space-around; }
  .zones-y { top: 2.5rem; bottom: 2.5rem; flex-direction: column; justify-content: space-around; width: 2.75rem; align-items: center; }
  .zones-left { left: 0; }
  .zones-right { right: 0; }
}

/* ---------- strip ---------- */
.strip { display: flex; align-items: stretch; justify-content: space-between; border-bottom: var(--line); }
.mark { display: inline-flex; align-items: flex-start; gap: .12em; font: 600 1.75rem/1 var(--display); letter-spacing: .005em; text-decoration: none; color: var(--ink); }
.strip .mark { padding: var(--s3) var(--s4); border-right: var(--line); }
.mark .delta { width: .42em; height: .38em; margin-top: .02em; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linejoin: round; }
.strip-nav { display: flex; }
.strip-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border-left: var(--line); font: 500 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.strip-nav a:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 599px) { .nav-anchor { display: none !important; } }
.rev-cloud { position: relative; display: inline-block; margin: .15rem 0 .6rem; }
.rev-cloud .cloud-svg path { stroke: var(--red); }

main > section { padding: var(--s8) var(--s4); border-bottom: var(--hair); }
@media (min-width: 900px) { main > section { padding: var(--s9) clamp(2rem, 5vw, 5rem); } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); padding-top: var(--s7) !important; }
.hero h1 { font-size: clamp(3rem, 9.2vw, 6rem); line-height: .9; letter-spacing: -.005em; max-width: 13ch; }
.lede { margin-top: var(--s5); max-width: 38rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-2); }

.issue { margin-top: var(--s6); max-width: 36rem; min-width: 0; border: var(--line); }
.cmd { display: flex; align-items: stretch; background: var(--ink); color: var(--term-ink); }
.cmd code { flex: 1; min-width: 0; padding: var(--s4) var(--s3) var(--s4) var(--s4); font-size: clamp(.8rem, 3.6vw, 1.05rem); font-stretch: 87.5%; white-space: nowrap; overflow-x: auto; }
.cmd .prompt { color: var(--term-dim); }
.copy { position: relative; display: grid; place-items: center; width: 56px; min-height: 56px; border: 0; border-left: 1px solid #3A404B; background: var(--ink); color: var(--term-ink); cursor: pointer; }
.copy:hover { background: var(--ink-2); }
.copy .ico { grid-area: 1 / 1; transition: opacity .2s var(--ease), transform .3s var(--ease); }
.copy .ico-check { opacity: 0; transform: scale(.6); color: var(--term-ok); }
.copy.is-copied .ico-copy { opacity: 0; transform: scale(.6); }
.copy.is-copied .ico-check { opacity: 1; transform: none; }
.copy-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.issue-alt { padding: var(--s3) var(--s4) 0; font-size: .95rem; color: var(--graphite); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); padding: var(--s4); }
.btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border: var(--line); font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }
.btn-primary .ico { transition: transform .3s var(--ease); }
.btn-primary:hover .ico { transform: translateX(3px); }

.revs { align-self: start; width: 100%; border-collapse: collapse; border: var(--line); font-size: .95rem; }
.revs th { padding: var(--s2) var(--s3); border-bottom: var(--line); font: 500 .8rem/1 var(--display); text-transform: uppercase; letter-spacing: .12em; text-align: left; color: var(--graphite); }
.revs td { padding: var(--s3); border-top: var(--hair); vertical-align: top; }
.revs td + td, .revs th + th { border-left: var(--hair); }
.revs td:first-child { width: 3.25rem; text-align: center; font: 600 1.15rem/1.2 var(--display); }
.revs td:last-child { font: 500 .9rem/1.3 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.rev-old td { color: var(--graphite); }
.rev-old td:nth-child(2) code { text-decoration: line-through; text-decoration-color: var(--red); }
.rev-new td:last-child { color: var(--red); }
.rev-delta { position: relative; display: inline-grid; place-items: center; width: 2.1rem; height: 1.9rem; padding-top: .4rem; color: var(--red); }
.rev-delta svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linejoin: round; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s7) clamp(2rem, 4vw, 4rem); padding-top: var(--s8) !important; }
  .revs { margin-top: .6rem; }
}

/* ---------- section heads ---------- */
.section-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 46rem; }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.section-head p { color: var(--ink-2); max-width: 40rem; }

/* ---------- run ---------- */
.term { margin: 0; }
.term-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: var(--s2) 0 var(--s2) var(--s4); border: var(--line); border-bottom: 0; background: var(--paper-2); }
.term-title { font: 500 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--graphite); }
.replay { margin-block: calc(-1 * var(--s2)); min-height: 44px; padding: 0 var(--s4); border: 0; border-left: var(--hair); background: none; font: 500 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); cursor: pointer; }
.replay:hover { text-decoration: underline; }
.term-body {
  --pad: clamp(1rem, 2.5vw, 2rem);
  padding: var(--pad); background: var(--ink); color: var(--term-ink);
  overflow-x: auto; overscroll-behavior-x: contain;
  font: 400 clamp(.72rem, 1.05vw, .9rem)/1.85 var(--mono); font-stretch: 87.5%;
  scrollbar-color: var(--graphite) var(--ink);
}
.ln { white-space: pre; position: relative; width: max-content; min-width: 100%; }
.ln .tx { width: max-content; position: relative; }
.ln.gap { min-height: 1.85em; }
.ln[data-cloud] { padding-block: .45em; }
.ln .p { color: var(--term-dim); }
.cmdl { font-weight: 600; }
.dim { color: var(--term-dim); }
.hit { color: var(--term-del); }
.del { color: var(--term-del); }
.add { color: #fff; font-weight: 600; }
.ok { color: var(--term-ok); }
.pass { color: var(--term-ok); font-weight: 600; }
.note { display: none; }

@media (min-width: 1100px) {
  .term-body { overflow: visible; }
  .ln { width: auto; }
  .term { margin-right: 12rem; }
  .note {
    display: flex; align-items: center; gap: var(--s2);
    position: absolute; left: calc(100% + var(--pad)); top: 50%; transform: translateY(-50%);
    width: 12rem; padding-left: var(--s3);
    font: 500 .8rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--graphite); white-space: normal;
  }
  .note::before { content: ""; flex: none; width: 2rem; height: 1px; background: var(--graphite); }
  .note::after { content: ""; position: absolute; left: calc(var(--s3) - 3px); width: 5px; height: 5px; border-radius: 50%; background: var(--graphite); }
  .note-red { color: var(--red); }
  .note-red::before, .note-red::after { background: var(--red); }
}

.cloud-svg { position: absolute; pointer-events: none; overflow: visible; }
.cloud-svg path { fill: none; stroke: var(--red-on-ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.cloud-svg .cloud-delta { fill: var(--ink); stroke: var(--red-on-ink); }
.cloud-svg text { fill: var(--red-on-ink); font: 600 13px var(--display); text-anchor: middle; }
.cloud-svg .stamp-in { transform-box: fill-box; transform-origin: center; animation: stamp-in .45s cubic-bezier(.16,1,.3,1) both; }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: none; } }
html:not(.js) .add .tx { outline: 1.5px dashed var(--red-on-ink); outline-offset: 4px; }

.aside { display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s5); max-width: 46rem; color: var(--ink-2); }
.delta-sm { flex: none; width: 1.1rem; height: 1rem; margin-top: .3rem; fill: none; stroke: var(--graphite); stroke-width: 1.8; stroke-linejoin: round; }

/* typing states, only once JS opts in */
.js .term.is-armed .ln:not(.is-on) { visibility: hidden; }
.js .term.is-armed .ln.is-typing .tx-typed::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: .1em; vertical-align: -.2em; background: var(--term-ink); }

@media (min-width: 900px) { code.nowrap { white-space: nowrap; } }

/* ---------- notes ---------- */
.notes ol { list-style: none; margin: var(--s7) 0 0; padding: 0; display: grid; gap: var(--s7); }
.notes li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s5); row-gap: var(--s3); align-items: baseline; }
.notes .n { grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border: var(--line); border-radius: 50%; font: 600 1.5rem/1 var(--display); }
.notes h3 { font-size: 2rem; }
.notes p { max-width: 34rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .notes ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .notes li { padding: 0 var(--s6); }
  .notes li:first-child { padding-left: 0; }
  .notes li + li { border-left: var(--hair); }
}

/* ---------- spec ---------- */
.spec { display: grid; gap: var(--s6); }
.spec ul { list-style: none; margin: 0; padding: 0; border-top: var(--line); max-width: 46rem; }
.spec li { padding: var(--s4) 0; border-bottom: var(--hair); font-size: 1.15rem; }
@media (min-width: 900px) {
  .spec { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
}

/* ---------- parts ---------- */
.table-wrap { overflow-x: auto; border: var(--line); }
.bom { width: 100%; min-width: 34rem; border-collapse: collapse; }
.bom th { padding: var(--s3) var(--s4); border-bottom: var(--line); font: 500 .8rem/1 var(--display); text-transform: uppercase; letter-spacing: .12em; text-align: left; color: var(--graphite); }
.bom td { padding: var(--s4); border-top: var(--hair); vertical-align: top; }
.bom td + td, .bom th + th { border-left: var(--hair); }
.bom td:first-child { font-weight: 600; }
.status { display: inline-block; padding: .2rem .55rem; border: 1px solid var(--graphite); font: 500 .85rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--graphite); }
.status-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.limits { margin-top: var(--s5); color: var(--ink-2); }
@media (max-width: 599px) {
  .table-wrap { border: 0; overflow: visible; }
  .bom { min-width: 0; border-top: var(--line); }
  .bom thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bom tr { display: grid; gap: var(--s2); padding: var(--s4) 0; border-bottom: var(--hair); }
  .bom td { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s3); padding: 0; border: 0 !important; }
  .bom td::before { content: attr(data-label); font: 500 .75rem/1.6 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--graphite); }
  .bom td > * { justify-self: start; }
}
.limits a { font-weight: 600; }

/* ---------- close ---------- */
.close { position: relative; display: grid; gap: var(--s5); justify-items: start; }
.close h2 { font-size: clamp(2.75rem, 7vw, 5rem); }
.close .cmd { width: 100%; max-width: 30rem; }
.close-alt { color: var(--graphite); max-width: 36rem; }
.close .actions { padding: 0; }

/* ---------- colophon ---------- */
.colophon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s6); padding: var(--s5) var(--s4); font-size: 1.05rem; color: var(--graphite); }
.colophon p { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); }
.colophon nav { display: flex; gap: var(--s5); }
.colophon nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .colophon { padding: var(--s4) clamp(2rem, 5vw, 5rem); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
