/* ====== TOKENS ====== */
:root {
  /* Brand colors */
  --color-deep-blue: #0F3A47;
  --color-deep-blue-dark: #0A2932;
  --color-amber: #FBBA15;
  --color-amber-dark: #D89D08;
  --color-green: #3E575B;
  --color-sage: #788982;
  --color-tan: #A59380;
  --color-cream: #F8F4ED;
  --color-cream-2: #F1ECE3;
  --color-text: #1A2D33;
  --color-text-muted: #5F6E72;
  --color-text-faint: #92A0A3;
  --color-bg: #FBFAF6;
  --color-surface: #FFFFFF;
  --color-border: #E4DFD3;
  --color-divider: #EFEAE0;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 58, 71, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 58, 71, 0.10);
  --shadow-lg: 0 18px 40px rgba(15, 58, 71, 0.16);

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Tenor Sans', Georgia, serif;
  --font-body: 'Epilogue', 'Helvetica Neue', sans-serif;
  --font-mono: 'Archivo', 'Helvetica Neue', sans-serif;

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* ====== RESET ====== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
}
img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul { list-style: none; }
button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}
input, select, textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-deep-blue);
}
p { text-wrap: pretty; }

::selection {
  background: var(--color-amber);
  color: var(--color-deep-blue);
}

:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
