:root, [data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  --text-hero: clamp(2.5rem, 1rem + 3.8vw, 4.4rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem;

  --bg: #FFF9EE;          /* cream */
  --surface: #FFFDF8;
  --tint: #FDE6EC;        /* stripe pink */
  --ink: #173B2A;         /* palm green */
  --muted: #56675C;
  --line: #F0CFD9;
  --accent: #B71C5C;      /* flamingo magenta */
  --accent-ink: #FFFFFF;
  --accent-hover: #93144A;
  --coral: #B71C5C;
  --green: #226843;
  --gold: #B8862B;

  --font-display: 'Gambetta', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22,50,74,.06), 0 8px 24px rgba(22,50,74,.07);
  --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #1B1216;
  --surface: #251A1F;
  --tint: #2A1C22;
  --ink: #FBEFF2;
  --muted: #C7AEB7;
  --line: #45303A;
  --accent: #FF7FAE;
  --accent-ink: #2A0E19;
  --accent-hover: #FF9EC1;
  --coral: #FF7FAE;
  --green: #7FD1A2;
  --gold: #E3B862;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 2 * clamp(var(--space-5), 4vw, var(--space-12))); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: var(--space-2); background: var(--ink); color: var(--bg); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: var(--space-2); }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: .85em 1.4em; border-radius: 999px; font-size: var(--text-sm); font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #FFFCF6; color: #16324A; }
.btn--light:hover { background: #fff; }
.btn--sm { padding: .6em 1.1em; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--tint); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: var(--space-6); }
.nav a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: var(--space-2); }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; background: #FDE6EC url("img/stripes-bg.webp") center bottom / cover no-repeat; padding-block: clamp(var(--space-10), 6vw, var(--space-20)) clamp(var(--space-24), 16vw, 15rem); }
.hero__inner { display: flex; }
.hero__card { width: min(640px, 100%); margin-left: clamp(0rem, 4vw, 4rem); background: color-mix(in srgb, #FFFDF8 94%, transparent); border: 2px solid #226843; border-radius: 28px; padding: clamp(var(--space-6), 4vw, var(--space-12)); box-shadow: 0 20px 50px rgba(183,28,92,.18); color: #173B2A; }
.hero__logo { width: min(420px, 100%); height: auto; margin: 0 0 var(--space-4) -8px; }
.hero .eyebrow { color: #B71C5C; }
.hero h1 { font-size: var(--text-hero); margin-bottom: var(--space-5); color: #173B2A; }
.lede { font-size: var(--text-base); color: #56675C; max-width: 46ch; margin-bottom: var(--space-8); }
.hero .btn--primary { background: #B71C5C; color: #fff; }
.hero .btn--primary:hover { background: #93144A; }
.hero .btn--ghost { border-color: #E9B5C6; color: #173B2A; }
.hero .btn--ghost:hover { border-color: #173B2A; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__facts { list-style: none; padding: 0; display: flex; gap: clamp(var(--space-5), 3vw, var(--space-10)); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px dashed #E9B5C6; }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts strong { font-size: var(--text-sm); }
.hero__facts span { font-size: var(--text-xs); color: #56675C; }

/* Sections */
.section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }
.section--tint { background: repeating-linear-gradient(90deg, var(--tint) 0 44px, color-mix(in srgb, var(--tint) 45%, var(--bg)) 44px 88px); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-10); }
.section__sub { color: var(--muted); max-width: 60ch; margin-top: var(--space-3); }

.filters { display: flex; gap: var(--space-2); }
.chip { border: 1.5px solid var(--line); background: transparent; padding: .45em 1em; border-radius: 999px; font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Events */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-5); }
.event { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event__top { display: flex; gap: var(--space-4); align-items: flex-start; }
.tile { flex: none; width: 60px; height: 74px; border-radius: 10px; background: var(--bg); border: 1.5px solid var(--line); box-shadow: 0 3px 0 var(--line); display: grid; place-items: center; align-content: center; text-align: center; }
.tile__mo { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tile { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)) !important; box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 35%, var(--line)) !important; }
.tile__day { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; }
.badge { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: var(--space-2); }
.badge--play { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.event h3 { margin-bottom: 2px; }
.event__when { font-size: var(--text-sm); color: var(--muted); }
.event__desc { font-size: var(--text-sm); color: var(--muted); }
.event__meta { list-style: none; padding: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.event__meta li { display: flex; gap: var(--space-2); align-items: center; }
.event__meta svg { flex: none; color: var(--accent); }
.event__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px dashed var(--line); }
.price { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.price small { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }
.empty { color: var(--muted); padding: var(--space-8); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; }
.split__img img { border-radius: 120px 28px 28px 28px; aspect-ratio: 4/5; object-fit: cover; width: 100%; border: 6px solid var(--surface); box-shadow: var(--shadow); }
.split--rev .split__img img { border-radius: 28px 120px 28px 28px; aspect-ratio: 1; }
.split__copy > p + p { margin-top: calc(-1 * var(--space-2)); }
.split__copy > p { color: var(--muted); margin-block: var(--space-4) var(--space-6); max-width: 52ch; }
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-5); margin-bottom: var(--space-8); }
.steps li { display: flex; gap: var(--space-4); }
.steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); background: var(--surface); border: 1.5px solid var(--line); color: var(--accent); }
.steps strong { font-size: var(--text-base); }
.steps p { font-size: var(--text-sm); color: var(--muted); }

/* Band */
.band { position: relative; min-height: 440px; display: grid; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__overlay { position: relative; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(40,10,25,.15) 0%, rgba(40,10,25,.85)); padding-block: var(--space-16); }
.band__quote { font-family: var(--font-display); font-size: var(--text-xl); color: #FFFCF6; max-width: 26ch; line-height: 1.15; margin-bottom: var(--space-6); }

/* Gear */
.gear { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-8); align-items: start; }
.gear__img { position: sticky; top: 96px; }
.gear__img img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.products { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.product__tag { font-size: var(--text-xs); font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .1em; }
.product h3 { font-size: var(--text-base); }
.product p { font-size: var(--text-sm); color: var(--muted); flex: 1; }
.product a { margin-top: var(--space-3); align-self: flex-start; }
.note { margin-top: var(--space-8); padding: var(--space-5) var(--space-6); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--text-sm); }
.disclosure { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--muted); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-10); }
.faq details { border-bottom: 1px solid var(--line); padding-block: var(--space-5); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: var(--space-3); font-size: var(--text-sm); max-width: 62ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-10); align-items: start; }
.contact > div p { color: var(--muted); margin-top: var(--space-4); max-width: 46ch; }
.contact__list { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.contact__list li { display: grid; gap: 2px; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.contact__list span { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact__list a { font-size: var(--text-lg); text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--accent); }

.footer { border-top: 4px solid var(--accent); padding-block: var(--space-8); font-size: var(--text-sm); color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer__small { font-size: var(--text-xs); }

/* Modal */
.modal { margin: auto; border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100% - 2rem)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(40,10,25,.55); backdrop-filter: blur(3px); }
.reg { position: relative; padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.modal__close { position: absolute; top: var(--space-3); right: var(--space-3); }
.reg h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.1; margin-bottom: var(--space-2); padding-right: var(--space-8); }
.reg__meta { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-6); }
.field-row { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
.field-row.two { grid-template-columns: 1fr 1fr; }
.reg label { display: grid; gap: var(--space-1); font-size: var(--text-sm); font-weight: 500; }
.reg input, .reg select { width: 100%; padding: .7em .85em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: var(--text-base); }
.reg input:focus, .reg select:focus { outline: none; border-color: var(--accent); }
.reg input[aria-invalid="true"] { border-color: var(--coral); }
.form-error { color: var(--coral); font-size: var(--text-sm); min-height: 1.2em; }
.reg__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-2); flex-wrap: wrap; }
.reg__total { font-size: var(--text-sm); color: var(--muted); }
.reg__total strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); font-weight: 500; margin-left: var(--space-2); }
.reg__secure { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-4); }
#regStep2 { text-align: center; display: grid; justify-items: center; gap: var(--space-4); padding-block: var(--space-4); }
#regStep2[hidden] { display: none; }
#regStep2 p { color: var(--muted); max-width: 40ch; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--space-2) var(--space-6) var(--space-4); }
  .nav.is-open { display: flex; }
  .nav a { padding-block: var(--space-3); font-size: var(--text-base); color: var(--ink); }
  .menu-btn { display: inline-grid; }
  .hero__grid, .split, .gear, .faq-wrap, .contact { grid-template-columns: 1fr; }
  .hero { background-position: 70% bottom; padding-bottom: 11rem; }
  .hero__card { margin-left: 0; }
  .split--rev .split__img { order: -1; }
  .split__img img { aspect-ratio: 16/11; border-radius: 80px 20px 20px 20px; }
  .gear__img { position: static; }
}
@media (max-width: 600px) {
  .header__actions .btn--sm { display: none; }
  .brand img { height: 44px; }
  .hero__facts { gap: var(--space-5); }
  .products { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .field-row.two { grid-template-columns: 1fr; }
  .hero__facts { flex-wrap: wrap; row-gap: var(--space-4); }
  .band { min-height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Registration options */
.opt { border: 0; padding: 0; margin: 0 0 var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.opt legend { font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-2); padding: 0; }
.opt__item { display: flex !important; gap: var(--space-3); align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); cursor: pointer; background: var(--bg); }
.opt__item:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.opt__item input { width: auto !important; margin-top: 4px; accent-color: var(--accent); }
.opt__item span { display: grid; }
.opt__item small { color: var(--muted); font-weight: 400; }
.field-hint { font-size: var(--text-xs); color: var(--muted); margin-top: calc(-1 * var(--space-2)); }
.event__sched { list-style: none; padding: var(--space-3) var(--space-4); margin: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); background: var(--tint); border-radius: var(--radius-sm); }
.event__sched li { display: flex; justify-content: space-between; gap: var(--space-3); }
.event__sched span { color: var(--muted); }
.price__alt { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--accent); font-weight: 700; margin-top: 2px; }
@media (max-width: 600px) { .opt { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
.event__sched li { justify-content: flex-start; }
.event__sched span { white-space: nowrap; min-width: 9.5em; order: -1; }

.note--card { display: flex; gap: var(--space-5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.note--card > div { flex: 1 1 380px; }
.done__card { background: var(--tint); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-3); justify-items: center; max-width: 420px; }
.done__card p { font-size: var(--text-sm); color: var(--ink) !important; }

/* Featured flamingo mats */
.flamingo-mats { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-10); align-items: start; background: var(--tint); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: var(--space-10); margin-bottom: var(--space-12); }
.flamingo-mats__img { position: sticky; top: 96px; margin: 0; }
.flamingo-mats__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.flamingo-mats__img figcaption { margin-top: var(--space-3); font-family: var(--font-display); font-style: italic; color: var(--accent); text-align: center; font-size: var(--text-base); }
.flamingo-mats__body h3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; margin-bottom: var(--space-3); }
.flamingo-mats__intro { color: var(--muted); margin-bottom: var(--space-6); max-width: 55ch; }
.mat-list { list-style: none; padding: 0; margin: 0; counter-reset: mat; border-top: 1px solid var(--line); }
.mat-item { counter-increment: mat; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.mat-item::before { content: counter(mat, decimal-leading-zero); font-family: var(--font-display); font-size: var(--text-lg); color: var(--accent); align-self: start; line-height: 1.3; }
.mat-item__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: baseline; margin-bottom: var(--space-1); }
.mat-item__size { font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.mat-item h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-1); }
.mat-item h4 a { color: var(--ink); text-decoration: none; }
.mat-item h4 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mat-item__text p:last-child { font-size: var(--text-sm); color: var(--muted); }
.mats__fine { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 980px) { .flamingo-mats { grid-template-columns: 1fr; } .flamingo-mats__img { position: static; max-width: 520px; } }
@media (max-width: 640px) { .flamingo-mats { padding: var(--space-6) var(--space-4); } .mat-item { grid-template-columns: auto 1fr; } .mat-item .btn { grid-column: 2; justify-self: start; } }
