:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fa;
  --color-bg-band: #eaf0fa;
  --color-ink: #0a0d12;
  --color-ink-soft: #1f2937;
  --color-muted: #475569;
  --color-border: #d7dde6;
  --color-border-strong: #9aa6b8;
  --color-blue-900: #0b1f3a;
  --color-blue-700: #1d3f73;
  --color-blue-600: #1f4fa3;
  --color-blue-500: #2f6fe0;
  --color-blue-100: #dbe6f7;
  --color-blue-50: #f0f5fc;
  --color-placeholder: #e8edf5;
  --color-focus: #1f4fa3;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --container: 72rem;
  --container-narrow: 44rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;

  --duration-fast: 120ms;
  --duration-base: 220ms;
  --duration-slow: 400ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

@media (min-width: 40rem) {
  body { font-size: var(--text-md); }
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: var(--leading-tight); letter-spacing: -0.01em; font-weight: 650; color: var(--color-ink); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
@media (min-width: 40rem) { h1 { font-size: var(--text-5xl); } h2 { font-size: var(--text-4xl); } }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }
small { font-size: var(--text-sm); }

a { color: var(--color-blue-600); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-blue-900); }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px rgba(31, 79, 163, 0.18);
}

.skip-link {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 1000;
  padding: 0.5rem 0.75rem; background: var(--color-ink); color: #fff; border-radius: var(--radius-sm);
  transform: translateY(-200%); transition: transform var(--duration-fast) var(--ease-standard);
}
.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
