/* Treasure Hunt 2026 — palette taken from Monica's campaign artwork: CBL teal
   deepening to night at the top, with the brand lime as the accent throughout,
   paper-white cards, and a typewriter slab for anything that belongs to the hunt
   itself.

   Lime clears WCAG AA on the dark teals (6.7:1 on --teal-night, 5.5:1 on
   --teal-deep). --lime-ink is the darker mix for anything sitting on paper. */

:root {
  --teal-mid: #37687c;
  --teal: #1c4351;
  --teal-deep: #16323d;
  --teal-night: #0d2029;
  --teal-line: #12303a;
  --teal-soft: #9fb6bd;
  --teal-pale: #cfe0e4;
  --lime: #91b21a;          /* the brand lime, the accent everywhere */
  --lime-bright: #a8cb2f;   /* a touch brighter, for type over the hero artwork */
  --lime-pale: #d3e394;     /* pale tint for taglines and dates on dark */
  --lime-ink: #5f7a12;      /* dark enough to sit on paper */
  --paper: #ffffff;
  --paper-warm: #f7f4f1;
  --ink: #16323d;
  --ink-soft: #4a5860;
  --ui: 'Montserrat', system-ui, sans-serif;
  --body: 'Lato', system-ui, sans-serif;
  --slab: 'Cutive', 'Courier New', monospace;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --measure: 44rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--paper);
  background: var(--teal-night);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--ui); font-weight: 800; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }

.preview-bar {
  background: var(--lime); color: var(--teal-deep); font-family: var(--ui);
  font-weight: 600; font-size: 0.85rem; text-align: center; padding: 0.6rem var(--pad);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad) clamp(2rem, 6vw, 4rem);
  /* Monica's artwork sits behind a scrim: the motifs round the edge still read,
     but the type in the middle keeps its contrast at every viewport width. */
  background:
    linear-gradient(180deg, rgba(13,32,41,0.74) 0%, rgba(13,32,41,0.58) 42%, rgba(13,32,41,0.90) 100%),
    url('/assets/hero-bg.jpg') center / cover no-repeat,
    var(--teal-night);
}
.hero > * { position: relative; }
.hero__logo { border-radius: 50%; width: 88px; height: 88px; }
.hero__kicker {
  font-family: var(--ui); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime-bright);
  margin: 1.4rem 0 0.9rem; text-shadow: 0 2px 12px rgba(6,20,26,0.7);
}
.hero h1 { max-width: 16em; margin-inline: auto; text-shadow: 0 2px 18px rgba(6,20,26,0.55); }
.hero__tagline {
  font-family: var(--slab); font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem);
  color: var(--lime-pale); margin-bottom: 1.6rem;
}
.hero__line { max-width: 34rem; margin-inline: auto; color: var(--teal-pale); }

/* ---------- countdown ---------- */

.countdown { margin-top: 2.6rem; }
.countdown__caption {
  font-family: var(--ui); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime-pale);
  opacity: 0.9; margin-bottom: 1rem;
}
.countdown__dials { display: flex; justify-content: center; gap: clamp(0.6rem, 3vw, 1.75rem); }
.dial { min-width: 4.2rem; }
.dial__num {
  display: block; font-family: var(--ui); font-weight: 800;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 3rem); line-height: 1; color: var(--lime-bright);
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(6,20,26,0.6);
}
.dial__unit {
  display: block; margin-top: 0.4rem; font-family: var(--ui); font-weight: 600;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-pale);
}

/* ---------- bands ---------- */

.band { padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad); }
.band > *, .clues > * { max-width: var(--measure); margin-inline: auto; }
.band--paper { background: var(--paper); color: var(--ink); }
.band--paper p { color: var(--ink-soft); }
.band--paper + .band--paper { padding-top: 0; }

.band--lime { background: var(--lime); color: var(--teal-deep); }
.band--lime p { color: #1e3b46; }

.band--enter { background: var(--teal); text-align: center; }
.band--enter p { color: var(--teal-pale); }
.band__deadline {
  font-family: var(--ui); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime) !important;
}

.band--reveal { background: var(--teal-deep); text-align: center; }
.band--reveal p { color: var(--teal-pale); }

.band--terms { background: var(--paper-warm); color: var(--ink-soft); font-size: 0.86rem; }
.band--terms h2 { color: var(--ink); }
.band--terms h3 { margin-top: 1.8rem; color: var(--ink); }
.band--terms p { margin-bottom: 0.5em; }

.note { font-family: var(--ui); font-size: 0.85rem; opacity: 0.7; }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0 auto; padding: 0; }
.steps li { display: flex; gap: 1.1rem; margin-bottom: 1.8rem; }
.steps__n {
  flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--teal); color: var(--paper); font-family: var(--ui); font-weight: 800;
  display: grid; place-items: center; font-size: 0.95rem;
}
.steps h3 { margin-bottom: 0.25em; color: var(--ink); }
.steps p { margin: 0; }

/* ---------- clues ---------- */

.clues { padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad); background: var(--teal-night); }
.clues__head { text-align: center; }
.clue { max-width: var(--measure); margin: 0 auto 1.25rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--teal-deep); }
.clue--locked { background: var(--teal-line); text-align: center; padding-block: 1.5rem; }
.clue__num {
  font-family: var(--ui); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--lime); margin-bottom: 0.35rem;
}
.clue__locked { font-family: var(--slab); color: var(--teal-soft); margin: 0; }
.clue__date { font-family: var(--slab); color: var(--lime-pale); font-size: 0.9rem; margin-bottom: 1rem; }
.clue__lead { color: var(--teal-pale); }

/* ---------- language picker ---------- */

.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 1.5rem 0; }
.picker__btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 0.8rem 0.3rem; border: 0; cursor: pointer; background: var(--teal); color: var(--teal-soft);
  font-family: var(--ui); font-weight: 600; font-size: 0.75rem; border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.picker__btn img { width: 40px; height: 40px; border-radius: 50%; filter: grayscale(1); opacity: 0.55; transition: filter 0.15s, opacity 0.15s; }
.picker__btn:hover { background: var(--teal-mid); color: var(--paper); }
.picker__btn.is-active { background: var(--lime); color: var(--teal-deep); }
.picker__btn.is-active img { filter: none; opacity: 1; }

.panel { display: none; }
.panel.is-active { display: block; }

/* ---------- embeds ---------- */

.embed { position: relative; aspect-ratio: 16 / 9; background: var(--teal-night); border-radius: 10px; overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--pending {
  aspect-ratio: auto; display: grid; place-items: center; text-align: center;
  padding: 2.5rem 1.5rem; color: var(--teal-soft); font-family: var(--slab);
}
.formwrap { margin-top: 1.75rem; }
.formwrap iframe { border-radius: 10px; }

/* ---------- faqs ---------- */

.faqs details { border-top: 1px solid #e4e0da; padding: 0.9rem 0; }
.faqs details:last-child { border-bottom: 1px solid #e4e0da; }
.faqs summary {
  cursor: pointer; font-family: var(--ui); font-weight: 600; color: var(--ink);
  list-style: none; padding-right: 2rem; position: relative;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: '+'; position: absolute; right: 0; top: -0.15em;
  font-size: 1.5rem; line-height: 1; color: var(--lime-ink); font-weight: 400;
}
.faqs details[open] summary::after { content: '\2013'; }
.faqs p { margin: 0.75rem 0 0.25rem; }

/* ---------- footer ---------- */

.foot { padding: 2.5rem var(--pad); text-align: center; background: var(--teal-night); color: var(--teal-soft); font-size: 0.8rem; }
.foot p { margin: 0.2rem 0; }

@media (max-width: 460px) {
  .picker { grid-template-columns: repeat(2, 1fr); }
  .countdown__dials { gap: 0.5rem; }
  .dial { min-width: 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- hero buttons ---------- */

.actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.75rem; margin-top: 2rem;
}
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-family: var(--ui); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: background 0.15s, transform 0.15s;
}
.btn--go { background: var(--lime); color: var(--teal-deep); }
.btn--go:hover { background: var(--lime-bright); }
.btn--quiet { background: rgba(255,255,255,0.14); color: var(--paper); }
.btn--quiet:hover { background: rgba(255,255,255,0.24); }
.btn:active { transform: translateY(1px); }

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
