/* THE UNMADE — landing page styles. Mirrors the game's dark/gold tokens. */

:root {
  --bg: #0a0a0c;
  --ink: #ece8df;
  --ink-dim: #8a857b;
  --line: #1a1a20;
  --line-2: #2a2a30;
  --gold: #c8a14a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Background decoration (matches game) ----------------------------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 2px);
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}

main#page {
  position: relative; z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 0 6rem;
}
.kicker {
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--ink-dim); margin: 0 0 1.25rem;
}
.title {
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 0.02em; font-weight: 600;
  margin: 0 0 0.25rem;
}
.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.4em; font-weight: 400;
  color: var(--ink-dim); margin: 0 0 2.5rem;
  text-transform: uppercase;
}
.lede {
  max-width: 32rem;
  font-size: 1.05rem; line-height: 1.7;
  color: var(--ink); margin: 0 auto 2.5rem;
  font-style: italic;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* --- 𝕏 link (hero) ----------------------------------------------------- */
.x-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 2.5rem;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: all 180ms ease;
}
.x-link:hover { border-color: var(--ink); color: var(--gold); }
.x-link .x-mark { font-size: 14px; opacity: 0.85; }
.x-link .x-handle { font-weight: 500; }

/* Compact square 𝕏 button (footer) */
.x-link-square {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line-2);
  color: var(--ink); text-decoration: none;
  transition: all 180ms ease;
}
.x-link-square:hover { border-color: var(--gold); color: var(--gold); }
.x-link-square .x-mark { font-size: 18px; opacity: 0.9; }

/* Larger variant for the footer */
.x-link-large {
  margin-top: 0; margin-bottom: 0.5rem;
  padding: 14px 24px;
  font-size: 13px; letter-spacing: 0.22em;
  border-color: var(--line-2);
}
.x-link-large .x-mark { font-size: 16px; }
.foot-nav { margin: 0.5rem 0 1.25rem; }

/* --- Buttons (mirror game) -------------------------------------------- */
.btn {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 14px 28px; font: inherit;
  letter-spacing: 0.25em; font-size: 12px;
  text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: all 180ms ease;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { border-color: var(--gold); color: var(--gold); }
.btn-primary:hover { background: rgba(200,161,74,0.06); }

/* --- Section bands ---------------------------------------------------- */
.band { padding: 5rem 0; border-top: 1px solid var(--line); }
.band-inner { max-width: 48rem; margin: 0 auto; }
.band h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500; letter-spacing: 0.01em;
  margin: 0 0 1.5rem;
}
.band p { margin: 0 0 1rem; color: var(--ink); }
.band em { color: var(--gold); font-style: normal; }

/* --- Mint grid -------------------------------------------------------- */
.mint-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem; margin: 1.5rem 0 2rem;
}
.mint-grid > div { display: flex; flex-direction: column; gap: 4px; }
.mint-grid .k {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-dim);
}
.mint-grid .v {
  font-size: 1.05rem; color: var(--ink);
}

/* --- Roadmap ---------------------------------------------------------- */
.phases { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; }
.phases li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; align-items: baseline; }
.phase-num {
  font-size: 2.2rem; line-height: 1; color: var(--gold);
  font-variant-numeric: tabular-nums; letter-spacing: 0.05em;
}
.phases h4 {
  margin: 0 0 0.25rem; font-size: 1.05rem; font-weight: 500;
  letter-spacing: 0.04em;
}
.phases p { margin: 0; }

/* --- Muted / small / foot -------------------------------------------- */
.muted { color: var(--ink-dim); }
.small { font-size: 0.85rem; }

/* Lore count line: the four-line beat at the end of the origin story */
.lore-count {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 1.05rem; line-height: 1.9;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.foot {
  padding: 4rem 0 5rem; border-top: 1px solid var(--line);
  text-align: center; display: grid; gap: 1.5rem; justify-items: center;
}
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot a:hover { color: var(--gold); border-color: var(--gold); }

/* Decorative rule with 13 mark */
.foot-rule {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; max-width: 18rem;
  color: var(--gold);
}
.foot-rule .rule-line {
  flex: 1; height: 1px; background: var(--line-2);
}
.foot-rule .rule-mark {
  font-size: 0.7rem; letter-spacing: 0.4em; font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.foot-tagline {
  font-style: italic; color: var(--ink-dim);
  font-size: 0.95rem; letter-spacing: 0.04em;
  max-width: 26rem; margin: 0;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 640px) {
  .hero { min-height: 80vh; padding: 3rem 0 4rem; }
  .band { padding: 3.5rem 0; }
  .phases li { grid-template-columns: 2.5rem 1fr; gap: 0.75rem; }
  .phase-num { font-size: 1.6rem; }
}
