/* ============================================================
   2924 — the2924.com landing styles
   Design tokens + site styles, 2924 Brand Guidelines v1.0
   Gloock (titles) · Inter (body) · IBM Plex Mono (citations)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Roboto:wght@300;400;500;700&family=IBM+Plex+Mono:wght@400;500;700&display=swap');

:root {
  /* COLOR — primary palette (dark-default) */
  --ink:       #0D1117;
  --surface:   #161B22;
  --border:    #21262D;
  --text:      #E6E1D6;
  --stone:     #7D8590;
  --sienna:    #B54F18;
  --steel:     #5E9BCE;

  --sienna-hover: #A04515;
  --sienna-press: #8F3D11;
  --accent-text: #D9743A;
  --steel-hover:  #2F5F8A;

  /* semantic aliases */
  --bg:        var(--ink);
  --bg-raised: var(--surface);
  --fg1:       var(--text);
  --fg2:       var(--stone);
  --fg-accent: var(--accent-text);
  --fg-data:   var(--steel);
  --rule:      var(--border);

  /* TYPE — families */
  --font-display: 'Gloock', 'Bodoni Moda', 'Didot', Georgia, serif;
  --font-serif:   'Gloock', 'Bodoni Moda', 'Didot', Georgia, serif;
  --font-sans:    'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* TYPE — semantic sizing */
  --fs-display:  64px;
  --fs-h1:       48px;
  --fs-h2:       32px;
  --fs-h3:       17px;
  --fs-body:     15px;
  --fs-small:    13px;
  --fs-caption:  11px;
  --fs-citation: 12px;
  --fs-label:    9px;

  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-body:    1.7;

  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.05em;
  --tracking-label:  0.1em;

  /* SPACING — 4px base */
  --s-0:  0;
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  --gutter:      24px;
  --col-reading: 680px;
  --col-narrow:  520px;
  --col-wide:    1100px;

  /* RADII */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* BORDERS */
  --bw: 1px;
  --border-rule: var(--bw) solid var(--border);

  /* MOTION */
  --ease:   cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 120ms;
  --t-med:  180ms;
  --t-slow: 240ms;
}

/* ============================================================
   BASE
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

::selection { background: var(--sienna); color: var(--ink); }

a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
a:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }
a:focus-visible { outline: 2px solid var(--sienna); outline-offset: 2px; }

.cite, .citation {
  font-family: var(--font-mono);
  color: var(--accent-text);
  white-space: nowrap;
}

/* ============================================================
   SITE SHELL
   ============================================================ */
.site { min-height: 100vh; display: flex; flex-direction: column; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--border-rule);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.site-header__brand { display: flex; align-items: baseline; gap: 16px; text-decoration: none; }
.site-header__brand:hover { border-bottom: 0; }
.site-header__brand .wm {
  font-family: var(--font-display);
  font-weight: 400; font-size: 32px;
  color: var(--text); letter-spacing: -0.01em; line-height: 1;
}
.site-header__brand .meta {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone);
  border-left: 1px solid var(--border); padding-left: 16px;
  white-space: nowrap;
}
.site-header__brand .meta .sec { color: var(--accent-text); }

.site-header__cta {
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  background: var(--sienna); color: #FAFAF8;
  padding: 10px 18px; border-radius: 2px; border: 0;
  cursor: pointer; text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}
.site-header__cta:hover { background: var(--sienna-hover); color: #FAFAF8; border-bottom-color: transparent; }

/* ============ HERO ============ */
.hero {
  border-bottom: var(--border-rule);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 120px 32px 100px;
  position: relative;
  z-index: 1;
}
.hero__watermark {
  position: absolute;
  top: 40%; right: -80px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 560px;
  line-height: 1;
  color: var(--surface);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.hero__kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
  margin-bottom: 36px;
  display: flex; align-items: center; gap: 14px;
}
.hero__kicker .sec { color: var(--accent-text); }
.hero__kicker .dot { width: 3px; height: 3px; background: var(--stone); border-radius: 50%; }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0; letter-spacing: -0.02em;
  color: var(--text); margin: 0 0 32px;
  max-width: 14ch;
}
.hero__dek {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4; color: var(--text);
  max-width: 620px; margin: 0 0 44px;
  opacity: 0.85;
}

/* hero CTA — primary "join" button */
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  background: var(--sienna); color: #FAFAF8;
  padding: 15px 26px; border: 0; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.hero__cta:hover { background: var(--sienna-hover); color: #FAFAF8; border-bottom-color: transparent; }
.hero__cta:active { background: var(--sienna-press); }
.hero__cta:focus-visible { outline: 2px solid var(--sienna); outline-offset: 3px; }
.hero__cta .arrow { transition: transform var(--t-fast) var(--ease); }
.hero__cta:hover .arrow { transform: translateX(4px); }

.hero__sub {
  display: flex; gap: 8px; max-width: 480px; align-items: stretch;
}
.hero__sub .input {
  flex: 1;
  font-family: var(--font-sans); font-size: 15px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 2px;
  padding: 13px 16px; outline: none;
  transition: border-color 180ms var(--ease);
}
.hero__sub .input:focus { border-color: var(--accent-text); }
.hero__sub .input::placeholder { color: var(--stone); }
.hero__sub button {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  background: var(--sienna); color: #FAFAF8;
  padding: 0 22px; border: 0; border-radius: 2px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.hero__sub button:hover { background: var(--sienna-hover); }
.hero__sub__hint {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone);
  margin-top: 16px;
}

/* ============ WHAT YOU GET ============ */
.wyg { border-bottom: var(--border-rule); }
.wyg__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 32px;
}
.wyg__lead {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 32px;
}
.wyg__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.wyg__cell {
  padding: 28px 32px 28px 0;
  border-right: var(--border-rule);
}
.wyg__cell:last-child { border-right: 0; padding-right: 0; }
.wyg__cell:not(:first-child) { padding-left: 32px; }
.wyg__num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--accent-text);
  margin-bottom: 18px;
}
.wyg__cell h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--text);
}
.wyg__cell p {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.65;
  color: rgba(230, 225, 214, 0.78);
  margin: 0;
}
.wyg__cell .cite {
  font-family: var(--font-mono); color: var(--accent-text);
}

/* ============ SAMPLE LEAD ============ */
.sample { border-bottom: var(--border-rule); }
.sample__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 96px 32px;
  display: grid; grid-template-columns: 220px 1fr; gap: 64px;
  align-items: start;
}
.sample__tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
  padding-top: 12px;
}
.sample__tag .sec { color: var(--accent-text); }
.sample__body { max-width: 820px; }
.sample__date {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--stone);
  margin-bottom: 18px;
}
.sample__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--text); margin: 0 0 28px;
}
.sample__excerpt {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.7;
  color: var(--text); opacity: 0.85;
  max-width: 64ch; margin: 0 0 28px;
}
.sample__excerpt .cite { font-family: var(--font-mono); color: var(--accent-text); white-space: nowrap; }
.sample__link {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--steel); border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.sample__link:hover { color: var(--accent-text); border-bottom-color: var(--accent-text); }

/* ============ FINAL CTA ============ */
.final-cta {
  border-bottom: var(--border-rule);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(192,84,26,0.06), transparent 60%),
    var(--ink);
}
.final-cta__inner {
  max-width: 760px; margin: 0 auto;
  padding: 120px 32px 130px;
  text-align: center;
}
#join { scroll-margin-top: 72px; }
.final-cta h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--text); margin: 0 0 20px;
}
.final-cta p {
  font-family: var(--font-sans); font-size: 15px;
  color: var(--text); opacity: 0.7;
  max-width: 540px; margin: 0 auto 36px;
}
.final-cta .form-wrap { max-width: 460px; margin: 0 auto; }
.final-cta .hero__sub { margin: 0 auto; }
.final-cta__hint {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone);
  margin-top: 16px;
}

/* ============ SUBSTACK EMBED ============ */
.substack-embed {
  max-width: 480px;
  width: 100%;
  border: var(--border-rule);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 8px;
}
.substack-embed iframe {
  max-width: 100%;
  width: 100%;
  display: block;
}
.final-cta .substack-embed {
  margin: 0 auto;
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: auto;
  border-top: var(--border-rule);
  padding: 36px 32px;
}
.site-footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--stone);
}
.site-footer__inner .brand {
  display: flex; align-items: baseline; gap: 14px;
  color: var(--text);
}
.site-footer__inner .brand .wm {
  font-family: var(--font-display); font-size: 22px;
}
.site-footer__inner .brand .sec { color: var(--accent-text); }
.site-footer__links { display: flex; gap: 24px; }
.site-footer__links a { color: var(--stone); border: 0; }
.site-footer__links a:hover { color: var(--accent-text); }

/* ============ HERO LOAD REVEAL ============ */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { opacity: 0; animation: rise 0.7s var(--ease) forwards; }
  .hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
  .hero__inner > *:nth-child(2) { animation-delay: 0.13s; }
  .hero__inner > *:nth-child(3) { animation-delay: 0.21s; }
  .hero__inner > *:nth-child(4) { animation-delay: 0.29s; }
  .hero__inner > *:nth-child(5) { animation-delay: 0.37s; }
  .hero__watermark { opacity: 0; animation: wm-fade 1.4s var(--ease) 0.1s forwards; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wm-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .hero__watermark { font-size: 380px; right: -60px; }
  .wyg__grid { grid-template-columns: 1fr; }
  .wyg__cell { border-right: 0; border-bottom: var(--border-rule); padding: 28px 0; }
  .wyg__cell:last-child { border-bottom: 0; }
  .wyg__cell:not(:first-child) { padding-left: 0; }
  .sample__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  .site-header__inner { padding: 0 20px; }
  .site-header__brand .meta { display: none; }
  .hero__inner { padding: 80px 20px 72px; }
  .hero__watermark { font-size: 280px; opacity: 0.6; }
  .hero__sub { flex-direction: column; }
  .hero__sub button { padding: 13px 22px; }
  .final-cta__inner { padding: 80px 20px 88px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
