/*
 * Fluxer.Now: the one stylesheet. Warm paper and ink in light, deep ink in dark, one hot accent (Departure Orange).
 * Bricolage Grotesque for display, Instrument Sans for reading, JetBrains Mono for labels and code, all self-hosted (OFL).
 * Copyright (c) 2026 FluxerHost. All Rights Reserved.
 */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  --bg: #F4EEE4; --bg2: #ECE4D7; --surface: #FFFBF5; --fg: #16121D; --muted: #5F5866; --faint: #8E8794;
  --line: rgba(22, 18, 29, 0.12); --line-strong: rgba(22, 18, 29, 0.22);
  /* The accent: Fluxer orange, unless accent.js has set the --pick-* ones. */
  --accent: var(--pick, #FF5A36); --accent-ink: var(--pick-ink-l, #C93C1B); --accent-soft: var(--pick-soft, rgba(255, 90, 54, 0.12)); --on-accent: var(--pick-on, #1A0A05);
  --d: #8B84A0; --d-soft: rgba(139, 132, 160, 0.38);
  --ok: #17885C; --redo: #B57A00; --stay: #7C7590;
  --ink-block: #16121D; --ink-block-fg: #F4EEE4;
  --shadow: 0 1px 0 rgba(22, 18, 29, 0.04), 0 18px 40px -24px rgba(22, 18, 29, 0.28);
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 14px; --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E0C13; --bg2: #15121C; --surface: #1A1722; --fg: #F4EEE4; --muted: #A9A2B3; --faint: #77707F;
  --line: rgba(244, 238, 228, 0.1); --line-strong: rgba(244, 238, 228, 0.2);
  --accent: var(--pick, #FF6442); --accent-ink: var(--pick-ink-d, #FF8A6C); --accent-soft: var(--pick-soft-d, rgba(255, 100, 66, 0.14));
  --d: #8F88A6; --d-soft: rgba(143, 136, 166, 0.35);
  --ok: #3CCB8F; --redo: #F0B429; --stay: #9A93AE;
  --ink-block: #1F1B29; --ink-block-fg: #F4EEE4;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0C13; --bg2: #15121C; --surface: #1A1722; --fg: #F4EEE4; --muted: #A9A2B3; --faint: #77707F;
    --line: rgba(244, 238, 228, 0.1); --line-strong: rgba(244, 238, 228, 0.2);
    --accent: var(--pick, #FF6442); --accent-ink: var(--pick-ink-d, #FF8A6C); --accent-soft: var(--pick-soft-d, rgba(255, 100, 66, 0.14));
    --d: #8F88A6; --d-soft: rgba(143, 136, 166, 0.35);
    --ok: #3CCB8F; --redo: #F0B429; --stay: #9A93AE;
    --ink-block: #1F1B29; --ink-block-fg: #F4EEE4;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 24px 48px -28px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.62 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* A whisper of paper grain over everything. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.035; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; opacity: 0.035; } }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.4em; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; line-height: 1.1; letter-spacing: -0.01em; margin: 0; font-weight: 750; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
main { outline: none; }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; margin: 0 -28px; padding-left: 28px; padding-right: 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 750 1.28rem/1 var(--display); letter-spacing: 0; }
.brand svg { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.brand:hover { color: var(--fg); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.brand b { color: var(--accent); font-weight: 750; }
.top-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a, .theme {
  font: 600 0.92rem/1 var(--body); text-decoration: none; padding: 9px 12px; border-radius: 999px; color: var(--muted);
  border: 0; background: none; cursor: pointer; transition: color .2s, background .2s;
}
.top-nav a:hover, .theme:hover { color: var(--fg); background: var(--bg2); }
.top-nav a[aria-current="page"] { color: var(--fg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.theme { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line); margin-left: 6px; }

.menu-btn { display: none; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font: 600 0.9rem/1 var(--body); cursor: pointer; }
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-icon i:first-child { top: 0; } .menu-icon i:last-child { top: 8px; }
.menu-open .menu-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-icon i:last-child { top: 4px; transform: rotate(-45deg); }

.notice { margin: 0; padding: 10px 0; font: 500 0.74rem/1.5 var(--mono); letter-spacing: 0.02em; color: var(--faint); border-bottom: 1px solid var(--line); }
.notice a { color: var(--muted); }

.dev-banner { background: repeating-linear-gradient(-45deg, #FFD23F 0 14px, #FFC300 14px 28px); color: #1A1400; font: 600 0.8rem/1.4 var(--mono); padding: 8px 16px; text-align: center; }
.dev-banner a { color: inherit; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 650 1rem/1 var(--body);
  text-decoration: none; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--fg); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 10px 30px -12px var(--accent); }
.btn.primary:hover { color: var(--on-accent); box-shadow: 0 16px 36px -12px var(--accent); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 11vw, 128px) 0 clamp(48px, 8vw, 96px); isolation: isolate; }
.hero-waves { position: absolute; inset: 0 -28px; z-index: -1; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent); }
.hero-waves svg { width: 300%; height: 100%; max-width: none; animation: drift 33s linear infinite; }
.hero-waves path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-waves .w1 { stroke: var(--accent); stroke-width: 2; opacity: 0.55; }
.hero-waves .w2 { stroke: var(--accent); stroke-width: 1; opacity: 0.3; }
.hero-waves .w3 { stroke: var(--fg); stroke-width: 1; opacity: 0.12; }
/* The original gentle waves, on a strip three screens wide that holds exactly two of their periods (1800 each in a
   3600-wide viewBox), so sliding it by half loops with no seam: one continuous, endless drift, at the old speed. */
@keyframes drift { to { transform: translateX(-50%); } }
.hero-title { font-size: clamp(2.8rem, 9vw, 7.4rem); line-height: 1; letter-spacing: -0.02em; font-weight: 800; max-width: 11ch; }
.hero-title span { display: block; }
.hero-title span:nth-child(2) { color: var(--muted); font-weight: 600; }
.hero-title .now { color: var(--accent); position: relative; }
.hero-title .now b { display: inline-block; margin-left: 0.02em; transform-origin: 50% 90%; animation: bang 2.8s var(--ease) infinite; }
@keyframes bang { 0%, 72%, 100% { transform: rotate(0); } 78% { transform: rotate(14deg) translateY(-4%); } 86% { transform: rotate(-8deg); } 92% { transform: rotate(3deg); } }
.hero-title span { opacity: 0; transform: translateY(0.35em); animation: rise .9s var(--ease) forwards; }
.hero-title span:nth-child(2) { animation-delay: .12s; }
.hero-title span:nth-child(3) { animation-delay: .24s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-lead { font-size: clamp(1.1rem, 1.9vw, 1.32rem); max-width: 40ch; color: var(--muted); margin-top: 28px; }
.hero-holding { min-height: 60vh; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: clamp(40px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.hero + .section { border-top: 1px solid var(--line-strong); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.015em; }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── What comes with you: a ledger ───────────────────────────────────────── */
.manifest { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.mf {
  display: grid; grid-template-columns: 34px minmax(140px, 1.1fr) 150px minmax(0, 2fr) auto; gap: 18px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line); transition: background .25s;
}
.mf:hover { background: var(--accent-soft); }
.mf svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; }
.mf strong { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.005em; }
.mf-fate { font: 600 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.mf-how { color: var(--muted); font-size: 0.98rem; }
.mf a { font: 600 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.mf a:hover { color: var(--fg); border-color: var(--fg); }
.mf-moves svg { color: #fff; background: var(--ok); } .mf-moves .mf-fate { color: var(--ok); }
.mf-redo svg { color: #1A1400; background: var(--redo); } .mf-redo .mf-fate { color: var(--redo); }
.mf-stays svg { color: #fff; background: var(--stay); } .mf-stays .mf-fate { color: var(--stay); }
.mf-stays strong { text-decoration: line-through; text-decoration-color: var(--stay); text-decoration-thickness: 2px; }

/* ── The smart fridge ─────────────────────────────────────────────────────── */
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(28px, 6vw, 80px); align-items: start; }
.try-copy h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 18px; }
.try-copy > p { color: var(--muted); max-width: 44ch; }
.try-key { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 0.72rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.try-key li { display: flex; align-items: center; gap: 8px; }
.try-key li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.k-moves::before { background: var(--ok); } .k-redo::before { background: var(--redo); } .k-stays::before { background: var(--stay); }
.receipt {
  margin-top: 30px; padding: 22px 22px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px 6px 0 0;
  box-shadow: var(--shadow); max-width: 440px; position: relative;
  -webkit-mask: radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
          mask: radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
}
.receipt-head { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong); font: 700 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.receipt-list { list-style: none; margin: 0; padding: 0; font: 500 0.82rem/1.45 var(--mono); }
.receipt-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px dotted var(--line-strong); animation: print-in .4s var(--ease); }
.receipt-list li b { font-weight: 700; }
.receipt-list li i { font-style: normal; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.receipt-list li span { grid-column: 1 / -1; color: var(--muted); font-family: var(--body); font-size: 0.9rem; }
.receipt-list .r-moves i { color: var(--ok); } .receipt-list .r-redo i { color: var(--redo); } .receipt-list .r-stays i { color: var(--stay); }
@keyframes print-in { from { opacity: 0; transform: translateY(-6px); } }

.fridge { width: 100%; max-width: 430px; margin: 0 auto; position: relative; isolation: isolate; }
.fridge::after { /* its shadow on the floor */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -12px; height: 28px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .4), transparent); z-index: -1;
}
.fridge-unit {
  position: relative; border-radius: 46px 46px 16px 16px; padding: 10px 10px 0;
  background: linear-gradient(90deg, #DCCDB0 0%, #F3E9D6 14%, #FAF3E6 40%, #EFE3CC 72%, #D2C1A2 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), 0 30px 60px -36px rgba(30, 20, 10, .7);
  color: #3A3026;
}
.fridge-freezer, .fridge-main {
  position: relative;
  background: linear-gradient(90deg, #EDE0C6 0%, #F9F1E2 22%, #FFFAF1 45%, #F4E9D4 78%, #E3D3B5 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9), inset 0 -2px 0 rgba(120, 90, 50, .18), 0 3px 0 rgba(120, 90, 50, .28);
}
.fridge-freezer { height: 150px; border-radius: 38px 38px 10px 10px; }
.fridge-main { margin-top: 9px; border-radius: 10px 10px 12px 12px; padding: 26px 58px 30px 22px; }
.fridge-handle {
  position: absolute; right: 20px; top: 34px; width: 14px; height: 84px; border-radius: 10px;
  background: linear-gradient(90deg, #8E949B, #F4F6F8 40%, #C9CED4 60%, #7D838A);
  box-shadow: -3px 6px 8px -4px rgba(0, 0, 0, .45);
}
.fridge-handle::before, .fridge-handle::after { content: ""; position: absolute; left: -8px; width: 10px; height: 8px; border-radius: 3px; background: #A7ADB4; }
.fridge-handle::before { top: 8px; } .fridge-handle::after { bottom: 8px; }
.fridge-handle-long { top: 30px; height: 210px; }
.fridge-note {
  position: absolute; left: 150px; top: 30px; padding: 12px 14px; background: #FFF4A6; color: #4A3F10; transform: rotate(4deg);
  font: 600 0.8rem/1.4 var(--body); box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .4);
}
.fridge-note::before { content: ""; position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
.magnets { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 2; left: 30px; top: 36px; display: grid; grid-template-columns: auto auto; gap: 10px 8px; align-items: center; }
.magnets li { font: 800 0.78rem/1 var(--display); padding: 8px 9px; border-radius: 6px; box-shadow: 0 4px 6px -2px rgba(0, 0, 0, .35); color: #fff; letter-spacing: 0.04em; text-align: center; }
.magnets .mg1 { background: var(--accent); transform: rotate(-6deg); }
.magnets .mg2 { background: #FFD23F; color: #1A1400; transform: rotate(8deg); width: 30px; }
.magnets .mg3 { background: #2E7DD7; transform: rotate(-3deg); }
.magnets .mg4 { background: #17885C; transform: rotate(10deg); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; }
.fridge-kick { height: 38px; margin: 9px 0 0; border-radius: 0 0 8px 8px; position: relative; background: linear-gradient(180deg, #D9C9AB, #C9B793); }
.fridge-kick::before { content: ""; position: absolute; left: 14%; right: 14%; top: 10px; bottom: 10px; border-radius: 4px; background: repeating-linear-gradient(90deg, #3A3129 0 4px, #6B5D4D 4px 8px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.fridge-feet { display: flex; justify-content: space-between; padding: 0 30px; }
.fridge-feet span { width: 34px; height: 10px; border-radius: 0 0 6px 6px; background: #2A2520; }

.fridge-screen {
  position: relative; min-height: 470px; border-radius: 16px; overflow: hidden; color: #EDE8F2;
  background: radial-gradient(130% 80% at 20% 0%, #211C2E 0%, #0B0A10 62%); border: 6px solid #15131A;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 10px 18px -10px rgba(0, 0, 0, .55);
}
.fridge-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 30%); }
.fridge-wake { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; background: transparent; color: #EDE8F2; cursor: pointer; font: inherit; }
.fridge-wake strong { font: 700 1.5rem/1.15 var(--display); animation: breathe 2.6s ease-in-out infinite; }
.fridge-wake span:last-child { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: .45; }
.fridge-wake-snow { font-size: 2.6rem; line-height: 1; color: #7FE3FF; animation: spin 9s linear infinite; text-shadow: 0 0 24px rgba(127, 227, 255, .6); }
.fridge-wake:hover strong { color: #fff; }
@keyframes breathe { 50% { opacity: .5; } }
@keyframes spin { to { transform: rotate(360deg); } }
.fridge.asleep .sim { visibility: hidden; }
.fridge.waking .fridge-wake, .fridge.awake .fridge-wake { display: none; }
.fridge.waking .fridge-screen { animation: power-on .9s var(--ease); }
.fridge.waking .sim { animation: screen-in .9s var(--ease); }
@keyframes power-on { 0% { filter: brightness(3) contrast(.4); clip-path: inset(49.5% 0 49.5% 0); } 35% { clip-path: inset(49% 0 49% 0); filter: brightness(2.4); } 60% { clip-path: inset(0); filter: brightness(1.4); } 100% { clip-path: inset(0); filter: none; } }
@keyframes screen-in { 0%, 50% { opacity: 0; } 100% { opacity: 1; } }

/* The simulator, on the fridge's screen. Always a dark screen, whatever the site's theme. */
.sim { position: relative; z-index: 1; padding: 12px 14px 16px; }
.sim-bar { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 0.62rem/1 var(--mono); letter-spacing: 0.04em; color: #7FE3FF; }
.sim-bar span:first-child { color: #A49DB2; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sim-label { margin: 14px 0 8px; font: 600 0.62rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: #A49DB2; display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-d { background: #8B84A0; }
.dot-f { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sim-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.sim-bin { padding: 6px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .14); min-height: 44px; align-content: flex-start; }
.sim-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sim-pair .sim-label { min-height: 2em; align-items: flex-end; }
.chip { padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font: 600 0.8rem/1.15 var(--body); white-space: nowrap; will-change: transform; }
.chip.fate-moves { border-color: rgba(60, 203, 143, .55); background: rgba(60, 203, 143, .16); color: #C9F5E2; }
.chip.fate-redo { border-color: rgba(240, 180, 41, .5); background: rgba(240, 180, 41, .13); color: #FBE7B5; }
.chip.fate-stays { background: transparent; color: #8E879E; text-decoration: line-through; }
.sim-mid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sim-mid .btn { padding: 10px 16px; font-size: 0.88rem; white-space: nowrap; }
.sim-reset { background: transparent; color: #EDE8F2; border-color: rgba(255, 255, 255, .25); }
.sim-reset:hover { color: #fff; border-color: #fff; }
.sim-status { margin: 10px 0 0; font: 500 0.7rem/1.5 var(--mono); color: #CFC8DB; min-height: 3em; }
.sim-noscript { margin: 12px 0 0; color: #CFC8DB; font-size: 0.85rem; }

a.more { font-weight: 600; }
.try-next { margin-top: 26px; color: var(--muted); }
.try-page { border-top: 0; padding-top: 0; }
.fridge-note { z-index: 3; min-width: 124px; min-height: 66px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.fridge-note.dragging { cursor: grabbing; box-shadow: 0 12px 18px -6px rgba(0, 0, 0, .45); z-index: 6; }
.fridge-note s { text-decoration-thickness: 2px; text-decoration-color: #C93C1B; opacity: .75; }
.magnets li { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; position: relative; z-index: 2; }
.magnets li.dragging { cursor: grabbing; box-shadow: 0 10px 16px -4px rgba(0, 0, 0, .45); z-index: 5; }

/* ── Numbers ──────────────────────────────────────────────────────────────── */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.num { padding: 8px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.num:nth-child(5) { border-right: 0; }
.num strong { display: block; font: 800 clamp(3rem, 6.4vw, 5rem)/1 var(--display); letter-spacing: -0.02em; color: var(--fg); }
.num:first-of-type strong { color: var(--accent); }
.num span { display: block; margin-top: 10px; color: var(--muted); max-width: 18ch; }
.numbers-more { grid-column: 1 / -1; margin: 28px 0 0; font: 500 0.78rem/1.5 var(--mono); color: var(--faint); }

/* ── The route over ───────────────────────────────────────────────────────── */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: p; position: relative; }
.path::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.path a { position: relative; display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding-bottom: 6px; }
.path-n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem/1 var(--mono); background: var(--bg); border: 2px solid var(--fg); transition: background .25s, color .25s, transform .35s var(--ease); }
.path strong { font: 700 1.2rem/1.15 var(--display); letter-spacing: -0.005em; margin-top: 6px; }
.path span:last-child { color: var(--muted); font-size: 0.95rem; }
.path a:hover .path-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-4px); }
.path a:hover strong { color: var(--accent-ink); }

/* ── The honest bits ──────────────────────────────────────────────────────── */
.honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--fg); }
.honest > div { padding: 24px 28px 22px 0; border-bottom: 1px solid var(--line); }
.honest > div:nth-child(odd) { border-right: 1px solid var(--line); }
.honest > div:nth-child(even) { padding-left: 28px; }
.honest strong { display: block; font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.005em; margin-bottom: 8px; }
.honest p { margin: 0; color: var(--muted); }
.honest-more { margin: 22px 0 0; color: var(--muted); }

/* ── Call to action ───────────────────────────────────────────────────────── */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 52px); border-radius: var(--r-lg); background: var(--ink-block); color: var(--ink-block-fg); position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 2px solid var(--accent); opacity: .35; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.015em; }
.cta-band p { margin: 10px 0 0; opacity: .7; max-width: 44ch; }
.cta-band .btn { position: relative; z-index: 1; }

/* ── Page heads, guides ───────────────────────────────────────────────────── */
.page-head { padding: clamp(44px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); letter-spacing: -0.015em; line-height: 1.04; max-width: 16ch; }
.page-head .lead { margin-top: 20px; }
.crumbs, .crumb { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.crumbs a, .crumb { color: var(--muted); text-decoration: none; }
.crumbs a:hover, .crumb:hover { color: var(--accent-ink); }
.guide-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-meta div { padding: 14px 28px 14px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.guide-meta div:last-child { border-right: 0; }
.guide-meta dt { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.guide-meta dd { margin: 0; font-weight: 600; }

.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--fg); }
.guide-card {
  display: grid; grid-template-columns: 84px 1fr; gap: 6px 18px; padding: 28px 24px 28px 0; text-decoration: none; border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.guide-card:nth-child(odd) { border-right: 1px solid var(--line); }
.guide-card:nth-child(even) { padding-left: 24px; }
.guide-card:hover { background: var(--accent-soft); color: var(--fg); }
.guide-card-n { grid-row: span 3; font: 800 3rem/0.9 var(--display); letter-spacing: -0.02em; color: var(--line-strong); transition: color .25s; }
.guide-card:hover .guide-card-n { color: var(--accent); }
.guide-card strong { font: 700 1.45rem/1.15 var(--display); letter-spacing: -0.01em; }
.guide-card-sum { color: var(--muted); }
.guide-card-meta { font: 500 0.74rem/1.4 var(--mono); color: var(--faint); letter-spacing: 0.02em; }

.prose-section { padding-top: 0; border-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.prose { padding: clamp(24px, 5vw, 56px); max-width: 860px; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 0.6em; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { font: 600 0.7rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--fg); }
.prose .updated, .checked { margin: 2.2em 0 0; padding-top: 1.2em; border-top: 1px solid var(--line); font: 500 0.78rem/1.6 var(--mono); color: var(--faint); }
.prose .checked a, .checked a { color: var(--muted); }
.tbc { background: #FFE9A8; color: #3A2C00; padding: 0 0.25em; border-radius: 4px; }

.steps { list-style: none; padding: 0 !important; margin: 0 !important; }
.step { position: relative; padding: 0 0 34px 72px; margin: 0 !important; }
.step::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step h2 { font-size: 1.45rem !important; margin: 6px 0 12px !important; }
.step-n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--mono); background: var(--fg); color: var(--bg); }
.step:first-child .step-n { background: var(--accent); color: var(--on-accent); }
.step-body > :last-child { margin-bottom: 0; }

.box { display: block; margin: 18px 0; padding: 16px 18px 16px 20px; border-radius: var(--r); border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); }
.box > strong { display: block; font: 700 0.98rem/1.3 var(--body); margin-bottom: 6px; }
.box p:last-child { margin-bottom: 0; }
.box-heads-up { border-left-color: var(--redo); background: color-mix(in srgb, var(--redo) 11%, transparent); }
.quote { font-family: var(--display); font-size: 1.12rem; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }

.click { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 16px; font: 500 0.82rem/1 var(--mono); }
.click-app { padding: 6px 9px; border-radius: 6px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.7rem; }
.click-discord { background: var(--d-soft); color: var(--fg); }
.click-fluxer { background: var(--accent); color: var(--on-accent); }
.click-sep { color: var(--faint); }
.click > :not(.click-app):not(.click-sep) { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 14px; }
.split > div { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); }
.split p { margin: 6px 0 0; color: var(--muted); font-size: 0.96rem; }
.split-yes { border-top: 4px solid var(--ok) !important; }
.split-wait { border-top: 4px solid var(--redo) !important; }
.mini { margin-top: 8px !important; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; max-width: 860px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font: 700 1.1rem/1.25 var(--display); letter-spacing: -0.005em; transition: border-color .2s, transform .3s var(--ease); }
.pager a span { font: 600 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.pager a:hover { border-color: var(--fg); transform: translateY(-2px); color: var(--fg); }
.pager-next { text-align: right; align-items: flex-end; grid-column: 2; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 860px) minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 96px; padding-top: 8px; }
.toc p { margin: 0 0 12px; font: 600 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: flex; gap: 10px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: 0.94rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a span { font: 600 0.78rem/1.6 var(--mono); color: var(--faint); }
.toc a:hover { color: var(--fg); border-left-color: var(--accent); }
.step { scroll-margin-top: 90px; }

/* ── Compare ──────────────────────────────────────────────────────────────── */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-card { margin: 0; padding: 24px 24px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; }
.chart-card:first-child { grid-column: 1 / -1; }
.chart-card figcaption { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.005em; margin-bottom: 16px; padding-right: 150px; }
.chart { width: 100%; height: auto; overflow: visible; }
.c-label { font: 500 13px var(--body); fill: var(--muted); }
.c-val { font: 600 13px var(--mono); fill: var(--fg); }
.c-bar { transform-box: fill-box; transform-origin: left center; transition: transform 1.1s var(--ease); }
.c-f { fill: var(--accent); }
.c-d { fill: var(--d); }
.c-extra { fill: var(--d-soft); }
.c-extra-val { fill: var(--faint); font-weight: 500; }
[data-extra] { opacity: 0; transition: opacity .4s; }
.show-extra [data-extra] { opacity: 1; }
.show-extra .c-base-val { opacity: 0; }
.reveal .c-bar { transform: scaleX(0); }
.reveal.in .c-bar { transform: none; }
.reveal.in .c-bar.c-d { transition-delay: .15s; }
.chart-toggle { position: absolute; top: 22px; right: 22px; display: none; align-items: center; gap: 8px; font: 500 0.72rem/1.2 var(--mono); color: var(--muted); cursor: pointer; max-width: 150px; text-align: right; }
.chart-toggle.ready { display: flex; }
.chart-toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; order: 2; }
.chart-toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .25s var(--ease); }
.chart-toggle input:checked { background: var(--d); }
.chart-toggle input:checked::after { transform: translateX(14px); }
.chart-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; font: 500 0.78rem/1.5 var(--mono); color: var(--faint); }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key-f { background: var(--accent); } .key-d { background: var(--d); margin-left: 10px; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--fg); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 700 1.25rem/1 var(--display); letter-spacing: -0.005em; padding-top: 18px; }
.compare thead th:nth-child(2) { color: var(--accent-ink); }
.compare tbody th { font-weight: 600; width: 36%; }
.compare td { color: var(--muted); }
.compare td.ahead { color: var(--fg); font-weight: 600; }
.compare td.ahead::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.compare td:nth-child(3).ahead::before { background: var(--d); }

/* ── Checklist ────────────────────────────────────────────────────────────── */
.cl-bar { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 14px 18px; margin-bottom: 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cl-bar p { margin: 0; font: 600 0.85rem/1 var(--mono); white-space: nowrap; }
.cl-progress { flex: 1; height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.cl-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .5s var(--ease); }
.cl.complete .cl-progress span { background: var(--ok); }
.cl-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cl-group { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); min-width: 0; }
.cl-group legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.005em; }
.cl-group legend a { text-decoration: none; }
.cl-group ul { clear: both; list-style: none; margin: 0; padding: 0; }
.cl-group label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cl-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; margin-top: 1px; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.tick svg { width: 14px; height: 14px; color: var(--on-accent); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease); }
.cl-group input:checked + .tick { background: var(--accent); border-color: var(--accent); transform: rotate(-4deg); }
.cl-group input:checked + .tick svg { opacity: 1; transform: none; }
.cl-group input:checked ~ span:last-child { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--accent); }
.cl-group input:focus-visible + .tick { outline: 3px solid var(--accent); outline-offset: 2px; }
.cl-link { display: inline-block; margin: -4px 0 10px 34px; font: 500 0.76rem/1.3 var(--mono); color: var(--accent-ink); }
.cl-aside { font: 500 0.72rem/1.3 var(--mono); color: var(--faint); }
.small-note { font: 500 0.8rem/1.5 var(--mono); color: var(--faint); }
.small-note a { color: var(--muted); }
.cl-actions { margin-top: 20px; }
.cl-note { margin: 16px 0 0; font: 500 0.76rem/1.5 var(--mono); color: var(--faint); }

/* ── Resources, legal and sitemap lists ───────────────────────────────────── */
.section > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.015em; margin: 1.6em 0 0.8em; }
.section > h2:first-child { margin-top: 0; }
.res { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--fg); }
.res a { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 18px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .3s var(--ease); }
.res a:hover { background: var(--accent-soft); padding-left: 12px; color: var(--fg); }
.res strong { font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.005em; }
.res span { color: var(--muted); }
.res code { background: none; border: 0; padding: 0; color: var(--faint); font-size: 0.74rem; text-align: right; overflow-wrap: anywhere; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 1.6em; }
.legal-grid a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.legal-grid a:hover { border-color: var(--fg); transform: translateY(-2px); color: var(--fg); }
.legal-grid strong { font: 700 1.05rem/1.25 var(--display); }
.legal-grid span { color: var(--muted); font-size: 0.92rem; }

/* Changelog badges: the fixed order and colours used across every project. */
.prose h3 .cl-badge { display: inline-block; font: 700 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 5px; color: #16121D; background: var(--line); }
.cl-badge.cl-added { background: #2ecc71; }
.cl-badge.cl-changed { background: #3ba7ff; }
.cl-badge.cl-fixed { background: #ffa64d; }
.cl-badge.cl-removed { background: #ff4d4d; }
.cl-badge.cl-security { background: #b06bff; }
.cl-badge.cl-deprecated { background: #8a8a94; }

/* ── Errors ───────────────────────────────────────────────────────────────── */
.error-page { min-height: 52vh; }
.label { display: inline-block; font: 600 0.74rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
/* The footer: brand and links, then who's behind it beside the extras, then the small print. Hairlines between. */
.footer { margin-top: clamp(40px, 7vw, 88px); padding: 40px 0 36px; border-top: 1px solid var(--fg); display: grid; gap: 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px 56px; }
.footer-about p { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-h { margin: 0 0 4px; font: 600 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.footer-col a { text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.footer-base { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 40px; }
.footer-by { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-mid { flex-direction: column; align-items: flex-start; }
  .footer-by { white-space: normal; flex-wrap: wrap; }
}
.credit { display: inline; line-height: 1.6; }
.credit-icon { display: inline-block; vertical-align: -3px; margin: 0 1px; }
.credit .credit-person { display: inline-flex; vertical-align: middle; margin-left: 2px; }
.credit-icon svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.credit-heart { color: var(--accent); }
.credit-code { color: #2E9BF0; }
.credit-coffee { color: #B9773A; }
.credit:hover .credit-heart svg { transform: scale(1.2); }
.credit:hover .credit-code svg { transform: rotate(-8deg); }
.credit:hover .credit-coffee svg { transform: translateY(-2px); }
.credit-person { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.credit-person:hover { filter: none; opacity: 1; }
.credit-person img { width: 20px; height: 20px; border-radius: 50%; }
.version { font: 500 0.78rem/1 var(--mono); text-decoration: none; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); }
.footer-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.footer-owner { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 0.9rem; }
.footer-owner-name { display: inline-flex; align-items: center; gap: 7px; }
.footer-owner:hover { color: var(--fg); }
.footer-owner strong { color: var(--fg); font-weight: 650; }
.footer-owner-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #0E0C13; box-shadow: inset 0 0 0 1px var(--line-strong); }
.footer-owner-logo img { display: block; width: 20px; height: 20px; filter: grayscale(1); opacity: .85; transition: filter .2s ease, opacity .2s ease; }
/* FluxerHost's logo, muted like Stuxedo's badge until hovered or focused. */
.footer-owner:hover .footer-owner-logo img, .footer-owner:focus-visible .footer-owner-logo img { filter: grayscale(0); opacity: 1; }
/* FluxerHost's name as fluxer.host writes it: bold, tight, in fluxer.host's own font stack (its --font-sans: the
   system sans, no web font), "Host" in its green (#71d87a). That green
   is too pale on the light theme's cream, so the light theme uses a deeper shade of it. */
.fh-name { font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-weight: 700; letter-spacing: -0.025em; color: var(--fg); }
.fh-name span { color: #71d87a; }
:root[data-theme="light"] .fh-name span { color: #2E9A44; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .fh-name span { color: #2E9A44; } }
/* In the footer it's muted, like the icon and Stuxedo's badge, until hovered or focused. */
.footer-owner .fh-name span { color: var(--muted); transition: color .2s ease; }
.footer-owner:hover .fh-name span, .footer-owner:focus-visible .fh-name span { color: #71d87a; }
:root[data-theme="light"] .footer-owner:hover .fh-name span { color: #2E9A44; }
/* FluxerHost's icon before its name in the legal pages: its own logo is white and green, so it sits on a dark tile. */
.owner-mark { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .35em; vertical-align: -.4em; border-radius: .4em; background: #0E0C13; box-shadow: inset 0 0 0 1px var(--line-strong); }
.owner-mark img { display: block; width: 1.05em; height: 1.05em; }
/* Stuxedo's full logo, wherever Stuxedo is named outside the footer (the footer has its badge). */
.host-logo { display: inline-block; text-decoration: none; }
.host-logo img { display: block; width: 210px; height: auto; max-width: 100%; }
.host-logo-inline { display: inline-block; height: 1.35em; width: auto; vertical-align: -.35em; }
/* Stuxedo's text badge: the light version on light pages, the dark one on dark pages, grey and dimmed until hovered or
   focused, the way Stuxedo's other sites show it. */
.footer-host { display: inline-block; }
.footer-host img { display: block; height: 35px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.footer-host:hover img, .footer-host:focus-visible img { filter: grayscale(0); opacity: 1; }
.footer-host .badge-on-dark { display: none; }
:root[data-theme="dark"] .footer-host .badge-on-light { display: none; }
:root[data-theme="dark"] .footer-host .badge-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-host .badge-on-light { display: none; }
  :root:not([data-theme="light"]) .footer-host .badge-on-dark { display: block; }
}
.footer-copy { margin: 0; flex: 1 1 420px; font: 500 0.74rem/1.6 var(--mono); color: var(--faint); max-width: 78ch; }
.footer-copy a { color: var(--muted); }

/* ── Small screens ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .try-grid { grid-template-columns: 1fr; }
  .try-copy { display: contents; }
  .try-copy > * { order: 0; }
  .try-grid > .fridge { order: 1; margin-top: 8px; }
  .try-copy > .receipt { order: 2; margin-top: 18px; }
  .try-copy > .try-next { order: 3; }
  .receipt { max-width: none; }
  .path { grid-template-columns: 1fr; gap: 0; }
  .path::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px); }
  .path a { display: grid; grid-template-columns: 46px 1fr; gap: 2px 16px; padding: 10px 0; }
  .path-n { grid-row: span 2; }
  .path strong { margin-top: 2px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .num:nth-child(2n) { border-right: 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .top-nav a { padding: 8px 9px; font-size: 0.86rem; }
  .has-menu .menu-btn { display: inline-flex; }
  .has-menu .top-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 22px; background: var(--bg); border-bottom: 1px solid var(--line-strong); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .5);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .menu-open .top-nav { display: flex; animation: menu-in .3s var(--ease); }
  .has-menu .top-nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font: 700 1.35rem/1.1 var(--display); color: var(--fg); background: none; box-shadow: none; }
  .has-menu .top-nav a[aria-current="page"] { color: var(--accent-ink); }
  .has-menu .theme { margin: 18px 0 0; align-self: flex-start; padding: 12px 16px; }
  .theme { display: none; }
  .has-menu .theme:not([hidden]) { display: inline-flex; }
  .section-head { grid-template-columns: 1fr; }
  .mf { grid-template-columns: 30px 1fr auto; gap: 6px 12px; }
  .mf-fate { grid-column: 2; grid-row: 2; }
  .mf-how { grid-column: 2 / -1; grid-row: 3; font-size: 0.92rem; }
  .mf a { grid-column: 3; grid-row: 1; }
  .honest, .guide-grid, .charts, .cl-form, .legal-grid, .split, .pager { grid-template-columns: 1fr; }
  .honest > div, .honest > div:nth-child(even) { padding-left: 0; border-right: 0 !important; }
  .guide-card, .guide-card:nth-child(even) { padding-left: 0; border-right: 0 !important; grid-template-columns: 56px 1fr; }
  .guide-card-n { font-size: 2.2rem; }
  .pager-next { grid-column: 1; }
  .res a { grid-template-columns: 1fr; gap: 4px; }
  .fridge-main { padding: 20px 46px 24px 16px; }
  .fridge-handle { right: 14px; }
  .fridge-note { left: auto; right: 54px; }
  .chart-card figcaption { padding-right: 0; }
  .chart-toggle { position: static; justify-content: flex-start; margin: -6px 0 12px; max-width: none; text-align: left; }
  .chart-toggle input { order: 0; }
  .cl-bar { top: 58px; }
  .step { padding-left: 58px; }
  .step-n { width: 38px; height: 38px; }
  .step::before { left: 18px; top: 44px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num { margin-right: 14px; padding-right: 14px; }
}

/* Cool projects (/projects and the home page): an editorial ledger, one hairline row per project. The whole row is the link. */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); counter-reset: none; }
.project { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background-color .25s ease, padding .25s ease; }
.project-n { font: 500 0.8rem/1 var(--mono); color: var(--faint); letter-spacing: 0.04em; }
.project-main { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; min-width: 0; }
.project-main > p { flex: 1 0 100%; }
.project h3 { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -0.01em; }
.project h3 a { text-decoration: none; }
.project h3 a::after { content: ""; position: absolute; inset: 0; }
.project-kind { justify-self: start; white-space: nowrap; font: 600 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); }
.project-tag { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 1.05rem; }
.project-what { grid-column: 1 / -1; margin: 6px 0 0; max-width: 62ch; }
.project-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 0; font: 500 0.8rem/1.3 var(--mono); color: var(--faint); }
.project-meta span { margin-right: 6px; }
.project-meta a { position: relative; z-index: 1; color: var(--muted); text-decoration: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.project-meta a:hover { border-color: var(--accent); color: var(--accent-ink); }
.project-go { display: inline-flex; align-items: center; gap: 10px; font: 500 0.8rem/1 var(--mono); color: var(--faint); white-space: nowrap; }
.project-go svg { transition: transform .25s ease; color: var(--accent); }
.project:hover { background: var(--accent-soft); padding-left: 14px; padding-right: 14px; }
.project:hover h3 a { color: var(--accent-ink); }
.project:hover .project-go svg { transform: translateX(5px); }
.project:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.projects.is-full { border-top: 0; }
.projects.is-full .project { padding: 30px 0; }
.projects.is-full .project:first-child { padding-top: 8px; }
.projects.is-full .project:hover { padding-left: 14px; padding-right: 14px; }
@media (max-width: 720px) {
  .project { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .project-go { grid-column: 2; }
  .project:hover, .projects.is-full .project:hover { padding-left: 0; padding-right: 0; }
}

/* Fluxer in 1 Minute: its own pill in the nav, a link under the home hero, and a stopwatch that counts the minute as you read. */
.top-nav a.nav-minute { display: inline-flex; align-items: center; gap: 7px; color: var(--on-accent); background: var(--accent); margin-right: 6px; box-shadow: 0 8px 22px -12px var(--accent); }
.top-nav a.nav-minute:hover, .top-nav a.nav-minute[aria-current="page"] { color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 22px -12px var(--accent); }
.nav-minute svg { width: 16px; height: 16px; }
.hero-minute { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 4px 0; text-decoration: none; color: var(--muted); }
.hero-minute svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.hero-minute svg:last-child { width: 16px; height: 16px; transition: transform .25s ease; }
.hero-minute strong { color: var(--fg); font-weight: 650; }
.hero-minute span { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .25s ease; }
.hero-minute:hover { color: var(--fg); }
.hero-minute:hover span { border-color: var(--accent); }
.hero-minute:hover svg:last-child { transform: translateX(4px); }
.one-head { position: relative; }
.stopwatch { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 600 1rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.stopwatch svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.sw-track, .sw-fill { fill: none; stroke-width: 4; }
.sw-track { stroke: var(--line); }
.sw-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--sw, 0) * 100); transition: stroke-dashoffset .15s linear; }
.stopwatch.done { color: var(--accent-ink); }
.one-minute { max-width: 760px; }
.one-minute p, .one-minute li { font-size: 1.08rem; }
.one-joke { padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-weight: 550; }
.one-steps, .one-feats { list-style: none; padding: 0 !important; counter-reset: one; }
.one-steps li, .one-feats li { position: relative; padding: 14px 0 14px 52px; margin: 0; border-top: 1px solid var(--line); }
.one-steps li::before { counter-increment: one; content: counter(one); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font: 700 0.95rem/1 var(--display); }
.one-feats li::before { content: ""; position: absolute; left: 11px; top: 22px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.one-steps strong, .one-feats strong { display: block; font: 700 1.15rem/1.3 var(--display); margin-bottom: 2px; }
.one-next { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--fg); }
.one-next .btns { margin-top: 16px; }
@media (max-width: 720px) {
  .top-nav a.nav-minute { margin-right: 0; justify-content: center; }
}
@media (max-width: 900px) {
  .one-aside { display: block; position: fixed; top: auto; right: 14px; bottom: 14px; z-index: 20; padding: 0; }
  .one-aside nav { display: none; }
  .one-aside .stopwatch { margin: 0; font-size: 0.86rem; padding-right: 14px; }
  .one-aside .stopwatch svg { width: 32px; height: 32px; }
}
@media print { .stopwatch { display: none !important; } }

/* The age check on Fluxer in 1 Minute. */
.age-check { margin: 0 0 1em; }
.age-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg2); color: var(--fg); font: 600 0.95rem/1 var(--body); cursor: pointer; transition: border-color .2s, transform .2s; }
.age-btn svg { width: 20px; height: 20px; color: var(--muted); }
.age-btn:hover { border-color: var(--fg); transform: translateY(-1px); }

/* The 404's farewell picture, with a speech bubble over the empty corner. */
.error-page.has-farewell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.farewell { margin: 0; }
.farewell-pic { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; transform: rotate(1.5deg); transition: transform .3s var(--ease); }
.farewell-pic:hover { transform: rotate(0); }
.farewell-pic img { display: block; width: 100%; height: auto; }
.farewell-says { position: absolute; left: 2%; top: 4%; max-width: 21%; margin: 0; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: #fff; color: #16121D; border: 2px solid #16121D; font: 700 clamp(0.7rem, 1.3vw, 0.95rem)/1.25 var(--display); box-shadow: 3px 3px 0 #16121D; }
.farewell figcaption { margin-top: 12px; font: 500 0.72rem/1.5 var(--mono); color: var(--faint); }
@media (max-width: 900px) { .error-page.has-farewell { grid-template-columns: 1fr; } }

/* "Your kat", the footer picker for the kat (kat.stuxie.dev). */
.footer-kat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font: 500 0.8rem/1 var(--mono); color: var(--muted); }
.footer-kat[hidden] { display: none; }
.footer-kat select { font: 600 0.85rem/1 var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 30px 7px 12px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat; }
.footer-kat select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer-kat a { color: var(--faint); }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-title span { opacity: 1; transform: none; }
}

@media print {
  .top, .notice, .footer, .btns, .cl-actions, .cl-note, .skip, body::before { display: none !important; }
  body { background: #fff; color: #000; }
  .cl-bar { position: static; box-shadow: none; }
  .cl-form { grid-template-columns: 1fr 1fr; }
  .cl-group { break-inside: avoid; box-shadow: none; }
}
