:root {
  --paper: #f4f0f6;
  --text: #221e30;
  --body: #3d3850;
  --muted: #6f6a82;
  --rule: #221e3024;
  --accent: #6e56cf;
  --gutter: clamp(24px, 5.5vw, 88px);
  --serif: "Newsreader", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 5px; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.opening { min-height: 100svh; display: flex; flex-direction: column; background: var(--paper) url("atmosphere.svg?v=10") center / cover; }
.header { padding: 32px var(--gutter); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.mark { display: block; width: 32px; height: 32px; }
.mission { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(56px, 12vh, 128px); padding: 48px var(--gutter); }
h1 { max-width: 11em; margin: 0; font: 350 clamp(52px, 7.4vw, 120px)/1 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 32px 56px; }
.projects article { padding-top: 18px; border-top: 1px solid var(--rule); }
.project-link { display: block; text-decoration: none; }
.project-heading { display: flex; align-items: baseline; gap: 8px; }
.project-heading h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
.project-heading > span { color: var(--muted); font-size: 15px; transition: transform .2s; }
.projects p { margin: 8px 0 0; color: var(--body); font-size: 15px; line-height: 1.55; }
.project-link:hover h2, .project-link:hover .project-heading > span { color: var(--accent); }
.project-link:hover .project-heading > span { transform: translate(2px, -2px); }
.soon { color: var(--muted); }
.contact { padding: 0 var(--gutter) 32px; color: var(--body); font-size: 15px; line-height: 1.6; }
.contact a { white-space: nowrap; text-decoration-color: var(--muted); }
.contact a:hover { color: var(--accent); text-decoration-color: currentColor; }
@media (max-height: 760px) and (min-width: 701px) {
  .header { padding-top: 24px; padding-bottom: 24px; }
  .mission { gap: 56px; padding-top: 16px; padding-bottom: 40px; }
  h1 { font-size: clamp(52px, 6.4vw, 96px); }
}
@media (max-width: 700px) {
  .header { padding-top: 24px; padding-bottom: 24px; }
  .wordmark { font-size: 21px; gap: 10px; }
  .mark { width: 28px; height: 28px; }
  .mission { justify-content: flex-end; gap: 56px; padding-top: 32px; }
  h1 { font-size: clamp(44px, 13vw, 64px); }
  .projects { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

.article-page { position: relative; isolation: isolate; background: var(--paper); }
.article-page::before { content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; background: url("atmosphere.svg?v=10") center / cover; mask-image: linear-gradient(#000 40%, transparent); pointer-events: none; }
.page { max-width: 1280px; margin: 0 auto; padding: 0 40px 36px; }
.post-heading { max-width: 960px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) 0 88px; text-align: center; }
.post-heading h1 { max-width: 900px; margin: 0 auto; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; }
.nowrap { white-space: nowrap; }
.post-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; color: var(--body); font-size: 14px; line-height: 1.5; }
.post-deck { max-width: 640px; margin: 24px auto 0; color: var(--body); font-size: 18px; line-height: 1.6; }
.article-frame { display: grid; grid-template-columns: 160px minmax(0, 760px); justify-content: center; gap: 64px; }
.toc { position: sticky; top: 32px; align-self: start; font-size: 14px; line-height: 1.5; }
.toc > p { margin: 0 0 18px; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 14px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--text); }
.article { min-width: 0; color: var(--body); font-size: 18px; line-height: 1.75; }
.article p { margin: 0 0 24px; }
.article .tldr { margin-bottom: 48px; }
.article strong { color: var(--text); font-weight: 600; }
.article h2 { margin: 72px 0 22px; color: var(--text); font: 400 34px/1.2 var(--serif); letter-spacing: -.02em; scroll-margin-top: 32px; }
.article h3 { margin: 32px 0 12px; color: var(--text); font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -.2px; }
.article a { text-decoration-color: var(--muted); }
.article a:hover { color: var(--accent); text-decoration-color: currentColor; }
.anchor { margin-left: 8px; color: var(--muted); font-size: 20px; text-decoration: none; opacity: 0; }
.article h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
.article figure { margin: 32px 0; }
.benchmark-plot { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.table-scroll { overflow-x: auto; }
.results { width: 100%; border-collapse: collapse; font: 14px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.results th, .results td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.results thead th { color: var(--muted); font-weight: 400; }
.results tbody th { color: var(--text); font-weight: 400; }
.results th:first-child, .results td:first-child { padding-left: 0; text-align: left; }
.results th:last-child, .results td:last-child { padding-right: 0; }
.results span { color: var(--muted); }
.method-list { margin: 0 0 24px; padding-left: 24px; }
.method-list li { padding-left: 6px; margin-bottom: 16px; }
.method-list li::marker { color: var(--muted); }
.formula { padding: 20px; border-radius: 6px; background: #ffffff80; text-align: center; font: 16px/1.7 var(--mono); overflow-wrap: anywhere; }
.prompt { margin: 24px 0; padding: 24px; border: 1px solid var(--rule); border-radius: 6px; background: #ffffff66; font: 14px/1.8 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.article .article-end { margin: 48px 0 0; font-size: 16px; }
.article-page .contact { padding-top: 80px; }
@media (max-width: 1050px) {
  .article-frame { display: block; max-width: 760px; margin: 0 auto; }
  .toc { position: static; margin-bottom: 40px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 12px 24px; }
  .toc li { margin: 0; }
}
@media (max-width: 700px) {
  .page { padding: 0 24px 20px; }
  .post-heading { padding: 48px 0 56px; }
  .post-heading h1 { font-size: clamp(36px, 8vw, 48px); }
  .article { font-size: 17px; }
  .article h2 { font-size: 30px; }
  .results th, .results td { padding: 12px 10px; }
  .prompt { padding: 18px; }
}
