/* Delvers of Galerian — campaign hub.
   Mobile-first. All motion is gated behind prefers-reduced-motion. */

:root {
  --void: #0a0d1a;
  --void-2: #131a33;
  --ink: #e8e4d9;
  --ink-dim: #9a9bb0;
  --gold: #d9a441;
  --gold-dim: #8a6a2c;
  --edge: rgba(232, 228, 217, 0.12);
  --isle: #1b2445;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, var(--void-2) 0%, var(--void) 60%);
  color: var(--ink);
  font: 16px/1.6 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  overflow-x: hidden;
}

/* --- drifting islands ------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.isle {
  position: absolute;
  display: block;
  background: var(--isle);
  border-radius: 50% 50% 46% 54% / 62% 58% 42% 38%;
  opacity: 0.5;
  filter: blur(1px);
}

.isle-a { width: 180px; height: 54px; top: 14%; left: -60px; animation: drift 82s linear infinite; }
.isle-b { width: 110px; height: 34px; top: 38%; left: -40px; opacity: 0.34; animation: drift 124s linear infinite; }
.isle-c { width: 240px; height: 68px; top: 63%; left: -90px; opacity: 0.24; animation: drift 168s linear infinite; }
.isle-d { width: 76px;  height: 24px; top: 84%; left: -30px; opacity: 0.4;  animation: drift 98s  linear infinite; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 260px)); }
}

@media (prefers-reduced-motion: reduce) {
  .isle { animation: none; }
  .isle-a { left: 6%; }
  .isle-b { left: 68%; }
  .isle-c { left: 28%; }
  .isle-d { left: 82%; }
}

/* --- layout ----------------------------------------------------------- */

.hero, .countdown, main, footer {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero { padding-top: 3.5rem; text-align: center; }

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.teaser {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--ink-dim);
  font-style: italic;
}

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

.countdown {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: rgba(10, 13, 26, 0.6);
  text-align: center;
}

.countdown-label {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.countdown-value {
  margin: 0;
  font-size: clamp(1.4rem, 6vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.countdown-value.is-live { color: var(--gold); }

.countdown-when {
  margin: 0.6rem 0 0;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.countdown-local::before { content: " · "; }
.countdown-fallback { margin: 0.6rem 0 0; color: var(--ink-dim); font-size: 0.85rem; }

.roll20 {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.roll20:hover, .roll20:focus-visible {
  background: var(--gold);
  color: var(--void);
}

/* --- shelves ---------------------------------------------------------- */

main { padding-top: 3rem; padding-bottom: 3rem; }

.shelf + .shelf { margin-top: 2.5rem; }

.shelf h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--edge);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.entries { display: grid; gap: 0.5rem; }

.entry {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.entry:hover, .entry:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--edge);
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .entry, .roll20 { transition: none; }
  .entry:hover, .entry:focus-visible { transform: none; }
}

.entry-title { display: block; font-size: 1.05rem; }
.entry-blurb { display: block; margin-top: 0.2rem; color: var(--ink-dim); font-size: 0.88rem; font-style: italic; }

.entry-meta {
  display: block;
  margin-top: 0.45rem;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.entry-meta > span + span::before { content: " · "; }
.entry-solved { color: var(--gold); }

.empty { color: var(--ink-dim); font-style: italic; }

footer {
  padding-bottom: 3rem;
  border-top: 1px solid var(--edge);
  padding-top: 1.5rem;
  color: var(--ink-dim);
  font-size: 0.78rem;
  text-align: center;
}

/* --- wider screens ---------------------------------------------------- */

@media (min-width: 40rem) {
  .hero { padding-top: 5rem; }
  .entries { gap: 0.6rem; }
}
