/* ==========================================================================
   style.css — design tokens, base styles, typography
   Brief ref: "deep aubergine-led palette... refined berry/pink, soft lilac,
   warm ivory, deep plum/ink and restrained cool blue." Mobile-first.
   ========================================================================== */

:root {
  /* ---- Color tokens ----------------------------------------------- */
  --color-aubergine: #2b1625;      /* primary dark background */
  --color-aubergine-light: #3c2035;/* lighter dark surface (cards on dark) */
  --color-plum-ink: #1a0e16;       /* deepest dark (footer, final CTA) */

  --color-berry: #d6447a;          /* primary accent — buttons, links */
  --color-berry-dark: #b22f61;     /* hover/active state for berry */
  --color-lilac: #d9bfe8;          /* secondary accent, light highlights */
  --color-lilac-soft: #f1e6f7;     /* very light lilac tint, light-section bg */

  --color-ivory: #faf3ea;          /* warm light background */
  --color-ivory-dim: #f3e9dc;      /* slightly deeper ivory for contrast */

  --color-blue: #7c93b8;           /* restrained cool blue — rare use only */

  --color-text-dark: #241420;      /* body text on light backgrounds */
  --color-text-light: #f8f1f4;     /* body text on dark backgrounds */
  --color-text-muted-dark: #5c4a56;
  --color-text-muted-light: #d9c7d2;

  --color-border-light: rgba(43, 22, 37, 0.12);
  --color-border-dark: rgba(248, 241, 244, 0.14);

  /* ---- Typography --------------------------------------------------- */
  --font-heading: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  /* ---- Spacing scale -------------------------------------------------- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* ---- Layout ----------------------------------------------------- */
  --max-width: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 32px rgba(26, 14, 22, 0.14);
  --shadow-card: 0 8px 24px rgba(26, 14, 22, 0.18);

  --transition-fast: 160ms ease;
  --transition-base: 260ms ease;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-ivory);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* guarantee no horizontal page overflow (brief §9) */
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.4vw + 1rem, 1.5rem); }

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted-dark);
}

/* ---- Visible keyboard focus (brief §9: accessible, visible focus) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.section--dark {
  background: var(--color-aubergine);
  color: var(--color-text-light);
}

.section--dark p {
  color: var(--color-text-muted-light);
}

.section--ink {
  background: var(--color-plum-ink);
  color: var(--color-text-light);
}

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

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

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-lg);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-berry);
  margin-bottom: var(--space-xs);
}

.section--dark .eyebrow,
.section--ink .eyebrow {
  color: var(--color-lilac);
}

.visually-hidden {
  position: absolute;
  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(--space-sm);
  top: -60px;
  background: var(--color-berry);
  color: #fff;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
}
