/* ==========================================================================
   BASE: design tokens, reset, typography, shared utilities
   To change the look site-wide, edit the variables in :root.
   ========================================================================== */

/* ---------- Theme ----------
   Every colour is defined ONCE below as light-dark(LIGHT, DARK).
   Which half is used depends on `color-scheme`:
   - no data-theme yet (JS off): follows the device setting
   - data-theme="light" / "dark": set by js/theme.js and the nav toggle */
:root { color-scheme: light dark; }
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

:root {
  /* Palette: monochrome with one accent (sky blue) */
  --color-bg: light-dark(#f7f8fa, #0a0a0b);
  --color-surface: light-dark(#eceff3, #141416);
  --color-surface-2: light-dark(#e2e6ec, #1c1c1f);
  --color-text: light-dark(#0d0f13, #f4f4f0);
  --color-text-soft: light-dark(rgb(13 15 19 / 0.8), rgb(244 244 240 / 0.82));
  --color-muted: light-dark(#555b64, #a3a39e);
  --color-line: light-dark(rgb(13 15 19 / 0.12), rgb(255 255 255 / 0.12));
  --color-line-strong: light-dark(rgb(13 15 19 / 0.26), rgb(255 255 255 / 0.25));

  /* Accent. Fill = buttons, dots, rules. Strong = accent used as text,
     outlines or thin lines, darkened in light mode to keep contrast. */
  --color-accent: light-dark(#5cb6f7, #8ecfff);
  --color-accent-strong: light-dark(#0a64b0, #8ecfff);
  --color-accent-ink: #06111c;      /* text on an accent fill, both modes */
  --color-accent-soft: color-mix(in srgb, var(--color-accent) 18%, transparent);
  --color-accent-glow: color-mix(in srgb, var(--color-accent) 30%, transparent);

  /* Translucent layers (glass nav, captions, hovers) */
  --color-tint: light-dark(rgb(13 15 19 / 0.06), rgb(255 255 255 / 0.08));
  --color-tint-soft: light-dark(rgb(13 15 19 / 0.04), rgb(255 255 255 / 0.06));
  --color-glass: light-dark(rgb(255 255 255 / 0.62), rgb(20 20 22 / 0.55));
  --color-glass-strong: light-dark(rgb(255 255 255 / 0.95), rgb(20 20 22 / 0.94));
  --color-scrim: light-dark(rgb(255 255 255 / 0.75), rgb(10 10 11 / 0.6));
  --color-shadow: light-dark(rgb(20 32 48 / 0.12), rgb(0 0 0 / 0.35));

  /* Hero atmosphere */
  --color-blob-a: light-dark(#b7d4ee, #34465a);
  --color-blob-b: light-dark(#dce3ee, #262d3a);
  --color-wordmark: light-dark(rgb(13 15 19 / 0.05), rgb(255 255 255 / 0.07));
  --color-wordmark-stroke: light-dark(rgb(13 15 19 / 0.09), rgb(255 255 255 / 0.1));
  --color-outline-text: light-dark(rgb(13 15 19 / 0.2), rgb(255 255 255 / 0.18));

  /* Type */
  --font-display: 'Unbounded', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lead: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  --text-display: clamp(2.6rem, 1.4rem + 5vw, 6.5rem);
  --text-hero-date: clamp(3.6rem, 1.5rem + 9vw, 10rem);
  --text-wordmark: 22.08vw;

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --space-section: clamp(5rem, 3rem + 8vw, 11rem);
  --container: 88rem;

  /* Shape: deliberately varied, not one radius everywhere */
  --radius-pill: 999px;
  --radius-card: 1.25rem;
  --radius-sm: 0.5rem;

  /* Motion */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 900ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Non-colour theme values (light-dark() only accepts colours) */
  --grain-opacity: 0.07;
}

:root[data-theme='light'] {
  --grain-opacity: 0.045;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display em {
  font-style: normal;
  color: var(--color-accent-strong);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.4;
  color: var(--color-text);
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  color: var(--color-accent-strong);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); position: relative; }

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-fast);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--color-accent); color: var(--color-accent-ink); }

/* ---------- Atmosphere: film grain over everything ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll reveal ----------
   Only hides content when JavaScript is available, so the page is
   fully readable without it. main.js adds .is-visible on scroll. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(2.5rem);
    transition:
      opacity var(--duration-slow) var(--ease-out-expo),
      transform var(--duration-slow) var(--ease-out-expo);
  }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
}

.motion-paused *, .motion-paused *::before, .motion-paused *::after {
  animation-play-state: paused !important;
}
.motion-paused [data-reveal] { opacity: 1; transform: none; }

.motion-toggle {
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: var(--text-xs);
  text-decoration: underline;
  cursor: pointer;
}
.booking__fallback { margin-bottom: 1.5rem; font-size: var(--text-sm); }
.booking__fallback a { text-underline-offset: 0.2em; }
.noscript-nav { padding: 5rem var(--gutter) 1rem; text-align: center; }
.noscript-nav a { display: inline-block; padding: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .btn:active,
  .hero__cta:hover,
  .hero__cta:active,
  .hero__cta-arrow,
  .gallery__item:hover img { transform: none !important; }
  .theme-toggle:active svg { scale: none; }
}
