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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv05' 1;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
:where(p, li) { text-wrap: pretty; }

/* --- display type ------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-display);
  text-transform: uppercase;
  text-wrap: balance;
}
h1, .t-hero { font-size: var(--t-hero); line-height: var(--lh-tight); }
.t-d1 { font-size: var(--t-d1); line-height: 0.98; }
h2, .t-d2 { font-size: var(--t-d2); line-height: 1.02; }
h3, .t-d3 { font-size: var(--t-d3); line-height: 1.08; }
h4 { font-size: 1.1875rem; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

/* Micro-label: the small tracked-out all-caps tag above a section heading. */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow::before {
  content: ''; width: 1.5rem; height: 2px; background: var(--signal); flex: none;
}
.eyebrow--plain::before { display: none; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }
.fine { font-size: var(--t-xs); line-height: 1.5; color: var(--fg-muted); }

/* --- layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide { max-width: var(--wrap-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.stack > * + * { margin-top: var(--flow, var(--s-4)); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 46em) {
  .g-2 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) { .g-4 { grid-template-columns: repeat(4, 1fr); } }

.section-head { max-width: 62ch; margin-bottom: var(--s-7); }
.section-head > * + * { margin-top: var(--s-3); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* --- rules & the hazard motif ------------------------------------------- */
.rule { height: 1px; background: var(--rule); border: 0; }

/* Used once or twice a page as a section marker. Sparing = industrial;
   everywhere = novelty. */
.hazard {
  height: 6px; border: 0;
  background: repeating-linear-gradient(
    -45deg, var(--signal) 0 10px, transparent 10px 20px
  );
  opacity: .9;
}

/* --- accessibility ------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.on-dark :focus-visible { outline-color: var(--signal-hot); }

.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;
}

.skip-link {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: var(--z-toast);
  background: var(--signal); color: var(--signal-ink);
  padding: var(--s-3) var(--s-5);
  font-weight: 700; font-size: var(--t-sm);
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: transform var(--fast) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --- scroll-reveal (opt-in, disabled for reduced motion) ---------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- utilities ---------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.no-wrap { white-space: nowrap; }
@media (max-width: 46em) { .hide-sm { display: none !important; } }
@media (min-width: 46.01em) { .only-sm { display: none !important; } }

/* Print: a booking confirmation should print cleanly. */
@media print {
  .site-header, .site-footer, .mobile-cta, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #999; }
}
