/* ==========================================================================
   night.css: the world's tokens, base and shared parts for every page of v2.

   The room at 3 am is black water. Everything at rest is dark and calm; light
   appears where something is alive (a reading, a pointer, an action) and fades
   when it is left. Hex literals live in :root and nowhere else.

   Token names kept from the older sheets (--color-*, --size-*, --font-*,
   --radius-*, --space-*) so the content pages' own stylesheets keep reading.
   ========================================================================== */

@font-face { font-family: "Outfit"; src: url("/fonts/outfit-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;

  /* water and light */
  --ink-900: #03060b;   /* abyss: the page */
  --ink-800: #061019;   /* fade to dark: the bar, the foot */
  --ink-700: #0a1422;   /* deep current: raised surfaces */
  --ink-600: #0f1c2e;   /* a surface under a pointer */
  --ink-500: #16263d;
  --hair: #1a2b3f;      /* ghost trace: every rule */
  --hair-strong: #27405c;
  --wake: #00e5ff;      /* electric wake: the active state, the one action */
  --wake-deep: #00a9bd; /* the wake's own shade, for pressed and underline */
  --lum: #66f6ff;       /* luminescent cyan: display type, traces */
  --lum-soft: rgba(102, 246, 255, 0.34);
  --lum-faint: rgba(102, 246, 255, 0.12);
  --text: #f2f7fa;
  --mute: #b4c0cb;      /* 10.6:1 on the abyss, 8.7:1 on a pane */
  --quiet: #7f8f9e;     /* 5.3:1 on the abyss, 4.5:1 on a pane: labels and captions only */
  --faint: #3b4c60;     /* never text */

  /* the firmware's zone colours: readings only */
  --zone-ok: #22c55e;
  --zone-low: #facc15;
  --zone-high: #f59e0b;
  --zone-urgent: #ef4444;
  --zone-urgent-text: #f87171;

  /* the older sheets' names */
  --color-page: var(--ink-900);
  --color-surface: var(--ink-700);
  --color-surface-alt: var(--ink-800);
  --color-surface-high: var(--ink-600);
  --color-surface-hover: var(--ink-600);
  --color-surface-tertiary: var(--ink-500);
  --color-text: var(--text);
  --color-text-muted: var(--mute);
  --color-text-faint: var(--quiet);
  --color-border: var(--hair);
  --color-border-strong: var(--hair-strong);
  --color-accent: var(--wake);
  --color-accent-2: var(--lum);
  --color-accent-dim: var(--wake-deep);
  --color-glow: transparent;
  --color-glow-strong: transparent;
  --color-grid: transparent;
  --color-wash: var(--ink-800);
  --color-wash-strong: var(--ink-700);
  --color-hover-veil: rgba(102, 246, 255, 0.06);
  --accent: var(--wake);
  --accent-1: var(--wake);
  --accent-2: var(--lum);
  --hairline: var(--hair);
  --line: var(--hair);
  --border-subtle: var(--hair);
  --text-primary: var(--text);
  --text-secondary: var(--mute);
  --text-muted: var(--quiet);
  --bg-secondary: var(--ink-700);
  --fg-100: var(--text);
  --fg-300: var(--mute);
  --fg-500: var(--quiet);
  --glucose-ok: var(--zone-ok);
  --glucose-low: var(--zone-low);
  --glucose-high: var(--zone-high);
  --signal-green: var(--zone-ok);
  --signal-amber: var(--zone-low);
  --signal-orange: var(--zone-high);
  --signal-red: var(--zone-urgent);
  --signal-red-deep: #b91c1c;
  --vd-ok: var(--zone-ok);
  --vd-low: var(--zone-low);
  --vd-vlow: var(--zone-urgent);
  --vd-high: var(--zone-high);
  --vd-vhigh: var(--zone-urgent);
  --c-green: var(--zone-ok);
  --c-amber: var(--zone-high);
  --c-yellow: var(--zone-low);
  --c-purple: #a78bfa;
  --c-accent-dim: var(--wake-deep);
  --c-red: var(--zone-urgent);
  --c-accent: var(--wake);

  /* type */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --family-display: var(--font-display);
  --family-sans: var(--font-body);
  --family-mono: var(--font-mono);
  --size-2xs: 0.75rem;
  --size-xs: 0.8125rem;
  --size-sm: 0.9375rem;
  --size-base: 1.0625rem;
  --size-lg: 1.25rem;
  --size-xl: 1.5rem;
  --size-2xl: 2rem;
  --size-3xl: 2.75rem;
  --step-1: 0.8125rem;
  --step-2: 0.9375rem;
  --step-3: 1.0625rem;
  --step-4: 1.25rem;
  --step-5: 1.5rem;
  --step-6: 2rem;
  --step-7: 2.75rem;
  --step-8: 3.5rem;
  --step-9: 4.5rem;
  --step-10: 5.5rem;
  --leading-body: 1.6;
  --leading-snug: 1.3;
  --leading-tight: 1.05;
  --tracking-label: 0.12em;
  --tracking-tight: -0.02em;
  --measure: 68ch;
  --measure-narrow: 52ch;

  /* shape and rhythm */
  --radius-tight: 4px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-soft: 8px;
  --radius-card: 10px;
  --radius-button: 6px;
  --radius-input: 6px;
  --radius-pill: 999px;
  --radius-hard: 2px;
  --container: 1240px;
  --container-narrow: 760px;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --space-gutter: var(--gutter);
  --space-section: clamp(5rem, 9vw, 8.5rem);
  --space-card: 1.5rem;
  --bar-height: 4rem;

  /* motion: an exponential ease out from a visible default */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: var(--ease);
  --ease-spring: var(--ease);
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 600ms;
  --dur-reveal: 900ms;

  --focus-ring: 0 0 0 2px var(--ink-900), 0 0 0 4px var(--lum);
  --focus-offset: 3px;
  --lum-text-shadow: 0 0 18px var(--lum-soft), 0 0 2px rgba(102, 246, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden]:not([hidden="until-found"]) { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink-900); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--ink-900); color: var(--text);
  font: 400 var(--size-base) / var(--leading-body) var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--wake); color: var(--ink-900); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
* { scrollbar-color: var(--hair-strong) var(--ink-900); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--hair-strong); border-radius: 999px; border: 2px solid var(--ink-900); }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea { caret-color: var(--wake); accent-color: var(--wake); }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--wake-deep); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
a:hover { text-decoration-color: var(--lum); color: var(--lum); }
hr { border: 0; border-top: 1px solid var(--hair); margin: 2.5rem 0; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--ink-700); border: 1px solid var(--hair); border-radius: var(--radius-xs); padding: 0.1em 0.4em; }
pre { background: var(--ink-700); border: 1px solid var(--hair); border-radius: var(--radius); padding: 1rem 1.25rem; overflow: auto; }
pre code { background: none; border: 0; padding: 0; }
kbd { background: var(--ink-600); border: 1px solid var(--hair-strong); border-bottom-width: 2px; border-radius: var(--radius-xs); padding: 0.1em 0.45em; font-size: 0.85em; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font: 500 var(--size-xs) / 1.4 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--quiet); }
tbody tr:hover { background: var(--color-hover-veil); }
blockquote { margin: 0; }
figure { margin: 0; }
summary { cursor: pointer; }
.sr, .visually-hidden, .site-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type: display is thin and luminous, body is plain and bright. */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--text); letter-spacing: var(--tracking-tight); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.9rem + 3vw, 4.25rem); font-weight: 200; line-height: 1.02; color: var(--lum); text-shadow: var(--lum-text-shadow); }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 300; line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: var(--size-base); font-weight: 500; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: 1em; }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.5; color: var(--mute); max-width: 56ch; text-wrap: pretty; }
.prose { max-width: var(--measure); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2 { margin: 2.4em 0 0.7em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose li + li { margin-top: 0.35em; }
.prose strong, b { font-weight: 600; color: var(--text); }
.num, .reading, [data-reading] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter) max(24px, env(safe-area-inset-right, 0px)); }
.wrap-narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--space-section); }
.section + .section { padding-top: 0; }
.rule { border-top: 1px solid var(--hair); }
.head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.head .lede { margin-top: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 52rem) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 34rem) { :root { --gutter: max(16px, env(safe-area-inset-left, 0px)); } .wrap { padding-inline: var(--gutter) max(16px, env(safe-area-inset-right, 0px)); } }

/* --------------------------------------------------------------------------
   Parts
   -------------------------------------------------------------------------- */

/* The key: the one lit action in a section. The trail after the word is the
   wake it leaves. */
.key, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  min-height: 3rem; padding: 0.75rem 1.35rem;
  font: 600 0.875rem / 1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  border: 1px solid transparent; border-radius: var(--radius-button);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.key-lit, .btn-primary { background: var(--wake); color: var(--ink-900); box-shadow: 0 0 0 0 transparent; }
.key-lit:hover, .btn-primary:hover { background: var(--lum); color: var(--ink-900); box-shadow: 0 6px 28px -6px var(--lum-soft); text-decoration: none; }
.key-lit:active, .btn-primary:active { background: var(--wake-deep); transform: translateY(1px); box-shadow: none; }
.key-ghost, .btn-ghost, .btn-secondary { background: transparent; color: var(--text); border-color: var(--hair-strong); }
.key-ghost:hover, .btn-ghost:hover, .btn-secondary:hover { color: var(--lum); border-color: var(--lum); text-decoration: none; }
.key-ghost:active, .btn-ghost:active, .btn-secondary:active { transform: translateY(1px); }
.key-sm, .btn-sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.75rem; }
.key[disabled], .btn[disabled], .key[aria-disabled="true"], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.key .trail, .btn .trail { width: 1.6em; height: 0.75em; flex: none; }
.key .trail path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.key .trail .trail-dots { stroke-dasharray: 0 3.2; stroke-width: 1.8; opacity: 0.6; transition: opacity var(--dur) var(--ease), stroke-dasharray var(--dur) var(--ease); }
.key:hover .trail .trail-dots { opacity: 1; stroke-dasharray: 0 2.4; }
.btn-row, .cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* The arrow link: a line that lights at its end. */
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; text-decoration: none; color: var(--text); }
.arrow-link::after { content: ""; width: 1.4rem; height: 1px; background: linear-gradient(90deg, var(--hair-strong), var(--wake)); transition: width var(--dur) var(--ease); }
.arrow-link:hover { color: var(--lum); }
.arrow-link:hover::after { width: 2.2rem; }

/* Stamps: the small lit labels on the water. Released is lit; Beta is traced. */
.stamp, .tag, .site-new, .site-legacy { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.28em 0.6em; border-radius: var(--radius-xs); font: 600 0.6875rem / 1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.stamp-lit, .site-new { color: var(--ink-900); background: var(--lum); }
.stamp-trace, .tag, .tag-quiet, .site-legacy { color: var(--lum); border: 1px solid var(--lum-soft); background: rgba(0, 229, 255, 0.05); }
.stamp-beta { color: var(--lum); border: 1px solid var(--lum-soft); background: rgba(0, 229, 255, 0.05); }
.stamp-quiet { color: var(--quiet); border: 1px solid var(--hair-strong); }

/* The pane: a raised surface in the water. A hairline, no shadow. */
.pane, .card { background: var(--ink-700); border: 1px solid var(--hair); border-radius: var(--radius-card); }
.pane-pad { padding: clamp(1.25rem, 2.5vw, 2rem); }
.pane-live { border-color: var(--lum-soft); }

/* A screen in the dark: a device capture with a thin bezel and its own light. */
.screen { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: default; }
.screen-glass { display: block; position: relative; border-radius: 10px; padding: 7px; background: #0b1119; border: 1px solid #1f2d3f; }
.screen-glass img, .screen-glass canvas { width: 100%; border-radius: 5px; image-rendering: auto; }
.screen-glow { position: absolute; inset: 10% 6%; z-index: -1; background: radial-gradient(ellipse at center, rgba(102, 246, 255, 0.22), transparent 70%); filter: blur(22px); }

/* Chips: a row of small choices, one lit. */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0.45rem 0.95rem; background: transparent; border: 1px solid var(--hair-strong); border-radius: var(--radius-pill); color: var(--mute); font: 500 0.875rem / 1.2 var(--font-body); cursor: pointer; transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.chip:hover { color: var(--text); border-color: var(--quiet); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { color: var(--ink-900); background: var(--lum); border-color: var(--lum); }
.chip-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.chip[aria-pressed="true"] .chip-dot { background: var(--ink-900); }
.chip-ok { color: var(--zone-ok); } .chip-hi { color: var(--zone-high); } .chip-lo { color: var(--zone-urgent); }

/* Tabs: a hairline rail with the live one lit. */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; padding: 0.8rem 1rem; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--mute); font: 500 var(--size-sm) / 1.2 var(--font-body); cursor: pointer; white-space: nowrap; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--lum); border-bottom-color: var(--wake); text-shadow: 0 0 12px var(--lum-faint); }
[role="tabpanel"][data-alt] { display: none; }
.js [role="tabpanel"][hidden] { display: none; }

/* Ticks and points: lists that read. */
.ticks, .points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li, .points li { position: relative; padding-left: 1.6rem; color: var(--mute); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.9rem; height: 1px; background: var(--wake); box-shadow: 0 0 8px var(--lum-soft); }
.points li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--lum); box-shadow: 0 0 10px var(--lum-soft); }
.points li b, .ticks li b { color: var(--text); }

/* Specs: term and value in two columns on a hairline. */
.specs { display: grid; gap: 0; margin: 0; }
.specs > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 0.65rem 0; border-top: 1px solid var(--hair); }
.specs dt { color: var(--quiet); font-size: var(--size-sm); font-weight: 500; }
.specs dd { margin: 0; color: var(--text); font-size: var(--size-sm); }

/* Steps: a numbered path down the water, the number lit. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--hair); }
.steps > li::before { content: counter(step, decimal-leading-zero); font: 200 2.4rem / 1 var(--font-display); color: var(--lum); text-shadow: var(--lum-text-shadow); font-variant-numeric: tabular-nums; }
.steps > li:last-child { border-bottom: 1px solid var(--hair); }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--mute); max-width: 60ch; }
.step-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.9rem; }
@media (max-width: 34rem) { .steps > li { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.9rem; } .steps > li::before { font-size: 1.7rem; } }

/* Callouts: a pane that names its kind in the line above. */
.callout { background: var(--ink-700); border: 1px solid var(--hair); border-radius: var(--radius-card); padding: 1.25rem 1.5rem; }
.callout-title { display: block; margin-bottom: 0.4rem; font: 600 var(--size-sm) / 1.4 var(--font-body); color: var(--text); }
.callout-safety, .callout-warning { border-color: var(--hair-strong); }
.callout-safety .callout-title, .callout-warning .callout-title { color: var(--lum); }
.callout-danger { border-color: rgba(239, 68, 68, 0.45); }
.callout-danger .callout-title { color: var(--zone-urgent-text); }
.callout-info { border-color: var(--lum-soft); }
.callout-info .callout-title { color: var(--lum); }

/* Forms. */
label { font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  background: var(--ink-800); color: var(--text); border: 1px solid var(--hair-strong); border-radius: var(--radius-input);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--quiet); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--lum); box-shadow: 0 0 0 3px var(--lum-faint); }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; }

/* Details: a hairline row that opens. */
details { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
details + details { border-top: 0; }
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 500; color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: 1px solid var(--lum); border-bottom: 1px solid var(--lum); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
details[open] > summary::after { transform: rotate(225deg); }
details > :not(summary) { padding-bottom: 1.25rem; }

/* Tables that scroll on a phone. */
.table-scroll, .table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--radius-card); }
.table-scroll table { min-width: 36rem; }
.table-scroll th, .table-scroll td, .table-wrap th, .table-wrap td { padding: 0.8rem 1rem; }

/* The lightbox. */
.lightbox { padding: 0; border: 1px solid var(--hair-strong); border-radius: var(--radius-card); background: var(--ink-800); color: var(--text); max-width: min(96vw, 1100px); }
.lightbox::backdrop { background: rgba(3, 6, 11, 0.86); backdrop-filter: blur(6px); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox-cap { padding: 0.9rem 1.25rem; color: var(--mute); font-size: var(--size-sm); }
.lightbox-close { position: absolute; top: 0.5rem; right: 0.5rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--ink-700); color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* The safety line every page ends with. */
.safety { padding: 0 0 var(--space-section); }
.safety-box { display: grid; gap: 0.6rem; max-width: 72ch; padding: 1.5rem 1.75rem; border: 1px solid var(--hair-strong); border-radius: var(--radius-card); background: var(--ink-800); }
.safety-title { font: 400 var(--size-xl) / 1.3 var(--font-display); color: var(--lum); }
.safety p { color: var(--mute); font-size: var(--size-sm); }

/* Rise: a section surfaces from dark once, as it enters. Visible by default; the
   script adds .rise-watch only when motion is allowed. */
.rise-watch .rise { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
.rise-watch .rise.is-in { opacity: 1; transform: none; }
.rise-watch .rise-2 { transition-delay: 90ms; } .rise-watch .rise-3 { transition-delay: 180ms; } .rise-watch .rise-4 { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) { .rise-watch .rise { opacity: 1; transform: none; transition: none; } }
