/* ============================================================
   Prague Tango Marathon — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #1A1614;
  --bg-surface:  #221E1A;
  --bg-raised:   #2A2521;
  --brand:        #C2847B;
  --brand-light:  #D5ABA4;
  --brand-dim:    #924F44;
  --text:        #E3DCD1;
  --text-muted:  #A79C8C;
  --red:         #8B2020;
  --border:      rgba(194, 132, 123, 0.25);
  --border-solid: rgba(194, 132, 123, 0.5);

  --gentle-cream: #E8DDD0;
  --gentle-warm:  #C4937A;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --nav-h:  68px;
  --radius: 0px;
  --gap:    2rem;
  --max-w:  1100px;

  --transition: 0.25s ease;
}

/* ── Light mode tokens ──────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #F2EBE0;
  --bg-surface:  #E8DDD0;
  --bg-raised:   #DDD0C0;
  --brand:        #A2574B;
  --brand-light:  #BF7F75;
  --brand-dim:    #6A3931;
  --text:        #1A1210;
  --text-muted:  #6B5F55;
  --border:      rgba(162, 87, 75, 0.18);
  --border-solid: rgba(162, 87, 75, 0.32);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}
.section--dark  { background: var(--bg); }
.section--surface { background: var(--bg-surface); }
.section--raised { background: var(--bg-raised); }

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; }

.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0 1.5rem;
  justify-content: center;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--border-solid);
}
.ornament span {
  color: var(--brand);
  font-size: 1.1rem;
}

/* ── Grid helpers ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--border-solid);
  border-left-color: var(--brand-light);
  transform: translateY(-2px);
}
.card h3 { color: var(--brand); margin-bottom: 0.5rem; }
.card p  { color: var(--text-muted); font-size: 0.95rem; }

/* ── Button ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--brand);
  color: var(--brand);
  background: transparent;
  transition: background var(--transition), color var(--transition);
  text-align: center;
}
.btn:hover {
  background: var(--brand);
  color: var(--bg);
}
.btn--solid {
  background: var(--brand);
  color: var(--bg);
}
.btn--solid:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--bg);
}

/* ── Label / Badge ───────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--brand);
  color: var(--brand);
}
.label--red { border-color: var(--red); color: var(--red); }
.label--green { border-color: #4a8a4a; color: #6db46d; }

/* ── Banner ──────────────────────────────────────────────────── */
.banner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.banner > span:first-child { flex-shrink: 0; }
.banner--alert { border-top-color: var(--red); }
.banner p { margin: 0; }

/* ── Success callout ─────────────────────────────────────────── */
.success-banner {
  background: var(--bg-surface);
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-surface));
  border: 1px solid var(--border-solid);
  border-top: 3px solid var(--brand);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.success-banner .success-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}
.success-banner h3 {
  font-family: var(--font-heading);
  color: var(--brand);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}
.success-banner p { margin: 0; color: var(--text); }

/* ── Image placeholder ───────────────────────────────────────── */
.img-placeholder {
  background: var(--bg-raised);
  border: 1px dashed var(--border-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 100%;
}
.img-placeholder--tall  { min-height: 280px; }
.img-placeholder--short { min-height: 160px; }
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-placeholder:has(img) { border: none; background: none; }

/* ── Forms ───────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-solid);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--brand); }
.form-group select { appearance: none; }
.form-group textarea { resize: vertical; min-height: 120px; }
.was-validated .form-group input:invalid,
.was-validated .form-group select:invalid,
.was-validated .form-group textarea:invalid { border-color: #c0392b; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.required-marker { color: var(--brand); }

/* ── Form sections ───────────────────────────────────────────── */
.form-section { display: flex; flex-direction: column; gap: 1.25rem; }
.form-section + .form-section {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.form-section h4 { margin-bottom: -0.25rem; }

/* ── Checkboxes ──────────────────────────────────────────────── */
.checkbox-group { display: flex; flex-direction: column; gap: 0.75rem; }
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--border-solid);
  background: var(--bg-raised);
  position: relative;
  cursor: pointer;
  margin-top: 0.15rem;
  transition: border-color var(--transition), background var(--transition);
}
.checkbox-field input[type="checkbox"]:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.checkbox-field input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-field input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.checkbox-field .checkbox-label { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.checkbox-field .checkbox-label small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* Couple toggle reveals partner fields — pure CSS, no JS needed */
.partner-fields {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-left: calc(20px + 0.75rem);
}
.couple-toggle-field:has(input:checked) + .partner-fields { display: flex; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  /* No backdrop-filter: it makes this element the containing block for
     fixed-position descendants (breaking .nav-links' viewport-relative
     positioning) and is a known trigger for ghosting/tearing on iOS
     Safari when a fixed, opacity-animated descendant sits inside it —
     exactly the mobile menu below. Background is solid enough that a
     blur wasn't adding much anyway. */
  background: rgba(13, 13, 13, 0.97);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 38px;
  width: 27px;
  display: block;
  flex-shrink: 0;
  -webkit-mask: url('../images/logo-black.png') no-repeat center / contain;
  mask: url('../images/logo-black.png') no-repeat center / contain;
  background-color: var(--text);
  transition: background-color var(--transition);
}
.nav-logo span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.2;
  font-style: normal;
  margin-top: 0;
  display: block;
  transition: color var(--transition);
}
.nav-logo:hover .nav-logo-img { background-color: var(--brand); }
.nav-logo:hover span { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

/* Mobile nav */
@media (max-width: 1060px) {
  .nav-toggle { display: flex; }

  .navbar .container {
    gap: 0.75rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* display:none/flex instead of an opacity transition — iOS Safari has
     a documented history of ghosting/tearing a fixed, full-viewport
     element that fades in/out via opacity (worse still alongside a
     backdrop-filter ancestor, which this no longer has either). Toggling
     display leaves no intermediate frame for it to mis-render, at the
     cost of the fade polish. */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    display: none;
    z-index: 1050;
  }
  body.nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .nav-links a:hover,
  .nav-links a.active {
    border-left-color: var(--brand);
    border-bottom: none;
  }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--brand); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--brand); }
}

@media (max-width: 400px) {
  .navbar .container {
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .nav-logo-img { height: 32px; width: 23px; }
  .nav-logo span { font-size: 0.72rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0c0808 0%, #0f0b0b 60%, #0d0d0d 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(196,30,58,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(196,30,58,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Gentle Edition badge ──────────────────────────────────────── */
.hero-edition {
  margin-bottom: 2.5rem;
}
.hero-edition-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
}
.hero-edition-tag::before,
.hero-edition-tag::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(196,30,58,0.6);
}
.hero-edition-name {
  display: none;
}

/* ── Art panels strip ──────────────────────────────────────────── */
.hero-art-panels {
  display: flex;
  height: 3px;
  width: min(280px, 70vw);
  gap: 4px;
  margin-bottom: 3rem;
}
.hero-art-panels .ap { flex: 1; opacity: 0.85; }

/* ── Hero logo display ─────────────────────────────────────────── */
.hero-logo-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  max-width: 380px;
  max-height: 65vh;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-display img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 65vh;
  filter: brightness(0) invert(1);
  opacity: 0.03;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-content .hero-edition-tag {
  justify-content: center;
}

.hero-content .hero-art-panels {
  margin-left: auto;
  margin-right: auto;
}

.hero-content .hero-actions {
  justify-content: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--brand);
}

.hero h1 {
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

.hero-date {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gentle-warm);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-silhouette {
  position: absolute;
  right: 0; bottom: 0;
  width: 45%;
  max-width: 520px;
  height: 85%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-silhouette svg {
  width: 100%;
  height: 100%;
  opacity: 0.12;
}

/* ── Event banner below hero ─────────────────────────────────── */
.event-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.event-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}
.event-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.event-strip-item .value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand);
}
.event-strip-item .label-text {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.event-strip-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
}
@media (max-width: 480px) { .event-strip-sep { display: none; } }

/* ── About / Quote ───────────────────────────────────────────── */
.quote-block {
  border-left: 3px solid var(--brand);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: var(--bg-raised);
}
.quote-block blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  line-height: 1.6;
}
.quote-block blockquote::before { content: '\201C'; color: var(--brand); font-size: 1.5em; line-height: 0; vertical-align: -0.4em; margin-right: 0.1em; }
.quote-block blockquote::after  { content: '\201D'; color: var(--brand); font-size: 1.5em; line-height: 0; vertical-align: -0.4em; margin-left: 0.1em; }

/* ── Stat cards (at a glance) ────────────────────────────────── */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-solid); }
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.stat-card .stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* ── Nav tiles ───────────────────────────────────────────────── */
.nav-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: block;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.nav-tile:hover {
  background: var(--bg-raised);
  border-color: var(--border-solid);
  transform: translateY(-3px);
  color: var(--text);
}
.nav-tile .tile-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.nav-tile h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--brand); margin-bottom: 0.4rem; }
.nav-tile p   { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ============================================================
   SCHEDULE PAGE
   ============================================================ */
.dj-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.dj-card:hover { border-color: var(--border-solid); }
.dj-card .dj-photo { overflow: hidden; }
.dj-card .dj-photo img { width: 100%; height: auto; display: block; }
.dj-card .dj-info { padding: 1.25rem 1.5rem; }
.dj-card .dj-info h3 { color: var(--brand); font-size: 1.15rem; margin-bottom: 0.25rem; }
.dj-card .dj-info p  { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.schedule-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.schedule-table th {
  background: var(--bg-raised);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-solid);
}
.schedule-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.93rem;
  vertical-align: top;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--bg-raised); }
.schedule-table .day-header td {
  background: var(--bg-raised);
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
  border-top: 2px solid var(--border);
}
.schedule-table .time { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; }
.schedule-table .public-tag { color: #6db46d; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; display: block; margin-top: 0.2rem; }
.schedule-table .venue-name { color: var(--text-muted); font-size: 0.82rem; font-style: italic; }

/* ============================================================
   REGISTRATION PAGE
   ============================================================ */
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-solid);
  border-top: 4px solid var(--brand);
  padding: 2.5rem;
  text-align: center;
}
.price-card .price-amount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin: 1rem 0 0.25rem;
}
.price-card .price-amount sup { font-size: 1.5rem; vertical-align: super; }
.price-card .price-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.price-card .inclusions { text-align: left; border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 1.5rem; }
.price-card .inclusions h4 { margin-bottom: 1rem; }
.inclusions-list { display: flex; flex-direction: column; gap: 0.6rem; }
.inclusions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text);
}
.inclusions-list li::before {
  content: '✦';
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.1em;
  font-size: 0.7rem;
}

/* ============================================================
   VENUE PAGE
   ============================================================ */
.venue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.venue-card .venue-card-body { padding: 2rem; }
.venue-card h3 { color: var(--brand); font-size: 1.3rem; margin-bottom: 0.25rem; }
.venue-card .venue-type { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.venue-card address { font-style: normal; color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; line-height: 1.6; }
.venue-card address strong { color: var(--text); }

.map-placeholder {
  background: var(--bg-raised);
  border: 1px solid var(--border-solid);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.map-placeholder .map-icon { font-size: 2rem; }

.map-embed {
  height: 320px;
  border: 1px solid var(--border-solid);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   TIMELINE (History)
   ============================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border-solid);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand);
  background: var(--bg);
  transform: translateX(-50%) rotate(45deg);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .ti-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.4rem;
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.timeline-item p  { color: var(--text-muted); font-size: 0.9rem; }

/* ── History archive (per-year feedback + media, collapsible) ──── */
.history-year {
  position: relative;
  padding: 0 0 1.5rem 2rem;
}
.history-year:last-of-type { padding-bottom: 0; }
.history-year::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand);
  background: var(--bg);
  transform: translateX(-50%) rotate(45deg);
}
.history-year summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.history-year summary::-webkit-details-marker { display: none; }
.history-year summary::before {
  content: '+';
  color: var(--brand);
  font-size: 1rem;
  font-weight: 700;
  width: 0.85rem;
  flex-shrink: 0;
}
.history-year summary .hy-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--border-solid);
  flex-shrink: 0;
}
.history-year[open] summary::before { content: '\2013'; }
.history-year summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.history-year summary .hy-note {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
}

.history-year-body { padding: 1.1rem 0 0.25rem; }

.history-feedback {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .history-feedback { grid-template-columns: 1fr 1fr; } }
.history-quote {
  border-left: 2px solid var(--brand-dim);
  padding: 0.7rem 1rem;
  background: var(--bg-raised);
}
.history-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}
.history-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
}

.history-media + .history-media { margin-top: 1.1rem; }
.history-media h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}
.history-contributor { margin-bottom: 0.6rem; }
.history-contributor:last-child { margin-bottom: 0; }
.history-contributor .hc-name {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.history-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.history-link-list a {
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--border-solid);
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}
.history-link-list a:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   ACCOMMODATION / GETTING THERE / THE TOWN
   ============================================================ */
.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.info-card .info-icon { font-size: 1.75rem; flex-shrink: 0; margin-top: 0.1rem; }
.info-card h3 { color: var(--brand); margin-bottom: 0.5rem; font-size: 1rem; }
.info-card p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.town-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.town-card:hover { border-color: var(--border-solid); transform: translateY(-2px); }
.town-card .town-photo { aspect-ratio: 3 / 2; height: auto; }
.town-card .town-body  { padding: 1.25rem 1.5rem; }
.town-card h3 { color: var(--brand); font-size: 1rem; margin-bottom: 0.4rem; }
.town-card p  { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.town-card .town-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-credit { color: var(--text-muted); font-size: 0.68rem; margin-top: 0.6rem; opacity: 0.7; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-solid);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition);
}
.social-link:hover { border-color: var(--brand); color: var(--brand); }
.social-link .social-icon { font-size: 1.2rem; }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  background:
    linear-gradient(180deg, rgba(13,5,5,0.98) 0%, rgba(13,13,13,1) 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(201,168,76,0.02) 60px,
      rgba(201,168,76,0.02) 61px
    );
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-dim), transparent);
}
.page-header .label { margin-bottom: 1rem; }
.page-header h1 { font-style: italic; font-weight: 400; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-bottom: 0.25rem;
}
.footer-brand .footer-tagline {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; }

.footer-col h4 { margin-bottom: 1rem; font-size: 0.75rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col ul a:hover { color: var(--brand); }

.footer-social-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border-solid);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color var(--transition), color var(--transition);
}
.footer-social-links a:hover { border-color: var(--brand); color: var(--brand); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold   { color: var(--brand); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Horizontal rule ─────────────────────────────────────────── */
.hr-brand {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-dim), transparent);
  margin: 0;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brand-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ── Focus ───────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ============================================================
   LIGHT MODE OVERRIDES
   ============================================================ */

/* Navbar */
[data-theme="light"] .navbar {
  background: rgba(242, 235, 224, 0.98);
  border-bottom-color: rgba(162, 87, 75, 0.15);
}

[data-theme="light"] .nav-links a  { color: var(--text-muted); }

/* Mobile nav overlay */
[data-theme="light"] .nav-links {
  background: var(--bg-surface);
}

/* Hero */
[data-theme="light"] .hero {
  background: linear-gradient(180deg, #EDE4D8 0%, #F2EBE0 50%, #EDE4D8 100%);
}
[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(196,30,58,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 30% 20% at 50% 0%, rgba(196,30,58,0.03) 0%, transparent 60%);
}
[data-theme="light"] .hero-logo-display img {
  filter: brightness(0);
  opacity: 0.04;
}
[data-theme="light"] .hero h1 { color: #1A1210; }

/* Event strip */
[data-theme="light"] .event-strip {
  background: var(--bg-surface);
  border-color: var(--border);
}

/* Img placeholders */
[data-theme="light"] .img-placeholder {
  background: var(--bg-raised);
  color: var(--text-muted);
}

/* Footer */
[data-theme="light"] .footer {
  background: #2A1F1A;
}

/* Banner */
[data-theme="light"] .banner {
  background: rgba(196,30,58,0.07);
  border-color: rgba(196,30,58,0.25);
}

/* Quote block */
[data-theme="light"] .quote-block {
  border-color: rgba(196,30,58,0.25);
}
[data-theme="light"] .page-header {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 100%);
}

/* ── Theme toggle button ─────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-solid);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  margin-left: 0.75rem;
}
.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(196,30,58,0.06);
}

@media (max-width: 1060px) {
  .theme-toggle { margin-left: auto; }
}
