/* ============================================
   BASE — reset + tokens
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

:root {
  /* Color — warm editorial, single accent */
  --bg: #fbf8f5;
  --bg-2: #f5efe8;
  --ink: #0b0b0c;
  --ink-2: #1a1a1c;
  --muted: #6b6b70;
  --muted-2: #9a9a9e;
  --line: #e7e2dc;
  --line-2: #dfd8d0;

  --accent: #e28451;      /* terracotta */
  --accent-2: #f6ad55;    /* amber */
  --accent-3: #e6b398;    /* peach */
  --accent-cool: #4a5568; /* deep slate for balance */

  --white: #ffffff;
  --black: #000000;
  --dark: #0a0a0b;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.813rem);
  --text-sm:   clamp(0.875rem, 0.85rem + 0.15vw, 0.938rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.063rem);
  --text-lg:   clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --text-xl:   clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --text-2xl:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --text-3xl:  clamp(2.25rem, 1.8rem + 2.2vw, 3.5rem);
  --text-4xl:  clamp(3rem, 2.2rem + 3.6vw, 5.5rem);
  --text-hero: clamp(3.25rem, 2.4rem + 4.6vw, 7rem);

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

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-2xl: 44px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 14, 8, 0.04), 0 1px 3px rgba(20, 14, 8, 0.05);
  --shadow-md: 0 6px 20px rgba(20, 14, 8, 0.07), 0 2px 6px rgba(20, 14, 8, 0.05);
  --shadow-lg: 0 24px 60px rgba(20, 14, 8, 0.12), 0 8px 20px rgba(20, 14, 8, 0.06);
  --shadow-xl: 0 40px 100px rgba(20, 14, 8, 0.18), 0 14px 30px rgba(20, 14, 8, 0.08);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 180ms var(--ease-out);
  --t-med: 350ms var(--ease-out);
  --t-slow: 600ms var(--ease-out);

  /* Widths */
  --wrap: 1240px;
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
}

/* Selection */
::selection { background: var(--ink); color: var(--bg); }

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