:root {
  --bg-canvas: #f5f5f5;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f9fafb;
  --bg-muted: #eceef2;
  --bg-dark: #050505;
  --bg-dark-card: #1c1c1c;
  --bg-obsidian: #1c1c1c;

  --ink-primary: #111827;
  --ink-secondary: #4b5563;
  --ink-muted: #6b7280;
  --ink-inverse: #ffffff;
  --ink-inverse-muted: #d1d5db;

  --accent: #d92334;
  --accent-hover: #c92130;
  --accent-brand: #d92334;
  --accent-soft: rgba(231, 43, 59, 0.1);
  --accent-border: rgba(231, 43, 59, 0.28);

  --info: #2563eb;
  --info-hover: #1d4ed8;
  --info-soft: #eff6ff;
  --info-border: #bfdbfe;

  --success: #4dbd90;
  --success-soft: rgba(77, 189, 144, 0.14);
  --success-border: rgba(77, 189, 144, 0.32);

  --warning: #b45309;
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;

  --danger: #e72b3b;
  --danger-soft: rgba(231, 43, 59, 0.1);
  --danger-border: rgba(231, 43, 59, 0.28);

  --border: #e5e7eb;
  --border-hairline: #e5e7eb;
  --border-strong: #d1d5db;
  --border-dark-glass: rgba(255, 255, 255, 0.22);
  --border-dark-card: rgba(255, 255, 255, 0.12);
  --shadow-subtle: 0 1px 2px rgba(5, 5, 5, 0.05);
  --shadow-floating: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.42);

  --font-heading: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-hero: 26px;
  --radius-pill: 999px;

  --container-max: 1360px;
  --nav-height: 68px;
  --z-nav: 40;
  --z-drawer: 60;
  --z-modal: 80;
  --z-toast: 100;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.58;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

strong, b {
  font-weight: 700;
}

strong.tabular-nums,
.tabular-nums strong {
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg,
canvas {
  max-width: 100%;
}

::selection {
  background: rgba(231, 43, 59, 0.22);
  color: inherit;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-dark);
  color: var(--ink-inverse);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

button, a, input, select, textarea {
  touch-action: manipulation;
}

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