:root {
  --paper: #e7d2ab;
  --paper-light: #f4e7ce;
  --ink: #22180f;
  --brown: #563a24;
  --brown-2: #825e3e;
  --line: rgba(34, 24, 15, 0.28);
  --white: #fffaf0;
  --shadow: 0 18px 50px rgba(59, 38, 20, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.35), transparent 28%),
    linear-gradient(180deg, #ead8b5 0%, #dfc392 100%);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 20;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(234, 216, 181, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper-light);
  border-radius: 50%;
  font-size: 19px;
}

.nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.nav a:not(.nav-buy) { border-bottom: 1px solid transparent; padding-bottom: 3px; }
.nav a:not(.nav-buy):hover { border-color: var(--ink); }
.nav-buy {
  padding: 13px 18px;
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: .2s ease;
}
.nav-buy:hover { background: transparent; color: var(--ink); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr);
  align-items: center;
  gap: clamp(30px, 5vw, 86px);
  padding: clamp(54px, 7vw, 110px) clamp(20px, 4vw, 64px);
}

.hero-copy { max-width: 670px; }
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brown-2);
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 5px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(66px, 9vw, 152px);
  line-height: .78;
  letter-spacing: -.045em;
  text-transform: uppercase;
  font-weight: 900;
}
h1 span { display: block; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.ticker {
  display: inline-block;
  margin: 22px 0 20px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  font-weight: 900;
  letter-spacing: .08em;
}
.hero-description { max-width: 540px; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.25; font-weight: 700; }

.ca-box {
  margin-top: 28px;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  background: rgba(255,250,240,.34);
  box-shadow: 8px 8px 0 rgba(34,24,15,.12);
}
.ca-meta { min-width: 0; flex: 1; padding: 14px 16px; }
.ca-meta span { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.ca-meta strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}
#copyCaButton {
  border: 0;
  border-left: 2px solid var(--ink);
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper-light);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}
#copyCaButton:hover { background: var(--brown); }

.hero-actions { display: flex; gap: 12px; margin-top: 26px; }
.primary-button, .secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  transition: .2s ease;
}
.primary-button { background: var(--ink); color: var(--paper-light); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 rgba(34,24,15,.18); }
.secondary-button:hover { background: rgba(255,250,240,.35); }

.hero-art-wrap { position: relative; width: 100%; }
.image-frame {
  padding: 16px;
  border: 2px solid var(--ink);
  background: rgba(255,250,240,.18);
  box-shadow: var(--shadow), 15px 15px 0 rgba(34,24,15,.12);
  transform: rotate(.7deg);
}
.image-frame img { width: 100%; display: block; filter: sepia(.06) contrast(1.02); }
.era-strip {
  width: calc(100% - 38px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 900;
}
.era-strip i { height: 1px; background: var(--ink); opacity: .5; }

.marquee { overflow: hidden; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--paper-light); }
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 15px 0;
  font-weight: 900;
  letter-spacing: .06em;
  animation: marquee 22s linear infinite;
}
.marquee-track span, .marquee-track b { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: clamp(72px, 9vw, 140px) clamp(20px, 4vw, 64px); }
.section-heading { max-width: 920px; margin-bottom: 48px; }
.section-heading h2, .manifesto h2, .join h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(46px, 7vw, 108px);
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
  font-weight: 900;
}

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 2px solid var(--ink);
  background: rgba(255,250,240,.26);
  transition: .22s ease;
}
.story-card:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: 9px 9px 0 rgba(34,24,15,.12); }
.story-card > span { font-family: 'Courier New', monospace; font-weight: 900; }
.story-card h3 { margin: 86px 0 14px; font-size: 24px; text-transform: uppercase; }
.story-card p { margin-bottom: 0; line-height: 1.45; font-weight: 600; }

.manifesto {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  align-items: center;
  background: rgba(34,24,15,.94);
  color: var(--paper-light);
}
.manifesto-number {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(58px, 8vw, 132px);
  line-height: .9;
}
.manifesto-copy > p:first-child { font-size: 12px; letter-spacing: .18em; font-weight: 900; }
.manifesto-small { max-width: 570px; margin-top: 22px; margin-bottom: 0; color: #d8c19a; font-size: 17px; line-height: 1.4; }

.chart-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.chart-heading > div { max-width: 900px; }
#dexExternalLink { padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 900; white-space: nowrap; }
.chart-shell { position: relative; min-height: 620px; border: 2px solid var(--ink); background: #15110d; box-shadow: 12px 12px 0 rgba(34,24,15,.14); overflow: hidden; }
#dexChart { width: 100%; height: 620px; border: 0; display: none; }
.chart-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 30px;
  text-align: center;
  color: var(--paper-light);
}
.chart-placeholder span { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-size: clamp(48px, 7vw, 100px); letter-spacing: .03em; }
.chart-placeholder p { max-width: 560px; margin: 0; color: #d4bea0; line-height: 1.5; }

.join { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; }
.join-links { border-top: 2px solid var(--ink); }
.join-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 900;
  transition: .2s ease;
}
.join-links a:hover { padding-left: 12px; padding-right: 12px; background: rgba(255,250,240,.2); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 4vw, 64px);
  border-top: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper-light);
  border: 1px solid var(--paper-light);
  font-size: 12px;
  font-weight: 900;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1024px) {
  .topbar { align-items: flex-start; }
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 15px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 820px; }
  .hero-art-wrap { max-width: 860px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 220px; }
  .story-card h3 { margin-top: 52px; }
  .manifesto, .join { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { position: relative; display: block; min-height: auto; }
  .brand { margin-bottom: 14px; }
  .nav { justify-content: flex-start; }
  .nav a:not(.nav-buy) { display: none; }
  .nav-buy { width: 100%; text-align: center; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(64px, 21vw, 110px); }
  h1 span { -webkit-text-stroke-width: 1.4px; }
  .ca-box { display: block; }
  #copyCaButton { width: 100%; min-height: 46px; border-left: 0; border-top: 2px solid var(--ink); }
  .hero-actions { flex-direction: column; }
  .primary-button, .secondary-button { width: 100%; }
  .image-frame { padding: 8px; box-shadow: 8px 8px 0 rgba(34,24,15,.12); }
  .era-strip { width: 96%; gap: 5px; }
  .chart-heading { align-items: flex-start; flex-direction: column; }
  .chart-shell, #dexChart { min-height: 520px; height: 520px; }
  footer { flex-direction: column; }
}
