:root {
  /* Surfaces: night-time rainforest */
  --bg: #050b07;
  --bg-panel: rgba(9, 20, 13, 0.74);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f3f6f1;
  --text-soft: #c7d0c6;
  --text-muted: #8e9a8f;

  /* Accents */
  --leaf: #5ee29a;
  --moss: #a7d46f;
  --sun: #ffd166;
  --earth: #ff9f5a;
  --rose: #ff7a8a;
  --sky: #6cb8ff;

  --rainbow: linear-gradient(90deg, #ff7a59, #ffd166, #5ee29a, #6cb8ff, #b48cff);
  --leaf-gradient: linear-gradient(135deg, #5ee29a 0%, #a7d46f 100%);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(94, 226, 154, 0.10), transparent 60%),
    linear-gradient(180deg, #07130b 0%, var(--bg) 60%);
  background-color: var(--bg);
  min-height: 100vh;
  padding: 2rem 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(94, 226, 154, 0.3); color: #fff; }

a { color: var(--leaf); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Soft coloured light behind the panel */
.glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(90px);
}
.glow-a { top: -20vw; left: -15vw; background: radial-gradient(circle, rgba(94, 226, 154, 0.14), transparent 70%); }
.glow-b { bottom: -20vw; right: -15vw; background: radial-gradient(circle, rgba(255, 209, 102, 0.08), transparent 70%); }

/* Main glass panel */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--bg-panel);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Rainbow edge along the top of the panel */
.shell::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--rainbow);
  opacity: 0.85;
}

main, footer { padding: 0 3rem; }

/* Typography */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

h1 { font-size: clamp(3.2rem, 11vw, 6.5rem); font-weight: 800; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p { color: var(--text-soft); margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.rainbow-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 2rem 15.5rem;
}

.lede {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 230px;
}
.ridge { fill: #10301c; }
.cliffs { fill: #c9955f; opacity: 0.35; }
.rock { fill: url(#rockLit); opacity: 0.92; }
.shade { fill: #2a1c14; opacity: 0.35; }

/* Compact hero for inner pages */
.hero-compact { padding: 3.5rem 2rem 4.5rem; }
.hero-compact h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); }
.back-link {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link:hover { color: var(--leaf); }

/* Section nav */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: -1.5rem auto 3.5rem;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 1rem;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.pill {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.pill:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.pill-feature { color: var(--leaf); display: inline-flex; align-items: center; gap: 0.45rem; }
.pill-feature::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 8px var(--leaf);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--leaf-gradient);
  color: #04160b;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-solid:hover { box-shadow: 0 8px 24px rgba(94, 226, 154, 0.3); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }

/* Panels */
main section { margin-bottom: 4rem; scroll-margin-top: 6rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.fact {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.fact dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fact dd {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.section-heading {
  display: block;
  text-align: center;
  margin: 0 0 2rem;
  scroll-margin-top: 6rem;
}
.section-heading::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.8rem auto 0;
  border-radius: 2px;
  background: var(--rainbow);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--rainbow);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 226, 154, 0.35);
  background-color: var(--surface-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.card:hover::after { opacity: 1; }
.card p { font-size: 0.95rem; }

.card { display: flex; flex-direction: column; }
.card p:not(.card-meta) { flex-grow: 1; }
.card .card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}
.card-links { margin-top: 0.75rem; }

.section-more { text-align: center; margin: -2rem 0 4rem; }

.card-feature {
  background: radial-gradient(120% 100% at 100% 0%, rgba(94, 226, 154, 0.10), transparent 60%), var(--surface);
  border-color: rgba(94, 226, 154, 0.25);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  --c: 255, 255, 255;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: rgb(var(--c));
  background: rgba(var(--c), 0.08);
  border: 1px solid rgba(var(--c), 0.25);
}
.tag-leaf  { --c: 94, 226, 154; }
.tag-sun   { --c: 255, 209, 102; }
.tag-earth { --c: 255, 159, 90; }
.tag-rose  { --c: 255, 122, 138; }
.tag-sky   { --c: 108, 184, 255; }

/* Events */
.event-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.event {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.event:hover { border-color: rgba(94, 226, 154, 0.35); background-color: var(--surface-hover); }

.event-when {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  text-align: center;
}
.event-month {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.event-hint {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.event h3 { margin-bottom: 0.3rem; }
.event p { font-size: 0.95rem; margin-bottom: 0.4rem; }
.event .event-next {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--leaf);
  margin: 0;
}

.event h3 .tag { vertical-align: middle; margin-left: 0.4rem; font-family: 'Inter', sans-serif; }

.event.is-on { border-color: rgba(94, 226, 154, 0.45); background: rgba(94, 226, 154, 0.05); }
.event.is-on .event-next::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 8px var(--leaf);
  vertical-align: middle;
}

.event-links,
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.6rem;
}
.event-links a,
.card-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.event-links a::after,
.card-links a::after { content: ' ↗'; color: var(--text-muted); }
.event-links a:hover,
.card-links a:hover { color: var(--leaf); border-color: var(--leaf); }

.event-group {
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.9rem 0.25rem;
}
.event-list + .event-group { margin-top: 2rem; }

.fine-print {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 4rem;
}

/* Useful links */
.link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.link-group { padding: 1.75rem 2rem; }
.link-group h3 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.link-group ul { list-style: none; display: grid; gap: 0.8rem; }
.link-group li { display: flex; flex-direction: column; }
.link-group a { font-weight: 600; text-decoration: none; }
.link-group a::after { content: ' ↗'; color: var(--text-muted); }
.link-group a:hover { text-decoration: underline; }
.link-group span { font-size: 0.88rem; color: var(--text-muted); }

/* Timeline */
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, #ff7a59, #ffd166, #5ee29a, #6cb8ff, #b48cff);
  opacity: 0.6;
}
.timeline li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1.6rem;
}
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--leaf);
}
.when {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.closing {
  text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(255, 209, 102, 0.07), transparent 70%), var(--surface);
}
.closing p { max-width: 620px; margin: 0 auto; }

/* Footer */
footer {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  margin: 0 3rem;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  font-size: 0.85rem;
}
footer p { color: var(--text-muted); margin-bottom: 0.5rem; }
.acknowledgement { max-width: 640px; margin: 0 auto 1rem; font-style: italic; }

/* Responsive */
@media (max-width: 860px) {
  body { padding: 1rem 0.5rem; }
  .shell { border-radius: 22px; }
  main { padding: 0 1.5rem; }
  footer { margin: 0 1.5rem; }
  .intro { grid-template-columns: 1fr; gap: 1.75rem; }
  .card-grid { grid-template-columns: 1fr; }
  .link-groups { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { padding: 0.5rem; }
  .shell { border-radius: 18px; }
  main { padding: 0 1rem; }
  footer { margin: 0 1rem; }
  .hero { padding: 3rem 1rem 9rem; }
  .hero-compact { padding: 3.5rem 1rem 3rem; }
  .back-link { top: 1.1rem; left: 1rem; }
  .link-group { padding: 1.5rem; }
  .hills { height: 130px; }
  .event { grid-template-columns: 1fr; gap: 0.9rem; padding: 1.25rem; }
  .event-when { flex-direction: row; gap: 0.6rem; justify-content: flex-start; padding: 0.5rem 0.8rem; width: fit-content; }
  .event-month { font-size: 1.15rem; }
  .pills { position: static; border-radius: 18px; margin-bottom: 2.5rem; }
  .pill { padding: 7px 12px; font-size: 0.84rem; }
  .panel { padding: 1.5rem; }
  .card { padding: 1.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
