/* Marigold event page by DapsStudioCo
   Colors for each theme are at the top. Change a hex value to recolor everything that uses it. */

:root,
[data-theme="marigold"] {
  --page: #fffcf4;
  --ink: #2b1a3a;
  --muted: #6e5e78;
  --band: #f5ae1b;       /* header and footer */
  --band-ink: #2b1a3a;
  --stub: #ffffff;       /* ticket cards */
  --soft: #fff3d3;
  --line: #eadfc6;
  --accent: #2b1a3a;     /* main buttons */
  --accent-ink: #fff7e2;
  --accent2: #9a4a0b;    /* times in the schedule */
  --good: #2e6a4c;
  --sold: #b23a2e;
  --focus: #2b1a3a;
  --shadow: color-mix(in srgb, #2b1a3a 55%, transparent);
  color-scheme: light;
}
[data-theme="ink"] {
  --page: #16112a;
  --ink: #f5eedd;
  --muted: #b3a8c6;
  --band: #241b42;
  --band-ink: #f5eedd;
  --stub: #2e2453;
  --soft: #1d1634;
  --line: #41366a;
  --accent: #f5b32f;
  --accent-ink: #1b1230;
  --accent2: #f5b32f;
  --good: #8fd3a8;
  --sold: #ff8a7a;
  --focus: #f5b32f;
  --shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
[data-theme="meadow"] {
  --page: #f6f8f1;
  --ink: #1d3327;
  --muted: #5a6d61;
  --band: #2f5d45;
  --band-ink: #f7f3e6;
  --stub: #ffffff;
  --soft: #e6efdd;
  --line: #d3dec9;
  --accent: #f2a516;
  --accent-ink: #1d3327;
  --accent2: #2f5d45;
  --good: #2f5d45;
  --sold: #a8432f;
  --focus: #1d3327;
  --shadow: rgba(16, 36, 25, .55);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.has-sticky { padding-bottom: 96px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
.wrap.narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 "Instrument Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  background: none;
  color: inherit;
  transition: transform .15s ease, filter .15s ease;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { border-color: currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn:active { transform: translateY(1px); }
.btn.is-off { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }

/* ---------- Header ---------- */
.hero {
  background: var(--band);
  color: var(--band-ink);
  padding: calc(56px + env(safe-area-inset-top)) 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 430px);
  gap: 56px;
  align-items: center;
}
.organizer { font-weight: 600; font-size: 1rem; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
  max-width: 11ch;
}
.tagline { font-size: 1.2rem; line-height: 1.5; margin-top: 24px; max-width: 34em; }

/* The ticket stub */
.stub {
  --tilt: -1.6deg;
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  background: var(--stub);
  color: var(--ink);
  border-radius: 22px;
  box-shadow: 0 26px 50px -24px var(--shadow);
  transform: rotate(var(--tilt));
}
@media (prefers-reduced-motion: no-preference) {
  .stub { animation: stub-in .7s cubic-bezier(.2, .8, .25, 1.15) .1s both; }
  @keyframes stub-in {
    from { opacity: 0; transform: translateY(22px) rotate(4deg); }
    to { opacity: 1; transform: rotate(var(--tilt)); }
  }
}
.stub-date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 24px 6px;
  border-right: 2px dashed var(--line);
  text-align: center;
}
.stub-date::before, .stub-date::after {
  content: "";
  position: absolute;
  right: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--band);
}
.stub-date::before { top: -11px; }
.stub-date::after { bottom: -11px; }
.stub-month { font-weight: 600; font-size: 1rem; }
.stub-day { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.03em; }
.stub-weekday { font-size: .9rem; color: var(--muted); }
.stub-body { padding: 24px 24px 24px 26px; min-width: 0; }
.stub-time { font-weight: 600; font-size: 1.05rem; }
.stub-place { color: var(--muted); margin-top: 2px; }

.countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 18px 0 0; }
.count-label { width: 100%; font-size: .88rem; color: var(--muted); }
.count-unit { display: inline-flex; align-items: baseline; gap: 4px; }
.count-unit b { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 1.75rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.count-unit span { font-size: .85rem; color: var(--muted); }
.count-msg { font-weight: 600; }
.count-msg.live::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); margin-right: 8px; vertical-align: 1px; }

.spots { margin-top: 12px; font-weight: 600; font-size: .92rem; color: var(--good); }
.stub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.cal { position: relative; }
.cal-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  min-width: 270px;
  padding: 6px;
  background: var(--stub);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45);
}
.cal-menu a, .cal-menu button {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
  font: 500 .98rem/1.3 "Instrument Sans", system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.cal-menu a:hover, .cal-menu button:hover { background: var(--soft); }

/* ---------- Cover photo ---------- */
.cover { margin: 0 auto; max-width: 1120px; padding: 40px 22px 0; }
.cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 22px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
main > .section + .section { border-top: 1px solid var(--line); }
main > .section.tickets, main > .section.tickets + .section { border-top: 0; }
.section h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 30px; text-wrap: balance; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.prose p { font-size: 1.15rem; line-height: 1.65; max-width: 60ch; }
.prose p + p { margin-top: 1em; }
.takeaways { background: var(--soft); border-radius: 18px; padding: 28px; }
.takeaways h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.takeaways ul { list-style: none; margin: 0; padding: 0; }
.takeaways li { position: relative; padding: 7px 0 7px 30px; }
.takeaways li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--good);
  border-bottom: 2.5px solid var(--good);
  transform: rotate(-45deg);
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.tl-time { white-space: nowrap; font-weight: 600; color: var(--accent2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.tl-title { font-weight: 600; font-size: 1.12rem; }
.tl-detail { color: var(--muted); margin-top: 2px; }

.host-list { display: grid; gap: 28px; }
.host { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; align-items: start; }
.host-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.host-photo.initials { display: flex; align-items: center; justify-content: center; background: var(--band); color: var(--band-ink); font: 700 1.7rem/1 "Bricolage Grotesque", system-ui, sans-serif; }
.host-name { font-weight: 600; font-size: 1.2rem; }
.host-role { color: var(--muted); }
.host-bio { margin-top: 8px; max-width: 58ch; }

/* ---------- Tickets ---------- */
.tickets { background: var(--soft); }
.ticket-list { display: grid; gap: 20px; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  background: var(--stub);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.ticket-price {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
  border-right: 2px dashed var(--line);
  font: 800 2.1rem/1 "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -.02em;
}
.ticket-price::before, .ticket-price::after {
  content: "";
  position: absolute;
  right: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--soft);
}
.ticket-price::before { top: -12px; }
.ticket-price::after { bottom: -12px; }
.ticket-body { padding: 24px 26px; }
.ticket-name { font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; padding-right: 92px; }
.ticket-note { color: var(--muted); margin-top: 2px; }
.ticket-includes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .96rem; }
.ticket-includes li { position: relative; padding-left: 16px; }
.ticket-includes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); }
.ticket .btn { margin-top: 20px; }
.ticket.sold .ticket-price span, .ticket.sold .ticket-body > :not(.btn) { opacity: .5; }
.stamp {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 4px 12px;
  border: 2px solid var(--sold);
  border-radius: 8px;
  color: var(--sold);
  font: 800 1rem/1.3 "Bricolage Grotesque", system-ui, sans-serif;
  transform: rotate(-7deg);
}

/* ---------- Location, FAQ ---------- */
.place-name { font-weight: 600; font-size: 1.25rem; }
.place-address { margin-top: 2px; }
.place-notes { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.place .btn { margin-top: 20px; color: var(--ink); }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 0;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--band);
  color: var(--band-ink);
  padding: 64px 0 calc(64px + env(safe-area-inset-bottom));
}
.footer h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contact-list a { font-weight: 600; font-size: 1.15rem; text-underline-offset: 4px; overflow-wrap: anywhere; }
.theme-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; font-size: .92rem; }
.theme-picker span { margin-right: 4px; }
.theme-picker button {
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 600 .9rem/1 "Instrument Sans", system-ui, sans-serif;
  cursor: pointer;
}
.theme-picker button[aria-pressed="true"] { background: var(--band-ink); color: var(--band); }

/* ---------- Sticky button ---------- */
.sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 10px 10px 18px;
  background: var(--stub);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
}
.sticky-text { display: flex; flex-direction: column; min-width: 0; }
.sticky-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-text span { font-size: .86rem; color: var(--muted); }
.sticky .btn { flex-shrink: 0; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .hero { padding: calc(40px + env(safe-area-inset-top)) 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stub { --tilt: -1deg; max-width: 460px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .tagline { font-size: 1.08rem; }
  .cover { padding-top: 28px; }
  .cover img { aspect-ratio: 16 / 10; border-radius: 16px; }
  .stub { grid-template-columns: 88px minmax(0, 1fr); }
  .stub-day { font-size: 2.8rem; }
  .stub-body { padding: 20px 18px 20px 20px; }
  .stub-time { font-size: 1rem; }
  .countdown { gap: 4px 10px; }
  .count-unit b { font-size: 1.5rem; }
  .stub-actions .btn { width: 100%; }
  .cal { width: 100%; }
  .cal-menu { min-width: 0; right: 0; }
  .ticket { grid-template-columns: 96px minmax(0, 1fr); }
  .ticket-price { font-size: 1.55rem; }
  .ticket-body { padding: 20px 18px; }
  .ticket-name { font-size: 1.2rem; padding-right: 0; }
  .stamp { right: 12px; top: 12px; padding: 3px 8px; font-size: .85rem; }
  .ticket.sold .ticket-name { padding-right: 84px; }
  .timeline li { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .tl-time { font-size: .95rem; }
  .host { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .host-photo { width: 64px; height: 64px; }
  .host-photo.initials { font-size: 1.3rem; }
}

@media print {
  .sticky, .theme-picker, .stub-actions, .skip { display: none !important; }
  .stub { transform: none; box-shadow: none; border: 1px solid #ccc; }
}
