/* ============================================================
   BASE — reset, typography, layout primitives
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow-x: clip;      /* contain off-canvas drawers without breaking sticky */
  overflow-y: scroll;    /* always show the vertical scrollbar */
  scrollbar-width: auto;
  scrollbar-color: var(--accent) #1a140d;
}
/* visible, draggable scrollbar (WebKit/Blink) */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: #12100a; }
::-webkit-scrollbar-thumb { background: #6a5a34; border: 3px solid #12100a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body {
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.8s var(--ease-lux), color 0.8s var(--ease-lux);
}

/* Hide UI until fonts/scripts settle to avoid FOUC jank */
body:not(.is-ready) { }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #1a140d; }

/* --- Headings / display --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}
.display {
  font-family: var(--font-display);
  font-weight: 340;
  line-height: 0.96;
  letter-spacing: -0.015em;
}
.italic { font-style: italic; }
em { font-style: italic; }

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--accent { color: var(--accent); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* --- Layout primitives --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); position: relative; }
.grid { display: grid; gap: var(--gutter); }
.stack > * + * { margin-top: var(--space-2); }

/* Currency & price */
.price { font-family: var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* Hairline rule */
.rule { height: 1px; background: var(--line); border: 0; width: 100%; }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* Split-text lines (for reveal animations) */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; will-change: transform; }

/* Word-split reveal (JS wraps each word in .w > span) */
.w { display: inline-block; overflow: hidden; vertical-align: top; }
.w > span { display: inline-block; will-change: transform; }

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   REDUCED MOTION — content & shopping remain fully intact
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-line > span { transform: none !important; }
}
