/**
 * Design tokens, resets, and base typography.
 *
 * @package WDO
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* Colors */
  --wdo-accent: oklch(0.72 0.19 45);
  --wdo-accent-muted: oklch(0.58 0.16 42);
  --wdo-dark: #0d0b0a;
  --wdo-dark-card: #161311;
  --wdo-dark-surface: #1a1d19;
  --wdo-light: #f6f3ee;
  --wdo-white: #ffffff;
  --wdo-border-dark: rgba(255, 255, 255, 0.1);
  --wdo-border-light: #e6e6de;
  --wdo-text-primary: #f6f3ee;
  --wdo-text-dark: #0d0b0a;
  --wdo-text-muted: #9aa096;
  --wdo-text-muted-light: #5c5f59;

  /* Typography */
  --wdo-font-body: "Space Grotesk", system-ui, sans-serif;
  --wdo-font-mono: "JetBrains Mono", monospace;
  --wdo-text-xs: 0.75rem;
  --wdo-text-sm: 0.875rem;
  --wdo-text-base: 1rem;
  --wdo-text-lg: 1.125rem;
  --wdo-text-xl: 1.25rem;
  --wdo-text-2xl: 1.5rem;
  --wdo-text-3xl: 2.125rem;
  --wdo-text-4xl: clamp(2rem, 4.6vw, 3.625rem);
  --wdo-text-5xl: clamp(2.625rem, 6.4vw, 5.5rem);

  /* Spacing */
  --wdo-space-xs: 0.25rem;
  --wdo-space-sm: 0.5rem;
  --wdo-space-md: 1rem;
  --wdo-space-lg: 1.5rem;
  --wdo-space-xl: 2rem;
  --wdo-space-2xl: 3rem;
  --wdo-space-3xl: clamp(4.5rem, 9vw, 7.5rem);
  --wdo-space-4xl: clamp(3.5rem, 8vw, 6rem);

  /* Layout */
  --wdo-container-max: 1200px;
  --wdo-container-padding: clamp(20px, 4vw, 48px);

  /* Radius */
  --wdo-radius-sm: 8px;
  --wdo-radius-md: 14px;
  --wdo-radius-lg: 18px;
  --wdo-radius-xl: 28px;
  --wdo-radius-full: 999px;

  /* Transitions */
  --wdo-ease: 0.15s ease;
}

/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: var(--wdo-dark);
  color: var(--wdo-text-primary);
  font-family: var(--wdo-font-body);
  font-size: var(--wdo-text-base);
  line-height: 1.6;
}

@media (max-width: 860px) {
  body {
    padding-top: 62px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 var(--wdo-space-md);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================================
   BASE TYPOGRAPHY
   ============================================================ */

h1 {
  font-size: var(--wdo-text-5xl);
  letter-spacing: -0.035em;
  line-height: 0.97;
}

h2 {
  font-size: var(--wdo-text-4xl);
  line-height: 1.02;
}

h3 {
  font-size: var(--wdo-text-xl);
  letter-spacing: -0.01em;
}

/* Selection */
::selection {
  background: var(--wdo-accent);
  color: var(--wdo-dark);
}

/* Skip link */
.wdo-skip-link {
  position: absolute;
  top: -100%;
  left: var(--wdo-space-md);
  z-index: 9999;
  padding: var(--wdo-space-sm) var(--wdo-space-md);
  background: var(--wdo-accent);
  color: var(--wdo-dark);
  font-weight: 600;
  border-radius: var(--wdo-radius-sm);
}

.wdo-skip-link:focus {
  top: var(--wdo-space-md);
}
