/* ==========================================================================
   Uncle George Bottling Company — Base
   Reset, typography, layout primitives and the dark/light band rhythm.
   Built by Aniwene Solutions International · © 2026
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--glacier);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--aqua); color: var(--abyss); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 4px;
  border-radius: 6px;
}

/* --- Typography ---------------------------------------------------------- */
.display, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-kerning: normal;
  text-wrap: balance;
}
.display { font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.03em; font-weight: 900; }
.h3 { letter-spacing: -0.02em; font-weight: 650; }
.tdot { margin-left: -0.02em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1.08; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.display em, .h1 em, .h2 em, .h3 em, .accent-italic {
  font-style: normal;
  color: var(--accent-ink);
}
.on-dark .display em, .on-dark .h1 em, .on-dark .h2 em, .on-dark .h3 em, .hero .display em { color: var(--copper-soft); }

.label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--accent-ink);
}
.on-dark .label { color: var(--copper-soft); }

.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; max-width: 34em; }
.muted { color: var(--muted-ink); }
.on-dark .muted { color: var(--mineral); }
.small { font-size: var(--fs-small); }

/* --- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.on-dark {
  background: var(--abyss);
  color: var(--glacier);
}
.on-spring { background: var(--spring); color: var(--glacier); }
.on-light { background: var(--glacier); color: var(--ink); }
.on-white { background: var(--white); color: var(--ink); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .label { margin-bottom: 18px; display: block; }
.section-head p { max-width: 30em; margin: 0; justify-self: end; }
@media (max-width: 899px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
}

.sr-only {
  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: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--accent-grad); color: var(--on-accent);
  padding: 12px 20px; border-radius: 999px; font-weight: 500;
  transition: top var(--t-micro) var(--ease);
}
.skip-link:focus { top: 16px; }

/* Section dividers: drops land here (see drops.js) */
[data-divider] { position: relative; }

/* --- Reveal states (applied only when JS + motion are on) ---------------- */
.js-motion [data-reveal="fade"],
.js-motion [data-reveal="glass"] { opacity: 0; }
.js-motion [data-reveal="lines"]:not([data-split]) { opacity: 0; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
    scroll-behavior: auto !important;
  }
}
[tabindex="-1"]:focus { outline: none; }
