/* lisnn base: fonts, tokens, reset, shared controls. Loaded by the site and the app. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2-variations");
  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: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-tight-latin-ext.woff2") format("woff2-variations");
  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: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --tile: #f1f1ef;
  --tile-2: #e9e9e6;
  --panel: #ffffff;
  --line: #e4e3e0;
  --line-strong: #d3d2ce;
  --text: #15141a;
  --muted: #5d5b66;
  --accent: #5b3df5;
  --accent-ink: #ffffff;
  --accent-soft: #eeeaff;
  --accent-text: #4a2de0;
  --ok: #0f7f55;
  --ok-soft: #e3f5ec;
  --warn: #9a5b00;
  --warn-soft: #fdf0d9;
  --invert: #15141a;
  --invert-ink: #ffffff;
  --shadow: 0 1px 0 rgba(20, 18, 30, 0.03), 0 24px 60px -24px rgba(40, 30, 90, 0.18);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);

  --c1: #ff7a59; --c2: #5b3df5; --c3: #12a26b; --c4: #f2c94c; --c5: #2d9cdb; --c6: #e0569b;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--invert); color: var(--invert-ink); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: 0.8125em; letter-spacing: 0; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* Wordmark: the second n carries the accent, as in the name mockup. */
.logo { font-weight: 800; font-size: 26px; letter-spacing: -0.06em; line-height: 1; text-decoration: none; display: inline-flex; align-items: baseline; }
.logo span { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-dark { background: var(--invert); color: var(--invert-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.chip[aria-pressed="true"] { background: var(--invert); color: var(--invert-ink); border-color: var(--invert); }
.chip svg { width: 13px; height: 13px; }
.chip-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

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