/* verno.fyi shared design tokens and chrome. */
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ground: #eef2ef;
  --surface: #ffffff;
  --ink: #15211b;
  --muted: #5f6d66;
  --line: #d5ddd8;
  --band-paid: #2e6bd8;
  --band-cheap: #0f7a4f;
  --band-low: #4a7f1c;
  --band-mid: #946500;
  --band-high: #bf4f12;
  --band-peak: #c4372a;
  --export: #138a5a;
  --select: #15211b;
  --radius: 22px;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0f1613;
    --surface: #18211c;
    --ink: #e7eee9;
    --muted: #8d9b94;
    --line: #27332d;
    --band-paid: #6b9cf0;
    --band-cheap: #35c486;
    --band-low: #95cc58;
    --band-mid: #f0c043;
    --band-high: #f4934f;
    --band-peak: #f2685b;
    --export: #35c486;
    --select: #e7eee9;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.45 var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--band-paid); outline-offset: 2px; border-radius: 6px; }

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 96px);
}
.wordmark {
  display: inline-block;
  font: 700 22px/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 6px 0 14px;
}
h2 {
  font: 650 21px/1.2 var(--display);
  letter-spacing: -0.01em;
  margin: 34px 0 12px;
}
.quiet { color: var(--muted); }
.notice {
  background: var(--surface);
  border-left: 4px solid var(--band-high);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-size: 15px;
}

/* Bottom tab bar */
.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 10;
}
.tabs a {
  flex: 0 1 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 4px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--surface); }
