/* Shared foundation for the sections 1–3 prototype: fonts, reset, site header, buttons, focus, shared chips.
   Section files (hero.css, tour.css, week.css) build on these; they never redefine tokens. */
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/SpaceGrotesk-Variable.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-Variable.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--graphite-deep); color: var(--graphite); font: 500 var(--fs-body)/var(--lh-body) var(--font-body); }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- site header (sticky; theme follows the section under it) ---------- */
:root { --header-h: 64px; }
@media (max-width: 767.98px) { :root { --header-h: 56px; } }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 28px;
  padding: 0 max(24px, env(safe-area-inset-left, 0px)); color: var(--ivory); background: transparent;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base), color var(--dur-base), opacity var(--dur-slow); }
.site-header[data-theme="light"] { color: var(--graphite); background: color-mix(in srgb, var(--ivory) 92%, transparent); border-bottom: 1px solid var(--line); }
.site-header .wm { font: 700 24px/1 var(--font-display); letter-spacing: -.04em; text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.site-header nav { display: flex; gap: 24px; flex: 1; font-weight: 600; font-size: 15px; }
.site-header nav a { text-decoration: none; min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; }
.site-header .hdr-cta { margin-left: auto; }
.site-header[data-theme="light"] .hdr-cta { border-color: var(--line-strong); color: var(--graphite); background: transparent; }
@media (max-width: 767.98px) { .site-header { gap: 12px; padding: 0 16px; } .site-header nav { display: none; } }
html[data-stage="on"] .site-header { transform: translateY(-100%); }
html[data-entrance="dark"] .site-header { opacity: 0; pointer-events: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-control);
  border: 1.5px solid transparent; font: 700 15px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; background: none;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--primary { background: var(--graphite); color: var(--ivory); }
.btn--primary-dark { background: var(--ivory); color: var(--graphite); }
.btn--secondary { border-color: var(--line-strong); color: var(--graphite); background: transparent; }
.btn--secondary-dark { border-color: #ffffff80; color: var(--ivory); background: #ffffff10; }
.btn--ghost-dark { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; padding: 0 4px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- shared chips and labels ---------- */
.sample-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-radius: 6px; padding: 2px 6px; background: var(--plaster); color: var(--graphite); }
.ex-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--slate); border: 1px dashed var(--line-strong); border-radius: 6px; padding: 2px 6px; }
.on-dark .ex-chip, .ex-chip.on-dark { color: var(--ink-on-dark-muted); border-color: #787d86; }
.media-label { font-size: 12px; font-weight: 700; line-height: 1.35; color: #eceae4; background: #0e1014cc; border-radius: 8px; padding: 5px 9px; max-width: 46ch; }
.est { font-size: 11px; font-weight: 800; border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 5px; margin-left: 4px; color: var(--slate); }

/* TEMPORARY MEDIA badge: every placeholder asset carries it until approved media replaces it */
.temp-badge { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  color: #1d2128; background: var(--brass); border-radius: 6px; padding: 4px 8px; max-width: min(92%, 520px); pointer-events: none; }
.temp-badge small { font-weight: 700; text-transform: none; letter-spacing: 0; opacity: .85; }

/* ---------- placeholder for whatever follows section 3 ---------- */
.after3 { background: var(--graphite-deep); color: var(--ivory); padding: clamp(64px, 12vw, 140px) max(16px, env(safe-area-inset-left, 0px)); }
.after3 .inner { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.after3 h2 { font: 600 var(--fs-display-2)/var(--lh-display-2) var(--font-display); letter-spacing: var(--track-display-2); margin: 0; }
.after3 p { color: var(--ink-on-dark-muted); margin: 0; }
.after3 .sample-chip { color: var(--graphite); }
.site-footer { background: #0b0d10; color: var(--ink-on-dark-muted); padding: 28px max(16px, env(safe-area-inset-left, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

/* phone: keep temporary-media badges to two short lines so they never cover faces or controls */
@media (max-width: 767.98px) {
  .temp-badge { font-size: 10px; padding: 3px 6px; max-width: 58%; }
  .temp-badge small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
