/* base.css — minimal reset + element defaults.
   Loaded after tokens.css. Establishes the page's typographic baseline. */

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

html {
  /* Prevent iOS text auto-resize on rotation */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Smooth in-page anchor scrolling, but respect reduced-motion */
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Disable double-tap zoom on the folder — full-page scroll only, like Instagram */
  touch-action: manipulation;
  /* Prevent horizontal scroll from full-bleed images bleeding out */
  overflow-x: hidden;
}

/* Headings: DM Sans Bold with tight tracking, per brand guide */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
}

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

/* Eyebrow: small, uppercase, gold — the "section label" pattern */
.eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}

/* Display headline used in hero and section opens */
.display {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}

/* Kicker subline (Lora) — adds editorial feel under the headline */
.kicker {
  font-family: var(--font-accent);
  font-size: var(--fs-kicker);
  font-style: italic;
  color: var(--ink-muted);
  line-height: var(--lh-snug);
}

/* Images default to fluid + block to avoid the inline-image baseline gap */
img, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}
a:hover, a:focus-visible { text-decoration-thickness: 2px; }

/* Reveal animation hook — applied to anything with [data-reveal] */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-translate));
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
