/* What the landing page and the demo share: fonts, colours, the header, and the theme pill. */

/* The fonts (Literata, Commissioner, JetBrains Mono) come from Google Fonts; each page links them. */

:root {
  --bg: #f5ecdc; --ink: #1d1f1a; --muted: #55554c; --soft: #6c6a60; --accent: #2f4a3a; --eyebrow: #8a6a3c;
  --line: #dccfb6; --btn-bg: #1d1f1a; --btn-ink: #f3efe6; --shadow: rgb(60 40 10 / .28);
  --sans: 'Commissioner', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Literata', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1c1814; --ink: #f1ede4; --muted: #a8a397; --soft: #8c887d; --accent: #e3bf86; --eyebrow: #c9a36a;
  --line: #433a2f; --btn-bg: #f1ede4; --btn-ink: #1c1814; --shadow: rgb(0 0 0 / .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100svh; overflow-x: hidden;
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  /* Commissioner reads better spaced out a little. Monospace text keeps its own spacing. */
  letter-spacing: .02em;
  transition: background-color .4s, color .4s;
}
a { color: inherit; }
button, select, input { font: inherit; color: inherit; letter-spacing: inherit; }
pre, code, kbd, samp { letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }

.site-nav { display: flex; justify-content: space-between; align-items: center; font: 500 13px var(--sans); }
.site-nav .brand { display: inline-flex; align-items: center; gap: 10px; font: 600 20px var(--serif); letter-spacing: -.01em; text-decoration: none; }
.site-nav .brand svg { width: 22px; height: 22px; }
.site-nav .links { display: flex; gap: 28px; align-items: center; color: var(--soft); }
.site-nav .links a { text-decoration: none; transition: color .2s; }
.site-nav .links a:hover, .site-nav .links a[aria-current="page"] { color: var(--ink); }

/* The theme pill: a white or black stone and the theme's name. */
.theme { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 500; }
.theme i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, #dcd8cf 55%, #a9a497 100%); box-shadow: 0 1px 2px rgb(0 0 0 / .3); }
[data-theme="dark"] .theme i { background: radial-gradient(circle at 35% 35%, #666 0 12%, #222 55%, #000 100%); }

@media (max-width: 900px) { .site-nav .links { gap: 16px; } }
/* On phones the theme pill drops its name (the stone still shows which theme is on), and the
   in-page Features link goes, so the nav fits on one line. */
@media (max-width: 600px) {
  .site-nav .links { gap: 14px; }
  .site-nav .links a { white-space: nowrap; }
  .site-nav .links a[href="#features"] { display: none; }
  .theme { padding: 7px; }
  .theme span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
