/* ==========================================================================
   Baxus — base.css
   Design tokens, reset, typography, utilities
   ========================================================================== */

:root {
  /* Colour — drawn from the venue itself: pantile roofs, sage parasols, lime-washed brick */
  --cream:        #FAF7F1;
  --cream-2:      #F2EBE0;
  --cream-3:      #E8DFD1;
  --ink:          #221E1A;
  --ink-2:        #4B443B;
  --ink-3:        #7A7166;
  --clay:         #79876A;
  --clay-2:       #79876A;
  --clay-wash:    #F6E7DE;
  --sage:         #79876A;
  --sage-2:       #5F6C52;
  --sage-wash:    #EAEEE3;
  --white:        #FFFFFF;
  --line:         rgba(34, 30, 26, .12);
  --line-strong:  rgba(34, 30, 26, .22);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-hero:  clamp(2.75rem, 1.4rem + 5.6vw, 6rem);
  --fs-h1:    clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --fs-h2:    clamp(1.85rem, 1.25rem + 2.4vw, 3rem);
  --fs-h3:    clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
  --fs-lead:  clamp(1.05rem, .98rem + .45vw, 1.3rem);
  --fs-body:  1rem;
  --fs-sm:    .9375rem;
  --fs-xs:    .8125rem;

  /* Space */
  --sp-1: .5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;   --sp-7: 6rem;    --sp-8: 8rem;
  --section-y: clamp(4rem, 2rem + 8vw, 8rem);

  /* Layout */
  --wrap:      1240px;
  --wrap-wide: 1520px;
  --wrap-text: 68ch;
  --gutter:    clamp(1.25rem, .6rem + 2.6vw, 3rem);
  --header-h:  76px;

  /* Effects */
  --radius:    4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(34,30,26,.06), 0 4px 14px rgba(34,30,26,.06);
  --shadow-md: 0 8px 24px rgba(34,30,26,.10), 0 2px 6px rgba(34,30,26,.06);
  --shadow-lg: 0 24px 60px rgba(34,30,26,.16), 0 6px 18px rgba(34,30,26,.08);
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-5) 0;
}

::selection { background: var(--clay); color: var(--white); }

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

/* --------------------------------------------------------- typography helpers */
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--cream-2); }

.display { font-size: var(--fs-hero); }

.text-measure { max-width: var(--wrap-text); }
.text-center   { text-align: center; }
.text-center .eyebrow { justify-content: center; }

/* --------------------------------------------------------- utilities */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 1.5rem + 5vw, 5rem); }
.section--cream { background: var(--cream-2); }
.section--sage  { background: var(--sage-wash); }
.section--ink   { background: var(--ink); color: var(--cream); }
.section--ink h2, .section--ink h3 { color: var(--cream); }
.section--ink .lead { color: rgba(250, 247, 241, .74); }

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

.skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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