/* The streamline overlay: the runtime shelf's shell, plus one figure.

   The house faces are declared here because runtime.css names them without
   carrying their @font-face blocks — the shelf's pages fall back to system
   faces otherwise, and this page is mostly mono labels. Same files, same
   absolute paths as site.css. */

@font-face {
  font-family: "OF Inter Tight";
  src: url("/fonts/of-inter-tight-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif";
  src: url("/fonts/SourceSerif4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

main h1 { max-width: 22ch; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--paper);
}

/* ---- the hero: the product, and what it measures ----------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.hero h1 { font-size: clamp(28px, 3.4vw, 42px); max-width: 16ch; margin-bottom: 14px; }
.hero .sub { max-width: 40ch; margin-bottom: 20px; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 12px;
}

.hero-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0;
  color: var(--paper-2);
}
.hero-link:hover { color: var(--lime); }

.install {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--paper-3);
  margin: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.install code { color: var(--paper-2); }

.install a { border: 0; color: var(--paper-2); }
.install a:hover { color: var(--lime); }

.score {
  border: 1px solid rgba(250, 255, 105, 0.42);
  background: rgba(250, 255, 105, 0.04);
  padding: 16px 18px 14px;
}

.score-head {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 12px;
}
.score-head span { color: var(--paper-3); letter-spacing: 0.1em; }

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.tile-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin: 0 0 2px;
}

.tile-x {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}

.tile-ms {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--paper-3);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.tile-ms b { color: var(--paper); font-weight: 400; }
.tile-ms span { white-space: nowrap; }

.score-foot {
  font-size: 12px;
  line-height: 1.55;
  color: var(--paper-3);
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

.requirements {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--paper-3);
  margin: 10px 0 0;
}
.requirements b { color: var(--lime); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }

.evidence { padding-top: clamp(18px, 2.6vh, 28px); }

#field { height: clamp(320px, 40vh, 440px); }

/* ---- the figure -------------------------------------------------------- */

.field {
  margin: 0;
  border: 1px solid var(--line);
  background: #191917;
  padding: 16px 18px 18px;
}

.phead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}

.phead h2 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0;
}

.phead p {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin: 0;
  text-align: right;
}

#field {
  display: block;
  width: 100%;
  height: clamp(400px, 52vh, 540px);
  touch-action: pan-y;
}

.readout {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--paper-3);
  margin: 8px 0 0;
  min-height: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.readout.is-live { color: var(--paper); }

.field figcaption { margin-top: 16px; }

.real {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--lime);
  margin: 0 0 8px;
}

.meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--paper-3);
  margin: 0 0 10px;
}

.arg {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--paper);
  margin: 0 0 10px;
  max-width: 76ch;
}

.meth {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--paper-3);
  margin: 0;
  max-width: 96ch;
}

/* ---- the key ----------------------------------------------------------- */

.key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  border-top: 1px solid var(--line-2);
  padding-top: 12px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--paper-3);
}

.key b { color: var(--paper-2); font-weight: 400; }

.key .sw {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px solid currentColor;
  margin-right: 7px;
  vertical-align: middle;
}

.sw-qqt { color: var(--lime); }
.sw-ssh { color: var(--paper-2); }

/* ---- the numbers ------------------------------------------------------- */

.measures td.num { text-align: right; font-variant-numeric: tabular-nums; }
.measures th.num { text-align: right; }
.measures tbody th {
  text-align: left;
  vertical-align: top;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-2);
  white-space: nowrap;
}
.measures td .wire small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--paper-3);
}
.measures td .rec {
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--paper-3);
}

.grid-foot {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--paper-3);
  max-width: 92ch;
  margin: 10px 0 0;
}

.grid-foot code { font-size: 0.95em; color: var(--paper-2); }

/* ---- the long form ----------------------------------------------------- */

.cta .button + .button { margin-left: 8px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero .sub { max-width: 62ch; }
  .tiles { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px 10px; }
  .tile-x { font-size: 24px; }
  .score-foot { margin-top: 12px; }
}

@media (max-width: 720px) {
  .field { padding: 12px 12px 14px; }
  #field { height: 420px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .phead { flex-direction: column; gap: 4px; }
  .phead p { text-align: left; }
  .arg { font-size: 15.5px; }
  .readout { white-space: normal; }
}

@media (max-width: 640px) {
  .scroller { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .scroller .measures { min-width: 430px; }
  .measures td .rec { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .field { scroll-behavior: auto; }
}
