:root {
  --paper: #f4ead8;
  --ink: #17130f;
  --muted: #665b4e;
  --green: #2f7d3a;
  --red: #b94738;
  --gold: #d9a441;
  --blue: #2d5b84;
  --line: #17130f;
  --shadow: 8px 8px 0 #17130f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 19, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 22px 22px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 3px solid var(--line);
  background: rgba(244, 234, 216, 0.94);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid var(--line);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border: 2px solid transparent;
  font-weight: 800;
}

.nav a:hover {
  border-color: var(--line);
  background: #fff7e9;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  align-items: center;
  gap: clamp(24px, 6vw, 76px);
  padding: clamp(34px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  width: fit-content;
  padding: 7px 10px;
  border: 2px solid var(--line);
  background: var(--gold);
  color: var(--ink);
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  font-weight: 950;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-line {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 5vw, 4rem);
  line-height: 0.95;
  font-weight: 950;
}

.hero-text {
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.ca-row button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 3px solid var(--line);
  background: #fff8ea;
  box-shadow: 4px 4px 0 var(--line);
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.button:hover,
.ca-row button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.button.primary {
  background: var(--green);
  color: #fffdf5;
}

.hero-art {
  justify-self: center;
  width: min(100%, 470px);
  transform: rotate(1.5deg);
}

.hero-art img {
  width: 100%;
  display: block;
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff8ea;
}

.ticker-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  background: var(--ink);
  color: #fff8ea;
}

.ticker-strip span {
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-right: 2px solid #fff8ea;
  font-weight: 950;
  text-align: center;
}

.ticker-strip span:last-child {
  border-right: 0;
}

.story,
.memes,
.token {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.story h2,
.memes h2,
.token h2 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-grid article {
  min-height: 220px;
  padding: 20px;
  border: 3px solid var(--line);
  background: #fff8ea;
  box-shadow: 5px 5px 0 var(--line);
}

.story-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 1rem;
  font-weight: 950;
}

.story-grid h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.story-grid p,
.token p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

.memes {
  background: var(--blue);
  color: #fff8ea;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.memes .section-kicker {
  background: var(--red);
  color: #fff8ea;
}

.lines {
  display: grid;
  gap: 12px;
}

.lines p {
  margin: 0;
  padding: 15px 18px;
  border: 3px solid var(--line);
  background: #fff8ea;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--line);
  font-size: clamp(1.05rem, 2.7vw, 1.8rem);
  line-height: 1.1;
  font-weight: 950;
}

.token {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.65fr);
  align-items: start;
  gap: 28px;
}

.ca-panel {
  border: 3px solid var(--line);
  background: #fff8ea;
  box-shadow: var(--shadow);
  padding: 18px;
}

.ca-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ca-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ca-row input {
  width: 100%;
  min-height: 50px;
  border: 3px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 850;
}

.copy-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-top: 3px solid var(--line);
  background: var(--ink);
  color: #fff8ea;
  font-weight: 950;
}

@media (max-width: 900px) {
  .hero,
  .token {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    width: min(100%, 430px);
    justify-self: start;
  }

  .story-grid,
  .ticker-strip {
    grid-template-columns: 1fr;
  }

  .ticker-strip span {
    border-right: 0;
    border-bottom: 2px solid #fff8ea;
  }

  .ticker-strip span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding: 7px 6px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.3rem);
    line-height: 0.9;
  }

  .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    width: 100%;
  }

  .ca-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
