* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-1: #3a2018;
  --bg-2: #2a1810;
  --bg-mid: #5a3828;
  --frost: rgba(255, 255, 255, 0.08);
  --frost-hover: rgba(255, 255, 255, 0.12);
  --frost-border: rgba(255, 255, 255, 0.15);
  --text-frost: #1a1410;
  --text-dark: #e0d0c0;
  --neon: #40c8b8;
  --neon-glow: #40c8b844;
  --gold: #d8a848;
}

html, body {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-mid) 50%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  font-family: "Literata", Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, .hero-title, .city-title, .module-title, .footer-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.eyebrow, .module-eyebrow, .stat-key, .reading-no {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dark);
  opacity: 0.65;
}

.neon, .module-eyebrow.neon {
  color: var(--neon);
  opacity: 1;
  text-shadow: 0 0 8px var(--neon), 0 0 16px var(--neon-glow);
}

#frostCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* DREAM ENTRANCE */
.dream {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.glass-panel {
  background: var(--frost);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--frost-border);
  border-radius: 24px;
  padding: 60px 56px;
  max-width: 720px;
  width: 100%;
  text-align: center;
  position: relative;
}

.glass-panel--hero {
  text-align: center;
}

.hero-eyebrow {
  font-family: "Azeret Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon), 0 0 16px var(--neon-glow);
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}
.hero-quest {
  color: var(--gold);
  text-shadow: 0 0 24px rgba(216, 168, 72, 0.4);
}

.hero-poem {
  margin-top: 32px;
  font-family: "Literata", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  opacity: 0.92;
  position: relative;
  display: inline-block;
  padding: 0 40px;
}
.hero-poem::before, .hero-poem::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.6;
}
.hero-poem::before { left: 0; }
.hero-poem::after { right: 0; }

.hero-poem-attr {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  opacity: 0.6;
}

.hero-lede {
  margin-top: 36px;
  font-size: 17px;
  color: var(--text-dark);
  opacity: 0.85;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* CITY GRID */
.city {
  position: relative;
  z-index: 2;
  padding: 120px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.city-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.city-title {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  margin-top: 18px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.city-sub {
  margin-top: 18px;
  color: var(--text-dark);
  opacity: 0.78;
  font-size: 17px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.connectors {
  position: absolute;
  inset: 220px 40px auto 40px;
  width: calc(100% - 80px);
  height: calc(100% - 280px);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 6px var(--neon-glow));
}
.connector {
  animation: dash-flow 12s linear infinite;
  opacity: 0.5;
}
@keyframes dash-flow {
  to { stroke-dashoffset: -120; }
}

.grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.module {
  background: var(--frost);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--frost-border);
  border-radius: 16px;
  padding: 32px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.module:hover {
  background: var(--frost-hover);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.module--wide { grid-column: span 2; }
.module--accent { border-color: rgba(64, 200, 184, 0.35); }
.module--accent:hover { border-color: var(--neon); box-shadow: 0 0 24px var(--neon-glow); }

.module-eyebrow {
  margin-bottom: 14px;
}

.module-title {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.module-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  opacity: 0.88;
}
.module-body em { font-style: italic; color: var(--gold); }

.module-foot {
  margin-top: 18px;
  font-family: "Azeret Mono", monospace;
  font-size: 13px;
  color: var(--neon);
  opacity: 0.85;
  letter-spacing: 0.04em;
}
.module-foot .hl { color: var(--gold); margin: 0 4px; }

.module-stats {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.module-stats li { display: flex; flex-direction: column; }
.stat-num {
  font-family: "Azeret Mono", monospace;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon-glow);
  letter-spacing: 0.02em;
}
.stat-key {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.7;
}

.module--quote .module-quote {
  font-family: "Literata", serif;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.6;
  color: var(--text-dark);
  margin: 14px 0 18px;
}
.module--quote { border-color: rgba(216, 168, 72, 0.3); }

/* GARDEN / READING LIST */
.garden {
  position: relative;
  z-index: 2;
  padding: 120px 40px 60px;
}
.garden__inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--frost);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--frost-border);
  border-radius: 24px;
  padding: 56px;
}

.reading-list {
  list-style: none;
  margin-top: 36px;
}

.reading-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.reading-item:last-child { border-bottom: none; }

.reading-no {
  font-family: "Azeret Mono", monospace;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon-glow);
  font-size: 22px;
  font-weight: 500;
}

.reading-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.5;
}
.reading-title em { color: var(--gold); font-style: italic; }

.reading-meta {
  font-family: "Literata", serif;
  font-style: italic;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-dark);
  opacity: 0.7;
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 2;
  padding: 100px 40px 80px;
  text-align: center;
}
.footer__inner { max-width: 640px; margin: 0 auto; }
.footer-title {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  margin-top: 18px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.footer-meta {
  margin-top: 36px;
  font-family: "Azeret Mono", monospace;
  font-size: 12px;
  color: var(--text-dark);
  opacity: 0.55;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 760px) {
  .glass-panel { padding: 40px 28px; border-radius: 18px; }
  .city { padding: 80px 20px 40px; }
  .module--wide { grid-column: span 1; }
  .grid { grid-template-columns: 1fr; }
  .connectors { display: none; }
  .garden { padding: 80px 20px 40px; }
  .garden__inner { padding: 36px 24px; }
  .footer { padding: 60px 20px; }
}
