@font-face {
  font-family: "STIX Two Math";
  src: url("fonts/STIXTwoMath-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.blog-main { max-width: 960px; }
.blog-masthead { padding: 76px 0 52px; border-bottom: 1px solid var(--rule); }
.blog-masthead h1 { margin: 0 0 12px; font: 500 clamp(3.2rem, 8vw, 5.7rem)/1.1 "Source Serif 4", Georgia, serif; letter-spacing: -.045em; }
.blog-masthead .dek { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: 1.15rem; }
.blog-series { padding: 42px 0 72px; }
.blog-series h2 { max-width: 680px; margin: 12px 0; font: 500 clamp(1.7rem, 4vw, 2.35rem)/1.3 "Source Serif 4", Georgia, serif; }
.series-description { max-width: 670px; color: var(--muted); }
.post-list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.post-preview { display: grid; grid-template-columns: 60px 1fr auto; gap: 20px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.post-number { color: var(--accent); font: 500 1.6rem "Source Serif 4", Georgia, serif; }
.post-preview h3 { margin: 0 0 6px; font-size: 1.3rem; }
.post-preview p { margin: 0; color: var(--muted); max-width: 620px; }
.post-preview time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.post-main { max-width: 1040px; padding-bottom: 50px; }
.post-header { max-width: 740px; margin: 52px auto 32px; }
.back-link { display: inline-block; margin-bottom: 27px; font-size: .9rem; }
.series-label { color: var(--accent); font-size: .84rem; line-height: 1.5; }
.post-header h1 { margin: 14px 0 20px; font: 500 clamp(2.8rem, 6.5vw, 4.4rem)/1.1 "Source Serif 4", Georgia, serif; letter-spacing: -.035em; }
.post-dek { color: var(--muted); font-size: 1.19rem; line-height: 1.6; }
.post-meta { color: var(--muted); font-size: .83rem; margin-top: 23px; }
.post-attribution { color: var(--muted); font-size: .9rem; }
.prose { max-width: 740px; margin-inline: auto; font-size: 1.05rem; line-height: 1.8; }
.prose h2 { margin: 40px 0 15px; font: 500 1.85rem/1.3 "Source Serif 4", Georgia, serif; }
.prose h3 { margin: 25px 0 8px; font-size: 1.06rem; }
.prose p { margin: 16px 0; }
math { font-family: "STIX Two Math", "Cambria Math", math; font-size: 1.12em; }
.equation { overflow-x: auto; padding: 14px 4px; margin: 20px 0; }
.equation math[display="block"] { margin: 0; font-size: 1.2em; }
.numbered-equation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; overflow: visible; scroll-margin-top: 120px; }
.equation-scroll { min-width: 0; overflow-x: auto; padding: 5px 2px; }
.equation-scroll math { min-width: max-content; }
.equation-number { color: var(--muted); font-size: .87rem; font-variant-numeric: tabular-nums; }
.equation-ref { white-space: nowrap; font-variant-numeric: tabular-nums; }
.numbered-equation:target { outline: 1px solid var(--accent); outline-offset: 7px; border-radius: 2px; }
.update-box { padding: 22px 25px; margin: 24px 0; background: var(--panel); border: 1px solid var(--rule); border-left: 3px solid var(--accent); }
.update-box .eyebrow { margin: 0 0 16px; font-size: .76rem; }
.update-box .equation { margin: 10px 0; padding: 5px 0; }
.update-box mtd:first-child { text-align: right; }
.update-box mtd:nth-child(2) { text-align: center; }
.update-box mtd:nth-child(3) { text-align: left; }
.small-note { font-size: .9rem; color: var(--muted); }
.prose details { margin: 25px 0; border-block: 1px solid var(--rule); padding: 15px 0; }
summary { cursor: pointer; font-weight: 500; }
.post-citation { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--rule); }
.citation-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.citation-heading h2 { margin: 0; font-size: 1.4rem; }
.citation-heading button { font-family: inherit; cursor: pointer; }
.post-citation pre { max-height: none; margin: 16px 0 0; font-size: .82rem; line-height: 1.65; overflow-wrap: anywhere; }
.citation-status { min-height: 1.5em; color: var(--muted); font-size: .85rem; }
.experiment { margin: 32px 0 38px; padding: 25px; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; }
.experiment-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; }
.experiment h2 { margin: 0; font: 500 1.5rem "Source Serif 4", Georgia, serif; }
.experiment-heading span { font-size: .8rem; color: var(--muted); }
.experiment-controls { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 26px; padding: 22px 0 16px; }
.range-label { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.range-label output { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 650; }
input[type="range"] { width: 100%; margin: 12px 0 0; accent-color: var(--accent); cursor: pointer; }
.experiment button { border: 1px solid var(--rule); border-radius: 5px; background: var(--bg); color: var(--text); padding: 8px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.experiment button:hover { border-color: var(--accent); }
.experiment button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.experiment button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--soft); }
.plot-model { margin: 0 0 16px; font-size: .83rem; color: var(--muted); }
.trajectory-plots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plot-panel { margin: 0; min-width: 0; }
.plot-panel h3 { margin: 5px 0 0; text-align: center; font-size: .93rem; font-weight: 650; }
.sgd-label { color: var(--accent-2); }
.whitened-label { color: var(--accent); }
.plot-panel svg { display: block; width: 100%; height: auto; overflow: hidden; }
.plot-panel text { fill: var(--muted); font: 12px Inter, system-ui, sans-serif; }
.plot-panel .axis-title { fill: var(--text); font-size: 13px; }
.plot-panel .plot-grid { stroke: var(--rule); stroke-width: 1; }
.plot-panel .plot-axis { stroke: var(--muted); stroke-width: 1; }
.plot-panel .sgd { stroke: var(--accent-2); }
.plot-panel .white { stroke: var(--accent); }
.plot-panel .sgd-fill { fill: var(--accent-2); }
.plot-panel .white-fill { fill: var(--accent); }
.plot-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0 8px; padding-top: 18px; border-top: 1px solid var(--rule); }
.plot-switch h3 { margin: 0; font-size: .95rem; font-weight: 500; }
.plot-buttons { display: flex; gap: 6px; }
.plot-legend { display: flex; justify-content: center; gap: 24px; font-size: .8rem; margin: 0 0 5px; }
.legend-line { display: inline-block; width: 22px; margin-right: 7px; border-top: 2px solid; vertical-align: middle; }
.experiment figcaption, .experiment-caption { color: var(--muted); font-size: .82rem; line-height: 1.65; }
.experiment-caption { margin: 14px 0 0; }
.experiment details { font-size: .84rem; margin-top: 15px; }
.experiment table { width: 100%; text-align: left; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.experiment th, .experiment td { border-bottom: 1px solid var(--rule); padding: 8px 4px; }
.fallback-plot { width: 100%; height: auto; display: block; margin-top: 20px; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .blog-masthead { padding-top: 45px; }
  .post-preview { grid-template-columns: 35px 1fr; gap: 12px; }
  .post-preview time { grid-column: 2; }
  .post-header { margin-top: 32px; }
  .experiment { padding: 16px; margin-inline: -8px; }
  .experiment-controls { grid-template-columns: 1fr 1fr; gap: 18px; }
  .experiment-controls button { grid-column: 1 / -1; justify-self: start; }
  .experiment-heading { flex-wrap: wrap; gap: 5px; }
  .trajectory-plots { gap: 8px; }
  .range-label { flex-wrap: wrap; gap: 2px; }
  .update-box { padding: 18px 12px; }
  .numbered-equation { gap: 8px; scroll-margin-top: 190px; }
}
@media (max-width: 600px) {
  .trajectory-plots { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .plot-buttons button { padding: 7px 8px; }
  .experiment th, .experiment td { font-size: .74rem; }
}
