/* ============================================================================
   base.css — Reset, document defaults, typography, accessibility primitives
   ----------------------------------------------------------------------------
   Loaded after tokens.css. Sets the majestic-blue canvas, frost text, fluid
   headings, link/focus styles, and helpers (.eyebrow, .lead, .sr-only).
   ========================================================================== */

/* ---- Modern reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;            /* never allow horizontal scroll */
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }      /* shows alt nicely if the image is missing */
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* ---- Headings --------------------------------------------------------
   Cormorant Garamond at 300–400 is the signature. It only reads premium at
   size — never set display type below ~1.4rem. */
h1, h2, h3, h4 { line-height: var(--lh-heading); text-wrap: balance; }
h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 300;
  letter-spacing: -.005em;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: -.005em;
}
h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }

/* Emphasis inside a display heading = gold italic. The signature flourish. */
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-300); }

p { max-width: var(--measure); }

/* ---- Links ----------------------------------------------------------- */
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--accent-hover); }

/* ---- Reusable typographic helpers ------------------------------------ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--gold-500);
}
/* Eyebrow with a leading gold tick — used on section heads. */
.eyebrow--tick::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  margin-right: .6rem;
  vertical-align: middle;
  background: var(--gold-500);
}

.lead {
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-muted-on-dark);
}
.lead.italic { font-style: italic; }

/* Metallic gold text for premium headings (use sparingly). */
.text-gold {
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Wordmark face — the carved Marcellus used for the logo + big numerals. */
.wordmark { font-family: var(--font-wordmark); letter-spacing: .06em; }

/* ---- Focus visibility (gold rings everywhere) ------------------------ */
:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Selection ------------------------------------------------------- */
::selection { background: rgba(201,162,75,.32); color: var(--frost-100); }

/* ---- Custom scrollbar (desktop) -------------------------------------- */
@media (min-width: 981px) {
  * { scrollbar-width: thin; scrollbar-color: var(--gold-700) var(--navy-900); }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--navy-900); }
  ::-webkit-scrollbar-thumb { background: var(--gold-700); border-radius: 999px; border: 2.7px solid var(--navy-900); }
  ::-webkit-scrollbar-thumb:hover { background: var(--gold-500); }
}

/* ---- Skip link (a11y) ------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  background: var(--royal-700);
  color: var(--frost-100);
  padding: .75rem 1.25rem;
  border: 1.35px solid var(--line);
  border-radius: var(--radius-pill);
  z-index: var(--z-preloader);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---- Screen-reader-only --------------------------------------------- */
.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;
}

/* ---- Light sections (frost / powder) --------------------------------- */
.section--light { background: var(--frost-100); color: var(--text-on-light); }
.section--light .lead { color: var(--ink-600); }
.section--light .eyebrow { color: var(--gold-700); }
.section--light h1 em, .section--light h2 em { color: var(--royal-600); }
.section--powder { background: var(--powder-100); color: var(--text-on-light); }
.section--powder .lead { color: var(--ink-600); }
.section--powder .eyebrow { color: var(--gold-700); }

/* When motion is reduced, neutralise any leftover transition flourish. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* ===== Accessibility: prefers-contrast ==================================
   The house hairlines run at 20-40% gold - elegant, but for low-vision
   buyers they vanish. When the OS asks for more contrast, thicken the ink. */
@media (prefers-contrast: more) {
  :root {
    --line: rgba(201,162,75,.55);
    --line-blue: rgba(169,207,234,.4);
    --text-muted-on-dark: rgba(242,247,253,.88);
  }
}

/* ===== Print ============================================================
   Gulf procurement prints pages into order files. Strip the theatre: white
   paper, black ink, no fixed furniture, no background art. */
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .bg-stage, .dock, .to-top, .site-header, .mobile-menu, .preloader, .scroll-progress,
  .side-accent, .marquee, .scroll-cue, .cursor-dot, .cursor-ring, .toast-wrap,
  .pb-scene, .pb-weave, .pb-stalk, .pb-shapla, .pb-torn, .pq-boat, .pq-lotus,
  .portal-sampan, .hero-nouka-m { display: none !important; }
  a { text-decoration: underline; }
  .section { padding: 1rem 0 !important; }
}