*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Guarantee the `hidden` attribute always hides an element, even when a
   component class sets its own `display` (e.g. .btn, .dialog-backdrop,
   .benefits-panel). A plain class selector and the browser's built-in
   `[hidden] { display: none }` rule tie on specificity, and the later
   author rule silently wins - this was breaking dialog/section close
   buttons and hidden-until-ready panels site-wide. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Avoid horizontal page movement from animated / full-bleed editorial media. */
main,
.site-footer {
  min-width: 0;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul[class],
ol[class] {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--rose-100);
  color: var(--rose-800);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--lh-tight);
}

/* Real weights now load from Google Fonts (Cormorant 400/500/600 +
   italic, Montserrat 300–700 — see the <link> in each page's <head>
   and the note at the top of tokens.css). Headings/buttons below use
   the actual semibold files, not a synthesized fake bold. */
.display-xl,
.display,
.page-title,
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.display-xl {
  font-size: var(--fs-display-xl);
  line-height: 1.04;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.08;
}

.page-title {
  font-size: var(--fs-page-title);
}

.section-title {
  font-size: var(--fs-section-title);
}

.h3 {
  font-size: var(--fs-h3);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.body-lg {
  font-size: 1rem;
  line-height: var(--lh-relaxed);
  color: var(--color-ink-soft);
}

.text-sm {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.text-xs {
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
}

.label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.num,
.financial {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  /* One field is one visual value: an invoice/booking/receipt number, phone
     or formatted amount must never break across lines just because its
     column got squeezed (design-system/MASTER.md, Data Presentation Rules).
     These are short, bounded-format strings, so nowrap alone is correct —
     table-wrap's own horizontal scroll is the fallback if a row still
     doesn't fit, never a mid-value line break. */
  white-space: nowrap;
}

.financial {
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* Names in a table/list cell: unlike .num's bounded-format codes, a name can
   genuinely be long, so it gets an ellipsis instead of overflowing the row -
   still "one line", per the same Data Presentation Rule. Needs a
   min-width:0 ancestor (already the case in a table cell/flex column) for
   the ellipsis to actually engage instead of just stretching the layout. */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

.financial-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
}

.container {
  width: min(100% - var(--space-10), var(--container-max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - var(--space-8), var(--container-wide));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.section + .section {
  padding-top: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.wrap {
  flex-wrap: wrap;
}

.grow {
  flex: 1;
}

.center {
  text-align: center;
}

.muted {
  color: var(--color-ink-soft);
}

.faint {
  color: var(--color-ink-faint);
}

.gold {
  color: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  z-index: 999;
  background: var(--color-card);
  color: var(--color-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

.surface-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.divider {
  height: 1px;
  background: var(--color-border);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 32px, var(--container-max));
  }

  .container-wide {
    width: min(100% - 24px, var(--container-wide));
  }

  /* A 16px control font prevents iOS from zooming the page whenever a guest
     enters booking, checkout or account details. It also makes staff forms
     easier to complete one-handed on a phone. */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* number boxes have no up/down arrows: they cause wrong amounts. Type the number. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; display: none; }