/* ============================================================
   Generation X Miami — shared stylesheet
   Modern rebuild of the 2002 static site (pure CSS, no framework)
   ============================================================ */

:root {
  --ink: #2b1a3d;
  --ink-soft: #55445f;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3ecf7;
  --brand: #6d1a8c;
  --brand-dark: #3c0f52;
  --brand-deep: #260a38;
  --accent: #f5a623;
  --accent-soft: #fdeecb;
  --magenta: #c2185b;
  --teal: #0e8f8f;
  --line: #e5dcee;
  --danger: #b3261e;
  --ok: #1e7d43;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(60, 15, 82, 0.10);
  --shadow-sm: 0 3px 12px rgba(60, 15, 82, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--magenta); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--brand-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.3px; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
main { padding: 34px 0 60px; min-height: 55vh; }
section { margin: 0 0 46px; }
.section-intro { max-width: 75ch; color: var(--ink-soft); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.lead { font-size: 1.13rem; }

/* ---------- skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-dark) 55%, var(--brand) 100%);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
.header-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { height: 48px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.brand-text strong { display: block; font-size: 1.25rem; letter-spacing: .4px; line-height: 1.2; }
.brand-text span { display: block; font-size: .8rem; color: #e9c7f5; letter-spacing: 1.6px; text-transform: uppercase; }
.header-cta { margin-left: auto; }

/* ---------- nav ---------- */
.site-nav { background: var(--brand-deep); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.nav-toggle {
  display: none; width: 100%; background: none; border: 0; color: #fff;
  font: inherit; font-weight: 600; padding: 12px 20px; cursor: pointer; text-align: left;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; color: #f0e3f8; text-decoration: none; font-weight: 600;
  font-size: .93rem; padding: 12px 14px; letter-spacing: .2px;
}
.site-nav a:hover, .site-nav a:focus { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; cursor: pointer;
  padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease; font-size: .98rem;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--accent); color: #41290a; }
.btn-primary:hover { color: #41290a; }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { color: var(--brand); background: var(--surface-2); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 78% 18%, rgba(245,166,35,.16), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(194,24,91,.22), transparent 55%),
    linear-gradient(150deg, var(--brand-deep) 0%, var(--brand-dark) 60%, var(--brand) 100%);
  color: #fff; padding: 52px 0 58px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 58% 30%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 62%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 20%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(255,255,255,.5) 50%, transparent 51%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: center; }
.hero-kicker {
  display: inline-block; background: rgba(245,166,35,.16); color: var(--accent);
  border: 1px solid rgba(245,166,35,.55); padding: 4px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p { color: #ead9f4; font-size: 1.08rem; max-width: 58ch; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { margin: 0; text-align: center; }
.hero-figure img {
  width: 100%; max-width: 420px; margin: 0 auto;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.4));
}
.hero-figure figcaption { color: #cbb3dd; font-size: .85rem; margin-top: 10px; }

/* ---------- quick facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -30px auto 46px; position: relative; z-index: 2; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
}
.fact strong { display: block; color: var(--brand-dark); font-size: 1.05rem; }
.fact span { color: var(--ink-soft); font-size: .88rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card .card-media { border-radius: var(--radius-sm); overflow: hidden; }
.card .card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* planet cards (costume sections) */
.planet-card { position: relative; overflow: hidden; padding: 0; }
.planet-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.planet-body { padding: 16px 18px 18px; border-top: 5px solid var(--pc, var(--brand)); }
.planet-name { font-size: 1.28rem; margin: 0 0 4px; color: var(--pc, var(--brand-dark)); }
.planet-price { font-weight: 800; color: var(--ink); }
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
}
.badge-open { background: #e3f6e9; color: var(--ok); }
.badge-sold { background: #fdeaea; color: var(--danger); }
.planet-mars   { --pc: #d32f2f; }
.planet-saturn { --pc: #2e7d32; }
.planet-sun    { --pc: #e6a700; }
.planet-venus  { --pc: #0097c4; }
.planet-jupiter{ --pc: #c2185b; }

/* ---------- feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.split figure { margin: 0; }
.split figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- banners / notices ---------- */
.notice {
  background: var(--accent-soft); border: 1px solid #ecd39a; border-left: 6px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 18px; color: #5c4212;
}
.notice-purple {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 6px solid var(--brand);
  color: var(--brand-dark);
}
.alert-red {
  background: #fdecea; border: 1px solid #f2c1bd; border-left: 6px solid var(--danger);
  border-radius: var(--radius-sm); padding: 12px 16px; color: #7d1c16;
}

/* ---------- schedule ---------- */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.schedule li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; display: grid; grid-template-columns: 130px 1fr; gap: 8px 18px; align-items: baseline;
}
.schedule .date { font-weight: 800; color: var(--brand); white-space: nowrap; }
.schedule .event-title { font-weight: 700; color: var(--brand-dark); }
.schedule .where { grid-column: 2; color: var(--ink-soft); font-size: .93rem; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); background: #241131; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.gallery-grid a:hover img, .gallery-grid a:focus img { transform: scale(1.04); }
.gallery-grid.portrait img { aspect-ratio: 3 / 4; }
.gallery-grid figcaption { font-size: .8rem; color: var(--ink-soft); padding: 6px 8px; }

/* lightbox */
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px);
  color: #fff;
}
dialog.lightbox::backdrop { background: rgba(20, 5, 30, .88); }
dialog.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
dialog.lightbox .lightbox-caption { text-align: center; padding: 10px 4px 0; font-size: .9rem; color: #e7d7f2; }
dialog.lightbox .lightbox-close {
  position: fixed; top: 14px; right: 18px; background: var(--accent); border: 0; color: #41290a;
  font-weight: 800; border-radius: 999px; width: 42px; height: 42px; font-size: 1.1rem; cursor: pointer;
}

/* ---------- forms ---------- */
form.genx-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px; max-width: 680px;
}
.form-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px 14px; align-items: center; margin-bottom: 12px; }
.form-row label { font-weight: 700; color: var(--brand-dark); font-size: .95rem; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"],
.form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid #cfc2da; border-radius: var(--radius-sm); background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brand); }
.form-check { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.form-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 16px; }
legend { font-weight: 800; color: var(--brand-dark); padding: 0 8px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
  font-size: .95rem;
}
table.data th, table.data td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--surface-2); color: var(--brand-dark); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---------- sponsors ---------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sponsor-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start;
}
.sponsor-card .sponsor-logo {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; min-height: 110px;
}
.sponsor-card .sponsor-logo img { max-height: 96px; width: auto; max-width: 100%; }
.sponsor-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.sponsor-card p { margin: 0 0 6px; font-size: .92rem; color: var(--ink-soft); }
.sponsor-card .sponsor-url { font-size: .88rem; word-break: break-all; }

/* ---------- flyer frames ---------- */
.flyer-frame {
  display: block; margin: 0 auto; border: 6px solid #fff; outline: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow); max-width: 100%;
}

/* ---------- breadcrumbs ---------- */
.breadcrumb { font-size: .86rem; color: var(--ink-soft); margin: 0 0 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #b9a6c9; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* ---------- page header ---------- */
.page-head { margin-bottom: 30px; }
.page-kicker {
  display: inline-block; color: var(--magenta); font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 8px;
}
.page-lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 72ch; }

/* ---------- audio ---------- */
.audio-card {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.audio-card audio { width: min(360px, 100%); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--brand-deep); color: #cbb3dd; margin-top: 30px;
  border-top: 4px solid var(--accent);
}
.site-footer a { color: #e9d6f6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 26px; padding: 40px 0 26px; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0 22px;
  font-size: .82rem; color: #a98fc0;
}
.footer-note { font-size: .8rem; color: #a98fc0; margin-top: 14px; }

/* ---------- archive note ---------- */
.archive-note {
  background: #efe9e2; border: 1px dashed #c9b8a6; border-radius: var(--radius-sm);
  padding: 12px 16px; color: #5f5040; font-size: .9rem;
}

/* ---------- sitemap page ---------- */
.sitemap-cols { columns: 2; column-gap: 40px; }
.sitemap-cols ul { margin: 0 0 18px; padding-left: 20px; }
.sitemap-cols li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .schedule li { grid-template-columns: 1fr; }
  .schedule .where { grid-column: 1; }
  .form-row { grid-template-columns: 1fr; }
  .header-cta { margin-left: 0; }
  /* mobile nav */
  .nav-toggle { display: block; }
  .site-nav ul { display: none; flex-direction: column; padding-bottom: 10px; }
  .site-nav.open ul { display: flex; }
  .site-nav a { padding: 11px 20px; }
}
@media (max-width: 420px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- print ---------- */
@media print {
  .site-nav, .header-cta, .hero-actions, dialog, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}