/* Shared tokens and base styles for the homepage prototypes. */
:root {
  --bg: #f4f2ed;
  --surface: #fffefa;
  --fg: #202326;
  --muted: #636870;
  --line: #d4d2cc;
  --frame: #171a1d;
  --accent: #9a573b;
  --sans: "Geist", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #1c2024;
    --fg: #e8e6e1;
    --muted: #a7abb2;
    --line: #363b42;
    --frame: #171a1d;
    --accent: #db9878;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--bg); background: var(--accent); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 var(--gutter);
}
.top .name { font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.top nav a { color: var(--muted); transition: color 0.2s; }
.top nav a:hover { color: var(--fg); }

.sound {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 12px/1 var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.sound canvas { display: block; width: 34px; height: 14px; }
.sound[aria-pressed="true"] { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:hover { border-color: var(--fg); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Phones: the secondary links would move into a menu button. */
@media (max-width: 720px) {
  .top nav a { display: none; }
}
