*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f7f9fb;
  --bg-elevated: #ffffff;
  --fg: #0f172a;
  --muted: #5b6b7f;
  --border: #dde4ec;
  --border-strong: #c5d0dc;
  --primary: #0c4a6e;
  --primary-hover: #075985;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-muted: rgba(13, 148, 136, 0.1);
  --ring: #0d9488;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(12, 74, 110, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 74, 110, 0.08);
  --shadow-lg: 0 16px 40px rgba(12, 74, 110, 0.1);
  --green-bg: #ecfdf5; --green-fg: #047857; --green-border: #a7f3d0;
  --yellow-bg: #fefce8; --yellow-fg: #a16207; --yellow-border: #fde68a;
  --orange-bg: #fff7ed; --orange-fg: #c2410c; --orange-border: #fed7aa;
  --red-bg: #fef2f2; --red-fg: #b91c1c; --red-border: #fecaca;
  --gray-bg: #f1f5f9; --gray-fg: #475569; --gray-border: #cbd5e1;
  --font-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, monospace;
  --container: 1080px;
  --header-h: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: 0.2s ease;
  --z-header: 100;
  --z-banner: 200;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  left: 16px;
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

main {
  padding: 48px 0 72px;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 32px;
  text-wrap: pretty;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--gray-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  main { padding: 32px 0 56px; }
  .container { padding: 0 16px; }
}
