/* ------------------------------------------------------------------
   Noo — lab517.io/noo

   Same ground, type and rails as lab517.io: this is a page of that site,
   not a second identity. Tokens below are copied from its stylesheet
   deliberately, so the two render as one domain — both themes of them, and
   the switch behaves identically on both. Light stays the default.

   The colour rule carries over, narrowed. On lab517.io colour encodes
   service status — down, degraded, live. Nothing on this page is down or
   degraded, so only --live appears, and it means one thing: local and
   yours. Every screenshot, rule and panel is otherwise monochrome.
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Plex Cond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/plex-cond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
}

:root {
  --paper:    #EDF0EF;
  --panel:    #E4E9E7;   /* 1.07:1 on paper */
  --rule:     #C7D0CD;   /* 1.37:1 on paper */
  --ink:      #0E1518;   /* 16.07:1 */
  --ink-mut:  #55666B;   /* 5.23:1 on paper */
  --live:     #14706A;   /* 5.15:1 on paper */

  /* which word the theme switch shows — see .theme-toggle */
  --say-dark:  inline;
  --say-light: none;

  --font-display: "Plex Cond", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "Plex Mono", ui-monospace, monospace;

  --gutter: 128px;
  --maxw:   1140px;

  --s1: 8px; --s2: 14px; --s3: 22px; --s4: 34px; --s5: 52px; --s6: 84px;
}

/* ---------- dark ----------
   Stated twice on purpose, exactly as on lab517.io: the media query is the OS
   setting, the attribute is a reader who pressed the switch, and CSS cannot
   share one declaration block between them. Edit both. Every ratio is matched
   to its light counterpart, and --live still means only one thing: local and
   yours. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --paper:    #10181B;
    --panel:    #151F22;   /* 1.07:1 on paper — the light ratio, held */
    --rule:     #263438;   /* 1.40:1 */
    --ink:      #E6EDEC;   /* 15.14:1 */
    --ink-mut:  #8A9CA0;   /* 6.28:1 */
    --live:     #35A79B;   /* 6.12:1 */

    --say-dark:  none;
    --say-light: inline;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper:    #10181B;
  --panel:    #151F22;   /* 1.07:1 on paper — the light ratio, held */
  --rule:     #263438;   /* 1.40:1 */
  --ink:      #E6EDEC;   /* 15.14:1 */
  --ink-mut:  #8A9CA0;   /* 6.28:1 */
  --live:     #35A79B;   /* 6.12:1 */

  --say-dark:  none;
  --say-light: inline;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; }

::selection { background: var(--ink); color: var(--paper); }

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- shared primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}

.mono {
  font-family: var(--font-mono);
  font-size: .688rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mut);
}

/* The instrument gutter, as on the parent site: a mono rail beside a single
   content column. Here the rail names the subsystem the band is about. */
.rail {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
}
.rail-label {
  position: sticky;
  top: 92px;
  padding-top: 7px;
  border-top: 2px solid var(--ink);
}

.band { padding-block: var(--s6); border-top: 1px solid var(--rule); }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.sub {
  margin-top: var(--s2);
  color: var(--ink-mut);
  max-width: 62ch;
  font-size: 1.03rem;
}

.prose p { margin-top: var(--s2); max-width: 62ch; }
.prose a { border-bottom: 1px solid var(--rule); }
.prose a:hover { border-bottom-color: var(--ink); }

code, kbd {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--panel);
  padding: 1px 5px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(4px); }

.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap {
  height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 26px; height: 26px; display: block; }
.brand .n {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.28rem; letter-spacing: -.02em;
  white-space: nowrap;
}
.brand .by { border-bottom: 1px solid transparent; }
.brand .by:hover { border-bottom-color: var(--ink-mut); }
.nav-links { display: flex; gap: var(--s3); }
.nav-links a { transition: color .18s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px; white-space: nowrap;
}

/* The theme switch. It only exists with JS, because without JS it could not
   remember an answer — the OS setting still decides, via the media query
   above, so nothing is lost by hiding it. The chip is the page in miniature:
   half ink, half paper, the two things the switch trades. */
.nav-end { display: flex; align-items: center; gap: var(--s3); }
.theme-toggle {
  display: none;
  align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mut);
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  transition: color .18s ease;
}
.has-js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle .to-dark  { display: var(--say-dark); }
.theme-toggle .to-light { display: var(--say-light); }
.theme-toggle .chip {
  flex: none; width: 13px; height: 13px;
  border: 1.5px solid currentColor;
  background: linear-gradient(to right, var(--ink) 0 50%, var(--paper) 50% 100%);
}

/* ---------- hero ---------- */
.hero { padding-top: var(--s5); padding-bottom: var(--s5); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8.4vw, 6.6rem);
  line-height: .94;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-bottom {
  margin-top: var(--s4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: end;
}
.hero .lead {
  font-size: clamp(1.06rem, 1.7vw, 1.2rem);
  color: var(--ink-mut);
  max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero-note { margin-top: var(--s2); }

/* ---------- SIGNATURE: the instrument plate ----------
   The screenshots are the argument, so they are mounted rather than
   decorated: a mono caption over an ink rule, the shot flush on the panel
   ground, one hairline border. No shadow, no rounded frame, no fake window
   chrome — the app already draws its own. */
.plate { margin-top: var(--s5); }
.plate-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s3); padding-bottom: var(--s1);
  border-bottom: 2px solid var(--ink);
}
.plate figure { margin: 0; }
.plate img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-top: none;
  background: var(--panel);
}
.plate figcaption { margin-top: var(--s2); max-width: 68ch; }

.band .plate { margin-top: var(--s4); }

/* ---------- facts ---------- */
.terms { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, 1fr); }
.term { padding: var(--s3); border: 1px solid var(--rule); border-right: none; }
.term .v {
  font-family: var(--font-display); font-weight: 600; font-size: 1.14rem;
  letter-spacing: -.015em; margin-top: 6px;
}
.term:last-child { border-right: 1px solid var(--rule); }
.term .d { color: var(--ink-mut); font-size: .93rem; margin-top: 5px; }

/* ---------- feature list inside a band ---------- */
.points { margin-top: var(--s4); border-top: 1px solid var(--rule); }
.point {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--s4); padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
}
.point h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.14rem; letter-spacing: -.018em;
}
.point p { color: var(--ink-mut); font-size: .98rem; }

/* ---------- a literal listing, shown as one ---------- */
.listing {
  margin-top: var(--s3);
  font-family: var(--font-mono); font-size: .8rem; line-height: 1.75;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: var(--s3);
  overflow-x: auto;
}

/* ---------- downloads ---------- */
.dl { margin-top: var(--s4); display: grid; grid-template-columns: repeat(2, 1fr); }
.dl-item {
  border: 1px solid var(--rule); border-right: none;
  padding: var(--s3);
  display: flex; flex-direction: column; gap: var(--s1);
}
.dl-item:last-child { border-right: 1px solid var(--rule); }
.dl-item .f {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; letter-spacing: -.015em;
}
.dl-item .d { color: var(--ink-mut); font-size: .93rem; flex: 1; }
.dl-item .btn { align-self: flex-start; margin-top: var(--s2); }

.verify { margin-top: var(--s4); }
.verify pre {
  margin-top: var(--s1);
  font-family: var(--font-mono); font-size: .82rem;
  background: var(--panel); border: 1px solid var(--rule);
  padding: var(--s2) var(--s3); overflow-x: auto;
}

/* ---------- platform table ---------- */
.plat { margin-top: var(--s5); width: 100%; border-collapse: collapse; }
.plat th, .plat td {
  text-align: left; padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--rule); font-size: .97rem;
}
.plat th {
  font-family: var(--font-mono); font-size: .688rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-mut); font-weight: 500;
  border-bottom: 2px solid var(--ink);
}
.plat caption { text-align: left; padding-bottom: var(--s1); }
.plat tbody th {
  font-family: var(--font-body); font-size: .97rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.plat td.y { color: var(--live); font-weight: 500; }
.plat td.n { color: var(--ink-mut); }

/* ---------- closing band ---------- */
/* The closing band is the page's own palette on a raised ground — a panel a
   shade off the paper, closed by one edge line — so it belongs to whichever
   theme is showing, exactly as on lab517.io. It was an ink slab, which was
   right while the page could only be light and read as a hole in it once the
   page could be dark. Nothing here restates a colour: every token is the
   page's own. */
.close { background: var(--panel); box-shadow: inset 0 1px 0 var(--rule); }
.close .wrap { padding-block: var(--s6); }
.close h2 { max-width: 22ch; }
.close-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.close a.plain {
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  font-family: var(--font-mono); font-size: .8rem;
}
.close a.plain:hover { border-bottom-color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: var(--s4); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }
.foot a { border-bottom: 1px solid var(--rule); }
.foot a:hover { border-bottom-color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- document page (privacy) ---------- */
.doc { padding-block: var(--s6); }
.doc h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.02;
  letter-spacing: -.03em; text-wrap: balance;
}
.doc .updated { margin-top: var(--s2); }
.doc-body { margin-top: var(--s5); max-width: 68ch; }
.doc-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: var(--s5); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body ul { margin-top: var(--s2); }
.doc-body ul { padding-left: 1.15rem; }
.doc-body li { margin-top: 6px; }
.doc-body strong { font-weight: 500; }
.doc-body a { border-bottom: 1px solid var(--rule); }
.doc-body a:hover { border-bottom-color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 84px; --s6: 62px; }
  .rail { gap: var(--s4); }
  .hero-bottom { grid-template-columns: 1fr; gap: var(--s3); align-items: start; }
  .terms, .dl { grid-template-columns: 1fr; }
  .term, .dl-item { border-right: 1px solid var(--rule); border-bottom: none; }
  .term:last-child, .dl-item:last-child { border-bottom: 1px solid var(--rule); }
  .point { grid-template-columns: 1fr; gap: var(--s1); }
}
@media (max-width: 660px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .brand .by { display: none; }
  .rail { grid-template-columns: 1fr; gap: var(--s2); }
  .rail-label { position: static; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .plat th, .plat td { padding-inline: 0 var(--s2); }
}

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