/* ==========================================================================
   Kumaas — base.css
   Design tokens, reset, typography and accessibility helpers.
   Every colour/spacing value used elsewhere should come from these tokens.
   ========================================================================== */

:root {
  /* Brand palette (docs/BRAND_GUIDE.md) */
  --c-burgundy: #b0174f;
  --c-wine: #6d0f33;
  --c-ivory: #fffaf7;
  --c-cream: #fde9ee;
  --c-blush: #f7b9cb;
  --c-blush-soft: #fde6ec;
  --c-champagne: #e0a83a;
  --c-gold-text: #95650f; /* gold dark enough for small text on light backgrounds */
  --c-champagne-soft: #f6dca4;
  --c-text: #2a1520;
  --c-muted: #7d6470;
  --c-line: #f1d6dd;
  --c-white: #ffffff;
  --c-success: #2f6b46;
  --c-error: #a3262a;

  /* Typography */
  --f-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-hero: clamp(3rem, 1.8rem + 5.5vw, 6.25rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6rem;

  --container: 1280px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(109, 15, 51, 0.07);
  --shadow: 0 10px 30px -12px rgba(109, 15, 51, 0.24);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t: 260ms;

  --header-h: 76px;
  --focus: 0 0 0 3px var(--c-ivory), 0 0 0 5px var(--c-burgundy);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-ivory);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }
main > :last-child:not(.trust) { margin-bottom: var(--sp-8); }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-wine);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

/* ---------- Accessibility ---------- */
[hidden] { display: none !important; }
/* Keep focused/linked elements clear of the sticky header */
:target, [tabindex="-1"], input, select, textarea, button { scroll-margin-top: calc(var(--header-h) + 24px); }

:focus { outline: none; }
/* Headings/regions focused by script (for screen readers) don't need a ring */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, [tabindex="-1"]:not(a, button, input, select, textarea):focus { box-shadow: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 1000;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-burgundy);
  color: var(--c-ivory);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.skip-link:focus { top: var(--sp-4); }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }

.eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-gold-text);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  margin-bottom: var(--sp-6);
}
.section-head h2 {
  font-size: var(--fs-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.section-head h2::before,
.section-head h2::after {
  content: "";
  width: clamp(28px, 8vw, 120px);
  height: 1px;
  background: var(--c-champagne);
  opacity: 0.7;
}
.section-head p { color: var(--c-muted); max-width: 52ch; }
