:root {
  color-scheme: dark;
  --ink: #f2efe6;
  --muted: #b7bbb7;
  --line: #32383a;
  --panel: #171b1e;
  --panel-soft: #202629;
  --page: #101315;
  --accent: #6de1d1;
  --accent-ink: #092b27;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.68;
}
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
img { display: block; }

.learn-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 21, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.learn-nav,
.learn-main,
.learn-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.learn-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.learn-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 720; }
.learn-brand img { width: 34px; height: 34px; }
.learn-links { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.learn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 760;
}
.learn-button:hover { background: transparent; color: var(--accent); }

.learn-main { padding: 72px 0 96px; }
.learn-hero { max-width: 840px; margin-bottom: 64px; }
.learn-kicker,
.article-meta,
.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { margin: 14px 0 20px; font-family: var(--serif); font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 400; letter-spacing: -0.035em; }
.article h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.learn-deck { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }

.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.topic-card { min-height: 260px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.topic-card:hover { background: var(--panel-soft); color: var(--ink); }
.topic-card h2 { margin: 42px 0 14px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.topic-card p { margin: 0; color: var(--muted); }

.article-shell { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 72px; align-items: start; }
.article-header { margin-bottom: 48px; }
.article-header .learn-deck { margin-bottom: 20px; }
.answer-box { margin: 36px 0 46px; padding: 24px 26px; border-left: 4px solid var(--accent); background: var(--panel); font-size: 1.08rem; }
.article-body h2 { margin: 58px 0 18px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.article-body h3 { margin: 34px 0 12px; font-size: 1.22rem; }
.article-body p, .article-body li { color: #d7d8d3; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.prompt-example { margin: 24px 0; padding: 22px; border: 1px solid var(--line); background: #0c0f10; overflow-x: auto; white-space: pre-wrap; font-family: var(--mono); font-size: 0.88rem; line-height: 1.65; }
.callout { margin: 38px 0; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.callout strong { color: var(--accent); }
.article-aside { position: sticky; top: 104px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.9rem; }
.article-aside p { color: var(--muted); }
.article-aside a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-grid a { padding: 20px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.article-cta { margin-top: 64px; padding: 34px; background: var(--ink); color: #101315; }
.article-cta h2 { margin-top: 0; font-size: 2.2rem; }
.article-cta p { color: #323638; }
.article-cta .learn-button { background: #101315; border-color: #101315; color: var(--ink); }

.learn-footer { border-top: 1px solid var(--line); padding: 38px 0; color: var(--muted); }
.learn-footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.learn-footer a { color: var(--ink); }

@media (max-width: 820px) {
  .learn-links > a:not(.learn-button) { display: none; }
  .topic-grid, .related-grid { grid-template-columns: 1fr; }
  .article-shell { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; }
  .learn-main { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
