@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap");

:root {
  --ink: #102832;
  --muted: #5e7178;
  --paper: #fbfcf8;
  --paper-deep: #f1f5ed;
  --white: #ffffff;
  --teal: #117c72;
  --teal-bright: #23ae98;
  --teal-soft: #dff3ec;
  --blue: #376c9b;
  --blue-soft: #e2eef8;
  --coral: #d86f5e;
  --coral-soft: #f8e5df;
  --gold: #c99a42;
  --line: rgba(16, 40, 50, 0.14);
  --shadow: 0 24px 60px rgba(24, 61, 68, 0.11);
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="range"] {
  accent-color: var(--teal);
}

:focus-visible {
  outline: 3px solid rgba(35, 174, 152, 0.46);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  background: rgba(251, 252, 248, 0.91);
  border-bottom: 1px solid var(--line);
  display: flex;
  min-height: 74px;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  position: relative;
  z-index: 20;
}

.article-header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
}

.site-brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.72rem;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 34px;
}

.site-header nav {
  display: flex;
  gap: clamp(0.65rem, 1.35vw, 1.25rem);
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--teal);
}

.hero-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
  position: relative;
  z-index: 1;
}

.hero-profile-links a {
  border: 1px solid rgba(16, 40, 50, 0.16);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.hero-profile-links a:hover {
  background: var(--ink);
  color: #ffffff;
}

.blog-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  justify-content: space-between;
  margin: 6rem auto 0;
  max-width: 1320px;
  padding: 2rem clamp(1.25rem, 5vw, 4rem) 3rem;
}

.blog-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* Blog index */

.blog-index-hero {
  background:
    linear-gradient(
      rgba(17, 124, 114, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(17, 124, 114, 0.055) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 78% 24%,
      rgba(35, 174, 152, 0.23),
      transparent 24%
    ),
    radial-gradient(
      circle at 76% 30%,
      rgba(55, 108, 155, 0.12),
      transparent 37%
    );
  background-size: 46px 46px, 46px 46px, auto, auto;
  border-bottom: 1px solid var(--line);
  min-height: 540px;
  overflow: hidden;
  padding:
    clamp(5rem, 10vw, 9rem)
    max(6vw, calc((100vw - 1180px) / 2));
  position: relative;
}

.blog-index-hero::after {
  border: 1px solid rgba(17, 124, 114, 0.22);
  border-radius: 50%;
  content: "";
  height: 430px;
  position: absolute;
  right: 4%;
  top: 7%;
  width: 430px;
}

.eyebrow,
.section-marker,
.interactive-kicker,
.paper-number {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.blog-index-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.4vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.93;
  margin: 1.2rem 0 2rem;
  max-width: 1050px;
  position: relative;
  z-index: 1;
}

.blog-index-hero h1 em {
  color: var(--teal);
  font-weight: 400;
}

.blog-index-hero > p {
  color: #435a63;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.45;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.series-section {
  margin: 0 auto;
  max-width: 1260px;
  padding: 7rem clamp(1.25rem, 4vw, 3rem);
}

.series-heading {
  align-items: end;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.series-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.8rem 0 0;
}

.series-heading > p {
  color: var(--muted);
  margin: 0;
  max-width: 390px;
}

.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(24, 61, 68, 0.06);
  overflow: hidden;
}

.post-card.featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 0.9fr 1.1fr;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 4vw, 3.6rem);
}

.post-card-art {
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(145deg, #092f3c, #0d6d67);
  background-size: 32px 32px, 32px 32px, auto;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.art-label {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  color: #ffffff;
  font-size: 0.7rem;
  left: 1.5rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  position: absolute;
  text-transform: uppercase;
  top: 1.5rem;
}

.orbit {
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  position: absolute;
}

.orbit-one {
  height: 310px;
  left: 13%;
  top: 17%;
  width: 310px;
}

.orbit-two {
  height: 220px;
  left: 22%;
  top: 28%;
  width: 220px;
}

.art-node {
  border: 3px solid #0b4952;
  border-radius: 50%;
  height: 20px;
  position: absolute;
  width: 20px;
  z-index: 2;
}

.art-node.n1,
.art-node.n2 {
  background: #7fc8f2;
}

.art-node.n3,
.art-node.n4,
.art-node.n5 {
  background: #ff9c83;
}

.art-node.n1 {
  left: 21%;
  top: 35%;
}

.art-node.n2 {
  left: 35%;
  top: 20%;
}

.art-node.n3 {
  left: 64%;
  top: 68%;
}

.art-node.n4 {
  left: 73%;
  top: 43%;
}

.art-node.n5 {
  left: 50%;
  top: 78%;
}

.art-boundary {
  background: #ffffff;
  height: 2px;
  left: 16%;
  position: absolute;
  top: 53%;
  transform: rotate(-25deg);
  width: 75%;
}

.post-number {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
}

.post-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
  text-transform: uppercase;
}

.post-card h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 1rem 0;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card p {
  color: var(--muted);
  margin: 0 0 2rem;
}

.post-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 0.78rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
}

.post-footer a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.post-card.upcoming {
  background: #f5f7f1;
}

.post-card.upcoming .post-number {
  color: #a6b3ad;
}

/* Article framing */

.reading-progress {
  background: transparent;
  height: 3px;
  left: 0;
  position: fixed;
  right: 0;
  top: 74px;
  z-index: 30;
}

.reading-progress span {
  background: var(--teal-bright);
  display: block;
  height: 100%;
  transform-origin: left;
  width: 0;
}

.article-hero {
  background:
    linear-gradient(
      rgba(17, 124, 114, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(17, 124, 114, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, #f4f8f1, #fbfcf8);
  background-size: 48px 48px, 48px 48px, auto;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding:
    clamp(5rem, 9vw, 8.5rem)
    clamp(1.25rem, 5vw, 5rem)
    5rem;
}

.article-hero-grid {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(320px, 0.8fr);
  margin: auto;
  max-width: 1260px;
}

.series-link {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.series-link span {
  border-left: 1px solid rgba(17, 124, 114, 0.3);
  margin-left: 0.6rem;
  padding-left: 0.8rem;
}

.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6.4vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.92;
  margin: 1.5rem 0 2rem;
}

.article-hero h1 em {
  color: var(--teal);
  font-weight: 400;
}

.dek {
  color: #425962;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.45;
  max-width: 760px;
}

.byline {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.6rem 1.4rem;
  margin: 2rem 0;
}

.byline span + span::before {
  color: #acb7b4;
  content: "|";
  margin-right: 1.4rem;
}

.byline strong {
  color: var(--ink);
}

.hero-actions,
.paper-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.hero-actions a,
.paper-actions a {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  background: var(--ink);
  border-radius: 999px;
  color: #ffffff !important;
  display: inline-flex;
  gap: 0.7rem;
  padding: 0.78rem 1.25rem;
}

.hero-orbit {
  aspect-ratio: 1;
  max-width: 470px;
  position: relative;
  width: 100%;
}

.hero-orbit::before {
  background:
    radial-gradient(
      circle,
      rgba(35, 174, 152, 0.16),
      transparent 66%
    );
  content: "";
  inset: -12%;
  position: absolute;
}

.hero-orbit-label {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  left: 50%;
  letter-spacing: 0.08em;
  position: absolute;
  top: 48%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.ring {
  border: 1px solid rgba(16, 40, 50, 0.18);
  border-radius: 50%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  height: 95%;
  width: 95%;
}

.ring-b {
  height: 70%;
  width: 70%;
}

.ring-c {
  height: 43%;
  width: 43%;
}

.point {
  border: 3px solid #f7faf5;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(16, 40, 50, 0.15);
  height: 24px;
  position: absolute;
  width: 24px;
  z-index: 2;
}

.class-a {
  background: #4d8bb8;
}

.class-b {
  background: #dd7562;
}

.hero-orbit .p1 {
  left: 14%;
  top: 36%;
}

.hero-orbit .p2 {
  left: 27%;
  top: 18%;
}

.hero-orbit .p3 {
  left: 38%;
  top: 32%;
}

.hero-orbit .p4 {
  bottom: 18%;
  right: 27%;
}

.hero-orbit .p5 {
  right: 12%;
  top: 44%;
}

.hero-orbit .p6 {
  right: 34%;
  top: 62%;
}

.hero-orbit .p7 {
  align-items: center;
  background: var(--gold);
  color: #ffffff;
  display: flex;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  left: 54%;
  top: 40%;
  width: 38px;
}

.hero-divider {
  background: var(--ink);
  height: 2px;
  left: 12%;
  position: absolute;
  top: 53%;
  transform: rotate(-33deg);
  width: 77%;
}

.article-map {
  align-items: stretch;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1260px;
}

.article-map a {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.76rem;
  font-weight: 600;
  gap: 0.35rem;
  padding: 1.3rem 1.5rem;
  text-decoration: none;
}

.article-map a + a {
  border-left: 1px solid var(--line);
}

.article-map span {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.article-body {
  margin: 0 auto;
  max-width: 1260px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
}

.article-body > section:not(.paper-section) {
  margin: 0 auto;
  max-width: 820px;
  padding-top: clamp(5rem, 9vw, 8rem);
}

.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.7vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 1.1rem 0 2rem;
}

.article-body h2 em {
  color: var(--teal);
  font-weight: 400;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 4rem 0 1rem;
}

.article-body h4 {
  margin: 0.5rem 0;
}

.article-body p {
  color: #344d57;
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.72;
  margin: 0 0 1.65rem;
}

.article-body p.lead {
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.55;
}

.article-body p a {
  color: var(--teal);
  font-weight: 500;
}

.definition-card,
.contrast-quote,
.caveat-card {
  background: var(--teal-soft);
  border: 1px solid rgba(17, 124, 114, 0.18);
  border-radius: 18px;
  margin: 2.5rem 0;
  padding: 1.6rem 1.8rem;
}

.definition-card p,
.contrast-quote p,
.caveat-card p {
  color: var(--ink);
  margin: 0;
}

.definition-label,
.caveat-card > span {
  color: var(--teal);
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contrast-quote {
  background: var(--ink);
  border: 0;
  padding: 2.3rem 2.6rem;
}

.contrast-quote p {
  color: #ffffff;
  font-size: 1.65rem;
  font-style: italic;
  line-height: 1.4;
}

.loop-strip {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  grid-template-columns:
    1fr auto 1fr auto 1fr auto 1fr;
  margin: 3rem -7rem;
}

.loop-strip div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 132px;
  padding: 1.2rem;
}

.loop-strip div > span {
  color: var(--teal);
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.loop-strip strong {
  display: block;
  font-size: 0.93rem;
  margin-top: 0.35rem;
}

.loop-strip small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
}

.loop-strip > i {
  color: var(--teal);
  font-style: normal;
}

.interactive-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 3.5rem 0;
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.interactive-card.wide {
  margin-left: -11rem;
  margin-right: -11rem;
}

.interactive-card.compact {
  background: linear-gradient(145deg, #ffffff, #f2f8f4);
}

.interactive-heading {
  align-items: flex-start;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.interactive-heading h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.35rem;
}

.interactive-heading p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.interactive-heading output {
  background: var(--teal-soft);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  white-space: nowrap;
}

.quiet-button,
.action-button,
.segmented-control button {
  border: 0;
  cursor: pointer;
}

.quiet-button {
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.action-button {
  background: var(--ink);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  width: 100%;
}

.action-button:hover {
  background: var(--teal);
}

.playground-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 230px;
}

.canvas-wrap {
  min-width: 0;
}

#al-canvas {
  background: #f5f8f4;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  height: auto;
  max-height: 440px;
  width: 100%;
}

.canvas-legend {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.67rem;
  gap: 1rem;
  margin-top: 0.7rem;
}

.canvas-legend span {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.legend-dot {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.legend-dot.blue {
  background: var(--blue);
}

.legend-dot.coral {
  background: var(--coral);
}

.legend-ring {
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: inline-block;
  height: 11px;
  width: 11px;
}

.playground-controls fieldset {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
}

.playground-controls legend {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.choice {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  margin: 0.5rem 0;
  padding: 0.75rem;
}

.choice:has(input:checked) {
  background: var(--teal-soft);
  border-color: rgba(17, 124, 114, 0.34);
}

.choice input {
  margin-top: 0.25rem;
}

.choice strong,
.choice small {
  display: block;
}

.choice strong {
  font-size: 0.78rem;
}

.choice small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.metric-pair {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.9rem;
}

.metric-pair div {
  background: var(--paper-deep);
  border-radius: 10px;
  padding: 0.75rem;
}

.metric-pair span {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.metric-pair small {
  color: var(--muted);
  font-size: 0.62rem;
}

.control-note {
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 0.68rem !important;
  line-height: 1.45 !important;
  margin: 1rem 0 0 !important;
}

.equation-card {
  background: #f4f7f2;
  border-left: 4px solid var(--teal);
  margin: 2.4rem 0;
  padding: 1.4rem 1.8rem;
}

.equation-card.accent {
  background: #ecf5f5;
  border-left-color: var(--blue);
}

.equation {
  color: var(--ink);
  font-size: 1.08rem;
  overflow-x: auto;
  padding: 0.4rem 0;
}

.equation-card p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0.5rem 0 0;
}

.probability-bar {
  border-radius: 10px;
  display: flex;
  height: 58px;
  overflow: hidden;
}

.probability-bar span {
  transition: width 0.2s ease;
}

.probability-bar #probability-a {
  background: var(--blue);
  width: 50%;
}

.probability-bar #probability-b {
  background: var(--coral);
  width: 50%;
}

.probability-labels {
  display: flex;
  font-size: 0.72rem;
  justify-content: space-between;
  margin: 0.6rem 0 1.6rem;
}

.probability-labels strong:first-child {
  color: var(--blue);
}

.probability-labels strong:last-child {
  color: var(--coral);
}

.range-label {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input[type="range"] {
  cursor: pointer;
  width: 100%;
}

.entropy-readout {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 0.62rem;
  gap: 0.7rem;
  grid-template-columns: auto 1fr auto;
  margin-top: 0.65rem;
}

.entropy-meter {
  background: #e3e9e5;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.entropy-meter i {
  background:
    linear-gradient(
      90deg,
      var(--teal-bright),
      var(--gold)
    );
  display: block;
  height: 100%;
  transition: width 0.2s ease;
  width: 100%;
}

.uncertainty-compare {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 2.5rem 0;
}

.uncertainty-compare article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}

.uncertainty-compare p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.uncertainty-icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-family: var(--serif);
  font-size: 1.5rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.uncertainty-icon.aleatoric {
  background: var(--coral-soft);
  color: var(--coral);
}

.uncertainty-icon.epistemic {
  background: var(--blue-soft);
  color: var(--blue);
}

.segmented-control {
  background: #eef2ee;
  border-radius: 10px;
  display: inline-flex;
  padding: 4px;
  white-space: nowrap;
}

.segmented-control button {
  background: transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
}

.segmented-control button.active {
  background: #ffffff;
  box-shadow: 0 2px 9px rgba(16, 40, 50, 0.1);
  color: var(--teal);
}

.mc-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 220px;
}

.model-votes {
  align-items: end;
  background: #f3f6f2;
  border-bottom: 1px solid var(--ink);
  border-radius: 12px 12px 0 0;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(10, 1fr);
  height: 180px;
  padding: 1rem 1rem 0;
}

.model-vote {
  align-items: flex-start;
  background:
    linear-gradient(
      to top,
      var(--blue) 0 var(--probability),
      var(--coral) var(--probability) 100%
    );
  border-radius: 7px 7px 0 0;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
  transition: background 0.35s ease;
}

.model-vote::after {
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 9px;
  left: 50%;
  position: absolute;
  top: calc(100% - var(--probability));
  transform: translate(-50%, -50%);
  width: 9px;
}

.vote-axis {
  color: var(--muted);
  display: flex;
  font-size: 0.64rem;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.mc-summary {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mc-summary > div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.mc-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.64rem;
}

.mc-summary strong {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.mc-summary p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 0.2rem 0 0;
}

.deep-dive {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.deep-dive summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 1.25rem 0;
}

.deep-dive summary::-webkit-details-marker {
  display: none;
}

.deep-dive summary::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
}

.deep-dive[open] summary::after {
  content: "−";
}

.deep-dive summary span {
  color: var(--teal);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin-right: 0.6rem;
  text-transform: uppercase;
}

.deep-dive > div {
  padding: 0.5rem 1rem 1.5rem;
}

.deep-dive p {
  font-size: 1.05rem;
}

.strategy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 2.5rem 0;
}

.strategy-grid article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}

.strategy-code {
  align-items: center;
  background: var(--coral-soft);
  border-radius: 50%;
  color: var(--coral);
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.strategy-code.cf {
  background: var(--teal-soft);
  color: var(--teal);
}

.strategy-grid h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 0.9rem 0 0.4rem;
}

.strategy-grid p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.round-badge {
  background: var(--ink);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.68rem;
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
}

.round-badge strong {
  font-size: 1rem;
}

.round-ticks {
  color: var(--muted);
  display: flex;
  font-size: 0.58rem;
  justify-content: space-between;
  margin: 0.25rem 0.2rem 1.5rem;
}

.training-compare {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.training-lane {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}

.fa-lane {
  background: #fff8f5;
}

.cf-lane {
  background: #f1faf7;
}

.lane-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.lane-heading > div {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.lane-heading span {
  align-items: center;
  background: var(--coral-soft);
  border-radius: 50%;
  color: var(--coral);
  display: flex;
  font-size: 0.62rem;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.cf-lane .lane-heading span {
  background: var(--teal-soft);
  color: var(--teal);
}

.lane-heading strong {
  font-size: 0.78rem;
}

.lane-heading b {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
}

.batch-track {
  align-content: start;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(16, 40, 50, 0.18);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 1rem 0;
  min-height: 96px;
  padding: 0.7rem;
}

.batch-block {
  align-items: center;
  background: var(--coral);
  border-radius: 5px;
  color: #ffffff;
  display: flex;
  font-size: 0.53rem;
  height: 28px;
  justify-content: center;
  transition: all 0.2s ease;
  width: calc(16.66% - 4px);
}

.batch-block.seed {
  background: #8d9da0;
}

.cf-lane .batch-block {
  background: var(--teal);
  width: calc(20% - 4px);
}

.lane-stat {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.lane-stat span {
  color: var(--muted);
  font-size: 0.62rem;
}

.lane-stat strong {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.illustration-note,
.source-note {
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 0.66rem !important;
  line-height: 1.45 !important;
  margin: 1rem 0 0 !important;
}

.experiment-card {
  background: var(--ink);
  border-radius: 20px;
  color: #ffffff;
  margin: 3rem -5rem;
  padding: 2rem 2.2rem;
}

.experiment-title span {
  color: #6bdfc9;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experiment-title h3 {
  color: #ffffff;
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.3rem 0 1.5rem;
}

.experiment-stats {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(5, 1fr);
}

.experiment-stats div {
  border-left: 1px solid rgba(255, 255, 255, 0.17);
  padding-left: 1rem;
}

.experiment-stats strong {
  color: #6bdfc9;
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
}

.experiment-stats span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.6rem;
}

.experiment-card > p {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 1.5rem 0 0;
}

.savings-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saving-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 145px 1fr 64px;
}

.saving-row div:first-child strong,
.saving-row div:first-child span {
  display: block;
}

.saving-row div:first-child strong {
  font-size: 0.78rem;
}

.saving-row div:first-child span {
  color: var(--muted);
  font-size: 0.6rem;
}

.saving-track {
  background: #e8eeea;
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
}

.saving-track i {
  background:
    linear-gradient(
      90deg,
      var(--teal),
      #56c9b5
    );
  border-radius: inherit;
  display: block;
  height: 100%;
  transition:
    width 0.45s
    cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 33.56%;
}

.saving-row output {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.2rem;
  text-align: right;
}

.select-label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.select-label select {
  background: #f0f4ef;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  display: block;
  margin-top: 0.3rem;
  padding: 0.6rem 2rem 0.6rem 0.7rem;
}

.language-result {
  background:
    linear-gradient(
      145deg,
      #f3f8f3,
      #eef6f4
    );
  border-radius: 14px;
  padding: 1.4rem;
}

.language-status {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.language-status > span {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: 0.68rem;
  font-weight: 700;
  height: 54px;
  justify-content: center;
  letter-spacing: 0.05em;
  width: 54px;
}

.language-status h4 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0;
}

.language-status p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  margin: 0;
}

.language-facts {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.3rem 0;
}

.language-facts div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 40, 50, 0.08);
  border-radius: 10px;
  padding: 0.8rem;
}

.language-facts span {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
}

.language-facts strong {
  font-size: 0.8rem;
}

.language-facts strong.positive {
  color: var(--teal);
}

.language-facts strong.mixed {
  color: #9b6a13;
}

.language-facts strong.cautious {
  color: var(--coral);
}

.language-result > p {
  color: #38535b;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0;
}

.finding-chain {
  align-items: stretch;
  display: grid;
  gap: 0.7rem;
  grid-template-columns:
    1fr auto 1fr auto 1fr;
  margin: 2.5rem -5rem;
}

.finding-chain div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}

.finding-chain span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
}

.finding-chain p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.45;
  margin: 0.3rem 0 0;
}

.finding-chain > i {
  align-self: center;
  color: var(--teal);
  font-style: normal;
}

.caveat-card {
  background: #fff7eb;
  border-color: rgba(201, 154, 66, 0.28);
  margin-top: 3.5rem;
}

.caveat-card > span {
  color: #956b1e;
}

.caveat-card h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  margin: 0.5rem 0 0.8rem;
}

.caveat-card p {
  color: #5c4b2f;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
}

.closing-heading {
  margin-top: 6rem !important;
}

.takeaway-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 2.5rem -6rem;
}

.takeaway-grid div {
  border-top: 2px solid var(--teal);
  padding: 1rem 0.7rem;
}

.takeaway-grid span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
}

.takeaway-grid p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
}

.paper-section {
  background: #e8f3ed;
  border: 1px solid rgba(17, 124, 114, 0.16);
  border-radius: 24px;
  margin: 7rem 0 3rem;
  padding: clamp(2rem, 6vw, 4.5rem);
}

.paper-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.7rem 0 1rem;
  max-width: 900px;
}

.paper-section p {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 760px;
}

.next-essay {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.8fr 1.5fr auto;
  margin: 5rem 0;
  padding: 2.2rem 0;
}

.next-essay span,
.next-essay small {
  display: block;
}

.next-essay > div:first-child span {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-essay small {
  color: var(--muted);
  font-size: 0.68rem;
}

.next-essay h2 {
  font-size: 2rem;
  margin: 0;
}

.next-essay p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  margin: 0.2rem 0 0;
}

.coming-soon {
  background: #eef2ec;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
  }

  .site-header nav {
    padding-bottom: 0.15rem;
    width: 100%;
  }

  .reading-progress {
    top: 117px;
  }

  .interactive-card.wide {
    margin-left: -4rem;
    margin-right: -4rem;
  }

  .loop-strip {
    margin-left: -3rem;
    margin-right: -3rem;
  }

  .experiment-card,
  .finding-chain {
    margin-left: -2rem;
    margin-right: -2rem;
  }

  .takeaway-grid {
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

@media (max-width: 860px) {
  .article-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    display: none;
  }

  .article-map {
    grid-template-columns: 1fr 1fr;
  }

  .article-map a:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .article-map a:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .interactive-card.wide,
  .loop-strip,
  .experiment-card,
  .finding-chain,
  .takeaway-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .playground-layout,
  .mc-layout {
    grid-template-columns: 1fr;
  }

  .playground-controls {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr 1fr;
  }

  .playground-controls fieldset {
    grid-column: 1 / -1;
  }

  .control-note {
    grid-column: 1 / -1;
  }

  .post-card.featured {
    grid-template-columns: 1fr;
  }

  .post-card-art {
    min-height: 330px;
  }

  .finding-chain {
    grid-template-columns: 1fr;
  }

  .finding-chain > i {
    transform: rotate(90deg);
  }

  .takeaway-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 0.7rem 1rem;
  }

  .site-brand > span:last-child {
    display: none;
  }

  .site-header nav {
    gap: 0.9rem;
  }

  .site-header nav a {
    font-size: 0.68rem;
  }

  .reading-progress {
    top: 102px;
  }

  .blog-index-hero {
    min-height: auto;
    padding: 5rem 1.2rem;
  }

  .blog-index-hero::after {
    height: 260px;
    opacity: 0.55;
    right: -30%;
    top: 18%;
    width: 260px;
  }

  .blog-index-hero h1 {
    font-size: 3.3rem;
  }

  .series-section {
    padding: 4rem 1rem;
  }

  .series-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card.featured {
    grid-column: auto;
  }

  .post-card h3 {
    font-size: 2rem;
  }

  .article-hero {
    padding: 4rem 1.1rem 3.5rem;
  }

  .article-hero h1 {
    font-size: 3.35rem;
  }

  .dek {
    font-size: 1.2rem;
  }

  .byline span + span::before {
    display: none;
  }

  .article-map {
    display: none;
  }

  .article-body {
    padding: 0 1rem;
  }

  .article-body > section:not(.paper-section) {
    padding-top: 4.5rem;
  }

  .article-body h2 {
    font-size: 2.55rem;
  }

  .article-body h3 {
    margin-top: 3.2rem;
  }

  .article-body p,
  .article-body p.lead {
    font-size: 1.12rem;
  }

  .loop-strip {
    grid-template-columns: 1fr 1fr;
  }

  .loop-strip > i {
    display: none;
  }

  .loop-strip div {
    min-height: 110px;
  }

  .interactive-card {
    border-radius: 16px;
    padding: 1.1rem;
  }

  .interactive-heading {
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
  }

  .playground-controls {
    display: block;
  }

  .metric-pair {
    margin-bottom: 1rem;
  }

  .uncertainty-compare,
  .strategy-grid,
  .training-compare,
  .language-facts {
    grid-template-columns: 1fr;
  }

  .model-votes {
    gap: 0.2rem;
    height: 150px;
    padding: 0.7rem 0.6rem 0;
  }

  .model-vote::after {
    height: 6px;
    width: 6px;
  }

  .equation {
    font-size: 0.85rem;
  }

  .equation-card {
    padding: 1rem;
  }

  .experiment-card {
    padding: 1.4rem;
  }

  .experiment-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .experiment-stats div:last-child {
    grid-column: 1 / -1;
  }

  .experiment-stats strong {
    font-size: 1.8rem;
  }

  .saving-row {
    gap: 0.6rem;
    grid-template-columns: 105px 1fr 52px;
  }

  .saving-row output {
    font-size: 1rem;
  }

  .takeaway-grid {
    grid-template-columns: 1fr;
  }

  .paper-section {
    margin-top: 5rem;
  }

  .next-essay {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .blog-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 4rem;
  }

  .footer-links {
    gap: 0.75rem 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* Updated acquisition and finetuning controls */

.action-button:disabled,
.action-button:disabled:hover {
  background: #8d9da0;
  cursor: not-allowed;
  opacity: 0.72;
}

.batch-track {
  align-items: flex-start;
  align-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 96px;
}

.batch-block {
  align-items: center;
  background: var(--coral);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  min-width: 96px;
  padding: 0 0.7rem;
  white-space: nowrap;
  width: auto;
}

.batch-block.seed {
  background: #687b80;
  min-width: 120px;
}

.batch-block.query-batch {
  background: var(--coral);
}

.cf-lane .batch-block,
.cf-lane .batch-block.query-batch {
  background: var(--teal);
  min-width: 120px;
  width: auto;
}

.batch-block:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

