/* notyours site: tokens, fonts, shared components. Static, no build. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #0A0A0B;
  --surface: #111113;
  --surface-2: #16161A;
  --line: #1F1F23;
  --line-2: #2A2A30;
  --text: #EDEDEF;
  --muted: #A1A1AA;      /* 7.6:1 on --bg */
  --dim: #7C7C86;        /* 4.8:1 on --bg */
  --canary: #FFD60A;
  --canary-ink: #1A1500;
  --leak: #FF5A4E;
  --held: #2BD576;
  --harness: #F5A524;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: 24px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
code, pre, kbd, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--canary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* page texture: a faint 48px grid that fades out under the hero */
.grid-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }

/* nav */
.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--mono); letter-spacing: -.02em; text-decoration: none; }
.brand-mark { width: 18px; height: 18px; border-radius: 4px; background: var(--canary); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 5px 4px; border-top: 2px solid var(--canary-ink); border-bottom: 2px solid var(--canary-ink); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* buttons + install pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: var(--r-sm); font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--canary); color: var(--canary-ink); }
.btn-primary:hover { background: #FFE043; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #3A3A42; background: var(--surface); }
.install { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 14px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); font: 400 14px/1 var(--mono); }
.install .prompt { color: var(--dim); user-select: none; }
.install code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .install { font-size: 13px; gap: 10px; padding-left: 12px; } }
.copy { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; flex: none; }
.copy:hover { background: var(--surface-2); color: var(--text); }
.copy svg { width: 16px; height: 16px; }
.copy[data-copied] { color: var(--held); }

/* the canary token: the one recurring signature */
.tok { color: var(--canary); background: rgba(255, 214, 10, .12); box-shadow: inset 0 -1px 0 rgba(255, 214, 10, .55);
  padding: 0 .2em; border-radius: 3px; font-family: var(--mono); white-space: nowrap; }

/* verdict chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px;
  font: 600 11.5px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-leak { color: var(--leak); background: rgba(255, 90, 78, .12); }
.chip-held { color: var(--held); background: rgba(43, 213, 118, .11); }
.chip-harness { color: var(--harness); background: rgba(245, 165, 36, .12); }

/* terminal */
.term { position: relative; background: #0D0D0F; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 30px 80px -20px rgba(0,0,0,.8); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line);
  background: var(--surface); font: 12px/1 var(--mono); color: var(--dim); }
.term-bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.term-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2A2A30; }
.term-bar .title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.term-body { padding: 18px 18px 20px; font: 12.5px/1.65 var(--mono); color: #C9C9D1; white-space: pre-wrap; word-break: break-word; }
.term-body .l { display: block; padding-left: 2ch; text-indent: -2ch; }
.t-dim { color: var(--dim); }
.t-mut { color: var(--muted); }
.t-leak { color: var(--leak); }
.t-held { color: var(--held); }
.t-you { color: var(--text); }
.t-cmd { color: #8FB8FF; }
.replay-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 5px; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); font: 12px/1 var(--mono); cursor: pointer; }
.replay-btn:hover { color: var(--text); border-color: #3A3A42; }
.replay-btn svg { width: 12px; height: 12px; }

/* floating result card */
.float { position: absolute; z-index: 3; background: rgba(17, 17, 19, .92); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; line-height: 1.4; min-width: 200px; }
.float .k { font: 500 11.5px/1 var(--mono); color: var(--dim); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.float .v { font: 500 14px/1.35 var(--sans); color: var(--text); }
.float .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* soft glow behind the hero visual */
.glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .5;
  background: radial-gradient(closest-side, rgba(255, 214, 10, .22), rgba(255, 214, 10, .06) 60%, transparent); }

.seeded { font: 12px/1.4 var(--mono); color: var(--dim); }

/* replay states (term.js adds .armed; lines get .on as they play) */
.term.armed .l:not(.on) { visibility: hidden; }
.term.armed .l.on { animation: line-in .18s ease-out both; }
@keyframes line-in { from { opacity: 0; } to { opacity: 1; } }
[data-term-scope] .float[data-at] { transition: opacity .35s ease, transform .35s ease; }
[data-term-scope]:has(.term.armed) .float[data-at]:not(.on) { opacity: 0; transform: translateY(8px); }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--text); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.done .caret { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
