@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --paper: #f1e8d7;
  --paper-deep: #ded0b8;
  --ink: #181714;
  --muted: #6b665d;
  --orange: #e65b2f;
  --yellow: #f0bf38;
  --green: #305f4c;
  --line: rgba(24, 23, 20, .22);
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(241, 232, 215, .92);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 700; letter-spacing: -.04em; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--paper); background: var(--ink); border-radius: 3px; font-size: 16px; }
.site-header nav { display: flex; gap: 22px; font-family: "DM Mono", monospace; font-size: 12px; text-transform: uppercase; }
.site-header nav a { padding: 12px 0; }
.site-header nav a:hover { color: var(--orange); }
.status-pill { justify-self: end; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 12px; font: 500 10px "DM Mono", monospace; text-transform: uppercase; }
.status-pill i { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; animation: pulse 1.7s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 7vw, 92px); padding-block: 72px; }
.eyebrow { margin: 0 0 22px; font: 500 11px "DM Mono", monospace; letter-spacing: .08em; color: var(--muted); }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.075em; line-height: .88; }
h1 { font-size: clamp(64px, 8.5vw, 128px); }
h1 span { color: var(--orange); }
h2 { font-size: clamp(52px, 7vw, 96px); }
.hero-lede { max-width: 590px; margin: 32px 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: #48443e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 48px; min-height: 54px; padding: 0 20px; border: 1px solid var(--ink); font: 500 12px "DM Mono", monospace; text-transform: uppercase; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-3px); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--orange); border-color: var(--orange); }
.button.secondary:hover { background: var(--paper-deep); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 560px; margin: 52px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-facts div { padding-right: 15px; }
.hero-facts dt { font: 10px "DM Mono", monospace; color: var(--muted); }
.hero-facts dd { margin: 7px 0 0; font-size: 13px; font-weight: 600; }

.hero-visual { position: relative; width: min(100%, 510px); justify-self: end; padding: 22px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); transform: rotate(1.4deg); }
.art-frame { overflow: hidden; border: 2px solid var(--ink); background: #cbd0c7; }
.art-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.timecard { position: absolute; z-index: 3; display: flex; justify-content: space-between; min-width: 205px; padding: 9px 12px; background: var(--paper); border: 2px solid var(--ink); font: 10px "DM Mono", monospace; box-shadow: 4px 4px 0 var(--ink); }
.timecard.top { top: -22px; right: 28px; }
.timecard.bottom { bottom: -20px; left: 22px; }
.stamp { position: absolute; right: -34px; bottom: 64px; display: grid; place-items: center; width: 108px; height: 108px; border: 4px double var(--orange); border-radius: 50%; color: var(--orange); font: 700 18px/1 "DM Mono", monospace; text-align: center; transform: rotate(-13deg); background: rgba(241, 232, 215, .88); }

.ticker { width: 100%; max-width: 100vw; overflow: clip; contain: layout paint; border-block: 1px solid var(--ink); background: var(--orange); color: var(--paper); padding: 15px 0; white-space: nowrap; }
.ticker div { width: max-content; font: 500 13px "DM Mono", monospace; animation: marquee 26s linear infinite; }
.ticker span { margin: 0 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.split-section { display: grid; grid-template-columns: 1fr .8fr; gap: 11vw; padding-block: 150px; }
.section-copy { align-self: end; border-top: 1px solid var(--line); padding-top: 25px; }
.section-copy p { margin: 0 0 18px; font-size: 18px; line-height: 1.65; color: #48443e; }

.meme-maker-section { padding-block: 130px; background: #d9ed42; border-block: 1px solid var(--ink); }
.meme-maker-section .section-note { color: #45491f; }
.maker-heading { margin-bottom: 52px; }
.meme-maker-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.meme-preview-wrap { position: relative; padding: 18px; background: var(--ink); box-shadow: 10px 10px 0 var(--orange); }
.meme-preview-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--paper-deep); border: 1px solid rgba(255,255,255,.28); }
.local-badge { position: absolute; z-index: 2; top: 29px; left: 29px; padding: 7px 9px; color: var(--paper); background: rgba(24,23,20,.86); font: 500 9px "DM Mono", monospace; letter-spacing: .06em; }
.maker-status { margin: 13px 0 0; color: #b9b4aa; font: 10px "DM Mono", monospace; }
.meme-controls { display: grid; gap: 10px; padding: clamp(22px, 4vw, 38px); background: var(--paper); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.meme-controls label { display: flex; justify-content: space-between; margin-top: 6px; font: 500 10px "DM Mono", monospace; letter-spacing: .06em; }
.meme-controls label small { color: var(--muted); font: inherit; }
.meme-controls input { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 0; outline: 0; background: #fffaf0; color: var(--ink); font: 600 15px "Space Grotesk", sans-serif; text-transform: uppercase; }
.meme-controls input:focus { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.meme-controls fieldset { margin: 16px 0 8px; padding: 0; border: 0; }
.meme-controls legend { margin-bottom: 10px; font: 500 10px "DM Mono", monospace; letter-spacing: .06em; }
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.preset-grid button { min-height: 42px; padding: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 500 9px "DM Mono", monospace; }
.preset-grid button:hover, .preset-grid button:focus-visible { color: var(--paper); background: var(--orange); border-color: var(--orange); }
.maker-actions { display: grid; grid-template-columns: 1.35fr .65fr; gap: 8px; margin-top: 8px; }
.maker-actions .button { width: 100%; cursor: pointer; gap: 16px; }
.maker-note { margin: 4px 0 0; color: var(--muted); font: 10px/1.5 "DM Mono", monospace; }

.traits-section { padding-block: 130px; background: var(--ink); color: var(--paper); }
.traits-section .eyebrow { color: #aaa398; }
.section-heading-row { display: grid; grid-template-columns: 1fr 360px; align-items: end; gap: 60px; margin-bottom: 70px; }
.section-note { margin: 0; color: #aaa398; font-size: 17px; line-height: 1.6; }
.trait-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(241,232,215,.22); border-left: 1px solid rgba(241,232,215,.22); }
.trait-grid article { min-height: 210px; padding: 24px; border-right: 1px solid rgba(241,232,215,.22); border-bottom: 1px solid rgba(241,232,215,.22); transition: background .2s, color .2s; }
.trait-grid article:hover { background: var(--yellow); color: var(--ink); }
.trait-grid span { display: block; margin-bottom: 50px; font: 10px "DM Mono", monospace; color: #8f887d; }
.trait-grid b { font-size: 19px; letter-spacing: -.03em; }
.trait-grid p { margin: 12px 0 0; color: #aaa398; font-size: 14px; line-height: 1.5; }
.trait-grid article:hover p, .trait-grid article:hover span { color: #5b4c26; }

.gallery-section { padding-block: 130px; background: var(--paper-deep); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-card { position: relative; margin: 0; padding: 12px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.gallery-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.gallery-card figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font: 500 10px "DM Mono", monospace; text-transform: uppercase; }
.gallery-card figcaption span:last-child { color: var(--muted); }
.media-kit-link { margin-top: 34px; }

.launch-section { padding-block: 140px; }
.token-terminal { margin-top: 42px; padding: clamp(22px, 4vw, 42px); color: var(--paper); background: var(--ink); border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); }
.terminal-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(241,232,215,.25); font: 500 10px "DM Mono", monospace; letter-spacing: .06em; }
.terminal-head b { display: inline-flex; align-items: center; gap: 8px; color: #c7c0b5; font: inherit; }
.terminal-head b i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.token-terminal.is-live .terminal-head b { color: #d9ed42; }
.token-terminal.is-live .terminal-head b i { background: #d9ed42; box-shadow: 0 0 0 5px rgba(217,237,66,.12); }
.token-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-left: 1px solid rgba(241,232,215,.2); }
.token-facts div { min-width: 0; padding: 22px; border-right: 1px solid rgba(241,232,215,.2); border-bottom: 1px solid rgba(241,232,215,.2); }
.token-facts .contract-fact { grid-column: span 3; }
.token-facts dt { margin-bottom: 9px; color: #979087; font: 9px "DM Mono", monospace; }
.token-facts dd { margin: 0; overflow-wrap: anywhere; font: 600 15px "Space Grotesk", sans-serif; }
.token-facts .contract-fact dd { font-family: "DM Mono", monospace; font-size: 12px; }
.terminal-actions { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 10px; margin-top: 24px; }
.terminal-actions .button { width: 100%; cursor: pointer; }
.button:disabled, .button.is-disabled { pointer-events: none; cursor: not-allowed; opacity: .38; }
.terminal-note { margin: 18px 0 0; color: #979087; font: 10px/1.6 "DM Mono", monospace; }
.footer-socials { display: flex; gap: 18px; font: 500 10px "DM Mono", monospace; }
.footer-socials a:hover { color: var(--orange); }

.launch-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; padding: clamp(28px, 5vw, 70px); background: var(--paper-deep); border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--orange); }
.launch-card > div > p:last-child { max-width: 440px; margin-top: 30px; font-size: 17px; line-height: 1.6; color: #514c43; }
.production-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.production-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.production-list li > span, .production-list i { font: 10px "DM Mono", monospace; font-style: normal; color: var(--muted); }
.production-list div { display: grid; gap: 4px; }
.production-list b { font-size: 13px; }
.production-list small { color: var(--muted); }
.production-list .done i { color: var(--green); }
.production-list .active i { color: var(--orange); }

.manifesto { padding-block: 130px; color: var(--paper); background: var(--green); }
.manifesto p { font: 12px "DM Mono", monospace; letter-spacing: .08em; }
.manifesto h2 { margin-top: 20px; font-size: clamp(58px, 10vw, 150px); }
.site-footer { display: grid; grid-template-columns: 1fr auto auto auto; gap: 34px; align-items: center; min-height: 130px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: var(--muted); font: 11px "DM Mono", monospace; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 720px); }
  .site-header { grid-template-columns: 1fr auto; padding-inline: 16px; min-height: 64px; }
  .site-header nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 70px 100px; }
  .hero-visual { justify-self: center; margin-top: 40px; width: min(92%, 510px); }
  .split-section, .launch-card { grid-template-columns: 1fr; }
  .meme-maker-grid { grid-template-columns: 1fr; }
  .meme-preview-wrap { max-width: 620px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading-row { grid-template-columns: 1fr; }
  .section-note { max-width: 520px; }
  .trait-grid { grid-template-columns: repeat(2, 1fr); }

  .site-footer { grid-template-columns: 1fr; gap: 12px; padding-block: 35px; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(57px, 19vw, 82px); }
  h2 { font-size: clamp(48px, 15vw, 72px); }
  .status-pill { padding: 7px 8px; font-size: 8px; }
  .hero-lede { font-size: 17px; }
  .hero-facts { gap: 8px; }
  .hero-facts dd { font-size: 11px; }
  .button { width: 100%; }
  .timecard.top { right: 10px; }
  .stamp { right: -14px; width: 90px; height: 90px; font-size: 14px; }
  .split-section, .meme-maker-section, .traits-section, .launch-section, .manifesto { padding-block: 90px; }
  .meme-controls { padding: 20px; }
  .preset-grid, .maker-actions { grid-template-columns: 1fr; }
  .gallery-grid, .terminal-actions { grid-template-columns: 1fr; }
  .token-facts { grid-template-columns: repeat(2, 1fr); }
  .token-facts .contract-fact { grid-column: span 2; }
  .trait-grid { grid-template-columns: 1fr; }
  .trait-grid article { min-height: 180px; }
  .launch-card { padding: 24px; box-shadow: 6px 6px 0 var(--orange); }
  .production-list li { grid-template-columns: 28px 1fr; }
  .production-list i { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
