/* Friendly Fire — dark space / ember aesthetic */
:root {
  --bg: #07060b;
  --bg-elev: #100e18;
  --bg-card: #161322;
  --bg-card-hover: #1e1a2e;
  --border: rgba(255, 140, 60, 0.18);
  --border-strong: rgba(255, 140, 60, 0.4);
  --text: #f4ece4;
  --text-muted: #b9a99a;
  --ember: #ff6b2c;
  --ember-hot: #ffb347;
  --flame: #ff3d00;
  --purple: #7b4dff;
  --purple-deep: #3a1d6e;
  --glow: 0 0 40px rgba(255, 90, 30, 0.25);
  --radius: 14px;
  --nav-h: 68px;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(123, 77, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 61, 0, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(255, 107, 44, 0.06), transparent 50%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-hot); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ember); color: #000;
  padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 6, 11, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.logo span.fire {
  background: linear-gradient(135deg, var(--ember-hot), var(--flame));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 90, 30, 0.5);
  border: 1px solid var(--border-strong);
}

.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255, 107, 44, 0.12);
}
.nav-links a.store-link {
  background: linear-gradient(135deg, var(--flame), var(--purple));
  color: #fff;
  margin-left: 0.35rem;
}
.nav-links a.store-link:hover { filter: brightness(1.1); color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.4rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 8, 16, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 1rem; }
  .nav-links a.store-link { margin: 0.5rem 0 0; text-align: center; }
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, var(--ember-hot), var(--text) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.55) saturate(1.15);
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(7,6,11,0.55) 45%, rgba(7,6,11,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: 3rem 0 3.5rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-hot);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.1);
}
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero h1 .accent {
  background: linear-gradient(135deg, #fff, var(--ember-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--flame), var(--ember-hot));
  color: #1a0a00;
  box-shadow: var(--glow);
}
.btn-primary:hover { color: #1a0a00; filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.socials a {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}
.socials a:hover {
  color: var(--ember-hot);
  border-color: var(--border-strong);
  background: rgba(255, 107, 44, 0.1);
}

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #0a0810; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card-body p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.card-num {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--ember); text-transform: uppercase; margin-bottom: 0.25rem;
}

/* Product cards wider */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--border-strong); }
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 2px;
  background: #0a0810;
  min-height: 140px;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.product-gallery img:hover { opacity: 0.85; }
.product-gallery img.featured {
  grid-column: 1 / -1;
  aspect-ratio: 16/10;
  max-height: 280px;
}
.product-card .card-body { flex: 1; }

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.85rem; }
}
.gallery a, .gallery button {
  display: block; padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.gallery a:hover, .gallery button:hover {
  border-color: var(--border-strong);
  transform: scale(1.02);
  box-shadow: var(--glow);
}
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}

/* YouTube embeds */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-section { margin-bottom: 3rem; }

/* About story */
.story {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .story { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.story-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 1.15rem;
}
.story-text p:first-of-type { color: var(--text); font-size: 1.1rem; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(123, 77, 255, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  background: rgba(123, 77, 255, 0.1);
}
.story-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.story-aside img {
  border-radius: 12px;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.story-aside img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/10;
}

/* Feature strip on home */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.feature {
  padding: 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--ember-hot); }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* Contact CTA */
.cta-band {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,61,0,0.15), rgba(123,77,255,0.15));
  border: 1px solid var(--border-strong);
  text-align: center;
}
.cta-band h2 { margin: 0 0 0.5rem; }
.cta-band p { margin: 0 0 1rem; color: var(--text-muted); }
.cta-band a.email {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ember-hot);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  background: rgba(0,0,0,0.35);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.35rem; }
.footer-meta { color: var(--text-muted); font-size: 0.9rem; }
.footer-meta a { color: var(--ember-hot); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: var(--ember-hot); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,107,44,0.3); }

.page-hero {
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  margin: 0 0 0.4rem;
  font-weight: 900;
}
.page-hero p { margin: 0; color: var(--text-muted); max-width: 40rem; }

.coming-soon {
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.8;
}


/* Pax Dei extras */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.feature-card strong { display: block; margin-bottom: 0.35rem; color: var(--ember-hot); }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.info-note {
  background: rgba(123, 77, 255, 0.12);
  border: 1px solid rgba(123, 77, 255, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
}
.clan-tag {
  border-left: 3px solid var(--ember);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
}
.flame-list {
  color: var(--text-muted);
  line-height: 1.8;
}
.cta-box {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(58, 29, 110, 0.45), rgba(16, 14, 24, 0.9));
  border: 1px solid rgba(123, 77, 255, 0.35);
}
.cta-box h3 { margin-top: 0; }
.cta-box kbd {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
}
.cta-box .closing { margin-bottom: 0; color: var(--ember-hot); }
.hero-compact .hero-content { padding-top: 4rem; padding-bottom: 3rem; }

/* Lightbox navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,107,44,0.35); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.1rem; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.25rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}

/* Footer banner image */
.footer-banner {
  width: 100%;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}
.footer-banner img {
  display: block;
  width: 100%;
  height: clamp(160px, 26vw, 320px);
  object-fit: cover;
  object-position: center 35%;
}

/* Available Glass page */
.avail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.avail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
.avail-card:hover { border-color: var(--border-strong); }
@media (min-width: 860px) {
  .avail-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.avail-gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  align-content: start;
}
.avail-gallery a { display: block; border-radius: 8px; overflow: hidden; }
.avail-gallery img { aspect-ratio: 4 / 5; object-fit: cover; background: #0a0810; }
.avail-gallery img.featured { aspect-ratio: 4 / 5; max-height: none; }
.avail-gallery a:first-child { grid-column: 1 / -1; }
.avail-body { padding: 1.5rem 1.6rem 1.8rem; }
.avail-body p { font-size: 1rem; color: var(--text-muted); }
.avail-status {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #0b0a10; background: var(--ember-hot);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.avail-title { margin: 0.8rem 0 0.4rem; font-size: 1.6rem; line-height: 1.2; }
.avail-price { font-size: 1.8rem; font-weight: 800; color: var(--ember); margin-bottom: 0.9rem; }
.avail-price span { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.avail-buy { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.avail-buy h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.avail-buy a:not(.btn) { color: var(--ember-hot); }
.avail-buy .hero-actions { margin-top: 1rem; }
.page-hero h1 .accent { color: var(--ember); }

/* About: Dojo bus photos */
.dojo-gallery { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1rem 0 1.5rem; }
.dojo-gallery img { aspect-ratio: 4 / 3; }

/* Wedding page */
.gift-wrap { max-width: 44rem; margin: 0 auto; text-align: center; }
.gift-note { font-size: 1.1rem; line-height: 1.7; color: var(--text); margin: 0 auto 1.5rem; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.gift-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.25rem; text-align: center; }
.gift-card h3 { margin: 0 0 0.4rem; color: var(--ember-hot); }
.gift-card .handle { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; word-break: break-all; }
.gift-heart { font-size: 2rem; margin: 1.25rem 0 0.5rem; }
.gift-signoff { margin-top: 2rem; margin-bottom: 0.5rem; color: var(--text-muted); font-style: italic; }

.wedding-page { padding-top: 2.5rem; }
.wedding-page h1 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0.65rem 0 0.4rem;
}
.wedding-page h1 .accent {
  background: linear-gradient(135deg, #fff, var(--ember-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wedding-hash {
  color: var(--ember-hot);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 1.25rem;
}
.wedding-hash-foot { margin: 0 0 0.25rem; font-size: 0.95rem; }

.couple-photo {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
}
.couple-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--glow);
  background: var(--bg-elev);
}

.wedding-when {
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 0 auto 1.5rem;
  color: var(--text);
}

.weekend-sched {
  list-style: none;
  padding: 0;
  margin: 0 auto 0.5rem;
  max-width: 32rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.weekend-sched li {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
}
.weekend-sched li:first-child { border-top: none; }
.weekend-sched .day {
  font-weight: 700;
  color: var(--ember-hot);
}
.weekend-sched .plan { color: var(--text); }
.weekend-sched .plan-detail {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}
.rsvp-form .check-firewalk {
  margin: 0.25rem 0 1.4rem;
}

.costs-note {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 1.75rem;
  padding: 1.1rem 1.2rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 520px) {
  .weekend-sched li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
  }
  .gift-note, .wedding-when, .costs-note { font-size: 1.05rem; }
  .wedding-page { padding-top: 1.75rem; padding-bottom: 2.5rem; }
}

/* More-details note */
.more-soon {
  margin: 0.9rem auto 0;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-muted);
}

/* RSVP form */
.rsvp { margin: 2.25rem 0 1rem; text-align: left; }
.rsvp h2 { margin: 0 0 0.5rem; text-align: center; font-size: clamp(1.6rem, 5vw, 2rem); color: var(--ember-hot); }
.rsvp-lead { text-align: center; color: var(--text-muted); margin: 0 auto 1.25rem; max-width: 34rem; }
.rsvp-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.rsvp-form .field { margin: 0 0 1.15rem; border: 0; padding: 0; min-width: 0; }
.rsvp-form label, .rsvp-form legend, .rsvp-form .sub-legend { font-weight: 700; display: block; margin: 0 0 0.4rem; padding: 0; color: var(--text); }
.rsvp-form .req { color: var(--ember-hot); font-weight: 600; font-size: 0.85em; }
.rsvp-form .opt { color: var(--text-muted); font-weight: 500; font-size: 0.85em; }
.rsvp-form input[type="text"], .rsvp-form input[type="email"], .rsvp-form input[type="tel"],
.rsvp-form input[type="number"], .rsvp-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
.rsvp-form textarea { resize: vertical; min-height: 5rem; }
.rsvp-form input:focus-visible, .rsvp-form textarea:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-narrow input[type="number"] { width: 7rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block;
  min-width: 5rem;
  text-align: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  font-weight: 600;
}
.choice input:checked + span { background: linear-gradient(135deg, var(--flame), var(--ember-hot)); color: #1a0a00; border-color: transparent; }
.choice input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-weight: 500 !important; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--ember); flex: none; }
.check-opt { margin: 0 0 1.25rem; }
.check-soft { margin-top: 0.75rem; color: var(--text-muted); }
.camp-type { margin-top: 0.9rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp-submit { width: 100%; font-size: 1.05rem; padding: 0.9rem 1.35rem; margin-top: 0.4rem; }
.rsvp-submit:disabled { opacity: 0.6; cursor: wait; }
.form-status { min-height: 1.4rem; margin: 0.75rem 0 0; text-align: center; color: var(--text-muted); }
.form-status.is-error { color: var(--ember-hot); }
.rsvp-thanks { text-align: center; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.75rem 1.25rem; }
.rsvp-thanks h3 { margin: 0 0 0.4rem; color: var(--ember-hot); }
.rsvp-thanks p { margin: 0; }
[hidden] { display: none !important; }

@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .checks { grid-template-columns: 1fr; }
  .rsvp-form { padding: 1.25rem 1rem; }
  .choice span { min-width: 4.2rem; padding: 0.7rem 1rem; }
}

/* Checkbox rows inside the RSVP form (beats the generic label rule) */
.rsvp-form .check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-weight: 500; }
.rsvp-form .check-opt { margin: 0 0 1.4rem; }
.rsvp-form .check-soft { margin-top: 0.75rem; }
.rsvp-form .choice { display: inline-block; margin: 0; font-weight: 600; }

/* Where your gifts go */
.gifts-go {
  margin: 0 0 1.5rem;
  padding: 1.4rem 1.4rem 1.2rem;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.gifts-go h2 { margin: 0 0 0.6rem; font-size: 1.35rem; color: var(--ember-hot); text-align: center; }
.gifts-go p { margin: 0 0 0.8rem; line-height: 1.7; }
.gifts-go p:last-child { margin-bottom: 0; }

.rsvp-submit { font-family: inherit; }

.rsvp-mail-note, .rsvp-mail-backup { margin: 0.75rem 0 0; line-height: 1.6; }
.rsvp-mail-backup a { font-weight: 700; word-break: break-all; }
.camp-type .choices { justify-content: flex-start; }
.camp-type .choice span { min-width: 0; }

/* Fiery page atmosphere — lots more fire */
body {
  background-color: #060204;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -5%, rgba(255, 80, 10, 0.55), transparent 58%),
    radial-gradient(ellipse 70% 55% at 0% 85%, rgba(255, 40, 0, 0.38), transparent 58%),
    radial-gradient(ellipse 65% 50% at 100% 20%, rgba(255, 140, 30, 0.32), transparent 55%),
    radial-gradient(ellipse 90% 55% at 50% 115%, rgba(255, 30, 0, 0.55), transparent 58%);
  background-attachment: fixed;
}

.ember-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 18% 80%, rgba(255, 70, 0, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 30%, rgba(255, 170, 50, 0.22), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 50, 0, 0.35), transparent 70%);
  animation: heat-pulse 7s ease-in-out infinite alternate;
}
@keyframes heat-pulse {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

.ember-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ember-field canvas,
.flame-bed canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Flames along the bottom edge (canvas in fire.js; ::before is the static glow) */
.flame-bed {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 280px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.flame-bed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(255, 25, 0, 0.55) 0%,
    rgba(255, 90, 0, 0.28) 30%,
    rgba(255, 140, 30, 0.1) 58%,
    transparent 100%);
}

.site-header, .site-footer, main { position: relative; z-index: 1; }

/* Dark readable panel, with ember edge */
.wedding-page .gift-wrap {
  background: linear-gradient(180deg, rgba(16, 6, 4, 0.88), rgba(6, 3, 6, 0.92));
  border: 1px solid rgba(255, 130, 40, 0.45);
  border-radius: 18px;
  padding: 2rem 1.4rem 2.25rem;
  box-shadow:
    0 0 80px rgba(255, 60, 0, 0.28),
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 200, 100, 0.28),
    inset 0 0 40px rgba(255, 60, 0, 0.06);
}

/* Fiery title */
.wedding-page h1 {
  background: linear-gradient(180deg, #fff7d6 0%, #ffd36a 32%, #ff7a28 70%, #ff3d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 14px rgba(255, 120, 20, 0.8))
    drop-shadow(0 0 36px rgba(255, 50, 0, 0.55));
}
.wedding-page h1 .accent {
  background: linear-gradient(180deg, #fff, #ffe08a 40%, #ff5a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rsvp h2,
.gifts-go h2,
.cta-band h2 {
  background: linear-gradient(90deg, #ffb347, #fff1c2 45%, #ff6b1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 90, 0, 0.55));
}

/* Ember borders on cards */
.gift-card,
.rsvp-form,
.gifts-go,
.cta-band,
.weekend-sched,
.costs-note,
.rsvp-thanks {
  border-color: rgba(255, 130, 40, 0.55) !important;
  box-shadow:
    0 0 22px rgba(255, 70, 0, 0.28),
    inset 0 0 24px rgba(255, 80, 0, 0.07);
}

/* Flame dividers */
.flame-div {
  height: 28px;
  margin: 1.6rem auto;
  width: min(18rem, 72%);
  background:
    radial-gradient(ellipse 14px 26px at 50% 100%, #ffd27a 0%, #ff5a00 55%, transparent 72%),
    radial-gradient(ellipse 11px 20px at 28% 100%, #ff9a2a 0%, #ff3d00 60%, transparent 72%),
    radial-gradient(ellipse 11px 20px at 72% 100%, #ff9a2a 0%, #ff3d00 60%, transparent 72%),
    radial-gradient(ellipse 8px 14px at 14% 100%, #ff7a1a 0%, transparent 70%),
    radial-gradient(ellipse 8px 14px at 86% 100%, #ff7a1a 0%, transparent 70%);
  filter: drop-shadow(0 0 8px rgba(255, 80, 0, 0.7));
  opacity: 0.95;
}

/* Photo halo */
.couple-photo-portrait {
  max-width: 20rem;
  margin: 0 auto 1.5rem;
}
.couple-photo-portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-color: rgba(255, 180, 70, 0.7);
  box-shadow:
    0 0 28px rgba(255, 100, 0, 0.55),
    0 0 80px rgba(255, 40, 0, 0.35);
}

/* Fire buttons + flicker */
.wedding-page .btn-primary {
  background: linear-gradient(135deg, #ff3d00, #ffb347);
  color: #1a0a00;
  box-shadow: 0 0 18px rgba(255, 80, 0, 0.65), 0 0 40px rgba(255, 40, 0, 0.3);
  animation: btn-glow 2.2s ease-in-out infinite;
}
.wedding-page .btn-primary:hover {
  animation: btn-flicker 0.28s ease-in-out infinite;
  filter: brightness(1.12);
  color: #1a0a00;
}
.wedding-page .btn-ghost {
  border-color: rgba(255, 140, 50, 0.55);
  box-shadow: 0 0 14px rgba(255, 80, 0, 0.2);
}
.wedding-page .btn-ghost:hover {
  background: rgba(255, 90, 20, 0.22);
  box-shadow: 0 0 22px rgba(255, 80, 0, 0.4);
}
@keyframes btn-glow {
  from { box-shadow: 0 0 14px rgba(255, 80, 0, 0.45), 0 0 28px rgba(255, 40, 0, 0.2); }
  to   { box-shadow: 0 0 26px rgba(255, 120, 20, 0.85), 0 0 52px rgba(255, 50, 0, 0.4); }
}
@keyframes btn-flicker {
  0% { filter: brightness(1.05); }
  50% { filter: brightness(1.2); }
  100% { filter: brightness(1.08); }
}

/* RSVP fire touches */
.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
  border-color: rgba(255, 130, 40, 0.45);
  background: rgba(8, 4, 6, 0.85);
}
.rsvp-form input:focus,
.rsvp-form textarea:focus,
.rsvp-form input:focus-visible,
.rsvp-form textarea:focus-visible {
  outline: none;
  border-color: #ff8a2a;
  box-shadow: 0 0 0 3px rgba(255, 110, 0, 0.4), 0 0 22px rgba(255, 80, 0, 0.45);
}
.rsvp-submit {
  animation: btn-glow 2.2s ease-in-out infinite;
}

@media (max-width: 520px) {
  body { background-attachment: scroll; }
  .couple-photo-portrait { max-width: 16.5rem; }
  .flame-bed { height: 200px; }
  .wedding-page .gift-wrap { padding: 1.5rem 1rem 1.85rem; }
  .ember-sky { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ember-field { display: none; }
  .ember-sky,
  .wedding-page .btn-primary,
  .rsvp-submit { animation: none !important; }
  * { animation: none !important; transition: none !important; }
  .flame-bed canvas { display: none; }
  .flame-bed::before { opacity: 0.85; }
}
