:root {
  --ink: #102016;
  --paper: #fff6d9;
  --leaf: #61d83b;
  --deep-leaf: #0f5d2a;
  --pond: #91e4e0;
  --pink: #ff689d;
  --stroke: rgba(16, 32, 22, 0.2);
  --glass: rgba(255, 246, 217, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(205, 250, 242, 0.12), rgba(110, 218, 78, 0.22)),
    url("assets/background.png") center / cover fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(247, 255, 235, 0.1);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(16, 32, 22, 0.14);
  background: rgba(234, 255, 228, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.mark img {
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--leaf);
  object-fit: cover;
}

.nav-links,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 246, 217, 0.88);
  box-shadow: 0 5px 0 rgba(16, 32, 22, 0.16);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 850;
  padding: 0 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.button:hover {
  background: #ffffff;
  box-shadow: 0 2px 0 rgba(16, 32, 22, 0.2);
  transform: translateY(3px);
}

.button.primary {
  background: var(--pink);
}

.button.dark {
  background: var(--ink);
  color: #ffffff;
}

.hero {
  display: grid;
  min-height: calc(100svh - 74px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(46px, 8vw, 92px) 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 246, 217, 0.86);
  font-size: 0.88rem;
  font-weight: 900;
  padding: 8px 14px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 8.6em;
  margin-top: 20px;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.ticker {
  display: block;
  margin-top: 16px;
  color: var(--pink);
  font-size: clamp(2.2rem, 6vw, 5rem);
  text-shadow: 3px 3px 0 var(--ink);
}

.lede {
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
}

.actions {
  margin-top: 28px;
}

.mascot-wrap {
  position: relative;
  justify-self: center;
  width: min(430px, 100%);
  aspect-ratio: 1;
}

.mascot-wrap::before {
  position: absolute;
  inset: 10% 2% 4% 8%;
  border-radius: 46% 54% 50% 50%;
  background: rgba(97, 216, 59, 0.48);
  filter: blur(2px);
  content: "";
}

.mascot {
  position: relative;
  width: 100%;
  height: 100%;
  border: 4px solid var(--ink);
  border-radius: 7px;
  box-shadow: 18px 18px 0 rgba(16, 32, 22, 0.18);
  object-fit: cover;
  transform: rotate(1.5deg);
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: rgba(234, 255, 228, 0.42);
  backdrop-filter: blur(5px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 370px;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

.chart-panel {
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: rgba(255, 246, 217, 0.82);
  box-shadow: 12px 12px 0 rgba(16, 32, 22, 0.14);
  overflow: hidden;
}

.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid rgba(16, 32, 22, 0.18);
  padding: 18px;
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chart-tag {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--leaf);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 6px 12px;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, rgba(145, 228, 224, 0.42), rgba(255, 246, 217, 0.52));
}

.chart .grid {
  stroke: rgba(16, 32, 22, 0.13);
  stroke-width: 1;
}

.chart .signal {
  fill: none;
  stroke: var(--pink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 9;
  filter: drop-shadow(0 5px 0 rgba(16, 32, 22, 0.18));
}

.chart .base {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart .dot {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid rgba(16, 32, 22, 0.18);
}

.stat {
  padding: 18px;
}

.stat + .stat {
  border-left: 2px solid rgba(16, 32, 22, 0.18);
}

.stat span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.lore-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 34px 0;
}

.lore-strip p {
  max-width: 690px;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 850;
  line-height: 1.25;
}

.fine-print {
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.lore-page {
  min-height: calc(100svh - 74px);
  padding: clamp(42px, 8vw, 96px) 0 70px;
}

.lore-article {
  max-width: 860px;
}

.lore-article h1 {
  max-width: 9em;
  font-size: clamp(3.8rem, 10vw, 8rem);
}

.lore-article p {
  margin-top: 24px;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 760;
  line-height: 1.55;
}

.lore-beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.beat {
  min-height: 170px;
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: rgba(255, 246, 217, 0.82);
  box-shadow: 7px 7px 0 rgba(16, 32, 22, 0.13);
  padding: 18px;
}

.beat strong {
  display: block;
  font-size: 1.1rem;
}

.beat span {
  display: block;
  margin-top: 12px;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.45;
}

.footer {
  border-top: 1px solid rgba(16, 32, 22, 0.18);
  background: rgba(234, 255, 228, 0.7);
  padding: 24px 0;
}

.footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mascot-wrap {
    order: -1;
    width: min(320px, 88vw);
  }

  .section-heading,
  .lore-strip {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
  }

  .stats,
  .lore-beats {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-top: 2px solid rgba(16, 32, 22, 0.18);
    border-left: 0;
  }

  .button,
  .nav-links a {
    padding: 0 15px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 1120px);
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5.3rem);
  }

  .actions .button {
    width: 100%;
  }
}
