/* ============================================================================
   styles.css — everything derives from tokens.css. No raw hex below this line.

   The layout language is open and editorial: content sits directly on cream,
   sections are separated by hairlines and a steady rhythm, and each page gets
   at most ONE deep-green blob as its key moment. Black is for type only.
   ========================================================================== */

/* ---- reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* on green surfaces the green ring would vanish */
.blob :focus-visible, .footer :focus-visible { outline-color: var(--cream); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--black); color: var(--cream);
  padding: 0.75rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
  font-family: var(--font-mono); font-size: var(--step--1);
}
.skip:focus { left: 0; }

/* ---- layout: one steady rhythm, hairlines between sections ----------------- */
.wrap { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-6); }
.section + .section { border-top: 1px solid var(--line-on-cream); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: var(--space-3); }

/* ---- type ------------------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: lowercase;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.eyebrow, .meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}
.eyebrow { color: var(--accent); }
.meta { color: var(--black-soft); }
.lead { font-size: var(--step-1); line-height: 1.6; }
p { max-width: var(--measure); }

.accent { color: var(--accent); }
.link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.35em;
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.section-title {
  font-family: var(--font-display); font-weight: 600; text-transform: lowercase;
  font-size: clamp(1.8rem, 4vw, var(--step-3));
  line-height: 1.05;
  margin-bottom: var(--space-5);
}
.page-head { padding-block: var(--space-7) var(--space-6); }
.page-title {
  font-size: clamp(2.2rem, 7vw, var(--step-5));
  margin-top: var(--space-2); margin-bottom: var(--space-3);
}

/* ---- header / nav ---------------------------------------------------------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding-block: var(--space-3);
}
.brand {
  font-family: var(--font-display); font-weight: 600; text-transform: lowercase;
  font-size: var(--step-1); letter-spacing: -0.02em;
  display: inline-flex; align-items: center;
}
/* the logo IS the brand — logo-ink.png is transparent, so it sits on any paper */
.brand-logo { height: 72px; width: auto; display: block; }
@media (max-width: 720px) { .brand-logo { height: 56px; } }
.nav-links { display: flex; gap: var(--space-4); align-items: center; }
.nav-links a { font-size: var(--step-0); }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-toggle {
  display: none;
  font-family: var(--font-mono); font-size: var(--step--1);
  background: transparent; border: 2px solid var(--black-soft);
  border-radius: var(--r-sm); padding: 0.5rem 0.9rem; min-height: 44px;
  color: var(--black); cursor: pointer;
}

/* ---- buttons: friendly pills ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  background: var(--accent); color: var(--cream);
  padding: 0.95rem 1.8rem; border: 0; border-radius: 999px;
  min-height: 48px; cursor: pointer;
  transition: background 0.2s var(--ease-out);
}
.btn:hover { background: color-mix(in srgb, var(--black) 22%, var(--accent)); }

/* ---- hero: the lander owns the first screen -------------------------------- */
.hero {
  /* header is ~128px (72px logo + padding); the hero fills the rest of the fold */
  min-height: calc(100vh - 128px);
  min-height: calc(100svh - 128px);
  display: flex; flex-direction: column;
  padding-block: var(--space-4);
}
.hero-inner { margin-block: auto; padding-block: var(--space-5); }
.hero-title { font-size: clamp(3rem, 9vw, var(--step-7)); margin-block: var(--space-3); }
.hero-sub { margin-bottom: var(--space-5); }
.hero-cta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-2); flex-wrap: wrap;
  color: var(--black-soft);
}

/* ---- blob: the ONE ink moment per page — the logo's own shape and color ---- */
.blob {
  position: relative;
  background: var(--black); color: var(--cream);
  border-radius: var(--r-blob);
  padding: clamp(var(--space-4), 5vw, var(--space-6));
}
.blob--alt { border-radius: var(--r-blob-alt); }
.blob p { color: var(--cream); }
.blob .eyebrow, .blob .meta { color: var(--accent-tint); }
.blob .link { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.blob h2 a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.blob :is(h1, h2, h3) + p, .blob p + p { margin-top: var(--space-2); }

/* stepped lobe — a second rounded rect fused at the top-right, logo-style */
.blob--lobe::before {
  content: "";
  position: absolute; top: -44px; right: 12%;
  width: clamp(120px, 18%, 190px); height: 88px;
  background: var(--black);
  border-radius: 36px 36px 8px 8px;
  z-index: -1;
}

/* ---- art placeholder (no game art shipped; art is being redone) ----------- */
.art-ph {
  aspect-ratio: 4 / 3;
  background: var(--fill-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--accent-tint);
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.12em; text-align: center; padding: var(--space-3);
}
.art-ph--wide { aspect-ratio: 16 / 9; }

/* ---- pillars: three quiet ruled columns, no boxes -------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.pillar { border-top: 2px solid var(--black); padding-top: var(--space-3); }
.pillar-title { font-size: clamp(1.4rem, 2.6vw, var(--step-2)); margin-block: var(--space-2); }
.pillar p + p { margin-top: var(--space-2); }

/* ---- featured game band (lives inside the blob) ----------------------------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-3), 4vw, var(--space-6));
  align-items: center;
}
.featured-title { font-size: clamp(2rem, 5.5vw, var(--step-5)); }

/* ---- pledge strip ---------------------------------------------------------- */
.pledge {
  font-size: clamp(1.25rem, 3vw, var(--step-2));
  font-weight: 500; line-height: 1.5;
}
.pledge .num { color: var(--accent); font-weight: 700; }

/* ---- outline cards: secondary content and the openslot CTA ----------------- */
.card, .path {
  display: block;
  background: transparent;
  border: 1px solid var(--line-on-cream);
  border-radius: var(--r-md);
  padding: clamp(var(--space-4), 4vw, var(--space-5));
  max-width: 760px;
}
.card :is(h1, h2, h3) + p, .card p + p,
.path :is(h1, h2, h3) + p, .path p + p { margin-top: var(--space-2); }
.card .display, .path .display { font-size: clamp(1.5rem, 3.5vw, var(--step-2)); margin-block: var(--space-2); }

.path { transition: background 0.2s var(--ease-out); }
.path:hover { background: var(--cream-dim); }
.path-cta { color: var(--accent); font-weight: 600; }

/* ---- openslot ---------------------------------------------------------------- */
.network-note { margin-top: var(--space-5); color: var(--black-soft); max-width: var(--measure); }
.price {
  font-size: clamp(2rem, 5vw, var(--step-4));
  line-height: 1; margin-block: var(--space-2);
}
.price-per {
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.1em; color: var(--black-soft); margin-left: 0.35rem;
}


/* ---- forms ----------------------------------------------------------------- */
.form { max-width: 640px; }
.field { margin-bottom: var(--space-3); }
.field label {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.08em; color: var(--black-soft);
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-0);
  background: var(--cream); color: var(--black);
  border: 1.5px solid var(--black-soft); border-radius: var(--r-sm);
  padding: 0.85rem 1rem; min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--black);
}

/* ---- footer: one quiet ink bar — wordmark + copyright ---------------------- */
.footer { background: var(--black); color: var(--cream); margin-top: var(--space-7); }
.footer-legal {
  padding-block: var(--space-4);
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.06em; color: var(--accent-tint);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: space-between; align-items: baseline;
}
.footer-mark {
  font-family: var(--font-display); font-weight: 600; text-transform: lowercase;
  font-size: var(--step-1); color: var(--cream);
}

/* ---- motion: quiet and smooth ----------------------------------------------
   One orchestrated moment on load (hero), a gentle rise for each section as it
   scrolls into view (.reveal is added by main.js — no JS means no hiding), and
   a soft crossfade between pages. All of it sits behind prefers-reduced-motion.
   --------------------------------------------------------------------------- */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero .eyebrow { animation: fade-up 0.6s var(--ease-out) both; }
  .hero .hero-title { animation: fade-up 0.6s var(--ease-out) both; animation-delay: 0.05s; }
  .hero .hero-sub { animation: fade-up 0.6s var(--ease-out) both; animation-delay: 0.1s; }
  .hero .hero-cta { animation: fade-up 0.6s var(--ease-out) both; animation-delay: 0.15s; }
  .hero .hero-foot { animation: fade-up 0.6s var(--ease-out) both; animation-delay: 0.25s; }

  .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; gap: var(--space-4); }
  .featured { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: var(--space-2);
    background: var(--cream-dim); padding: var(--space-3) var(--gutter);
    border-bottom: 1px solid var(--line-on-cream);
    z-index: 10;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; }
  header .wrap { position: relative; }
  .blob--lobe::before { display: none; } /* keep small screens clean */
  .hero { min-height: calc(100svh - 104px); } /* smaller logo -> shorter header */
}
