:root {
  --paper: #d9c39a;
  --paper-light: #ead9b6;
  --ink: #171815;
  --muted: #6c654f;
  --lime: #d7fb53;
  --lime-dark: #405000;
  --line: rgb(23 24 21 / 28%);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Libre Franklin", "Arial Narrow", sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
  --page-x: clamp(22px, 5vw, 88px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.grain {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  min-height: 82px;
  padding: 0 var(--page-x);
  border-bottom: 1px solid var(--line);
  background: rgb(217 195 154 / 90%);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  filter: contrast(1.1);
}

.brand em {
  font: 500 8px var(--mono);
  font-style: normal;
  letter-spacing: 0.05em;
}

.primary-nav {
  display: flex;
  gap: clamp(18px, 2vw, 31px);
  margin-left: auto;
}

.primary-nav a,
.text-link {
  position: relative;
  color: var(--ink);
  font: 500 11px var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.text-link:hover {
  color: var(--lime-dark);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-buy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper-light);
  font: 500 11px var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.header-buy img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.header-buy:hover,
.action-primary:hover {
  background: #3e471d;
}

.header-buy:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
}

.section-rule {
  position: relative;
  padding: clamp(74px, 9vw, 136px) clamp(24px, 10vw, 192px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  font: 500 10px var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stamp {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 9px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: clamp(48px, 6vw, 120px);
  min-height: calc(100svh - 82px);
}

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

.hero h1 {
  margin: 34px 0 30px;
  font-size: clamp(54px, 7.3vw, 124px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.09em;
}

.hero h1 span {
  display: block;
  font-family: var(--serif);
  font-size: 1.04em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.1em;
}

.lede {
  max-width: 540px;
  margin: 0 0 39px;
  font: 700 clamp(17px, 1.5vw, 23px) / 1.25 var(--sans);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 8px;
  max-width: 550px;
}

.action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 11px var(--mono);
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.action img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.action:hover {
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.action-primary {
  background: var(--ink);
  color: var(--paper-light);
}

.x-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.copy-state {
  font-size: 9px;
  letter-spacing: 0;
}

.contract-line {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 550px;
  margin: 20px 0 0;
  font: 10px var(--mono);
}

.contract-line span {
  padding: 4px 6px;
  background: var(--ink);
  color: var(--paper-light);
}

.contract-line code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-art {
  position: relative;
  width: min(125%, 760px);
  justify-self: end;
  margin-right: -8%;
  transform: rotate(2deg);
}

.hero-image {
  display: block;
  width: 100%;
  filter: sepia(0.18) contrast(1.12);
  mix-blend-mode: multiply;
  animation: note-float 5s ease-in-out infinite alternate;
}

.art-note,
.art-caption {
  position: absolute;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
}

.art-note {
  top: -27px;
  right: 3px;
}

.art-note span {
  margin: 0 8px;
  color: var(--lime-dark);
}

.art-caption {
  bottom: -2%;
  left: -8%;
  padding: 5px 10px;
  background: var(--paper-light);
  font: italic 600 clamp(21px, 2.6vw, 38px) / 0.9 var(--serif);
  transform: rotate(-8deg);
}

.roadmap {
  display: grid;
  grid-template-columns: minmax(290px, 38%) 1fr;
  gap: 7vw;
  background: var(--ink);
  color: var(--paper-light);
}

.roadmap .eyebrow {
  color: var(--lime);
}

.roadmap .stamp {
  border-color: var(--lime);
}

h2 {
  margin: 35px 0 0;
  font-size: clamp(48px, 6vw, 91px);
  line-height: 0.82;
  letter-spacing: -0.09em;
}

.roadmap h2 i,
.terminal h2 i {
  font: italic 700 1em var(--serif);
  letter-spacing: -0.1em;
}

.roadmap-lede {
  max-width: 500px;
  margin: 0 0 47px;
  font: 600 21px / 1.2 var(--sans);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr 35px;
  align-items: start;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgb(234 217 182 / 30%);
}

.timeline li:last-child {
  border-bottom: 1px solid rgb(234 217 182 / 30%);
}

.phase {
  padding-top: 5px;
  color: var(--lime);
  font: 10px var(--mono);
}

.timeline h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.timeline p {
  max-width: 480px;
  margin: 0;
  color: #c8bea1;
  font: 14px / 1.5 var(--sans);
}

.timeline b {
  color: var(--lime);
  font: 16px var(--serif);
  text-align: right;
}

.terminal {
  background: var(--paper-light);
}

.terminal-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px 30px;
}

.terminal-head .eyebrow {
  grid-column: 1 / -1;
}

.terminal-head h2 {
  margin-top: 2px;
}

.text-link {
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}

.embed-frame {
  position: relative;
  min-height: 582px;
  margin-top: 50px;
  padding-top: 42px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 9px 9px 0 rgb(23 24 21 / 18%);
}

.embed-label {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: #0f100f;
  color: var(--lime);
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
}

.embed-fallback {
  position: absolute;
  inset: 42px 0 0;
  display: none;
  padding: 48px;
  place-content: center;
  color: var(--paper-light);
  font: 14px var(--mono);
  text-align: center;
}

.embed-fallback strong {
  font: 800 clamp(34px, 5vw, 68px) / 0.9 var(--sans);
  letter-spacing: -0.06em;
}

.embed-fallback span {
  max-width: 540px;
  margin: 0 auto;
  color: #c8bea1;
  line-height: 1.55;
}

.embed-fallback a {
  color: var(--lime);
}

.embed-frame.is-unconfigured iframe {
  display: none;
}

.embed-frame.is-unconfigured .embed-fallback {
  display: grid;
  gap: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px var(--page-x);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes note-float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .section-rule {
    padding-right: clamp(28px, 7vw, 80px);
    padding-left: clamp(28px, 7vw, 80px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(48px, 6vw, 72px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
    max-width: 470px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    min-height: 70px;
    gap: 13px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .primary-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px var(--page-x) 20px;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 0 12px 30px rgb(23 24 21 / 12%);
  }

  .primary-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header-buy {
    padding: 8px 12px;
  }

  .header-buy img {
    width: 19px;
    height: 19px;
  }

  .section-rule {
    padding: 76px 7vw;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 76px;
  }

  .hero h1 {
    margin-top: 27px;
    font-size: clamp(50px, 14vw, 90px);
  }

  .hero-art {
    width: 100%;
    margin-right: 0;
    margin-left: auto;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .art-caption {
    left: -7%;
  }

  .roadmap {
    display: block;
  }

  .roadmap-content {
    margin-top: 58px;
  }

  .roadmap-lede {
    font-size: 18px;
  }

  .timeline li {
    grid-template-columns: 70px 1fr 25px;
    gap: 10px;
  }

  .terminal-head {
    display: block;
  }

  .terminal-head h2 {
    margin-bottom: 24px;
  }

  .text-link {
    display: inline-block;
    margin-top: 25px;
  }

  .embed-frame {
    min-height: 482px;
    height: 482px;
  }

  .embed-frame iframe {
    min-height: 440px;
    height: 440px;
  }

  .embed-fallback {
    padding: 30px;
  }

  .site-footer {
    flex-direction: column;
    gap: 9px;
    padding: 23px 7vw;
    font-size: 8px;
  }
}

@media (max-width: 440px) {
  .brand span {
    display: none;
  }

  .header-buy span {
    display: none;
  }

  .hero h1 {
    font-size: clamp(40px, 12.8vw, 54px);
  }

  .timeline li {
    grid-template-columns: 1fr 24px;
  }

  .timeline .phase {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
