/* ==========================================================================
   Queenie-B Honey — Base reset & typography
   ========================================================================== */

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

html {
  font-size: 62.5%; /* 1rem = 10px, see tokens.css header comment */
  /* scroll-behavior intentionally omitted — Lenis (js/motion.js) owns smooth
     scrolling; native scroll-behavior:smooth fights it and can freeze scroll. */
}

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

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  /* Form elements default to min-width:auto, sized to their content/browser
     minimum — inside a flex row (e.g. an inline email-signup form) that
     stops them shrinking to fit, even with flex:1 set, and quietly pushes
     the row past its container. Safe to zero out everywhere. */
  min-width: 0;
}

button { cursor: pointer; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 400;
  line-height: var(--leading-snug);
}

p { margin: 0; }

/* ---- Reusable typography utility classes -------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow--light { color: var(--color-accent-pale); }

.h-display {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.h1 { font-family: var(--font-serif); font-size: var(--text-3xl); line-height: var(--leading-tight); }
.h2 { font-family: var(--font-serif); font-size: var(--text-2xl); line-height: var(--leading-snug); }
.h3 { font-family: var(--font-serif); font-size: var(--text-xl); line-height: var(--leading-snug); }
.h4 { font-family: var(--font-serif); font-size: var(--text-lg); line-height: var(--leading-snug); }

.lead { font-size: var(--text-md); color: var(--color-ink-soft); line-height: var(--leading-relaxed); }
.lead--story { font-size: var(--text-story); line-height: var(--leading-loose); }

.nav-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: lowercase;
}

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

/* ---- Layout utility ------------------------------------------------------ */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--section-pad); }
.section-lg { padding-block: var(--section-pad-lg); }

/* Pure white — same bg as the page, distinguished by a gold hairline instead
   of a cream tint (per brand direction: white + gold only, no creams). */
.section--cream,
.section--mist {
  background: var(--color-cream);
  border-block: var(--border-thin) solid var(--color-line-strong);
}
.section--charcoal { background: var(--color-charcoal); color: var(--color-stone); }

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

/* ---- Focus state, accessible across the whole site ------------------------ */
:focus-visible {
  outline: var(--border-thick) solid var(--color-accent);
  outline-offset: 0.2rem;
}

/* ---- Scroll-reveal utility (see js/ui.js) ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity var(--duration-slow) var(--ease-primary), transform var(--duration-slow) var(--ease-primary);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
