:root {
  --ink: #1e1a09;
  --acid: #d3fb05;
  --line: rgba(30, 26, 9, 0.55);
  --hair: rgba(30, 26, 9, 0.28);
  --muted: rgba(30, 26, 9, 0.7);
  --gutter: clamp(16px, 3vw, 46px);
}

* { box-sizing: border-box; }

html { background: var(--acid); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--acid);
  font-family: "Space Grotesk", Arial, sans-serif;
  background-image: repeating-linear-gradient(118deg, transparent 0 98px, rgba(30, 26, 9, 0.035) 99px 101px);
}

a { color: inherit; }

/* One screen: the shell owns the viewport height and the three rows divide it
   up. Short screens drop out of this in the media query below. */
.shell {
  height: 100dvh;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-inline: var(--gutter);
  max-width: 1180px;
  margin-inline: auto;
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  height: clamp(56px, 8vh, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
}

/* The mark is the paw itself: ink on the acid page, matching the logo.
   Named .brand-logo, not .brand-mark, so a cached copy of an old stylesheet
   (which gave .brand-mark a solid ink background) cannot paint a square
   behind it. */
.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
  background: none;
}

.network {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.network span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(30, 26, 9, 0.12);
}

/* -------------------------------------------------------------------- main */

main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 4vh, 48px);
  padding: clamp(20px, 4vh, 48px) 0;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vh, 32px);
}

.eyebrow,
.label,
.stat p,
.updated,
footer {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  /* Bound by height as well as width so it cannot push the page past one
     screen on short, wide windows. */
  font-size: min(12vw, 19vh);
  line-height: 0.74;
  letter-spacing: -0.085em;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.button,
.copy-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 600 13px "Space Grotesk", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.copy-button:hover { transform: translateY(-2px); }

.button-primary,
.copy-button { color: var(--acid); background: var(--ink); }
.button-secondary { color: var(--ink); background: transparent; }
.button-secondary:hover { color: var(--acid); background: var(--ink); }

.button:focus-visible,
.copy-button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* ------------------------------------------------------------------- stats */

.market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 40px);
  padding: clamp(16px, 3vh, 30px) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stat { min-width: 0; }

.stat p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.stat strong {
  display: block;
  overflow: hidden;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Zero-count subscript in sub-cent prices, e.g. $0.0(5)576 */
.stat strong sub {
  font-size: 0.5em;
  line-height: 1;
  vertical-align: -0.12em;
  letter-spacing: 0;
  margin: 0 0.02em;
}

/* ---------------------------------------------------------------- contract */

.contract {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.contract-text { min-width: 0; }

.label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.contract-full,
.contract-short {
  margin: 0;
  font: 500 clamp(12px, 1.5vw, 18px) "DM Mono", monospace;
  overflow-wrap: anywhere;
}

.contract-short { display: none; }
.copy-button { flex: 0 0 auto; min-height: 38px; padding: 0 14px; }

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ footer */

footer {
  display: flex;
  align-items: center;
  gap: 12px clamp(16px, 2.5vw, 34px);
  flex-wrap: wrap;
  padding: clamp(10px, 1.8vh, 18px) 0;
  border-top: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.06em;
}

footer p { margin: 0; }

.footer-links {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.disclaimer {
  margin-left: auto;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ------------------------------------------------- narrow / short screens */

@media (max-height: 520px) {
  .shell { height: auto; min-height: 100dvh; }
}

@media (max-width: 560px) {
  .network { font-size: 9px; }
  .network span { display: none; }

  h1 { font-size: clamp(58px, 17vw, 120px); }

  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .button { width: 100%; min-height: 42px; }

  .market { gap: 10px; }
  .stat p { margin-bottom: 7px; }
  .stat strong { font-size: clamp(17px, 5.2vw, 26px); }

  .contract-full { display: none; }
  .contract-short { display: block; font-size: 13px; }

  footer { gap: 8px 18px; padding: 12px 0; }
  .disclaimer { margin-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
