/* Base: self-hosted fonts, non-colour custom properties, reset, type, layout primitives, buttons, focus.
   Colour tokens come from tokens.css, which the build generates from design/tokens.json. Never define
   colours here: use var(--page), var(--plum) and the other token names. */

/* Fonts: served unhashed from /assets/fonts/ so these paths never change (spec 3.2). */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-400.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/newsreader-500.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-700.woff2") format("woff2");
}

:root {
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4.5vw, 48px);
  --maxw: 1160px;
  --section: clamp(64px, 9vw, 128px);
  --radius-card: 20px;
  --focus: var(--plum);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}

svg { display: block; }
img { max-width: 100%; height: auto; }
/* An <img> inside <picture> then sizes against its photo frame exactly as a bare <img> would. */
picture { display: contents; }

/* Type -------------------------------------------------------------- */
a { color: var(--plum); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.125rem); line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

/* Focus and accessibility helpers ------------------------------------ */
/* Dark panels (header, package, booking) set --focus to cream so the ring stays visible. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--plum);
  color: var(--page);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  --focus: var(--page);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout primitives -------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.section { padding-block: var(--section); }
.section--ruled { padding-top: 0; }
.section--ruled > .wrap { border-top: 1px solid var(--rule); padding-top: var(--section); }
/* The six sections the header links to leave a little room above their heading after a jump. */
.about, .help-stages, .services-menu, .booking, .area, .faq { scroll-margin-top: 16px; }

.section-intro { margin-top: 16px; max-width: 36em; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 0;
  font: 600 1.0625rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--plum); color: var(--page); }
.btn-primary:hover { background: var(--plum-deep); }
.btn-light { background: var(--page); color: var(--plum-deep); }
.btn-light:hover { background: var(--card); }
.btn-small { min-height: 44px; padding: 10px 22px; font-size: 1rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* Motion: smooth scrolling and transitions only for people who have not asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: background-color 0.2s ease; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
