/* base.css — fonts, palette, reset. dark workbench with a pencil heart. */

@font-face {
  font-family: 'Neucha';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/neucha-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Neucha';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/neucha-latin.woff2') format('woff2');
  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 {
  color-scheme: dark;
  --bg: #16151b;          /* graphite night */
  --bg-deep: #100f14;
  --panel: #1d1b23;
  --panel-hi: #26232e;
  --border: rgba(236, 231, 219, 0.14);
  --border-hi: rgba(236, 231, 219, 0.34);
  --ink: #ece7db;         /* paper-white pencil ink */
  --dim: #a49d90;
  --faint: #7d776c;
  --accent: #e8b13c;      /* crayon yellow */
  --accent-soft: rgba(232, 177, 60, 0.18);
  --water: #6fa8cf;       /* crayon water blue */
  --grass: #8db06a;
  --red: #d1685a;
  --nalim: #b08b63;
  --hand: 'Neucha', 'Comic Sans MS', cursive;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, button, .hand { font-family: var(--hand); letter-spacing: 0.02em; }
h3 { margin: 0 0 6px; font-size: 17px; font-weight: 400; color: var(--accent); }

a { color: var(--water); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent-soft); }

/* thin pencil scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }

.hint { color: var(--faint); font-size: 12px; margin: 4px 0; }

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