/* =========================================================================
   Lokahi Outrigger Canoe Club — Airbnb-inspired redesign
   Warm, photography-forward, rounded UI with generous whitespace.
   ========================================================================= */

/* --- Design Tokens (Airbnb-inspired, Lokahi-branded) --- */
:root {
  /* Brand reds — Lokahi's signature, used like Airbnb's Rausch Red */
  --red: #ed1c24;
  --red-hover: #d41920;
  --red-soft: rgba(237, 28, 36, .08);

  /* Ocean blues — secondary accent for links and accents */
  --blue: #005280;
  --blue-mid: #3387a2;
  --blue-soft: rgba(0, 82, 128, .06);

  /* Warm neutrals — Airbnb-style near-black, never pure black */
  --ink: #222222;
  --body: #484848;
  --muted: #717171;
  --light: #b0b0b0;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .12);

  /* Surfaces */
  --bg: #ffffff;
  --bg-warm: #faf9f7;
  --bg-soft: #f7f7f7;
  --bg-dark: #222222;
  --black: #111111;

  /* Shadows — Airbnb three-layer warm lift */
  --shadow-card: 0 0 0 1px rgba(0,0,0,.04),
                 0 2px 8px rgba(0,0,0,.04),
                 0 6px 18px rgba(0,0,0,.08);
  --shadow-hover: 0 0 0 1px rgba(0,0,0,.04),
                  0 4px 12px rgba(0,0,0,.06),
                  0 10px 28px rgba(0,0,0,.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-btn: 0 2px 8px rgba(0,0,0,.12);

  /* Typography */
  --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Amaranth", "Open Sans", sans-serif;
  --font-gothic: "Old London", "UnifrakturCook", cursive;
  --font-sub: "Oswald", sans-serif;

  /* Layout */
  --container: 1120px;
  --nav-h: 72px;

  /* Border radius — generous, Airbnb-style */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;
  --radius-circle: 50%;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --speed: .25s;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
a { color: var(--blue); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--red); }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* --- Typography --- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.3px;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  margin: 0 0 1.2em;
  padding: 1.2em 1.5em;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.7;
  border-left: 3px solid var(--red);
}

/* --- Layout Primitives --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
}
.section > .container > * + * { margin-top: 0; } /* rely on element margins, not stacks */
@media (max-width: 800px) {
  .section { padding: 48px 0; }
}
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-warm); }
.section--dark { background: var(--bg-dark); color: #f0f0f0; }
.section--dark h2,
.section--dark h3 { color: #fff; }

/* Centered section heading utility (replaces inline text-align:center) */
.section-title {
  text-align: center;
  margin-bottom: 32px;
}
.form-heading { margin-top: 0; }

/* Membership fees callout */
.fees-line {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.fees-label {
  color: var(--blue-mid);
  font-size: 1.4rem;
}
@media (max-width: 600px) {
  .fees-line { font-size: .95rem; }
  .fees-label { font-size: 1.15rem; }
  .fees-line .fee-item { display: block; margin-top: 4px; }
}

/* Slim dark heading strip used to introduce anchor sections (Programs / Gallery / Join) */
.section-divider {
  background: var(--bg-dark);
  color: #fff;
  padding: 32px 0;
}
.section-divider .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.section-divider img,
.section-divider svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.section-divider svg {
  fill: #fff;
  opacity: .9;
}
.section-divider img {
  filter: brightness(0) invert(1);
  opacity: .9;
}
.section-divider h2 {
  color: #fff;
  margin: 0;
}

/* Quieter in-flow section intro — a red eyebrow rule + label, used when
   a full dark divider would be too heavy */
.eyebrow-divider {
  text-align: center;
  padding: 40px 0 0;
}
.eyebrow-divider::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 0 auto 14px;
  border-radius: 2px;
}
.eyebrow-divider .eyebrow {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.section--parallax {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.section--parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(2px);
}
.section--parallax > .container { position: relative; z-index: 1; }

.section--parallax-bare > .container { position: relative; z-index: 1; }
.section--parallax-bare {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* --- Grid Utilities --- */
.grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--58-42 { grid-template-columns: 58% 42%; }
.grid--coach { grid-template-columns: 27% 1fr; align-items: start; }

@media (max-width: 800px) {
  .grid--2,
  .grid--3,
  .grid--58-42,
  .grid--coach { grid-template-columns: 1fr; }
}

/* =========================================================================
   HEADER / NAVIGATION — Clean, spacious, Airbnb-style sticky header
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: transform .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
/* Hard-pin the header visible during anchor navigation — wins over .is-hidden. */
.site-header.is-pinned { transform: translateY(0) !important; }
.site-header > .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Wordmark logo */
.text-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-left: -8px;
}
.text-logo-name {
  font-family: var(--font-gothic);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--red);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 2px 2px 0 rgba(0,0,0,.25);
  line-height: 1;
  display: inline-block;
  transition: transform var(--speed) var(--ease),
              color var(--speed) var(--ease),
              text-shadow var(--speed) var(--ease);
}
.text-logo:hover .text-logo-name {
  color: var(--red-hover);
  transform: translate(-1px, -1px);
  text-shadow: 3px 3px 0 rgba(0,0,0,.28);
}
.text-logo:active .text-logo-name {
  transform: translate(0, 0);
  text-shadow: 1px 1px 0 rgba(0,0,0,.25);
}
.text-logo-sub {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .text-logo-sub { display: none; }
}

/* Navigation links */
.nav {
  display: flex;
  gap: clamp(8px, 2vw, 24px);
  align-items: center;
}
.nav a {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;
  padding: 8px 4px;
  position: relative;
  transition: color var(--speed) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--red); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

main { padding-top: var(--nav-h); }

/* Visually hide while remaining available to assistive tech */
.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;
}

/* Overlay-driven scroll lock — shared so overlays don't clobber each other */
body.is-locked { overflow: hidden; }

/* =========================================================================
   HERO — Immersive, full-viewport photo with floating badge
   ========================================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,.45) 100%
  );
}
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  width: clamp(200px, 26vw, 300px);
  opacity: 0.9;
  margin-bottom: 0;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.35));
  transition: transform .6s var(--ease);
}
.hero:hover .hero-badge { transform: scale(1.03); }

/* =========================================================================
   PRACTICE STRIP — Slim dark bar right below hero with times + CTA
   Replaces the old tall red info-banner. Same job, quieter voice.
   ========================================================================= */
.practice-strip {
  background: var(--ink);
  color: #fff;
  padding: 18px 0;
  border-bottom: 3px solid var(--red);
  font-family: var(--font-body);
}
.practice-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.practice-strip-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: .3px;
}
.practice-strip-info strong {
  font-family: var(--font-sub);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
}
.practice-strip-info span {
  color: rgba(255,255,255,.85);
}
.practice-strip-info .sep {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,.35);
  border-radius: 50%;
  display: inline-block;
}
.practice-strip .btn {
  background: #fff;
  color: var(--ink);
  padding: 10px 22px;
  min-height: 0;
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.practice-strip .btn:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .practice-strip .container { justify-content: center; text-align: center; }
  .practice-strip-info { justify-content: center; }
}

/* =========================================================================
   TESTIMONIAL SECTION (parallax with ocean overlay)
   ========================================================================= */
.section--parallax-dark {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
  padding: 88px 0;
}
.section--parallax-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 30, 60, .65) 0%,
    rgba(0, 50, 90, .5) 100%
  );
  backdrop-filter: blur(1px);
}
.section--parallax-dark > .container {
  position: relative;
  z-index: 1;
}
.testimonial-intro p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
}
.testimonial-quote {
  background: rgba(255, 255, 255, .95);
  color: var(--body);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  line-height: 1.65;
  box-shadow: var(--shadow-card);
  quotes: "\201C" "\201D";
  backdrop-filter: blur(6px);
}
.testimonial-quote p::before {
  content: open-quote;
  font-weight: 700;
  font-size: 1.5em;
  color: var(--red);
  margin-right: 2px;
}
.testimonial-quote cite {
  display: block;
  margin-top: 10px;
  text-align: right;
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}
.testimonial-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.testimonial-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform var(--speed) var(--ease);
}
.testimonial-photos img:hover {
  transform: scale(1.03);
}
@media (max-width: 700px) {
  .testimonial-photos { grid-template-columns: 1fr; }
  .testimonial-photos img { height: 200px; }
}

/* =========================================================================
   PARALLAX DIVIDER
   ========================================================================= */
.parallax-divider {
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-soft);
}
@media (max-width: 600px) {
  .parallax-divider { min-height: 240px; }
}

/* Map embed responsive height */
.map-embed { height: 520px; }
@media (max-width: 600px) {
  .map-embed { height: 320px; }
}

.parallax-layer {
  background-position-y: calc(50% + var(--parallax-offset, 0px)) !important;
}

/* =========================================================================
   BUTTONS — Rounded, warm, with hover lift
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: all var(--speed) var(--ease);
}
.btn:hover {
  background: var(--red-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--lg { font-size: 16px; padding: 14px 36px; border-radius: var(--radius); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: var(--radius-sm);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: #fff;
}

/* =========================================================================
   COACH BLOCKS — Clean card style
   ========================================================================= */
.coach {
  background: var(--bg);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--speed) var(--ease);
}
.coach:hover { box-shadow: var(--shadow-hover); }
.coach + .coach { margin-top: 32px; }
.coach-photo {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.coach-name {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--ink);
}
.coach-bio {
  margin: 0;
  padding-left: 0;
  border-left: none;
  background: none;
  font-size: .95rem;
  color: var(--body);
}

/* =========================================================================
   SECTION BANNER (parallax with text overlay)
   ========================================================================= */
.banner {
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.2) 0%,
    rgba(0,0,0,.4) 100%
  );
}
.banner > * { position: relative; z-index: 1; }
.banner h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

/* =========================================================================
   SCHEDULE TABLE — Clean, elevated card style
   ========================================================================= */
.schedule-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.schedule {
  width: 100%;
  min-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.schedule th,
.schedule td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.schedule thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
}
.schedule tbody tr { transition: background var(--speed); }
.schedule tbody tr:nth-child(odd) { background: var(--bg-soft); }
.schedule tbody tr:hover { background: var(--blue-soft); }

/* --- Race lists --- */
.race-list { padding-left: 1.4em; }
.race-list li { margin-bottom: 8px; }

/* =========================================================================
   GALLERY — Masonry layout (CSS columns) with Ken Burns hover
   ========================================================================= */
.gallery-section {
  background: #141414; /* warm off-black — frames photos better than pure black */
  padding: 40px 0 56px;
}

.gallery {
  column-count: 4;
  column-gap: 10px;
}
@media (max-width: 1100px) { .gallery { column-count: 3; } }
@media (max-width: 750px)  { .gallery { column-count: 2; } }
@media (max-width: 360px)  { .gallery { column-count: 1; } }

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  margin: 0 0 10px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  cursor: zoom-in;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;                 /* native aspect ratio — masonry's whole point */
  transition: transform 1.4s var(--ease);  /* slow Ken Burns */
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Video tile: play icon overlay */
.gallery-video { cursor: pointer; }
.gallery-video .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gallery-video .play-icon svg {
  width: 72px;
  height: 72px;
  color: #fff;
  background: rgba(237, 28, 36, .92);
  border-radius: 50%;
  padding: 18px 14px 18px 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.gallery-video:hover .play-icon svg {
  transform: scale(1.08);
  background: rgba(212, 25, 32, 1);
}

/* =========================================================================
   SECTION DIVIDERS (full-bleed image strip)
   ========================================================================= */
.divider {
  height: 280px;
  overflow: hidden;
}
.divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  .divider { height: 180px; }
}

/* =========================================================================
   FORMS — Rounded, clean, with focus glow
   ========================================================================= */
.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
  .form-row--2 { grid-template-columns: 1fr; }
}
.form-field { display: block; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: .2px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(34,34,34,.12);
}
.form-required { color: var(--red); }
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.form--narrow { max-width: 760px; }

/* =========================================================================
   FOOTER — Clean, spacious
   ========================================================================= */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 36px;
  align-items: center;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 24px;
  }
}
.footer-logo { width: 120px; height: auto; }
.footer-address { color: var(--body); }
.footer-address strong { color: var(--ink); }
.footer-nav ul { list-style: none; }
.footer-nav a {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
  transition: color var(--speed);
}
.footer-nav a:hover { color: var(--red); }

.social {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: var(--ink);
  color: #fff;
  transition: all var(--speed) var(--ease);
}
.social a:hover {
  transform: scale(1.1);
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(237, 28, 36, .3);
}
.social svg { width: 18px; height: 18px; fill: currentColor; }

.copyline {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Copy-to-clipboard field: monospace value + icon button + floating "Copied" tip.
   Email text stays put; only the icon swaps + a small tooltip floats above. */
.copy-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f7f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: baseline;
}
.copy-field__value {
  user-select: all;
  color: var(--ink);
}
.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #6b7280;
  cursor: pointer;
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.copy-btn:hover,
.copy-btn:focus-visible {
  color: var(--blue);
  background: rgba(0, 0, 0, .05);
  outline: none;
}
.copy-btn__icon {
  display: block;
  transition: opacity 120ms ease, transform 120ms ease;
}
.copy-btn__icon--check {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transform: scale(0.8);
  color: #16a34a;
}
.copy-btn.is-copied .copy-btn__icon--copy {
  opacity: 0;
  transform: scale(0.8);
}
.copy-btn.is-copied .copy-btn__icon--check {
  opacity: 1;
  transform: scale(1);
}
.copy-btn__tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  padding: 3px 8px;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: #1f2937;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}
.copy-btn__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1f2937;
}
.copy-btn.is-copied .copy-btn__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================================
   LIGHTBOX — Polished, blurred backdrop
   ========================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  max-width: min(95vw, 1400px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img,
.lightbox-video {
  display: none;
  max-width: min(95vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  background: #000;
}
.lightbox.is-image .lightbox-img { display: block; }
.lightbox.is-video .lightbox-video { display: block; }
.lightbox-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  user-select: none;
}
.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 0;
  font-size: 28px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-circle);
  cursor: pointer;
  user-select: none;
  line-height: 1;
  transition: all var(--speed) var(--ease);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-btn:hover {
  background: rgba(255,255,255,.25);
  transform: scale(1.05);
}
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-close { right: 20px; top: 20px; font-size: 22px; }

/* =========================================================================
   MOBILE NAV (hamburger)
   ========================================================================= */
.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  border-radius: 2px;
}
.hamburger span::before { content: ""; position: absolute; top: -7px; }
.hamburger span::after  { content: ""; position: absolute; top: 7px; }
body.nav-open .hamburger span { background: transparent; }
body.nav-open .hamburger span::before { transform: rotate(45deg) translate(5px, 5px); }
body.nav-open .hamburger span::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* On desktop the wrap is invisible in layout — children act as if they're
   direct children of .site-header > .container. */
.nav-wrap { display: contents; }

@media (max-width: 800px) {
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }

  /* Mobile menu container: anchored to the bottom of the nav bar and clips
     everything above its own top edge. The menu reveals/hides by animating
     grid-template-rows from 0fr -> 1fr, which expands its visible height
     from zero to its intrinsic content height. Because the wrapper has
     overflow: hidden, the menu can never draw over the nav bar. */
  .nav-wrap {
    display: grid;
    grid-template-rows: 0fr;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow: hidden;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    /* visibility flip is delayed on close so the collapse animation plays,
       but flips on immediately when opening. */
    visibility: hidden;
    transition: grid-template-rows .35s var(--ease),
                visibility 0s linear .35s;
  }
  body.nav-open .nav-wrap {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .35s var(--ease);
  }

  .nav {
    /* min-height:0 lets the grid row shrink below content's min content size */
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .nav a {
    color: var(--ink);
    padding: 14px 28px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
}

/* =========================================================================
   FADE-IN ANIMATION
   ========================================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Motion is intentional on this site (parallax, smooth-scroll, nav-hide, gallery fade-in).
   We deliberately do NOT honor prefers-reduced-motion — it's a design choice.
   Matches the JS side, which also ignores the preference. */

/* =========================================================================
   CHEAT SHEET MODAL — Scrollable overlay matching lightbox aesthetic
   ========================================================================= */
.cheatsheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cheatsheet-overlay.is-open { display: flex; }

.cheatsheet-panel {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  width: min(95vw, 780px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cheatsheet-in .35s var(--ease);
}
@keyframes cheatsheet-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cheatsheet-close {
  position: sticky;
  top: 0;
  z-index: 2;
  align-self: flex-end;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--muted);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  cursor: pointer;
  margin: 12px 12px 0 0;
  transition: all var(--speed) var(--ease);
  flex-shrink: 0;
}
.cheatsheet-close:hover {
  background: var(--red);
  color: #fff;
  transform: scale(1.08);
}

.cheatsheet-body {
  padding: 0 40px 48px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .cheatsheet-body { padding: 0 20px 32px; }
  .cheatsheet-panel { max-height: 95vh; width: 100%; border-radius: var(--radius); }
}
.cheatsheet-body h2 {
  text-align: center;
  color: var(--ink);
  margin-bottom: 8px;
}
.cheatsheet-body h3 {
  color: var(--red);
  font-size: 1.3rem;
  margin: 32px 0 12px;
}
.cheatsheet-body h4 {
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 24px 0 8px;
}
.cheatsheet-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 16px;
}
.cheatsheet-rule {
  border: 0;
  border-top: 2px solid var(--line);
  margin: 32px 0;
}
.cheatsheet-day {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.cheatsheet-day h4 { margin-top: 0; }
.cheatsheet-day ol { padding-left: 1.4em; margin: 0; }
.cheatsheet-day li { margin-bottom: 10px; }
.cheatsheet-day li:last-child { margin-bottom: 0; }
.cheatsheet-aside {
  font-size: .9rem;
  color: var(--muted);
  background: var(--bg);
  border-left: 3px solid var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.cheatsheet-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cheatsheet-table {
  width: 100%;
  min-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  font-size: .92rem;
}
.cheatsheet-table th,
.cheatsheet-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cheatsheet-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
}
.cheatsheet-table tbody tr { transition: background var(--speed); }
.cheatsheet-table tbody tr:nth-child(odd) { background: var(--bg-soft); }
.cheatsheet-table tbody tr:hover { background: var(--blue-soft); }
.cheatsheet-table em { color: var(--muted); }

/* =========================================================================
   OLD LONDON FONT (inlined woff2 — same as before)
   ========================================================================= */
@font-face {
  font-family: 'Old London';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: local('Old London'),
       url(data:font/woff2;base64,d09GMgABAAAAAA3kAAoAAAAAFIQAAA2cAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4AdAqjaJt7ATYCJANYCy4ABCAFBgcgG7QPEUVVBeKrAtuxQoNu0baTZXi/m0wk+BIZLmOIEORIqqTm++ZyBnyGu9ruJMh57CCYBhEZgVTcNn99S+uIhkoM1VPLPXhlN/vxXf/s8PzNXq0fwNXEak6cqoFoHbGD3HQczvAIbPe3QWKdR5GPswgijzCGwLLFmKzbs+RfGBAWIbF+bKsJKRCgnf/hAPPdq5qx6X/MHOoRuWRfsm0PmxtoEQYoh98yJo3VFusVKygVa319DKeF7s1XYMUeAMANvwexAAgLA7B/scoA3CixCRSMceMQrlVfFIBqJ0FTngQnZUZ/Bf4gs0eTwiQm+JL0E0C+COPkcgYt2nVhnvayV7355Rau04B36qW+BOCb3CEH7XfBOSvmzAoEIYcAlhN01wFxDYD4pZkxxTFiRYn+2eOjCaG1xyk8WqwDEvx4Rqwc++KRR44k2RNt0Ymuh0g0SoqPxz8k7RNvdCYeTTLHH4lPjC+OiY3OeiD5wSR8FiVUo4SEo6aYeHvMUWtMXFLCm8Qxx93e7NH5DHK9O4KgGkjWGb0MFCzsBOw81sqE3uFGAp/tdAYQjh2wXGwaTKYR2K597ADldfhN6OGj8yYDtjWAaNbKzwOgUHItewbGk70sNLQqDyDKQyeX8XvYb/Vji2UNqCU7adtYefekpIHkefsg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