@font-face {
  font-family: "Bowlby One";
  src: url("fonts/bowlby-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gabarito";
  src: url("fonts/gabarito-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --blue: #2340f0;
  --ink: #0a0f2c;
  --gold: #ffc527;
  --gold-deep: #d98a00;
  --gold-light: #ffe08a;
  --paper: #fff6dc;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --body: "Gabarito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a { color: inherit; }

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

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1;
  text-decoration: none;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.top nav a {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

/* Hero */
.wordmark {
  margin: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(1.75rem, 4vw, 3.25rem);
  line-height: 0;
}
.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.wm-letter { fill: var(--paper); }
.coin-rim { fill: var(--gold-deep); }
.coin-face { fill: var(--gold); }
.coin-ring { fill: none; stroke: var(--gold-deep); }
.coin-shine { fill: none; stroke: var(--gold-light); stroke-linecap: round; }
.eye-white { fill: var(--paper); }
.pupil-dot { fill: var(--ink); }
.pupil-glint { fill: var(--paper); }

.eye-flip,
.eye-lid {
  transform-box: fill-box;
  transform-origin: center;
}
.pupil { transition: transform 0.14s ease-out; }

@media (prefers-reduced-motion: no-preference) {
  .eye-flip { animation: coin-in 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.25) both; }
  .eye-b .eye-flip { animation-delay: 0.14s; }
  .eye-lid.is-blinking { animation: blink 0.28s ease-in-out; }
}
@media (prefers-reduced-motion: reduce) {
  .pupil { transition: none; }
}
@keyframes coin-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes blink {
  50% { transform: scaleY(0.06); }
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.lede {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(1.625rem, 1rem + 2.3vw, 2.625rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Contract address */
.ca {
  background: var(--ink);
  border-radius: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.ca-label {
  margin: 0 0 0.5rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold);
}
.ca-value {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(0.875rem, 0.72rem + 0.55vw, 1.0625rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
  user-select: all;
}
.ca[data-live="false"] .ca-value {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.1;
  user-select: auto;
}
.ca-note,
.ca-paired {
  margin: 0.75rem 0 0;
  max-width: 44ch;
  font-size: 1rem;
  color: #d9d6cc;
}
.ca-paired {
  color: var(--paper);
  font-weight: 600;
}
.ca-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-paper { background: var(--paper); color: var(--ink); min-width: 9.5rem; }
.btn-paper:hover { background: #fff; }
.ca-chart {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

/* How to buy */
.buy { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.buy h2,
.straight h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.02;
}
.buy h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.25rem, 2.5vw, 2.5rem);
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--paper);
  padding-top: 1rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
}
.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.steps p { margin: 0; }

/* What you're buying */
.straight {
  background: var(--gold);
  color: var(--ink);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.straight-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.straight-copy p {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
}
.straight-copy p + p { margin-top: 1em; }

/* Footer */
.foot {
  background: var(--ink);
  padding-block: 2rem;
  font-size: 1rem;
  color: #d9d6cc;
}
.foot p { margin: 0; max-width: 70ch; }

@media (max-width: 860px) {
  .hero-row,
  .straight-grid { grid-template-columns: minmax(0, 1fr); }
  .lede { max-width: 24ch; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ca { border-radius: 1.5rem; }
  .ca-actions .btn { flex: 1 1 100%; }
}
