/* style.css - Design tokens, reset, typography, layout primitives */

:root {
  --color-ivory: #faf7f2;
  --color-sandstone: #ebe4d8;
  --color-sandstone-deep: #d9cfc0;
  --color-saffron: #b87333;
  --color-saffron-soft: #d4a574;
  --color-maroon: #5c2e2e;
  --color-maroon-deep: #3d1f1f;
  --color-leaf: #5a6b5a;
  --color-leaf-soft: #e8ede8;
  --color-ink: #2a2420;
  --color-ink-muted: #5c534c;
  --color-ink-faint: #8a8178;
  --color-white: #ffffff;
  --color-border: rgba(42, 36, 32, 0.12);
  --color-border-strong: rgba(42, 36, 32, 0.2);
  --color-focus: #b87333;
  --color-error: #8b2e2e;
  --color-success: #3d5c3d;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem);
  --text-hero: clamp(2.75rem, 2rem + 2.5vw, 4.5rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

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

  --container-max: 72rem;
  --container-narrow: 42rem;
  --header-height: 4.5rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(42, 36, 32, 0.06);
  --shadow-md: 0 4px 16px rgba(42, 36, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 36, 32, 0.1);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background-color: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-maroon);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-saffron);
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-maroon);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - var(--space-8), var(--container-max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - var(--space-8), var(--container-narrow));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-maroon-deep);
  margin-top: 0;
}

h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.02em;
}

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

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

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

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-muted);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-saffron);
}

.section {
  padding-block: var(--space-16);
}

.section--sand {
  background: var(--color-sandstone);
}

.section--leaf {
  background: var(--color-leaf-soft);
}

.section__header {
  margin-bottom: var(--space-10);
  max-width: 38rem;
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.breadcrumbs {
  padding-block: var(--space-4);
  font-size: var(--text-sm);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--color-ink-faint);
}

.breadcrumbs a {
  color: var(--color-ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current='page'] {
  color: var(--color-ink);
  font-weight: 600;
}

.page-hero {
  padding-block: var(--space-12) var(--space-10);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-ink-muted);
}

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

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.section--lazy {
  content-visibility: auto;
  contain-intrinsic-size: auto 32rem;
}
