/* Interlude Live — calm, careful, cultural. Coat-check ticket as the signature object. */

:root {
  --bg: #F4F2ED;
  --surface: #FBFAF7;
  --tint: #E8EDE4;
  --sage: #D6E0D0;
  --green: #1F4D3A;
  --green-deep: #163A2B;
  --brass: #B8913A;
  --brass-hover: #A8822F;
  --brass-light: #E0C47F;
  --ink: #161A17;
  --muted: #4F5953;
  --line: rgba(22, 26, 23, .12);
  --line-strong: rgba(22, 26, 23, .24);

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: var(--green); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.section--green :focus-visible { outline-color: var(--brass-light); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--green); color: var(--bg);
  padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  line-height: .98; letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05; letter-spacing: -.03em;
  margin-bottom: 1.1rem; max-width: 17ch;
}
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; margin-bottom: .45rem; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--green); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 52ch; }

.label {
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: 1.3rem;
  font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--green);
}
.label::before { content: ""; width: 1.4rem; height: 1px; background: currentColor; opacity: .6; }
.label span { color: var(--muted); }
.label--light { color: var(--sage); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.5rem;
  border: 1px solid var(--green); border-radius: 999px;
  background: var(--green); color: var(--bg);
  font: 500 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--sm { padding: .6rem 1.05rem; font-size: .88rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 242, 237, .86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--green); text-decoration: none; }
.logo__mark { width: 30px; height: 30px; fill: currentColor; }
.logo__word { font: 600 1.05rem/1 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .93rem; opacity: .8; transition: opacity .2s; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__toggle {
  display: none;
  padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink); font: 500 .9rem var(--sans); cursor: pointer;
}

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero__inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__visual { position: relative; padding-bottom: 3rem; }

/* Photo placeholders */
.ph {
  display: flex; align-items: flex-end; justify-content: flex-start;
  aspect-ratio: 4 / 3; padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sage), #C9D6C2);
}
.ph--hero { aspect-ratio: 4 / 5; margin-left: auto; width: 88%; }
.ph--wide { aspect-ratio: 5 / 4; }
.ph--sm { aspect-ratio: 1 / 1; border-radius: 14px; }
.ph__label { font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); opacity: .75; }

/* Claim ticket: notches and punch hole are real cut-outs (mask). The shadow is a separate
   layer behind it (no filter, no rotation), so it stays crisp when the page repaints on hover. */
.ticket-wrap {
  position: absolute; left: 0; bottom: 0;
  width: min(290px, 62%);
  isolation: isolate;
}
.ticket-wrap::before {
  content: ""; position: absolute; z-index: -1;
  inset: 18px 10px 4px;
  border-radius: 16px;
  box-shadow: 0 26px 44px -16px rgba(22, 58, 43, .38);
}
.ticket {
  --stub: 54px;
  padding: 1.6rem 1.4rem 0;
  border-radius: 16px;
  background: var(--surface); color: var(--ink);
  -webkit-mask:
    radial-gradient(circle 11px at 0 calc(100% - var(--stub)), transparent 95%, #000),
    radial-gradient(circle 11px at 100% calc(100% - var(--stub)), transparent 95%, #000),
    radial-gradient(circle 7px at calc(100% - 25px) 21px, transparent 92%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 11px at 0 calc(100% - var(--stub)), transparent 95%, #000),
    radial-gradient(circle 11px at 100% calc(100% - var(--stub)), transparent 95%, #000),
    radial-gradient(circle 7px at calc(100% - 25px) 21px, transparent 92%, #000);
  mask-composite: intersect;
}
.ticket__top { display: flex; align-items: center; gap: .5rem; font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.ticket__logo { width: 20px; height: 20px; fill: currentColor; }
.ticket__no { margin: 1.1rem 0 1rem; font: 500 2.4rem/1 var(--mono); letter-spacing: -.03em; color: var(--green); }
.ticket__rows { margin: 0 0 1.3rem; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .82rem; }
.ticket__rows dt { font: 400 .72rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ticket__rows dd { margin: 0; }
.ticket__stub {
  display: flex; align-items: center;
  height: var(--stub); margin: 0 -1.4rem; padding: 0 1.4rem;
  border-top: 1.5px dashed var(--line-strong);
  font: italic 400 1.1rem/1.2 var(--serif); color: var(--green);
}

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--tint); }
.section--green { background: var(--green); color: var(--bg); }
.section--green h2 { color: var(--bg); }
.section--green .lead { color: rgba(244, 242, 237, .84); }
.section:not(.section--tint):not(.section--green) + .section:not(.section--tint):not(.section--green) { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

/* Idea */
.section--idea { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.statement {
  max-width: 24ch; margin-bottom: clamp(3rem, 6vw, 5rem);
  font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 500;
}
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.values li { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.values .label::before { display: none; }
.values p:not(.label) { color: var(--muted); margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split--top { align-items: start; }

/* Problem rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line-strong); }
.rows li:last-child { border-bottom: 1px solid var(--line-strong); }
.rows__n { font: 500 .8rem/1.8 var(--mono); color: var(--green); }
.rows p { margin: 0; color: var(--muted); }

/* Organizer cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { padding: 1.6rem 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card__n { display: block; margin-bottom: 2.4rem; font: 500 .78rem/1 var(--mono); color: var(--green); }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Sponsor list */
.list { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.list li { position: relative; padding: .75rem 0 .75rem 1.6rem; border-top: 1px solid var(--line-strong); }
.list li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }

/* Fan steps as ticket stubs */
.stubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stub {
  position: relative;
  padding: 1.6rem 1.5rem 1.6rem 1.9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.stub::before { /* perforated left edge */
  content: ""; position: absolute; left: .85rem; top: 1.2rem; bottom: 1.2rem;
  border-left: 1.5px dashed var(--line-strong);
}
.stub__n { display: block; margin-bottom: 2rem; font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.stub h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.stub p { margin: 0; color: var(--muted); }
.note { margin-top: 1.8rem; color: var(--muted); }
.note::before { content: "→ "; color: var(--green); }

/* Venues */
.venues { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.venue .ph { margin-bottom: 1rem; }
.venue p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Vote */
.vote { max-width: 760px; text-align: center; }
.vote .label { justify-content: center; }
.vote h2 { max-width: none; }
.vote .lead { margin: 0 auto 2.4rem; }
.vote__btn {
  display: inline-flex; align-items: center; gap: .85rem;
  padding: .7rem 1.8rem .7rem .7rem;
  border: 1px solid var(--brass); border-radius: 999px;
  background: var(--brass); color: var(--ink);
  font: 500 1.05rem/1 var(--sans); cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .2s var(--ease);
}
.vote__btn:hover { background: var(--brass-light); border-color: var(--brass-light); }
.vote__btn:active { transform: scale(.98); }
.vote__emoji {
  display: grid; place-items: center;
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--bg); font-size: 1.35rem; line-height: 1;
  transition: transform .4s var(--ease);
}
.vote__btn[aria-pressed="true"] { background: var(--bg); border-color: var(--bg); color: var(--green); }
.vote__btn[aria-pressed="true"] .vote__emoji { background: var(--brass); }
.vote__btn.is-pop .vote__emoji { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25) rotate(-10deg); } }
.vote__count { margin: 1.8rem 0 0; font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--bg); }
.vote__count strong { font: 500 1.15em var(--mono); color: var(--brass-light); }
.vote__note { min-height: 1.6em; margin: .5rem 0 0; font-size: .92rem; color: var(--sage); }
.vote__privacy { margin: 2.2rem 0 0; font-size: .9rem; color: var(--bg); opacity: .92; }

/* FAQ */
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-size: 1.08rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.3rem/1 var(--mono); color: var(--green); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.3rem; color: var(--muted); max-width: 60ch; }

/* Contact */
.section--contact { border-top: 1px solid var(--line); }
.contact h2 { max-width: 20ch; }
.contact__line { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1.5rem 0 0; font: 400 1.05rem var(--mono); }
.contact__line a { text-underline-offset: 5px; text-decoration-color: var(--brass); }
.contact__line span { color: var(--muted); }

/* Footer */
.footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer p { margin: 0; }
.footer__tag { font: italic 400 1.15rem var(--serif); color: var(--green); }
.footer__small { font: 400 .78rem var(--mono); color: var(--muted); }

/* Why now stats */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.stats li { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.stats__n { display: block; margin-bottom: 1rem; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; color: var(--green); }
.stats p { margin: 0; color: var(--muted); max-width: 34ch; }

.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card--open { background: transparent; border-style: dashed; border-color: rgba(22, 26, 23, .38); }

/* Where we start */
.start { margin-top: clamp(3rem, 6vw, 4.5rem); }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.path li { padding: 1.4rem 0 0; border-top: 1px solid var(--line-strong); }
.path span { display: block; margin-bottom: .9rem; font: 500 .78rem/1 var(--mono); color: var(--green); }
.path p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .vote__btn, .vote__emoji { transition: none; }
  .vote__btn.is-pop .vote__emoji { animation: none; }
}

/* Tablet */
@media (max-width: 980px) {
  .hero__inner, .split { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .venues { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 820px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.4rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__links .btn { margin-top: 1.1rem; }
  .values, .stubs, .stats, .path, .cards--3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .ph--hero { width: 92%; }
  .ticket-wrap { left: 12px; width: 70%; }
  .ticket { --stub: 48px; padding: 1.3rem 1.1rem 0; }
  .ticket__no { font-size: 1.9rem; }
  .ticket__stub { margin: 0 -1.1rem; padding: 0 1.1rem; font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .card__n { margin-bottom: 1.4rem; }
  .venues { gap: 1rem; }
  .vote__btn { width: 100%; justify-content: center; }
  .contact__line { flex-direction: column; }
}
