/* ============================================================
   PLAYGROVE — The Games Almanac design system
   Twilight indigo + playful violet & amber. Hand-authored, no framework.
   ============================================================ */

:root {
  /* Surfaces — twilight indigo */
  --ink-900: #080a1c;
  --ink-800: #0d1026;
  --ink-700: #141834;
  --ink-600: #1c2145;
  --ink-500: #262c58;

  /* Primary accent — playful violet */
  --violet-100: #ded9ff;
  --violet-300: #b3a7fb;
  --violet-500: #8b7cf6;
  --violet-700: #6a5ae0;

  /* Secondary accent — warm amber */
  --amber-300: #ffcf87;
  --amber-500: #ffb454;

  /* Neutrals */
  --paper: #f4f3ff;
  --lilac: #d7d5f0;
  --muted: #9a99c4;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --container-max: 80rem;
  --radius: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }

html {
  background-color: var(--ink-800);
  color: var(--lilac);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: var(--lilac);
  background:
    radial-gradient(1200px 820px at 82% -8%, rgba(139, 124, 246, 0.16), transparent 60%),
    radial-gradient(960px 720px at -10% 38%, rgba(255, 180, 84, 0.10), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800) 40%, var(--ink-900));
  background-attachment: fixed;
}

::selection { background: var(--violet-500); color: var(--ink-900); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--paper);
  margin: 0;
}

p { margin: 0; }

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .container { padding-inline: 2.5rem; } }

.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7.5rem; } }

.section--tint {
  background: linear-gradient(180deg, rgba(28, 33, 69, 0.7), rgba(13, 16, 38, 0.4));
  border-block: 1px solid rgba(139, 124, 246, 0.16);
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--violet-300);
  font-weight: 500;
}
.lede { color: rgba(215, 213, 240, 0.82); max-width: 42rem; font-size: 1.05rem; }
.muted { color: rgba(215, 213, 240, 0.6); }

.display-xl { font-size: clamp(2.8rem, 7vw, 5rem); }
.display-lg { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.display-md { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }

.accent-text {
  background: linear-gradient(180deg, var(--violet-100) 0%, var(--violet-500) 55%, var(--amber-500) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.italic { font-style: italic; }

.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(139, 124, 246, 0.6), transparent);
  margin: 0;
}

/* Section header block */
.section-header { max-width: 44rem; }
.section-header .eyebrow { display: block; margin-bottom: 1.1rem; }
.section-header h2 { margin-bottom: 1.1rem; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent {
  background: linear-gradient(180deg, var(--violet-300), var(--violet-500));
  color: var(--ink-900);
  box-shadow: 0 12px 30px rgba(139, 124, 246, 0.28);
}
.btn-accent:hover { background: linear-gradient(180deg, var(--violet-100), var(--violet-300)); }
.btn-ghost {
  border-color: rgba(139, 124, 246, 0.5);
  color: var(--violet-100);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--violet-300); background: rgba(139, 124, 246, 0.1); }
.btn-block { width: 100%; }

/* -------- Cards -------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 124, 246, 0.18);
  background: linear-gradient(180deg, rgba(28, 33, 69, 0.55), rgba(13, 16, 38, 0.55));
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 124, 246, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover { border-color: rgba(139, 124, 246, 0.45); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.card:hover::before { opacity: 1; }
.card .eyebrow { margin-bottom: 0.9rem; }
.card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.card p { color: rgba(215, 213, 240, 0.78); font-size: 0.95rem; }
.card-link h3 { transition: color 0.2s ease; }
.card-link:hover h3 { color: var(--violet-100); }
.card .card-meta {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber-300);
}

/* -------- Navbar -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8, 10, 28, 0.92), rgba(8, 10, 28, 0.55));
  border-bottom: 1px solid rgba(139, 124, 246, 0.16);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(139, 124, 246, 0.6);
  border-radius: 12px;
  color: var(--violet-300);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  background: rgba(139, 124, 246, 0.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--paper); letter-spacing: 0.04em; }
.brand-sub { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--violet-300); margin-top: 3px; }

.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(215, 213, 240, 0.8);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--violet-500); transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--violet-100); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* Mobile menu (checkbox toggle, no JS needed) */
.nav-toggle { display: inline-flex; }
.nav-toggle-input { display: none; }
.nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border: 1px solid rgba(139, 124, 246, 0.4); border-radius: 10px;
}
.nav-burger span { width: 22px; height: 1.5px; background: var(--violet-300); display: block; }
.mobile-menu { display: none; flex-direction: column; gap: 0.25rem; padding: 1rem 0 1.5rem; border-top: 1px solid rgba(139, 124, 246, 0.14); }
.mobile-menu a { padding: 0.7rem 0.25rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(215, 213, 240, 0.85); }
.nav-toggle-input:checked ~ .mobile-menu { display: flex; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* -------- Hero -------- */
.hero { position: relative; overflow: hidden; padding-block: 6rem 5rem; }
@media (min-width: 768px) { .hero { padding-block: 8.5rem 7rem; } }
.hero-grid { display: grid; gap: 3.5rem; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; } }
.hero h1 { margin-block: 1.6rem 0; }
.hero .lede { margin-top: 2rem; }
.hero-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.deco-ring {
  position: absolute; right: -6rem; top: 2rem; width: 560px; height: 560px;
  opacity: 0.22; pointer-events: none; z-index: -1;
}

/* Stat block */
.statwrap { position: relative; }
.statgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  padding: 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 124, 246, 0.22);
  background: linear-gradient(180deg, rgba(28, 33, 69, 0.6), rgba(13, 16, 38, 0.7));
}
.stat { text-align: center; }
.stat-value { font-family: var(--font-display); font-size: 2.1rem; color: var(--paper); line-height: 1; }
.stat-label { margin-top: 0.5rem; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(215, 213, 240, 0.6); }
.pullquote {
  margin-top: 1.6rem; padding-left: 1.1rem; border-left: 2px solid rgba(139, 124, 246, 0.5);
  font-style: italic; color: rgba(215, 213, 240, 0.78); font-size: 0.95rem;
}
.pullquote cite { display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(215, 213, 240, 0.5); }

/* -------- Illustrated feature -------- */
.feature { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.feature-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.feature-points li { position: relative; padding-left: 1.8rem; color: rgba(215, 213, 240, 0.85); }
.feature-points li::before { content: "\25B9"; position: absolute; left: 0; color: var(--violet-300); }
.feature-art { animation: floaty 7s ease-in-out infinite; }
.feature-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45)); border-radius: var(--radius-lg); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* -------- Page hero (interior) -------- */
.page-hero { padding-block: 6rem 3rem; }
@media (min-width: 768px) { .page-hero { padding-block: 8rem 4rem; } }
.page-hero h1 { margin-block: 1.4rem; }

/* -------- Detail rows / lists -------- */
.detail-row { display: grid; gap: 2.5rem; padding-top: 4rem; margin-top: 4rem; border-top: 1px solid rgba(139, 124, 246, 0.14); }
.detail-row:first-child { margin-top: 0; }
@media (min-width: 768px) { .detail-row { grid-template-columns: 1fr 1.4fr; } }
.chip-list { display: grid; gap: 0.8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .chip-list { grid-template-columns: repeat(2, 1fr); } }
.chip {
  padding: 0.9rem 1.2rem; border-radius: 14px;
  border: 1px solid rgba(139, 124, 246, 0.18);
  background: rgba(13, 16, 38, 0.5); font-size: 0.9rem; color: rgba(215, 213, 240, 0.85);
}

/* Numbered step list (guides) */
.step-list { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.step {
  position: relative; counter-increment: step;
  padding: 1rem 1.2rem 1rem 3.4rem; border-radius: 14px;
  border: 1px solid rgba(139, 124, 246, 0.18);
  background: rgba(13, 16, 38, 0.5); color: rgba(215, 213, 240, 0.9);
}
.step::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(139, 124, 246, 0.5);
  font-family: var(--font-display); font-size: 0.85rem; color: var(--violet-300);
  background: rgba(139, 124, 246, 0.08);
}

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; padding: 0; list-style: none; }
.pill {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(139, 124, 246, 0.22); color: rgba(215, 213, 240, 0.75);
}

/* Wide info card (library) */
.room-card { display: grid; gap: 2rem; padding: 2rem; }
@media (min-width: 820px) { .room-card { grid-template-columns: 1fr 1.3fr; align-items: center; } }
.room-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.room-meta div span { display: block; }
.room-meta .k { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--violet-300); }
.room-meta .v { font-size: 0.95rem; color: var(--paper); margin-top: 0.2rem; }

/* Event list */
.event { display: flex; align-items: center; gap: 1.5rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px solid rgba(139, 124, 246, 0.16); background: rgba(13, 16, 38, 0.45); }
.event-night { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; border: 1px solid rgba(139, 124, 246, 0.5); font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--violet-300); }
.event h3 { font-size: 1.25rem; }
.event p { margin-top: 0.25rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(215, 213, 240, 0.6); }

/* -------- Forms -------- */
.form-card { padding: 2rem; border-radius: var(--radius-lg); border: 1px solid rgba(139, 124, 246, 0.2); background: rgba(28, 33, 69, 0.4); }
@media (min-width: 768px) { .form-card { padding: 2.75rem; } }
.field label, .form-label { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(215, 213, 240, 0.72); margin-bottom: 0.5rem; }
.req { color: var(--amber-500); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--paper);
  background: rgba(8, 10, 28, 0.6); border: 1px solid rgba(139, 124, 246, 0.24);
  padding: 0.8rem 1.1rem; border-radius: 999px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea { border-radius: 16px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.2); }
.input::placeholder, .textarea::placeholder { color: rgba(215, 213, 240, 0.4); }
.form-success { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid rgba(139, 124, 246, 0.5); background: rgba(28, 33, 69, 0.6); }
.form-success[hidden] { display: none; }
.form-success .tick { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(139, 124, 246, 0.6); color: var(--violet-300); font-size: 1.3rem; }

/* -------- FAQ accordion -------- */
.faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.faq-item { border-bottom: 1px solid rgba(139, 124, 246, 0.14); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1.5rem;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--paper);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--violet-300); font-size: 1.4rem; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.3rem; color: rgba(215, 213, 240, 0.78); max-width: 52rem; }

/* -------- Panel -------- */
.panel {
  position: relative; overflow: hidden; padding: 2.5rem; border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 124, 246, 0.35);
  background: linear-gradient(160deg, rgba(28, 33, 69, 0.85), rgba(13, 16, 38, 0.85));
}
@media (min-width: 768px) { .panel { padding: 4rem; } }
.panel-glow { position: absolute; top: -8rem; right: -6rem; width: 20rem; height: 20rem; border-radius: 50%; background: rgba(139, 124, 246, 0.18); filter: blur(60px); pointer-events: none; }
.panel-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .panel-grid { grid-template-columns: 1.4fr 1fr; } }
.panel-cta { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .panel-cta { align-items: flex-end; } }

/* Prose (legal pages) */
.prose { max-width: 52rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.8rem; }
.prose p { margin-bottom: 1rem; color: rgba(215, 213, 240, 0.8); }
.prose ul { color: rgba(215, 213, 240, 0.8); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--violet-300); text-decoration: underline; text-underline-offset: 3px; }

/* -------- Footer -------- */
.footer { border-top: 1px solid rgba(139, 124, 246, 0.16); background: rgba(8, 10, 28, 0.6); margin-top: 2rem; }
.footer-top { display: grid; gap: 2.5rem; padding-block: 4rem; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer h4 { font-family: var(--font-body); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--violet-300); margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.7rem; }
.footer li a { font-size: 0.9rem; color: rgba(215, 213, 240, 0.72); transition: color 0.2s ease; }
.footer li a:hover { color: var(--violet-100); }
.footer-brand p { margin-top: 1rem; font-size: 0.92rem; color: rgba(215, 213, 240, 0.65); max-width: 22rem; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.3rem; }
.footer-socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(139, 124, 246, 0.28); color: var(--violet-300); font-size: 0.8rem; transition: background 0.2s ease, color 0.2s ease; }
.footer-socials a:hover { background: var(--violet-500); color: var(--ink-900); }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding-block: 1.8rem; border-top: 1px solid rgba(139, 124, 246, 0.12); font-size: 0.78rem; color: rgba(215, 213, 240, 0.55); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Skip link */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1100; background: var(--violet-500); color: var(--ink-900); padding: 0.6rem 1.1rem; border-radius: 999px; }

/* Fade-in animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 1rem; } .gap-4 { gap: 2rem; }
.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; }
