/*
 * Hartii Biome — shared base.
 *
 * The previous page led with Bodoni Moda, a high-contrast classical serif. It is a beautiful face
 * and it was making a Web3 product hub read like a perfume advert: romantic where the content is
 * technical. Display type is now Space Grotesk — the same face the QuaiAxe site uses, already
 * self-hosted in this repo, so no new request and one consistent voice across the ecosystem.
 *
 * Palette stays black and red (no gold, per house rule) but is built as a proper token set:
 * layered near-blacks that carry a slight red bias so surfaces separate without borders
 * everywhere, and exactly one accent that is spent only on the thing you should click.
 */

:root {
  /* Ground: four steps, each a near-black warmed toward the accent so they read as one material. */
  --ink-950: #070505;
  --ink-900: #0B0708;
  --ink-850: #110C0E;
  --ink-800: #191113;
  --ink-700: #241a1c;

  --line: rgba(255, 190, 190, 0.10);
  --line-2: rgba(255, 190, 190, 0.20);

  /* One accent. Spent on the primary action and nothing else. */
  --red: #E5243B;
  --red-hi: #FF4E60;
  --red-dim: #8E1626;

  --fg: #F7F1F2;
  --fg-2: #BFAFB2;
  --fg-3: #8A7A7D;

  --ok: #4ADE80;
  --warn: #FFB020;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(18px, 5vw, 44px);
  --max: 1160px;
  --r: 14px;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-500.woff2') format('woff2');
  font-weight: 500; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-700.woff2') format('woff2');
  font-weight: 700; font-display: swap; font-style: normal;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Two soft light sources so a dark page has depth without decoration. Fixed and inert. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 50% at 85% -10%, rgba(229, 36, 59, 0.14) 0%, rgba(229, 36, 59, 0) 60%),
    radial-gradient(60% 45% at -5% 10%, rgba(142, 22, 38, 0.13) 0%, rgba(142, 22, 38, 0) 62%);
}
nav, main, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font: 500 11px/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red-hi); margin-bottom: 14px;
}
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

/* ---------- motion: considered, and it fails OPEN ---------- */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.2,0,.2,1), transform .6s cubic-bezier(.2,0,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 7, 8, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--pad);
  display: flex; align-items: center; gap: 16px;
}
.nav-logo {
  font: 700 15px/1 var(--display); letter-spacing: 0.16em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px; text-decoration: none; color: var(--fg-2);
  padding: 8px 11px; border-radius: 9px; transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.nav-chain {
  display: inline-flex; align-items: center; gap: 7px;
  font: 400 12px/1 var(--mono); color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px;
}
.nav-beat { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); transition: background .4s; }
.nav-beat.live { background: var(--ok); animation: beat 2.8s ease-out infinite; }
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---------- shared blocks ---------- */
.page-head { padding-block: clamp(40px, 7vw, 76px) clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
.lede { color: var(--fg-2); font-size: clamp(1rem, 1.7vw, 1.12rem); max-width: 56ch; margin-top: 16px; }
.section { padding-block: clamp(44px, 7vw, 88px); }

.btn {
  font: 500 14px/1 var(--body); padding: 13px 18px; border-radius: 11px;
  text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); color: var(--fg); background: transparent;
  transition: transform .16s cubic-bezier(.3,0,.2,1), border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--red-hi); }
.btn-primary {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 6px 20px -10px rgba(229,36,59,.9);
}
.btn-primary:hover { background: var(--red-hi); border-color: var(--red-hi); }

.footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); background: rgba(7,5,5,.5); }
.footer .wrap { padding-block: 30px 40px; }
.foot-note { font-size: 13px; color: var(--fg-3); line-height: 1.7; }
.foot-note + .foot-note { margin-top: 10px; }
.foot-note a { color: var(--fg-2); text-decoration: none; }
.foot-note a:hover { color: var(--fg); }

@media (max-width: 560px) {
  .nav-inner { gap: 10px; }
  .nav-links a { padding: 7px 8px; font-size: 12px; }
}


/* ---------------------------------------------------------------------------
   RESTORES the nav below 760px.

   wallet.css hides .nav-links under 760px and reveals a .nav-burger, because the page it was
   written for had a burger and a slide-out drawer. This nav is deliberately minimal and has
   neither, so that rule left phones with NO navigation at all - the links were present in the
   DOM at 0x0, which body{overflow-x:hidden} then hid completely rather than revealing as a
   layout bug. Five short links wrap onto one extra line perfectly well at 375px, so they stay.
   --------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .nav .nav-links { display: flex; }
  .nav .nav-burger { display: none; }
  .nav-inner { flex-wrap: wrap; row-gap: 8px; }
  .nav-links { margin-left: 0; width: 100%; justify-content: flex-start; }
  .nav-links a { padding: 7px 9px; font-size: 12.5px; }
  .biome-wallet-button { margin-left: auto; }
}
