/* ========================================================================
   Base — modern reset + element defaults + typography + grain overlay
   ======================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100dvh;
  background: var(--bg-page);
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  font-weight: var(--weight-regular);
  position: relative;
  overflow-x: hidden;
}

/* Subtle paper grain overlay — gives the editorial feel without slowing the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(26, 32, 44, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: var(--z-base);
}

/* Subtle gold + slate gradient wash on the page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 1200px 800px at 80% -10%,
    rgba(232, 200, 74, 0.10),
    transparent 60%
  ),
  radial-gradient(
    ellipse 800px 600px at 0% 100%,
    rgba(45, 55, 72, 0.05),
    transparent 60%
  );
  pointer-events: none;
  z-index: var(--z-base);
}

main, section, header, footer, article, aside, nav { display: block; }

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

img { color: transparent; }

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

button {
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--gold-600); }
a:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-xs); }

ul, ol { list-style: none; }

table { border-collapse: collapse; border-spacing: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--border-soft);
  margin: var(--space-6) 0;
}

::selection {
  background: var(--gold-300);
  color: var(--charcoal-900);
}

/* ---------- TYPOGRAPHY ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  font-feature-settings: "ss01", "ss02", "kern";
}

h1, .h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: var(--weight-semibold);
}
h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: var(--weight-semibold);
}
h3, .h3 {
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-normal);
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}

.mega {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: var(--weight-semibold);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}

p, .body {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-default);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-default);
  font-weight: var(--weight-regular);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-600);
  font-family: var(--font-body);
  line-height: 1;
}

.eyebrow--gold { color: var(--gold-600); }
.eyebrow--cream { color: var(--cream-200); }

.muted    { color: var(--text-muted); }
.subtle   { color: var(--text-subtle); }
.on-dark  { color: var(--text-on-dark); }
.serif    { font-family: var(--font-display); }
.sans     { font-family: var(--font-body); }
.italic   { font-style: italic; }
.bold     { font-weight: var(--weight-bold); }
.semibold { font-weight: var(--weight-semibold); }
.medium   { font-weight: var(--weight-medium); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Decorative serif italic accent — used for "moment of magic" copy */
.flourish {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--gold-600);
}

/* Numeric tabular figures for prices */
.numeric {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
}

/* Responsive helpers */
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 721px) {
  .hide-desktop { display: none !important; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--charcoal-900);
  color: var(--gold-400);
  padding: var(--space-3) var(--space-5);
  z-index: var(--z-toast);
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: var(--weight-semibold);
}
.skip-link:focus { top: 0; outline: none; }

/* Visually-hidden but available to screen readers */
.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;
}
