:root {
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --surface-dark: #0B1220;
  --surface-dark-card: #111C2E;
  --fg: #0B1220;
  --fg-muted: #334155;
  --fg-on-dark: #F8FAFC;
  --fg-muted-dark: #CBD5E1;
  --accent: #047857;
  --accent-hover: #065F46;
  --accent-soft: #ECFDF5;
  --accent-border: #A7F3D0;
  --accent-fg: #FFFFFF;
  --amber: #9A3412;
  --amber-soft: #FEF3C7;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 3px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 10px 28px rgba(11, 18, 32, 0.07);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-sans);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  color: inherit;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.16;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
img, svg, canvas, video { max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input, textarea, select, .smp-input, .smp-select, .smp-textarea {
  font-family: inherit;
  font-size: 16px;
  min-height: 48px;
}

a, button, summary, [role="tab"] {
  min-height: 44px;
  min-width: 44px;
}

a:not(.smp-btn) {
  display: inline-flex;
  align-items: center;
}

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