:root {
  --font-display: freight-display-pro, serif;
  --font-body: acumin-pro, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 1.7rem + 3.2vw, 4rem);
  --text-hero: clamp(3rem, 1.8rem + 5vw, 6rem);
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.6;
  --transition-fast: 150ms ease;
  --transition-normal: 280ms ease;
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

:root {
  color-scheme: light dark;
  --color-bg: #F4F1E8;
  --color-surface: #FFFFFF;
  --color-text: #1A2150;
  --color-text-muted: #5B6585;
  --color-border: #D9D4C5;
  --color-cta: #C9422B;
  --color-cta-text: #FFFFFF;
  --color-accent: #26706B;
  --color-accent-2: #F2C94C;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --color-bg: #0F1330;
    --color-surface: #1A2150;
    --color-text: #F4F1E8;
    --color-text-muted: #A9B0CC;
    --color-border: #2C3570;
    --color-cta: #E9705B;
    --color-cta-text: #0F1330;
    --color-accent: #5CC1B8;
    --color-accent-2: #F2C94C;
  }
}
:root[data-theme=dark] {
  --color-bg: #0F1330;
  --color-surface: #1A2150;
  --color-text: #F4F1E8;
  --color-text-muted: #A9B0CC;
  --color-border: #2C3570;
  --color-cta: #E9705B;
  --color-cta-text: #0F1330;
  --color-accent: #5CC1B8;
  --color-accent-2: #F2C94C;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  text-wrap: pretty;
}

strong, b {
  font-weight: var(--weight-semibold);
}

small {
  font-size: var(--text-sm);
}

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

ul[role=list], ol[role=list], nav ul, nav ol {
  list-style: none;
}

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

img {
  height: auto;
}

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

button {
  font-weight: var(--weight-semibold);
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

[hidden] {
  display: none !important;
}

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