/* ==========================================================================
   BeauHaunt — design tokens + reset
   Shared by the homepage map (bh-map.css) and all subpages (bh-subpage.css).
   Single source of truth for colour, type, space, radius, shadow, motion.
   ========================================================================== */

:root {
  /* ---- Surfaces: deep midnight sea ---------------------------------- */
  --bh-ink-900: #060a10;   /* page floor            */
  --bh-ink-800: #0a1018;   /* page base             */
  --bh-ink-700: #0f1720;   /* card base             */
  --bh-ink-600: #141e29;   /* card raised           */
  --bh-ink-500: #1b2734;   /* hover / inset         */
  --bh-ink-400: #26343f;   /* strong hairline       */

  /* ---- Foreground: warm parchment ink ------------------------------- */
  --bh-fg: #ece3d5;
  --bh-fg-2: #b3a798;
  --bh-fg-3: #9a9082;   /* 5.4:1 on card, 6.1:1 on page — safe for small text */

  /* ---- Accents ------------------------------------------------------ */
  --bh-gold: #d8b45c;
  --bh-gold-hi: #f2dca6;
  --bh-gold-dim: rgba(216, 180, 92, 0.34);
  --bh-sea: #93c6da;
  --bh-sea-hi: #c2e3f0;
  --bh-sea-dim: rgba(147, 198, 218, 0.28);
  --bh-blood: #d1524f;
  --bh-blood-hi: #ec7d79;   /* hover goes LIGHTER on dark backgrounds */
  --bh-blood-deep: #8e2f2d;

  /* ---- Status (calendar, banners) ----------------------------------- */
  --bh-open: #3f9161;
  --bh-open-dim: rgba(63, 145, 97, 0.18);
  --bh-closed: #8d4342;
  --bh-closed-dim: rgba(141, 67, 66, 0.18);
  --bh-show: #d1782c;
  --bh-show-dim: rgba(209, 120, 44, 0.18);
  --bh-special: #7d5cb0;
  --bh-special-dim: rgba(125, 92, 176, 0.2);

  /* ---- Parchment: the map's own paper, used for banners & plaques ---- */
  --bh-paper: #e0c79c;
  --bh-paper-deep: #c9ab7c;
  --bh-paper-ink: #2c1d0c;
  --bh-paper-ink-2: #5b4526;

  /* ---- Lines & edges ------------------------------------------------ */
  --bh-line: rgba(236, 227, 213, 0.09);
  --bh-line-strong: rgba(236, 227, 213, 0.16);
  --bh-line-gold: rgba(216, 180, 92, 0.32);

  /* ---- Radii -------------------------------------------------------
     Deliberately tight. Big soft radii read as generic template UI;
     this site should feel like an engraved brass plate.               */
  --bh-r-xs: 2px;
  --bh-r-sm: 4px;
  --bh-r: 6px;
  --bh-r-lg: 9px;
  --bh-r-pill: 999px;

  /* ---- Elevation ---------------------------------------------------- */
  --bh-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --bh-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.65);
  --bh-shadow-lg: 0 28px 60px -20px rgba(0, 0, 0, 0.75);
  --bh-glow-gold: 0 0 0 1px rgba(216, 180, 92, 0.22), 0 12px 40px -18px rgba(216, 180, 92, 0.4);

  /* ---- Type --------------------------------------------------------- */
  --bh-font-display: "Pirata One", "Source Serif 4", Georgia, serif;
  --bh-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bh-font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bh-t-micro: 0.75rem;
  --bh-t-sm: 0.9375rem;
  --bh-t-body: 1.0625rem;
  --bh-t-lead: clamp(1.09rem, 0.98rem + 0.5vw, 1.24rem);
  --bh-t-h3: clamp(1.12rem, 1.02rem + 0.45vw, 1.3rem);
  --bh-t-h2: clamp(1.55rem, 1.25rem + 1.4vw, 2.1rem);
  --bh-t-h1: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem);

  --bh-tracking-wide: 0.06em;
  --bh-tracking-eyebrow: 0.18em;

  /* ---- Space -------------------------------------------------------- */
  --bh-gap-xs: 0.5rem;
  --bh-gap-sm: 0.85rem;
  --bh-gap: 1.25rem;
  --bh-gap-lg: clamp(1.5rem, 4vw, 2.25rem);
  --bh-gap-xl: clamp(2.25rem, 6vw, 3.5rem);
  --bh-pad-card: clamp(1.35rem, 3.2vw, 2.1rem);
  --bh-pad-page: clamp(1rem, 3.5vw, 2rem);

  /* ---- Measure ------------------------------------------------------ */
  --bh-measure: 44rem;      /* comfortable prose width */
  --bh-wide: 1080px;        /* page shell              */

  /* ---- Motion ------------------------------------------------------- */
  --bh-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --bh-fast: 0.16s;
  --bh-med: 0.28s;
  --bh-slow: 0.5s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

body {
  margin: 0;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

:target {
  scroll-margin-top: 6rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link — high contrast, only visible on keyboard focus */
.bh-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.8rem 1.2rem;
  font-family: var(--bh-font-ui);
  font-size: var(--bh-t-sm);
  font-weight: 600;
  color: var(--bh-ink-900);
  background: var(--bh-gold-hi);
  text-decoration: none;
  border-radius: 0 0 var(--bh-r-sm) 0;
}
.bh-skip:focus {
  left: 0;
}

/* Consistent focus ring across the whole site */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--bh-gold-hi);
  outline-offset: 3px;
  border-radius: var(--bh-r-xs);
}

::selection {
  background: rgba(216, 180, 92, 0.32);
  color: #fff;
}

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