:root {
  --ink: #13281f;
  --ink-soft: #1c3b2e;
  --lime: #e8ff57;
  --amber: #ffb020;
  --paper: #f3ecdf;
  --sheet: #fffaf3;
  --muted: #5c564c;
  --text: #1c1915;
  --line: #e3d7c6;
  --green: #0f6b43;
  --header-h: 118px;
  --shadow: 0 16px 40px rgba(19, 40, 31, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--green); }

a:hover { color: #0a4d30; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus { top: 8px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--lime);
  z-index: 80;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 40, 31, 0.96);
  color: #f6f1e7;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--lime);
}

.head-top,
.wrap {
  width: min(1120px, calc(100% - 32px));
  max-width: 100%;
  margin-inline: auto;
}

.head-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.brand-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.brand-name {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.cta-pair {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.btn-login {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 5px 0 #0b140f;
}

.btn-login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}

.btn-join {
  background: transparent;
  color: #f6f1e7;
  border-color: var(--amber);
}

.btn-join.dark {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.btn-login:hover,
.btn-join:hover { transform: translateY(1px); }

.head-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 0 10px;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar { display: none; }

.nav-scroll a {
  color: #f6f1e7;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 600;
}

.nav-scroll a:hover { color: var(--lime); }

.langs {
  display: flex;
  gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.langs a {
  color: #f6f1e7;
  text-decoration: none;
  border: 1px solid rgba(246, 241, 231, 0.3);
  border-radius: 999px;
  padding: 4px 8px;
}

.langs a[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.age {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
  max-width: 100%;
  border-bottom: 1px solid var(--ink);
}

.ticker-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  min-width: 0;
  animation: tick 42s linear infinite;
  padding: 0.65rem 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 500;
}

.ticker.reverse .ticker-track { animation-direction: reverse; animation-duration: 48s; }

.ticker span { white-space: nowrap; }

.ticker span::before {
  content: "●";
  margin-right: 0.7rem;
  color: #0f6b43;
}

.hero {
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(232, 255, 87, 0.16), transparent 55%),
    linear-gradient(165deg, #1b4032 0%, var(--ink) 48%, #0e1c16 100%);
  color: #f6f1e7;
  padding: 42px 0 48px;
}

.hero-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: rgba(246, 241, 231, 0.78);
}

.crumb a { color: var(--lime); text-decoration: none; }

h1, h2, h3, article, section {
  scroll-margin-top: 150px;
}

h1, h2, h3 {
  font-family: "Newsreader", Georgia, serif;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  color: #fffaf3;
}

.lead {
  font-size: 1.18rem;
  color: rgba(246, 241, 231, 0.9);
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid rgba(246, 241, 231, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.92rem;
}

.ticket {
  position: relative;
  background: var(--sheet);
  color: var(--text);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.22);
}

.ticket img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ticket figcaption {
  margin: 10px 4px 4px;
  font-size: 0.95rem;
  color: var(--muted);
}

.band {
  padding: 28px 0;
}

.band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.band .intro {
  margin: 0 0 16px;
  max-width: 62ch;
}

.snap {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  max-width: 100%;
}

.snap article {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}

.snap .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 6px;
}

.snap h3 { margin: 0 0 8px; font-size: 1.45rem; }

.snap p { margin: 0; }

.scoreboard {
  background: var(--ink);
  color: #f6f1e7;
  padding: 28px 0 32px;
}

.scoreboard h2 { color: #fffaf3; }

.slider { position: relative; min-height: 210px; }

.slide { display: none; }

.slide.is-active { display: block; }

.slide h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--lime);
}

.slide p {
  margin: 0;
  max-width: 68ch;
  color: rgba(246, 241, 231, 0.92);
}

.slider-ui {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.slider-ui button,
.dot {
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 231, 0.35);
  background: transparent;
  color: #f6f1e7;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dot[aria-selected="true"] {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  padding: 34px 0 20px;
}

.rail { position: sticky; top: 132px; align-self: start; }

.toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 10px;
}

.toc a:hover { border-color: var(--green); color: var(--green); }

.story {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 10px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}

.story h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.story h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.45rem;
}

.story p,
.story li { text-wrap: pretty; }

.kicker {
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.story > p:first-of-type::first-letter {
  font-family: "Newsreader", Georgia, serif;
  float: left;
  font-size: 3.3rem;
  line-height: 0.8;
  padding: 6px 8px 0 0;
  color: var(--green);
  font-weight: 700;
}

.note {
  margin: 16px 0;
  padding: 12px 14px;
  background: #fff4dc;
  border-left: 4px solid var(--amber);
}

.addr {
  margin: 0;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 14px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.98rem;
  word-break: break-word;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  counter-reset: adim;
}

.steps li {
  counter-increment: adim;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 12px;
  margin: 0 0 12px;
  align-items: start;
}

.steps li::before {
  content: counter(adim);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  margin-top: 2px;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 18px;
  max-width: 100%;
  width: 100%;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 1rem;
}

.sheet th {
  text-align: left;
  background: var(--ink);
  color: #f6f1e7;
  padding: 10px 12px;
  font-weight: 700;
}

.sheet td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  background: #fffdf9;
}

.sheet tr:nth-child(even) td { background: #fbf6ee; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split ul { margin: 8px 0 16px; padding-left: 18px; }

.score {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0 12px;
}

.score strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 3.4rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.bar {
  flex: 1;
  height: 12px;
  background: #efe4d4;
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  width: 88%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--lime));
}

.event-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  background: #f4f8ef;
  border: 1px dashed #b7c9ad;
  border-radius: 16px;
  padding: 14px;
  margin: 8px 0 16px;
}

.event-card p { margin: 0 0 6px; }

.faq { display: flex; flex-direction: column; gap: 14px; }

.faq article {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq h3 { margin: 0 0 6px; font-size: 1.28rem; }

.faq p { margin: 0 0 8px; }

.site-foot {
  background: var(--ink);
  color: #f6f1e7;
  padding: 28px 0 110px;
  margin-top: 10px;
}

.site-foot a { color: var(--lime); }

.foot-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
}

.site-foot p { color: rgba(246, 241, 231, 0.86); }

.dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  display: flex;
  gap: 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.dock .btn { flex: 1; box-shadow: var(--shadow); }

.dock .btn-join {
  background: #fffaf3;
  color: var(--ink);
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes sheen {
  0%, 58% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

@media (max-width: 860px) {
  :root { --header-h: 168px; }
  h1, h2, h3, article, section { scroll-margin-top: 210px; }

  .head-top { flex-wrap: wrap; padding-top: 10px; }

  .cta-pair { width: 100%; }

  .cta-pair .btn { flex: 1; }

  .head-nav { flex-wrap: wrap; padding-bottom: 12px; }

  .langs { width: 100%; }

  .hero-actions { display: none; }

  .hero { padding-top: 28px; }

  .hero-grid,
  .split,
  .event-card,
  .foot-grid { grid-template-columns: minmax(0, 1fr); }

  .page {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  main, .story { min-width: 0; max-width: 100%; }

  .rail { position: static; }

  .toc {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .toc a {
    white-space: nowrap;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--sheet);
  }

  .story { padding: 20px 16px 8px; }

  .site-foot { padding-bottom: 120px; }
}

@media (max-width: 420px) {
  .cta-pair .btn,
  .dock .btn,
  .hero-actions .btn {
    font-size: 0.95rem;
    padding: 0 12px;
  }
}

@media (min-width: 861px) {
  .dock { display: none; }
  .site-foot { padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track,
  .btn-login::after { animation: none; }
}
