/* =========================================================================
   THE TYPEWRITER — landing page
   Editorial / typewriter aesthetic. White paper, ink type, light-gray ASCII orbs.
   Font system:
     --font-pixel  Geist Pixel  -> the wordmark (the "pop")
     --font-mono   Geist Mono   -> labels, eyebrows, bucket names, signoff, microcopy
     --font-serif  PT Serif     -> body + headlines (editorial base)
   Edit tokens in :root below to restyle quickly.
   ========================================================================= */

/* ---- Self-hosted fonts (OFL, see fonts/OFL.txt) ---- */
@font-face {
  font-family: "Geist Pixel";
  src: url("fonts/GeistPixel-Square.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper:     #ffffff;
  --ink:       #0a0a0a;
  --ink-soft:  #2a2a2a;
  --muted:     #6b7280;   /* matches the beehiiv form subtitle gray */
  --hair:      #e6e6e6;   /* hairline rules */
  --orb:       #d9d9d9;   /* ASCII orb characters */
  --accent:    #0a0a0a;   /* monochrome ink; swap to a color later if wanted */

  --font-pixel: "Geist Pixel", "Geist Mono", monospace;
  --font-mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;

  --maxw: 680px;     /* editorial column */
  --maxw-wide: 980px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--maxw-wide); }
.section { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--hair); }
.section:first-of-type { border-top: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.h2 {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.lead { color: var(--ink-soft); }
.muted { color: var(--muted); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(72px, 13vh, 150px) 0 clamp(64px, 9vw, 104px);
}
/* ASCII orbs flank the hero, behind content */
.orb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.0;
  letter-spacing: 0;
  color: var(--orb);
  white-space: pre;
  margin: 0;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.orb--left  { left: clamp(-180px, -6vw, -40px); }
.orb--right { right: clamp(-180px, -6vw, -40px); transform: translateY(-50%) scaleX(-1); }

.hero__inner { position: relative; z-index: 1; }

.wordmark {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(2.2rem, 7.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.06em;
  margin: 0 0 30px;
  color: var(--ink);
}
.hero__headline {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin: 0 auto 24px;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 36px;
}
.hero__microcopy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 18px 0 0;
}

/* ---- Beehiiv embed slot ----
   The v3 loader injects a 400px-wide <form> inside a full-width wrapper div,
   which leaves the form hugging the left of the editorial column. Cap the
   wrapper to the form's own width and center it. min-height reserves space so
   the page doesn't jump when the form pops in a beat after load. */
.signup-slot {
  width: 100%;
  min-height: 64px;
  margin: 0 auto;
}
.signup-slot > div {
  max-width: 400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.signup-slot iframe { max-width: 100%; }

/* ---- Signup form (placeholder mock; replaced by beehiiv embed) ---- */
.signup {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.signup input[type="email"] {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 16px;
  padding: 13px 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  outline: none;
}
.signup input::placeholder { color: #9ca3af; }
.signup button {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 150ms ease;
  white-space: nowrap;
}
.signup button:hover { opacity: 0.82; }
.embed-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #b8b8b8;
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* =========================================================================
   WHAT YOU'LL GET — the four buckets
   ========================================================================= */
.buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair);
           border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.bucket { background: var(--paper); padding: 26px 26px; }
.bucket__name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 8px;
  display: flex; align-items: baseline; gap: 10px;
}
.bucket__name::before {
  content: attr(data-n);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.bucket__desc { font-size: 15.5px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* =========================================================================
   WHY THIS EXISTS + contrarian beat
   ========================================================================= */
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.contrarian {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  max-width: 26ch;
}
.cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  margin-top: 8px;
}
.cta-link:hover { opacity: 0.7; }

/* =========================================================================
   FOUNDER LETTER
   ========================================================================= */
.signoff {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  margin-top: 24px;
  letter-spacing: 0.02em;
}

/* =========================================================================
   FAQ (native details/summary)
   ========================================================================= */
.faq details {
  border-bottom: 1px solid var(--hair);
}
.faq details:first-of-type { border-top: 1px solid var(--hair); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px; color: var(--muted);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 36px 22px 0; color: var(--ink-soft); font-size: 16px; margin: 0; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--hair); text-align: center; padding: clamp(64px,9vw,96px) 0 56px; }
.footer__headline {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch; margin: 0 auto 32px;
}
.footer__mark {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.04em;
  margin: 48px 0 14px;
}
.footer__links {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.footer__links a { color: var(--muted); border-bottom: 1px solid transparent; }
.footer__links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.footer__links .x-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-bottom: 0; color: var(--muted); transition: color 150ms ease;
}
.footer__links .x-link:hover { color: var(--ink); border-bottom: 0; }
.footer__links .x-link svg { display: block; }
.footer__legal {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: #b8b8b8; margin-top: 22px; text-transform: uppercase;
}

/* =========================================================================
   Motion: fade-in on scroll (progressive enhancement)
   ========================================================================= */
.fade { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 720px) {
  .buckets { grid-template-columns: 1fr; }
  .orb { display: none; }            /* orbs are decorative; drop on small screens */
  .signup { flex-direction: column; }
  .signup button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
