/* Palette taken from the Substack post illustrations: charcoal, cream, orange */
:root {
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --surface: #222222;
  --line: #2f2f2f;
  --text: #f2efe8;
  --muted: #a8a39a;
  --accent: #f5a524;
  --accent-ink: #1a1206;
  --radius: 18px;
  --wrap: 1160px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font-body);
  padding: 16px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--accent);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 10px 16px; font-size: .9rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 18, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font: 700 1.4rem/1 var(--font-display); text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) { .nav nav a:not(.btn) { display: none; } }

/* Eyebrow */
.eyebrow {
  font: 600 .8rem/1.4 var(--font-body);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 18px;
}
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 85% 20%, rgba(245, 165, 36, .14), transparent 70%);
}
.hero__grid { display: grid; gap: 48px; align-items: center; position: relative; }
@media (min-width: 900px) {
  .hero { padding: 112px 0 96px; }
  .hero__grid { grid-template-columns: 1.4fr 1fr; gap: 72px; }
}
.hero h1 { font-size: clamp(2.75rem, 7.5vw, 5.75rem); font-weight: 700; margin-bottom: 28px; }
.lead { font-size: clamp(1.125rem, 2vw, 1.35rem); color: var(--muted); max-width: 36ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__photo { margin: 0; position: relative; max-width: 420px; justify-self: center; width: 100%; }
.hero__photo img {
  border-radius: 28px; aspect-ratio: 1; object-fit: cover; width: 100%;
  box-shadow: 14px 14px 0 var(--accent);
}
.hero__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(18, 18, 18, .88); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: .9rem; font-weight: 500;
  width: max-content; max-width: calc(100% - 32px);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); flex: none; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats__grid > div { padding: 28px 12px 28px 0; }
.stats__grid strong { display: block; font: 700 clamp(2rem, 4.5vw, 3rem)/1 var(--font-display); color: var(--accent); margin-bottom: 10px; letter-spacing: -0.03em; }
.stats__grid span { color: var(--muted); font-size: .95rem; line-height: 1.45; display: block; max-width: 26ch; }
@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stats__grid > div { padding: 40px 24px; border-left: 1px solid var(--line); }
  .stats__grid > div:first-child { border-left: 0; padding-left: 0; }
}

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section__title { font-size: clamp(2rem, 4.6vw, 3.5rem); margin-bottom: 40px; max-width: 20ch; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section__head .section__title { margin-bottom: 0; }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; } }
.prose { font-size: 1.15rem; color: var(--muted); }
.prose strong { color: var(--text); }
.prose p:last-child { margin-bottom: 0; }

/* Stories */
.stories { display: grid; gap: 20px; }
@media (min-width: 900px) { .stories { grid-template-columns: repeat(3, 1fr); } }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: var(--muted); }
.story p:last-child { margin-bottom: 0; }
.story__ask { font: 600 1.25rem/1.3 var(--font-display); color: var(--text); margin-bottom: 16px; }
.stories__moral { margin: 40px 0 0; font: 500 clamp(1.25rem, 2.4vw, 1.6rem)/1.4 var(--font-display); max-width: 48ch; border-left: 4px solid var(--accent); padding-left: 20px; }

/* Cards */
.cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card__num { font: 700 .95rem/1 var(--font-display); color: var(--accent); display: block; margin-bottom: 40px; }
.card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.card p { color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-alt); border: 2px solid var(--accent); }
.timeline li:first-child::before { background: var(--accent); }
.timeline__date { font-size: .85rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.timeline h3 { font-size: 1.25rem; margin: 6px 0 6px; }
.timeline p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Links */
.link-arrow { color: var(--accent); text-decoration: none; font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* Subscribe */
.subscribe { background: var(--accent); color: var(--accent-ink); padding: 80px 0; }
.subscribe em { color: inherit; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.subscribe__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .subscribe { padding: 112px 0; } .subscribe__inner { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.subscribe h2 { font-size: clamp(2rem, 5vw, 3.75rem); margin-bottom: 20px; }
.subscribe p { font-size: 1.1rem; max-width: 50ch; margin: 0; }
.subscribe__embed { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: #fff; }

/* Footer */
.footer { padding: 40px 0; color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.social { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.social a { text-decoration: none; }
.social a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* AtliQ sales CTAs */
.eyebrow__link, .stats__grid a, .prose a, .card p a, .timeline h3 a {
  color: inherit; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.eyebrow__link:hover, .stats__grid a:hover, .card p a:hover, .timeline h3 a:hover { color: var(--accent); }
.stories__cta { display: inline-block; margin-top: 28px; font-size: 1.1rem; }
.card { display: flex; flex-direction: column; }
.card p { margin-bottom: 24px; }
.card__cta { margin-top: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
.card__cta:hover { text-decoration: underline; }
.card--featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(245, 165, 36, .1), var(--surface) 60%); }
.btn--lg { padding: 20px 32px; font-size: 1.1rem; }

.atliq { padding: 72px 0; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.atliq::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 10% 50%, rgba(245, 165, 36, .16), transparent 70%); }
.atliq__inner { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .atliq { padding: 104px 0; } .atliq__inner { grid-template-columns: 1fr auto; gap: 64px; } }
.atliq h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); margin-bottom: 20px; max-width: 20ch; }
.atliq p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; max-width: 54ch; margin: 0; }
.atliq__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.atliq__cta .btn { justify-content: center; }
@media (max-width: 560px) { .atliq__cta .btn { flex: 1 1 100%; } }
@media (min-width: 900px) { .atliq__cta { flex-direction: column; } }
