/**
 * Design tokens and base reset.
 * Load first; other CSS depends on these variables.
 */

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-accent: #00274c;
  --color-border: #e5e5e5;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --max-width: 720px;
  --radius: 6px;
  --header-height: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

html,
body {
  min-height: 100vh;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

#bottom {
  scroll-margin-top: var(--header-height);
}
