/* ============================================================
   FungAlchemy — shared atmospheric design system
   Spectral (serif display) · Jost (sans) · Courier Prime (mono data)
   ============================================================ */

:root {
  --cream:      #FAFAF8;
  --paper:      #F4F2EC;
  --ink:        #2A2A28;
  --ink-soft:   #6E6B64;
  --ink-faint:  rgba(42,42,40,0.30);
  --gold:       #A98A2C;     /* muted gold — text */
  --gold-bright:#C8A53D;     /* accent dot / highlight */
  --near-black: #0D0D0D;
  --pass:       #6E8A5E;

  /* path / species accents (warm path — locked 2026) */
  --founder: #C79A1E;   /* Lion's Mane — golden */
  --athlete: #E0830F;   /* Cordyceps — amber   */
  --seeker:  #9A3A14;   /* Chaga — burnt sienna */
  --sleeper: #C26A45;   /* Reishi — terracotta  */

  --line:      rgba(42,42,40,0.13);
  --line-soft: rgba(42,42,40,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ===================== atmosphere ===================== */
.atmos { position: fixed; inset: 0; z-index: -3; overflow: hidden;
  background:
    radial-gradient(110% 60% at 50% -8%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(120% 70% at 50% -4%, rgba(212,175,55,0.10), transparent 55%),
    linear-gradient(180deg, #FCFBF9 0%, #F6F4EE 52%, #EFEDE5 100%);
}
.vessel { position: fixed; z-index: -2; filter: blur(7px); pointer-events: none; }
.vessel .body { width: 100%; height: 100%; border-radius: 44% 44% 38% 38% / 16% 16% 10% 10%;
  border: 1px solid rgba(255,255,255,0.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 34%, rgba(201,165,61,0.10) 76%, rgba(169,138,44,0.16) 100%),
    linear-gradient(104deg, rgba(255,255,255,0) 32%, rgba(255,255,255,0.55) 49%, rgba(255,255,255,0) 60%); }
.vessel.v1 { width: 240px; height: 520px; left: -96px; top: 34vh; opacity: 0.5; }
.vessel.v2 { width: 300px; height: 600px; right: -150px; top: -90px; opacity: 0.45; }
.vessel.v2 .body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(180,95,61,0.07) 82%, rgba(180,95,61,0.12) 100%),
    linear-gradient(256deg, rgba(255,255,255,0) 32%, rgba(255,255,255,0.5) 49%, rgba(255,255,255,0) 60%); }
.haze { position: fixed; left: 0; right: 0; bottom: 0; height: 42vh; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 100% at 30% 120%, rgba(110,123,108,0.16), transparent 62%); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ===================== shell ===================== */
.shell { max-width: 600px; margin: 0 auto; padding: 0 30px; }
.shell.wide { max-width: 760px; }

/* ===================== preview banner ===================== */
.preview-banner {
  position: relative; z-index: 6; text-align: center;
  background: var(--near-black); color: var(--cream);
  font-family: 'Courier Prime', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 16px; }
.preview-banner a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.preview-banner a:hover { border-color: var(--gold-bright); }

/* ===================== top nav ===================== */
.topbar { position: relative; z-index: 5; }
.topbar .bar { max-width: 760px; margin: 0 auto; padding: 24px 30px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(200,165,61,0.16); flex: none; }
.brand .wordmark { font-weight: 400; font-size: 12px; letter-spacing: 0.46em; text-transform: uppercase; color: var(--ink); padding-left: 0.46em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-family: 'Courier Prime', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); text-decoration: none; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.6; }

@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; right: 30px; left: 30px; margin-top: 12px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: 0 24px 60px -40px rgba(42,42,40,0.5);
    max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease, padding .3s ease; padding: 0 22px; }
  .nav-links.open { max-height: 320px; opacity: 1; padding: 10px 22px; }
  .nav-links a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line-soft); letter-spacing: 0.14em; }
  .nav-links a:last-child { border-bottom: none; }
}

/* ===================== back link ===================== */
.back { font-family: 'Courier Prime', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); text-decoration: none; transition: color .2s ease; }
.back:hover { color: var(--gold); }

/* ===================== shared type atoms ===================== */
.eyebrow { font-family: 'Courier Prime', monospace; font-size: 10.5px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold); }
.kicker  { font-family: 'Courier Prime', monospace; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.serif   { font-family: 'Spectral', Georgia, serif; font-weight: 300; }
.it { font-style: italic; }

/* ===================== buttons ===================== */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Jost', sans-serif; font-size: 14.5px;
  text-decoration: none; color: var(--cream); background: var(--near-black); border: 1px solid var(--near-black);
  padding: 13px 24px; transition: background .22s ease, color .22s ease, border-color .22s ease; cursor: pointer; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--near-black); }
.btn .arr { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-sm { font-size: 12.5px; padding: 10px 18px; }

/* ===================== doorways ===================== */
.doorway { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 20px;
  padding: 28px 2px; border-top: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: padding-left .4s cubic-bezier(.2,.7,.2,1); }
.doorway:last-child { border-bottom: 1px solid var(--line); }
.doorway .idx { font-family: 'Courier Prime', monospace; font-size: 10.5px; color: var(--gold); letter-spacing: 0.06em; }
.doorway .dw-title { font-family: 'Spectral', Georgia, serif; font-weight: 300; font-size: clamp(25px, 6.5vw, 32px);
  letter-spacing: -0.01em; line-height: 1.08; transition: color .28s ease; }
.doorway .dw-sub { font-size: 13px; color: var(--ink-soft); margin-top: 6px; max-width: 26em; }
.doorway .arrow { font-family: 'Jost', sans-serif; font-size: 17px; color: var(--ink-faint); align-self: center;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), color .28s ease; }
@media (hover: hover) {
  .doorway:hover { padding-left: 14px; }
  .doorway:hover .dw-title { color: var(--gold); }
  .doorway:hover .arrow { transform: translateX(6px); color: var(--gold); }
}

/* ===================== waitlist / quiet email ===================== */
.quiet { text-align: center; }
.quiet .ql { font-family: 'Spectral', Georgia, serif; font-weight: 300; font-size: clamp(24px, 5vw, 30px); color: var(--ink); letter-spacing: -0.01em; }
.quiet .qs { font-size: 14px; color: var(--ink-soft); margin-top: 9px; max-width: 30em; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.signup { margin: 26px auto 0; max-width: 380px; display: flex; align-items: center; border-bottom: 1px solid var(--line); transition: border-color .25s ease; }
.signup:focus-within { border-color: var(--gold); }
.signup input { flex: 1; background: transparent; border: none; outline: none; font-family: 'Jost', sans-serif; font-size: 15px; color: var(--ink); padding: 12px 2px; }
.signup input::placeholder { color: rgba(42,42,40,0.32); }
.signup button { background: transparent; border: none; cursor: pointer; font-family: 'Courier Prime', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); padding: 10px 2px 10px 16px; transition: color .2s ease; white-space: nowrap; }
.signup button:hover { color: var(--ink); }
.qnote { margin-top: 14px; font-family: 'Courier Prime', monospace; font-size: 10.5px; letter-spacing: 0.06em; color: var(--gold); display: none; }
.qnote.show { display: block; }

/* ===================== trust marks ===================== */
.marks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; }
.marks span { font-family: 'Courier Prime', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 9px; }
.marks span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); flex: none; }

/* ===================== footer ===================== */
.foot { padding: 64px 0 44px; margin-top: 40px; }
.foot .foot-top { display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: space-between; padding-bottom: 30px; border-bottom: 1px solid var(--line-soft); }
.foot .fcol { display: flex; flex-direction: column; gap: 9px; }
.foot .fcol .fh { font-family: 'Courier Prime', monospace; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.foot .fcol a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; transition: color .2s ease; }
.foot .fcol a:hover { color: var(--gold); }
.foot .ftag { max-width: 22em; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.foot .ftag .gsig { font-family: 'Spectral', Georgia, serif; font-style: italic; color: var(--gold); }
.foot .legal { margin-top: 26px; }
.foot .legal p { font-family: 'Courier Prime', monospace; font-size: 8.5px; line-height: 1.75; letter-spacing: 0.03em; color: rgba(42,42,40,0.26); max-width: 46em; }
.foot .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  font-family: 'Courier Prime', monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.foot .meta a { text-decoration: none; color: var(--ink-faint); transition: color .2s ease; }
.foot .meta a:hover { color: var(--gold); }

/* ===================== reveal ===================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
