:root,
[data-theme="light"] {
  --font-body: "General Sans", "Inter", sans-serif;
  --font-display: "Zodiak", "Georgia", serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.16vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.24vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.45rem);
  --text-xl: clamp(1.45rem, 1.15rem + 1vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2vw, 3.6rem);
  --text-3xl: clamp(2.8rem, 1.7rem + 4vw, 5.75rem);
  --text-hero: clamp(3.3rem, 1.8rem + 5vw, 7rem);

  --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;
  --space-32: 8rem;

  --color-bg: #f5f4ee;
  --color-surface: rgba(255, 255, 255, 0.58);
  --color-surface-2: rgba(255, 255, 255, 0.78);
  --color-surface-offset: rgba(236, 242, 239, 0.9);
  --color-surface-strong: #ffffff;
  --color-border: rgba(65, 91, 88, 0.14);
  --color-divider: rgba(65, 91, 88, 0.1);

  --color-text: #213534;
  --color-text-muted: rgba(33, 53, 52, 0.72);
  --color-text-faint: rgba(33, 53, 52, 0.46);
  --color-text-inverse: #f8fbfa;

  --color-primary: #49b8b1;
  --color-primary-deep: #2f8f8a;
  --color-secondary: #f1a48f;
  --color-accent: #9dd8c9;
  --color-glow: rgba(114, 205, 195, 0.32);
  --color-gold: #dfc98e;

  --shadow-sm: 0 4px 14px rgba(39, 66, 63, 0.06);
  --shadow-md: 0 14px 34px rgba(39, 66, 63, 0.1);
  --shadow-lg: 0 28px 80px rgba(39, 66, 63, 0.12);

  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.35rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  --content-narrow: 42rem;
  --content-default: 76rem;
  --content-wide: 92rem;

  --header-height: 5.5rem;
  --timeline-width: 10rem;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --color-bg: #dfe6e2;
  --color-surface: rgba(248, 251, 249, 0.5);
  --color-surface-2: rgba(248, 251, 249, 0.72);
  --color-surface-offset: rgba(228, 236, 232, 0.9);
  --color-surface-strong: #f8fbfa;
  --color-border: rgba(41, 67, 64, 0.18);
  --color-divider: rgba(41, 67, 64, 0.12);

  --color-text: #183130;
  --color-text-muted: rgba(24, 49, 48, 0.74);
  --color-text-faint: rgba(24, 49, 48, 0.5);
  --color-text-inverse: #f8fbfa;

  --color-primary: #3da8a2;
  --color-primary-deep: #2f7f7a;
  --color-secondary: #e79986;
  --color-accent: #94d6c4;
  --color-glow: rgba(90, 190, 179, 0.28);
  --color-gold: #d8c27e;

  --shadow-sm: 0 4px 14px rgba(32, 56, 54, 0.07);
  --shadow-md: 0 14px 34px rgba(32, 56, 54, 0.11);
  --shadow-lg: 0 28px 80px rgba(32, 56, 54, 0.14);
}

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 18%, rgba(157, 216, 201, 0.26), transparent 0 24rem),
    radial-gradient(circle at 84% 16%, rgba(241, 164, 143, 0.2), transparent 0 20rem),
    radial-gradient(circle at 50% 78%, rgba(73, 184, 177, 0.12), transparent 0 26rem),
    linear-gradient(180deg, #f7f6f1 0%, #eef4f1 52%, #edf2ef 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.32;
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.34), transparent 52%);
  opacity: 0.9;
}

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

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

p,
li {
  max-width: 72ch;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: rgba(73, 184, 177, 0.22);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid rgba(73, 184, 177, 0.7);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--color-surface-strong);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 1rem;
}

@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;
  }
}