/* base.css — design tokens */

:root {
  /* 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.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.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-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Skin Gratitude — warm greige + soft charcoal */
  --color-bg: #E8E4DC;            /* warm greige */
  --color-surface: #EFEBE3;        /* lighter cream */
  --color-surface-2: #F5F1EA;
  --color-surface-offset: #DDD7CB;
  --color-cream: #F4EFE6;
  --color-linen: #E0DACE;
  --color-divider: #C9C2B4;
  --color-border: #BAB2A2;

  --color-text: #2B2823;          /* warm charcoal */
  --color-text-muted: #6B6356;
  --color-text-faint: #9A9183;
  --color-text-inverse: #F4EFE6;

  --color-accent: #8C7B5F;         /* muted bronze */
  --color-accent-hover: #6E5F47;
  --color-accent-soft: #C9B998;

  --color-dark: #1F1C18;           /* deep brown-black band */
  --color-dark-2: #2A2620;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Pinyon Script', 'Apple Chancery', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Radius / shadow */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --transition: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(43, 40, 35, 0.06);
  --shadow-md: 0 8px 28px rgba(43, 40, 35, 0.08);
  --shadow-lg: 0 18px 48px rgba(43, 40, 35, 0.14);

  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1280px;
}

*, *::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: 96px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0.005em;
}

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

ul[role='list'] { list-style: none; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--color-text);
}

p, li, figcaption {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-text);
}

:focus-visible {
  outline: 1.5px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

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