/* Shared base for all drafts: fonts, tokens, reset, browser surfaces */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-ext.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 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; }

:root {
  /* Sampled from the client deck */
  --c-ground: #12122a;
  --c-ground-deep: #0c0c20;
  --c-surface: #1a1a3a;
  --c-surface-2: #23224a;
  --c-violet: #442763;
  --c-violet-hi: #6a3f99;
  --c-cyan: #7fd8f7;
  --c-cyan-hi: #a9e6fb;
  --c-pink: #e7a6ec;
  --c-text: #f4f2fb;
  --c-text-2: #c9c5df;
  --c-text-3: #a29dc2;
  --c-line: rgb(201 197 255 / 0.16);
  --c-line-strong: rgb(201 197 255 / 0.3);
  --c-on-cyan: #0d1030;

  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --max: 82rem;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  accent-color: var(--c-cyan);
  caret-color: var(--c-cyan);
  scrollbar-color: var(--c-violet-hi) var(--c-ground-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--c-ground); color: var(--c-text); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--c-pink); color: var(--c-ground-deep); }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; padding: 0.75rem 1.25rem; border-radius: var(--radius-pill); background: var(--c-cyan); color: var(--c-on-cyan); font-weight: 700; text-decoration: none; transition: top 0.2s var(--ease-out); }
.skip-link:focus { top: 0.75rem; }

/* Shared button anatomy; drafts restyle details */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.25rem; padding: 0.85rem 1.75rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center; border: 1.5px solid transparent; transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.btn--primary { background: var(--c-cyan); color: var(--c-on-cyan); }
.btn--primary:hover { background: var(--c-cyan-hi); }
.btn--ghost { border-color: var(--c-line-strong); color: var(--c-text); background: rgb(18 18 42 / 0.4); }
.btn--ghost:hover { border-color: var(--c-text-2); background: rgb(255 255 255 / 0.06); }
.btn:active { background-color: var(--c-cyan); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.draft-tag { position: fixed; right: 0.75rem; bottom: 0.75rem; z-index: 50; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); background: rgb(12 12 32 / 0.85); border: 1px solid var(--c-line-strong); color: var(--c-text-2); font: 600 0.75rem/1.2 system-ui, sans-serif; text-decoration: none; backdrop-filter: blur(8px); }
.draft-tag:hover { color: var(--c-text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.nb { white-space: nowrap; }
