/* ---------------------------------------------------------------
   SoberPoz 2027 — tokens
   Bright and joyful: cream paper grounds a queer-coded palette of
   magenta, violet, teal, and gold, used in bold accents rather
   than a literal flag.
--------------------------------------------------------------- */
:root {
  --paper: #FFF8EF;
  --paper-dim: #FBEEF9;
  --ink: #241B33;
  --ink-soft: #5B4F72;
  --heading: #3B1467;
  --night: #2B1446;
  --night-deep: #1C0D30;
  --magenta: #FF3D8A;
  --magenta-deep: #C81F72;
  --violet: #8C52FF;
  --violet-deep: #6B21A8;
  --teal: #00C2A8;
  --teal-deep: #0F766E;
  --gold: #FFC247;

  --display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --max-narrow: 680px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--display);
  color: var(--heading);
  font-weight: 600;
  margin: 0;
}

a {
  color: var(--magenta-deep);
  text-decoration-color: var(--magenta);
}
a:hover { text-decoration-color: currentColor; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap--narrow {
  max-width: var(--max-narrow);
}

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 239, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(36, 27, 51, 0.08);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--heading);
  text-decoration: none;
}
.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.main-nav a:hover {
  color: var(--heading);
  border-bottom-color: var(--gold);
}

@media (max-width: 560px) {
  .site-header .wrap { padding: 0 1.75rem; }
  .site-header__row { flex-direction: column; align-items: flex-start; padding: 0.75rem 0; min-height: auto; }
  .main-nav { gap: 1rem; font-size: 0.88rem; }
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night-deep);
}
.hero__media {
  position: absolute;
  inset: 0;
  background-color: var(--night-deep);
  background-size: cover;
  background-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 13, 48, 0.82) 0%, rgba(28, 13, 48, 0.18) 55%, rgba(28, 13, 48, 0.05) 100%),
    linear-gradient(135deg, rgba(255, 61, 138, 0.16), rgba(0, 194, 168, 0.16));
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 5.5rem;
  animation: rise 900ms ease-out both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  color: #FEF6FB;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.02;
}
.hero__sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: #E9DCF3;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 1.75rem;
  bottom: 1.75rem;
  color: #FBD6EA;
  opacity: 0.85;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  .hero__content { animation: none; }
}

/* ---------------------------------------------------------------
   Sections
--------------------------------------------------------------- */
.section {
  padding: 5.5rem 0;
}
.section--tinted {
  background: var(--paper-dim);
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}

.lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: 0.015em;
  margin: 0 0 1.5rem;
  color: var(--magenta-deep);
  background: linear-gradient(100deg, var(--magenta-deep) 0%, var(--violet-deep) 50%, var(--teal-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section p {
  color: var(--ink-soft);
}
.section p + p {
  margin-top: 1rem;
}

.section__intro {
  max-width: var(--max-narrow);
  margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------------
   Gallery
--------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 0.75rem;
}
.gallery__item {
  background-color: var(--violet);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: inset 0 -5px 0 var(--accent, var(--violet));
}
.gallery__item--a { grid-column: 1 / 4; grid-row: 1 / 3; --accent: var(--magenta); }
.gallery__item--b { grid-column: 4 / 7; grid-row: 1 / 2; --accent: var(--teal); }
.gallery__item--c { grid-column: 4 / 6; grid-row: 2 / 3; --accent: var(--gold); }
.gallery__item--d { grid-column: 6 / 7; grid-row: 2 / 3; --accent: var(--violet); }
.gallery__item--e { display: none; --accent: var(--magenta); }

.gallery__caption {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 140px);
  }
  .gallery__item--a { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery__item--b { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery__item--c { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery__item--d { grid-column: 1 / 2; grid-row: 3 / 4; }
  .gallery__item--e { display: block; grid-column: 2 / 3; grid-row: 3 / 4; }
}

/* ---------------------------------------------------------------
   Facts (dates / location / cost)
--------------------------------------------------------------- */
.facts {
  margin: 2rem 0;
  border-top: 1px solid rgba(59, 20, 103, 0.15);
}
.facts__row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(59, 20, 103, 0.15);
}
.facts__row dt {
  font-family: var(--display);
  font-weight: 600;
  color: var(--heading);
}
.facts__row dd {
  margin: 0;
  color: var(--ink-soft);
}
.facts__row a {
  color: var(--magenta-deep);
  font-weight: 600;
}

@media (max-width: 480px) {
  .facts__row { grid-template-columns: 1fr; gap: 0.25rem; }
}

.fine-print {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------
   Register
--------------------------------------------------------------- */
.qr-placeholder {
  width: 168px;
  height: 168px;
  margin: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--violet);
  border-radius: 14px;
  background: rgba(140, 82, 255, 0.08);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.4;
}
.qr-code {
  width: 168px;
  height: 168px;
  margin: 1.75rem 0;
  border-radius: 10px;
  display: block;
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.site-footer {
  background: var(--night-deep);
  color: #D9C7EA;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
