/* The landing page's big-type look: big condensed type (Anton), Hanken Grotesk for reading, JetBrains Mono for details, a cocoa haze with fine grain,
   and lavender only as an undertone (glows, small markers), never as a fill. Loaded after landing.css and landing-themes.css. */

:root { --sans:"Hanken Grotesk",system-ui,"Segoe UI",sans-serif; --serif:"Hanken Grotesk",system-ui,"Segoe UI",sans-serif; --big:"Anton",Impact,"Arial Narrow",sans-serif;
  --bg:#1b1613; --card:#221c18; --ink:#eee7df; --ink2:rgba(238,231,223,.7); --ink3:rgba(238,231,223,.42); --line:rgba(238,231,223,.11);
  --acc:#b3a3d4; --acc-ink:#1b1613; --glow:rgba(179,163,212,.16); --glass:rgba(27,22,19,.6); --bar:rgba(27,22,19,.85); --word:#a39b93; --haze:rgba(120,104,92,.5); }
:root[data-theme="light"] { --bg:#e4d5c0; --card:#efe5d8; --acc:#6f5a8f; --glow:rgba(111,90,143,.14); --word:rgba(43,36,30,.72); --haze:rgba(255,250,242,.55); }

body { font-family:var(--sans); font-weight:400; }
/* the italic serif labels become plain grotesk or mono */
.bills .lg, .bills .bh, .cue, .spec, .caps .st, .hud, .rows > h2, .nums span, .own .k2, .ownh, .rev .rh, .runs span, .fn, .foot, .vst, .steps li > span:last-child { font-style:normal; }
.fn { font:400 11px/1.6 var(--mono); letter-spacing:.04em; color:var(--ink3); }

/* fine grain over everything */
body::after { content:""; position:fixed; inset:0; z-index:30; pointer-events:none; opacity:.09; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* header: wordmark left, nav centred, the sun or moon right */
.bbar { display:grid; grid-template-columns:1fr auto 1fr; gap:16px; }
.bmark { justify-self:start; font:400 20px var(--big); letter-spacing:.04em; color:var(--ink); display:inline-flex; align-items:center; gap:1px; transition:opacity .35s; }
.bmark svg { width:.6em; height:.88em; color:var(--acc); }
.bnav { display:flex; gap:clamp(14px,2vw,26px); }
.bnav a { font:400 14px var(--sans); color:var(--ink2); transition:color .2s; } .bnav a:hover, .bnav a:focus-visible { color:var(--ink); outline:none; }
.bbar .theme-toggle { justify-self:end; }

/* hero: a haze, the crystal, a short centred message, and KRYPTON across the bottom */
/* one soft glow, brown at its heart fading through a lavender edge into the page: a single gradient, no separate circles */
:root { --hz1:rgba(122,106,94,.42); --hz2:rgba(138,121,150,.2); --hz3:rgba(170,152,206,.08); }
:root[data-theme="light"] { --hz1:rgba(255,250,242,.6); --hz2:rgba(214,198,226,.32); --hz3:rgba(190,170,215,.12); }
.bhero { min-height:100vh; min-height:100svh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:clamp(28px,5vh,56px);
  padding:96px var(--g) 64px; overflow:hidden;
  background:radial-gradient(ellipse 78% 62% at 50% 46%, var(--hz1) 0%, var(--hz2) 36%, var(--hz3) 58%, transparent 80%); }
.bhero .msg { text-align:center; max-width:min(92vw,900px); display:grid; justify-items:center; gap:12px; }
.bhero h1 { font:400 clamp(28px,2.8vw,42px)/1 var(--big); text-transform:uppercase; letter-spacing:.01em; max-width:none; }
.bhero .msg p { font:400 clamp(15px,1.2vw,17px)/1.45 var(--sans); color:var(--ink2); }
.bhero .links { display:flex; gap:22px; flex-wrap:wrap; justify-content:center; margin-top:8px; }
.bhero .links a { display:inline-flex; align-items:center; gap:7px; font:500 14px var(--sans); color:var(--ink); border-bottom:1px solid var(--line); padding-bottom:3px; transition:border-color .2s; }
.bhero .links a:hover { border-color:var(--acc); }
.bhero .links svg { width:11px; height:11px; }
/* KRYPTON in the middle, sized to fit both the width and the height of the screen so it is never cut off */
.word { font:400 clamp(72px,min(22vw,40vh),420px)/.8 var(--big); color:var(--word); letter-spacing:-.01em; white-space:nowrap; display:flex; justify-content:center;
  align-items:flex-end; user-select:none; }
.word .o { display:inline-block; width:.5em; height:.74em; margin:0 .02em; }
.word .o svg { width:100%; height:100%; display:block; }

/* section labels and headings */
.loop h2, .priv h2, .close h2 { font:400 clamp(40px,5.6vw,86px)/.92 var(--big); text-transform:uppercase; letter-spacing:.005em; max-width:18ch; }
.close h2 { font-size:clamp(56px,8vw,128px); }
.rows > h2 { font:400 clamp(30px,3.6vw,54px)/.95 var(--big); text-transform:uppercase; color:var(--ink); max-width:24ch; }
.row h3, .trio h3 { font:500 clamp(24px,2.2vw,32px)/1.12 var(--sans); letter-spacing:-.02em; }
.caps p { font:400 clamp(26px,2.5vw,38px)/1.08 var(--sans); letter-spacing:-.02em; }
.caps .st { font:400 11px var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--ink3); }
.caps small { font:400 15px/1.6 var(--sans); }

/* the loop steps: hairlines and /01 counters instead of cards */
.steps li:not(.sa) { background:none; border:0; border-top:1px solid var(--line); border-radius:0; padding:18px 4px 0; }
.steps li.end { border-color:var(--acc); box-shadow:none; background:linear-gradient(var(--glow),transparent 60%); }
.steps .sn { color:var(--acc); }
.steps .sn::before { content:"/0"; }
.steps b { font:500 19px var(--sans); margin-top:22px; }

/* cards: square corners, no shadow */
.fig, .rev, .spec, .own, .install pre { border-radius:4px; box-shadow:none; }
.fig, .spec, .own { border:1px solid var(--line); }

/* lavender only as an undertone: every fill becomes the ink colour */
.cta { background:var(--ink); color:var(--bg); box-shadow:none; border-radius:3px; }
.ghost { border-radius:3px; }
.gh { background:var(--ink); color:var(--bg); border-radius:3px; }
.seg button[aria-pressed="true"], .acts2 .go, .acts2 button[aria-pressed="true"] { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.ownh { font:400 clamp(30px,3vw,44px)/1 var(--big); text-transform:uppercase; color:var(--ink); }
.checks .hl span { color:var(--ink); } .checks .kd { color:var(--acc); }
.log pre .hl { color:var(--ink); }
.nums b, .bars .big { color:var(--ink); }
.big { color:var(--ink); }

.foot { font:400 13px var(--sans); }
@media (max-width:820px) {
  .bbar { grid-template-columns:1fr auto; } .bnav { display:none; }
  .bhero { padding-top:96px; }
}

/* the big crystal O: the navbar logo's thin lavender diamond, pulsing like the CLI (hollow, half, full) */
.word .o { width:.48em; height:.76em; margin:0 .03em; }
.word .o path { transition:opacity .08s; }
.word .o .out { fill:none; stroke:var(--acc); stroke-width:2.2; stroke-linejoin:miter; }
.word .o .mid, .word .o .full { fill:var(--acc); opacity:0; }
.word .o[data-s="mid"] .mid { opacity:.85; }
.word .o[data-s="full"] .full { opacity:1; }
.word .o[data-s="full"] svg { filter:drop-shadow(0 0 18px var(--glow)) drop-shadow(0 0 40px var(--glow)); }

/* the corner mark: just the crystal */
.bmark svg { width:18px; height:26px; color:var(--acc); }
.bmark:hover svg, .bmark:focus-visible svg { filter:drop-shadow(0 0 8px var(--glow)); }

/* a feature's heading wraps at the width of its paragraph, not the whole column */
.row > div:first-child { max-width:46ch; }
.row h3 { max-width:none; }

/* the local-loop feature in lavender: its heading and the three settings questions (target score, max tries, when stuck) */
.row:not(.safety) h3 { color:var(--acc); }
.gate .gq > span { color:var(--acc); }

/* the cleanup savings, 17% and 6%, in lavender */
.nums b { color:var(--acc); }

/* header: the nav sits in a frosted pill and the sun or moon in a matching circle, so both read over any part of the page */
.bar.bbar { background:none; }
.bnav { padding:9px 22px; border:1px solid var(--line); border-radius:999px; background:var(--glass); -webkit-backdrop-filter:blur(14px) saturate(1.2); backdrop-filter:blur(14px) saturate(1.2);
  box-shadow:0 6px 24px rgba(0,0,0,.18); }
.bnav a { color:var(--ink); opacity:.82; transition:opacity .2s, color .2s; } .bnav a:hover, .bnav a:focus-visible { opacity:1; color:var(--acc); }
.bbar .theme-toggle { width:40px; height:40px; padding:0; justify-content:center; border:1px solid var(--line); border-radius:50%; background:var(--glass);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:0 6px 24px rgba(0,0,0,.18); }
:root[data-theme="light"] .bnav, :root[data-theme="light"] .bbar .theme-toggle { box-shadow:0 6px 24px rgba(43,36,30,.1); }

/* the hero text keeps a soft dark halo so the floating dots never sit hard against it */
.bhero .msg h1, .bhero .msg p, .bhero .links a { text-shadow:0 0 18px var(--bg), 0 0 6px var(--bg); }

/* the "Visualize your code" heading in lavender */
.ownh { color:var(--acc); }

/* the sun or moon is the button itself again: no circle, no outline, just a faint shadow so it reads over the page */
.bbar .theme-toggle { width:auto; height:auto; padding:4px; border:0; border-radius:0; background:none; -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none; }
:root[data-theme="light"] .bbar .theme-toggle { box-shadow:none; }
.bbar .theme-toggle svg { filter:drop-shadow(0 1px 6px rgba(0,0,0,.45)); }
:root[data-theme="light"] .bbar .theme-toggle svg { filter:none; }

/* the loop steps without numbers */
.steps .sn { display:none; }
.steps b { margin-top:0; }

/* "Visualize your code" at the end: the feature-heading face (Hanken Grotesk, medium, normal case), still lavender */
.ownh { font:500 clamp(26px,2.4vw,34px)/1.1 var(--sans); letter-spacing:-.02em; text-transform:none; color:var(--acc); }

/* every button in lavender: filled buttons take the lavender with dark text, outlined ones a lavender edge */
.cta, .gh, .seg button[aria-pressed="true"], .acts2 .go, .acts2 button[aria-pressed="true"] { background:var(--acc); color:var(--acc-ink); border-color:var(--acc); }
.cta:hover, .gh:hover, .acts2 .go:hover { box-shadow:0 6px 24px var(--glow); }
.ghost, .acts2 button:not(.go):not([aria-pressed="true"]) { border-color:var(--acc); color:var(--acc); background:transparent; }

/* the Krypton gate's result (Purity 71% -> 74% (+3)) in lavender */
.checks .hl span { color:var(--acc); }
