/* ==========================================================================
   Side Door — design tokens
   Palette: dim room + spotlight gold + velvet wine
   Display: Fraunces / Body: IBM Plex Sans / Utility: IBM Plex Mono
   ========================================================================== */

:root{
  --bg:          #14110F;
  --bg-raised:   #1E1912;
  --bg-raised-2: #241D16;
  --bg-wine:     #241016;

  --ink:         #F3EDE0;
  --ink-muted:   #B3A594;
  --ink-faint:   #7C7062;

  --gold:        #E8A33D;
  --gold-dim:    #C9862A;
  --gold-tint:   rgba(232,163,61,0.14);

  --wine:        #A14357;
  --wine-dim:    #7A2E3D;
  --wine-tint:   rgba(161,67,87,0.16);

  --line:        rgba(243,237,224,0.12);
  --line-strong: rgba(243,237,224,0.22);

  --notch-bg:    #14110F; /* overridden per-section to match local background */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1140px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-lift: 0 20px 50px -20px rgba(0,0,0,0.6);
}

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

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body{ margin: 0; }
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
input, textarea, select{ font: inherit; color: inherit; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #14110F; padding: 10px 16px; z-index: 999;
  border-radius: 0 0 8px 0; font-family: var(--font-mono); font-size: 13px;
}
.skip-link:focus{ left: 0; }

:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Type scale
   ========================================================================== */

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 18px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.wine{ color: var(--wine); }
.eyebrow.wine::before{ background: var(--wine); }

h1, .h1{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
}
.lede{
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 46ch;
}
.italic-accent{ font-style: italic; font-weight: 500; color: var(--gold); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
}
.btn-solid{
  background: var(--gold);
  color: #1A1410;
}
.btn-solid:hover{ background: var(--ink); transform: translateY(-1px); }
.btn-ghost{
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }
.btn-wine{
  background: var(--wine);
  color: var(--ink);
}
.btn-wine:hover{ background: var(--wine-dim); transform: translateY(-1px); }
.btn-lg{ padding: 16px 30px; font-size: 14px; }
.btn-block{ width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,17,15,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand{ display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark{ color: var(--gold); display: inline-flex; }
.brand-word{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav a{
  font-size: 14.5px;
  color: var(--ink-muted);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a[aria-current="page"]{ color: var(--gold); }
.header-actions{ display: flex; align-items: center; gap: 12px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.nav-toggle span{
  display: block; width: 18px; height: 1.5px; margin: 0 auto;
  background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px){
  .main-nav{
    position: fixed; inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav a{
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
    color: var(--ink);
  }
  .nav-toggle{ display: flex; }
  .header-actions .btn-ghost{ display: none; }
}

/* ==========================================================================
   Sections / layout rhythm
   ========================================================================== */

.section{ padding: 96px 0; }
.section-sm{ padding: 64px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head > .eyebrow{ margin-bottom: 16px; }
.section-head > h2{ margin-top: 10px; }
.section-head > .lede{ margin-top: 16px; }
.section-head.center > .lede{ margin-left: auto; margin-right: auto; }

.bg-raised{ background: var(--bg-raised); --notch-bg: var(--bg-raised); }
.bg-raised-2{ background: var(--bg-raised-2); --notch-bg: var(--bg-raised-2); }
.bg-wine{ background: var(--bg-wine); --notch-bg: var(--bg-wine); }
.bordered-y{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  position: relative;
  overflow: hidden;
  padding: 84px 0 100px;
}
.hero-glow{
  position: absolute;
  top: -20%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--gold-tint) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow{ margin-bottom: 22px; }
.hero-copy h1{ margin-bottom: 22px; }
.hero-copy .lede{ margin-bottom: 34px; max-width: 42ch; }
.hero-actions{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}

.hero-art{ position: relative; }
.door-illustration{ width: 100%; height: auto; }

.hero-stats{
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stat b{
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
  font-weight: 600;
}
.hero-stat span{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 320px; margin: 0 auto; }
  .hero-stats{ flex-wrap: wrap; row-gap: 20px; }
}

/* ==========================================================================
   Two-lane split (Artists / Hosts duality)
   ========================================================================== */

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.split-panel{
  background: var(--bg-raised);
  padding: 44px 40px;
  --notch-bg: var(--bg-raised);
}
.split-panel.wine{ background: var(--bg-wine); --notch-bg: var(--bg-wine); }
.split-panel .eyebrow{ margin-bottom: 18px; }
.split-panel h3{ font-size: 1.6rem; margin-bottom: 14px; }
.split-panel p{ color: var(--ink-muted); margin-bottom: 26px; }
.split-list{ display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.split-list li{
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink);
}
.split-list li::before{
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  margin-top: 8px; flex-shrink: 0;
}
.split-panel.wine .split-list li::before{ background: var(--wine); }

@media (max-width: 760px){
  .split{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ticket-stub card system (signature element)
   ========================================================================== */

.ticket{
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 30px 28px;
}
.ticket::before, .ticket::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 20px; height: 20px;
  background: var(--notch-bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket::before{ left: -11px; }
.ticket::after{ right: -11px; }

.ticket-code{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  display: block;
}
.ticket h3{ margin-bottom: 10px; font-size: 1.2rem; }
.ticket p{ color: var(--ink-muted); font-size: 14.5px; }

.ticket-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}
@media (max-width: 860px){ .ticket-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .ticket-grid{ grid-template-columns: 1fr; } }

.icon-badge{
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gold-tint);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg{ width: 20px; height: 20px; }
.icon-badge.wine{ background: var(--wine-tint); color: var(--wine); }

/* ==========================================================================
   Process steps (how-it-works — legitimate sequence)
   ========================================================================== */

.process{
  display: flex;
  flex-direction: column;
}
.process-step{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.process:last-child .process-step:last-child{ border-bottom: 1px solid var(--line); }
.process-num{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.process-body h3{ margin-bottom: 10px; }
.process-body p{ color: var(--ink-muted); max-width: 56ch; }
.process-body .tag{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
  background: var(--wine-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
@media (max-width: 620px){
  .process-step{ grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 900px){ .pricing-grid{ grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.price-card{
  display: flex;
  flex-direction: column;
}
.price-card.featured{
  border-color: var(--gold);
  box-shadow: var(--shadow-lift);
}
.price-plan{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.price-card.featured .price-plan{ color: var(--gold); }
.price-amount{
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  margin: 14px 0 4px;
}
.price-amount small{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 400;
}
.price-desc{ color: var(--ink-muted); font-size: 14px; margin-bottom: 24px; }
.price-features{ display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex-grow: 1; }
.price-features li{ font-size: 14px; display: flex; gap: 9px; }
.price-features li::before{ content: "—"; color: var(--gold); flex-shrink: 0; }

/* ==========================================================================
   FAQ (native details/summary — accessible, no JS required)
   ========================================================================== */

.faq-list{ display: flex; flex-direction: column; gap: 14px; }
.faq-item{
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item::before, .faq-item::after{
  content: "";
  position: absolute; top: 50%;
  width: 20px; height: 20px;
  background: var(--notch-bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
}
.faq-item::before{ left: -11px; }
.faq-item::after{ right: -11px; }
.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-plus{
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-plus::before, .faq-plus::after{
  content: "";
  position: absolute;
  background: var(--ink-muted);
}
.faq-plus::before{ width: 10px; height: 1.5px; }
.faq-plus::after{ width: 1.5px; height: 10px; transition: transform 0.2s ease; }
.faq-item[open] .faq-plus::after{ transform: rotate(90deg); opacity: 0; }
.faq-answer{ padding: 0 28px 24px; color: var(--ink-muted); font-size: 14.5px; max-width: 64ch; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-raised-2);
  padding: 64px 48px;
  text-align: center;
  border: 1px solid var(--line);
}
.cta-band::before{
  content: "";
  position: absolute; left: 50%; top: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-tint), transparent 70%);
  transform: translate(-50%, -55%);
  pointer-events: none;
}
.cta-band h2{ position: relative; margin-bottom: 16px; }
.cta-band p{ position: relative; color: var(--ink-muted); max-width: 50ch; margin: 0 auto 32px; }
.cta-actions{ position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Quote / scene blocks (no fabricated testimonials — atmospheric copy)
   ========================================================================== */

.scene{
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  max-width: 60ch;
}
.scene p{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.45;
}
.scene cite{
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   Image placeholders (swap-ready)
   ========================================================================== */

.img-placeholder{
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(243,237,224,0.04) 0 2px, transparent 2px 10px),
    var(--bg-raised-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 20px;
  min-height: 220px;
}
.img-placeholder span{ max-width: 220px; }

/* ==========================================================================
   Simple content pages (about / terms / privacy)
   ========================================================================== */

.prose{ max-width: 68ch; }
.prose p{ color: var(--ink-muted); margin-bottom: 18px; }
.prose h2{ margin-top: 44px; margin-bottom: 16px; font-size: 1.6rem; }
.prose h2:first-child{ margin-top: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card{
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row{ margin-bottom: 20px; }
.form-row label{
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea, .form-row select{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 14.5px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{
  border-color: var(--gold);
  outline: none;
}
.form-row textarea{ min-height: 120px; resize: vertical; }
.form-grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px){ .form-grid-2{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  border-top: 1px solid var(--line);
  padding-top: 64px;
  background: var(--bg-raised);
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-tag{
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 34ch;
  margin-top: 16px;
}
.footer-cols{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-heading{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-col{ display: flex; flex-direction: column; gap: 11px; }
.footer-col a{ font-size: 14px; color: var(--ink-muted); }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
@media (max-width: 760px){
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-cols{ grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 500px){
  .footer-cols{ grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Page hero (interior pages — lighter than home hero)
   ========================================================================== */

.page-hero{ padding: 64px 0 20px; }
.page-hero .eyebrow{ margin-bottom: 20px; }
.page-hero h1{ font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.page-hero .lede{ max-width: 56ch; }

/* ==========================================================================
   Misc utilities
   ========================================================================== */

.mt-0{ margin-top: 0; }
.center-text{ text-align: center; }
.stack{ display: flex; flex-direction: column; gap: 20px; }
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px){ .grid-2{ grid-template-columns: 1fr; } }
