/* STAMNR /learn shared styles. Tokens mirror the main site (src/theme/theme.js). */
:root {
  --ink: #090C0A;
  --surface: #0E1311;
  --surface-alt: #131A17;
  --surface-high: #17201B;
  --hairline: #1B221E;
  --hairline-strong: #2A342F;
  --text: #ECF0ED;
  --text-strong: #D7DEDA;
  --muted: #9AA59E;
  --faint: #5E6B64;
  --jade: #22B488;
  --jade-mid: #1FC096;
  --jade-bright: #2FD8A4;
  --on-accent: #08130E;
  --head: 'Outfit', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--head);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Nav (same as the main site) */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,12,10,0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-weight: 500; font-size: 19px; letter-spacing: -1px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 400; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--text); }
.nav-cta {
  background: var(--jade); color: var(--on-accent) !important;
  font-weight: 600; font-size: 14.5px; padding: 9px 18px; border-radius: 12px;
}
.nav-cta:hover { background: var(--jade-mid); }
@media (max-width: 560px) { .nav-links a:not(.nav-cta) { display: none; } }

.eyebrow {
  font-family: var(--mono); font-weight: 500;
  font-size: 12px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--jade);
}

/* Article layout */
.article { max-width: 720px; margin: 0 auto; padding: 72px 24px 40px; }
.article h1 {
  font-weight: 300; font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12; letter-spacing: -1px; color: var(--text-strong);
  margin: 16px 0 26px;
}
.article h1 b { font-weight: 600; color: #fff; }
.article p { color: var(--muted); font-size: 17.5px; margin-bottom: 22px; }
.article p strong { color: var(--text-strong); font-weight: 500; }
.article p a { color: var(--jade-bright); }
.article p a:hover { text-decoration: underline; }
sup { font-size: 11px; color: var(--faint); }

/* The direct answer, up top */
.answer {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--jade);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 34px;
}
.answer .k {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--jade);
  margin-bottom: 10px;
}
.answer p { color: var(--text-strong); font-weight: 400; font-size: 18px; margin: 0; }

/* References */
.refs { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.refs .k {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--faint);
  margin-bottom: 14px;
}
.refs ol { margin-left: 20px; }
.refs li { color: var(--faint); font-size: 13.5px; margin-bottom: 8px; }

/* Article-end CTA */
.article-cta {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
}
.article-cta p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.cta {
  display: inline-block;
  background: var(--jade); color: var(--on-accent);
  font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: 14px;
}
.cta:hover { background: var(--jade-mid); }

.backlink {
  display: inline-block; margin-bottom: 8px;
  color: var(--muted); font-size: 14.5px;
}
.backlink:hover { color: var(--text); }

/* Hub */
.hub-hero { padding: 80px 0 20px; }
.hub-hero h1 {
  font-weight: 300; font-size: clamp(36px, 5.6vw, 56px);
  line-height: 1.1; letter-spacing: -1px; color: var(--text-strong);
  margin: 18px 0 14px;
}
.hub-hero h1 b { font-weight: 600; color: #fff; }
.hub-hero .lede { color: var(--muted); font-size: 18px; max-width: 620px; }
.section { padding: 56px 0; }
.section h2 {
  font-weight: 300; font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15; color: var(--text-strong); letter-spacing: -0.5px;
  margin: 14px 0 30px;
}
.section h2 b { font-weight: 600; color: #fff; }

.insight-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) {
  .insight-list { grid-template-columns: 1fr 1fr; }
  .insight-list .insight:last-child { grid-column: 1 / -1; }
}
.insight {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 26px 28px;
  transition: border-color 0.15s ease;
}
.insight:hover { border-color: var(--hairline-strong); background: var(--surface-alt); }
.insight .k {
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--jade);
  margin-bottom: 10px;
}
.insight h3 { font-weight: 600; font-size: 20px; color: var(--text); margin-bottom: 8px; }
.insight p { color: var(--muted); font-size: 15.5px; }
.insight .more { margin-top: 12px; color: var(--jade-bright); font-size: 14.5px; font-weight: 400; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 0 24px;
  margin-bottom: 12px;
}
.faq details[open] { background: var(--surface-alt); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 0;
  font-weight: 500; font-size: 17px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--jade);
  font-weight: 300; font-size: 24px; line-height: 1; flex: 0 0 auto;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 20px; }
.faq .a p { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a a { color: var(--jade-bright); }

/* Disclaimer + footer */
.disclaimer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 1px;
  color: var(--faint); text-transform: uppercase;
}
footer { border-top: 1px solid var(--hairline); padding: 48px 0 60px; margin-top: 72px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-left p { color: var(--faint); font-size: 13.5px; max-width: 420px; margin-top: 12px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.copyright { margin-top: 36px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--faint); }
