/*
  PROPOSITION B - "First Proof". A museum-catalog publication for OutOS.
  Paper and ink. Zero cards, zero shadows, zero radius, zero color.
  One inverted surface: the download band, set in the installer's own
  dark tokens. Letter-spacing 0 everywhere; hierarchy from size + weight.
  This page is a publication, not the tool - it does not replace the
  production installer page.
*/
:root {
  --paper: #F4F4F0;
  --ink: #0A0A0A;
  --ink-muted: rgba(10,10,10,0.55);
  --ink-dim: rgba(10,10,10,0.38);
  --hair: rgba(10,10,10,0.18);
  --hair-strong: rgba(10,10,10,0.4);
  /* the one inverted surface reuses the installer's dark tokens */
  --out-bg-deep: #101010;
  --out-text: #F4F4F0;
  --out-muted: #B8B8B0;
  --out-line: rgba(245,245,240,0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: clamp(15px, 14px + 0.2vw, 19px); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
.mono { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; }
a { color: inherit; }

/* ---------- folio strip (always visible, including over the black band) -- */
.folio {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.folio .count { font-variant-numeric: tabular-nums; }

/* ---------- grid ------------------------------------------------------- */
.sheet {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
}
.sec {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  padding: clamp(70px, 12vh, 130px) 0;
  border-bottom: 1px solid var(--hair);
}
.sec:last-of-type { border-bottom: 0; }
.marg {
  grid-column: 1 / 4;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 0.6em;
}
.body-col { grid-column: 5 / 12; }
.full { grid-column: 1 / 13; }

/* hairline that draws itself */
.rule {
  grid-column: 1 / 13;
  height: 1px;
  background: var(--ink);
  opacity: 0.22;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.in .rule { transform: scaleX(1); }

/* ---------- type scale ------------------------------------------------- */
.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 26px;
}
.display-xl {
  grid-column: 1 / 13;
  font-size: clamp(56px, 12vw, 184px);
  font-weight: 350;
  line-height: 0.97;
}
.display-l {
  font-size: clamp(34px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 1.02;
}
.idx-num {
  font-size: clamp(48px, 8.4vw, 128px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink-dim);
}
.body-txt {
  max-width: 34em;
  color: var(--ink-muted);
  font-size: 1rem;
}
.body-txt + .body-txt { margin-top: 0.9em; }
.body-txt b { color: var(--ink); font-weight: 600; }

/* rising line reveal */
.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.in .line > span { transform: none; }
.in .line:nth-child(2) > span { transition-delay: 80ms; }
.in .line:nth-child(3) > span { transition-delay: 160ms; }
.rise {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.in .rise { opacity: 1; transform: none; }
.in .rise.d1 { transition-delay: 120ms; }
.in .rise.d2 { transition-delay: 240ms; }
.in .rise.d3 { transition-delay: 360ms; }

/* ---------- masthead --------------------------------------------------- */
.masthead { padding-top: clamp(120px, 20vh, 220px); }
.masthead img { height: 30px; width: auto; display: block; margin-bottom: clamp(48px, 9vh, 110px); }
.anchor-note {
  grid-column: 5 / 12;
  margin-top: 42px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.anchor-note a { text-decoration: none; border-bottom: 1px solid var(--hair-strong); padding-bottom: 1px; }
.anchor-note a:hover { border-bottom-color: var(--ink); }

/* ---------- inventory -------------------------------------------------- */
.inv { grid-column: 1 / 13; display: grid; }
.inv-row {
  display: grid;
  grid-template-columns: minmax(72px, 140px) 1fr minmax(120px, 280px);
  column-gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}
.inv-row:last-child { border-bottom: 1px solid var(--hair); }
.inv-row .no { font-variant-numeric: tabular-nums; color: var(--ink-dim); font-weight: 300; font-size: 1.4rem; }
.inv-row .what { font-size: clamp(20px, 2.6vw, 34px); font-weight: 400; line-height: 1.15; }
.inv-row .state { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--ink-muted); text-align: right; }
.inv-row.struck .what { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-muted); }
.inv-row.struck .state { color: var(--ink); }

/* ---------- numbers + hex mural --------------------------------------- */
.figure { display: grid; gap: 6px; margin-top: 34px; }
.figure .big { font-size: clamp(64px, 11vw, 168px); font-weight: 300; line-height: 1; }
.figure .cap { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--ink-muted); }
.mural {
  grid-column: 1 / 13;
  margin-top: 56px;
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: clamp(20px, 4.4vw, 58px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  color: var(--ink);
  opacity: 0.92;
}
.mural .cap {
  display: block;
  margin-top: 14px;
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ---------- the gate ---------------------------------------------------- */
.specimen {
  grid-column: 1 / 13;
  margin-top: 40px;
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: clamp(30px, 6.4vw, 84px);
  line-height: 1.1;
}
.specimen .caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  vertical-align: text-bottom;
  background: var(--ink);
  animation: caret 1s steps(2, jump-none) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.specimen-cap {
  grid-column: 5 / 12;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* hard limits catalog rows */
.limits { grid-column: 1 / 13; display: grid; margin-top: 44px; }
.limit-row {
  display: grid;
  grid-template-columns: minmax(110px, 220px) 1fr;
  column-gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}
.limit-row:last-child { border-bottom: 1px solid var(--hair); }
.limit-row .k { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 0.86rem; font-weight: 700; }
.limit-row .v { color: var(--ink-muted); font-size: 0.98rem; max-width: 38em; }

/* ---------- the artifact (the one inverted surface) -------------------- */
.band {
  background: var(--out-bg-deep);
  color: var(--out-text);
  border-bottom: 1px solid var(--out-line);
}
.band .sec { border-bottom: 0; }
.band .marg { color: rgba(245,245,240,0.4); }
.band .body-txt { color: var(--out-muted); }
.band .body-txt b { color: var(--out-text); }
.band .filename {
  grid-column: 1 / 13;
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: clamp(22px, 4.6vw, 60px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.dl-link {
  grid-column: 1 / 13;
  margin-top: 44px;
  justify-self: start;
  font-size: clamp(28px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 2px solid var(--out-text);
  padding-bottom: 6px;
  transition: border-bottom-width 0.15s ease;
}
.dl-link:hover,
.dl-link:focus-visible { border-bottom-width: 5px; }
.dl-link.unavailable { opacity: 0.45; cursor: not-allowed; border-bottom-style: dashed; }
.band .reqs {
  grid-column: 1 / 12;
  margin-top: 36px;
  font-size: 0.88rem;
  color: var(--out-muted);
}
.band .status-line {
  grid-column: 1 / 12;
  margin-top: 10px;
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: 0.76rem;
  color: rgba(245,245,240,0.5);
  min-height: 1.3em;
}

/* ---------- direction --------------------------------------------------- */
.dir { grid-column: 1 / 13; display: grid; margin-top: 40px; }
.dir-row {
  display: grid;
  grid-template-columns: minmax(110px, 220px) 1fr minmax(140px, 300px);
  column-gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}
.dir-row:last-child { border-bottom: 1px solid var(--hair); }
.dir-row .when { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--ink-muted); }
.dir-row .what { font-size: clamp(19px, 2.4vw, 30px); font-weight: 400; }
.dir-row .state { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--ink-dim); text-align: right; }
.closer {
  grid-column: 5 / 12;
  margin-top: 44px;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  max-width: 34em;
}

/* ---------- colophon ---------------------------------------------------- */
.colophon { padding-bottom: clamp(90px, 14vh, 160px); }
.colophon .links-row {
  grid-column: 5 / 12;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 26px;
  font-size: 0.86rem;
}
.colophon .links-row a { color: var(--ink-muted); text-decoration: none; border-bottom: 1px solid var(--hair-strong); }
.colophon .links-row a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.signoff {
  grid-column: 1 / 13;
  margin-top: clamp(50px, 9vh, 100px);
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  font-size: clamp(36px, 7vw, 96px);
  font-weight: 350;
  line-height: 1;
}
.signoff img { height: 0.62em; width: auto; transform: translateY(0.06em); }

@media (prefers-reduced-motion: reduce) {
  .rule { transform: none; transition: none; }
  .line > span { transform: none; transition: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .specimen .caret { animation: none; }
}

@media (max-width: 920px) {
  .sec { grid-template-columns: 1fr; row-gap: 14px; padding: 56px 0; }
  .marg, .body-col, .full, .display-xl, .anchor-note, .specimen-cap,
  .closer, .colophon .links-row, .band .reqs, .band .status-line { grid-column: 1 / -1; }
  .inv-row { grid-template-columns: 56px 1fr; }
  .inv-row .state { grid-column: 2; text-align: left; margin-top: 4px; }
  .dir-row { grid-template-columns: 1fr; row-gap: 4px; }
  .dir-row .state { text-align: left; }
  .limit-row { grid-template-columns: 1fr; row-gap: 4px; }
}
