:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --ink: #fff;
  --muted: #b5b5b5;
  --accent: #dafa9c;
  --accent-ink: #0f0f0f;
  --paper: #f5f5f2;
  --paper-ink: #191919;
  --margin: clamp(20px, 4vw, 64px);
  --body: clamp(17px, 1.25vw, 19px);
  --head: clamp(30px, 4vw, 58px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --art-bg: #dafa9c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'TikTok Sans', Arial, Helvetica, sans-serif;
  font-size: var(--body);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: var(--bg);
  z-index: 99;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.preview-banner {
  padding: 9px var(--margin);
  font-size: 14px;
  background: var(--accent);
  color: var(--bg);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--margin);
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -2px;
  text-decoration: none;
  gap: 3px;
  white-space: nowrap;
}
.brand > span:first-child {
  color: var(--accent);
}
.brand-name {
  font-size: 15px;
  letter-spacing: -0.4px;
  margin-left: 16px;
}
.site-header nav {
  display: flex;
  gap: clamp(16px, 3vw, 44px);
  font-size: 16px;
}
.site-header nav a,
.language {
  text-decoration: none;
}
.site-header nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.language {
  font-size: 15px;
}
.hero {
  padding: 70px var(--margin) 34px;
  overflow: hidden;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.hero-top p {
  max-width: 460px;
  margin: 0;
  font-size: 19px;
}
.text-link {
  font-size: 17px;
  white-space: nowrap;
}
.monument {
  font-size: clamp(46px, 12.5vw, 210px);
  line-height: 1;
  letter-spacing: -0.075em;
  margin: 75px 0 65px;
  font-weight: 800;
  white-space: nowrap;
  position: relative;
  transform-origin: left center;
}
.cursor {
  color: var(--accent);
  display: inline-block;
  font-weight: 400;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--muted);
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h2 {
  font-size: var(--head);
  font-weight: 600;
}
p {
  margin-top: 0;
}
.writing-section {
  padding: 65px var(--margin) 85px;
  background: var(--paper);
  color: var(--paper-ink);
}
.writing-section a:hover {
  color: #42601c;
}
.writing-section :focus-visible {
  outline-color: #44691d;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > a {
  font-size: 16px;
}
.entries {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.entry {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.entry-art {
  display: block;
  overflow: hidden;
  background: var(--accent);
  color: #22350f;
  --art-bg: var(--accent);
}
.entry:nth-child(3n + 2) .entry-art {
  background: #deded8;
  color: #272725;
  --art-bg: #deded8;
}
.entry:nth-child(3n + 3) .entry-art {
  background: #242623;
  color: #dafa9c;
  --art-bg: #242623;
}
.technical-art {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.entry-art:hover .technical-art,
.lab-visual:hover .technical-art {
  transform: scale(1.04);
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #4c4c48;
}
.entry-meta > span {
  color: #62625c;
}
.entry h3 {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 600;
  margin: 14px 0 18px;
}
.entry h3 a {
  text-decoration: none;
}
.entry h3 a > span {
  font-weight: 400;
  font-size: 0.7em;
}
.entry-copy > p {
  max-width: 560px;
  margin-bottom: 18px;
}
.entry-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #4c4c48;
}
.empty {
  max-width: 650px;
  padding: 30px 0;
}
.empty h2 {
  font-size: 32px;
}
.empty p {
  margin: 20px 0 0;
}
.lab-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
  padding: 90px var(--margin);
  background: var(--accent);
  color: var(--accent-ink);
}
.lab-promo h2 {
  margin: 0 0 24px;
  max-width: 520px;
}
.lab-promo p {
  max-width: 470px;
}
.button {
  display: inline-block;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
.button:hover {
  background: #c3e483;
  color: var(--accent-ink);
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(1px);
}
.lab-promo .button {
  background: var(--bg);
  color: var(--ink);
}
.lab-promo a:focus-visible {
  outline-color: var(--bg);
}
.lab-visual {
  color: #23340f;
  text-align: center;
  text-decoration: none;
  --art-bg: var(--accent);
  overflow: hidden;
}
.lab-visual > span {
  font-size: 15px;
}
.tracks {
  padding: 85px var(--margin) 100px;
}
.tracks > h2 {
  margin-top: 0;
}
.track-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.track-list a {
  display: grid;
  grid-template-columns: 0.6fr 1fr 30px;
  align-items: center;
  gap: 30px;
  text-decoration: none;
}
.track-list strong {
  font-size: clamp(30px, 4.5vw, 62px);
  letter-spacing: -0.05em;
}
.track-list a > span {
  color: var(--muted);
  max-width: 530px;
}
.track-list a > span:last-child {
  font-size: 28px;
}
.footer {
  padding: 48px var(--margin) 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--paper-ink);
}
.footer a:hover {
  color: #42601c;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.footer-top > p {
  max-width: 330px;
  font-size: 23px;
  line-height: 1.3;
}
.footer-top > div {
  display: flex;
  gap: 25px;
  align-items: start;
  font-size: 16px;
}
.privacy {
  font-size: 13px;
  color: #55554e;
  margin: 35px 0 0;
}
.footer-word {
  font-size: 15vw;
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(20%);
  margin-top: 25px;
}
.page-heading {
  padding: 70px var(--margin) 60px;
}
.page-heading h1 {
  font-size: clamp(42px, 7vw, 100px);
  margin: 0 0 30px;
  max-width: 950px;
}
.page-heading > p {
  max-width: 650px;
  font-size: 20px;
  margin-bottom: 0;
}
.page-heading > a {
  display: inline-block;
  margin-bottom: 30px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 var(--margin) 40px;
}
.filters > a {
  font-size: 16px;
  padding: 11px 17px;
  text-decoration: none;
  background: var(--surface);
}
.filters > a[aria-current] {
  background: var(--accent);
  color: var(--bg);
}
.index-list {
  padding-top: 55px;
}
.about-layout {
  padding: 80px var(--margin) 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
}
.about-layout h1 {
  font-size: clamp(42px, 6vw, 84px);
  margin: 0;
  max-width: 590px;
}
.prose {
  min-width: 0;
  max-width: 720px;
  font-size: 19px;
  line-height: 1.8;
}
.prose p {
  margin-bottom: 25px;
}
.prose .lead,
.lead {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.5;
}
.prose h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  margin: 55px 0 24px;
  letter-spacing: -0.03em;
}
.prose section:first-child h2 {
  margin-top: 0;
}
.prose section {
  scroll-margin-top: 30px;
}
.prose pre {
  white-space: pre;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.8;
  background: #242623;
  padding: 28px 24px;
  margin: 0;
  color: #e5eddc;
  tab-size: 2;
  max-width: 100%;
}
.prose code {
  font-family: Consolas, 'Courier New', monospace;
}
.code-wrap {
  margin: 30px 0;
  position: relative;
  min-width: 0;
  background: #242623;
}
.code-wrap button {
  display: block;
  margin-left: auto;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  font-size: 14px;
  padding: 8px 14px;
  cursor: pointer;
}
.article-heading {
  padding: 60px var(--margin) 60px;
  max-width: 1120px;
}
.article-heading > a {
  font-size: 16px;
}
.article-kind {
  font-size: 14px;
  color: var(--muted);
  margin-top: 45px;
}
.article-heading h1 {
  font-size: clamp(40px, 6.7vw, 90px);
  margin: 20px 0 28px;
  max-width: 980px;
}
.article-heading .lead {
  max-width: 800px;
}
.article-dates {
  font-size: 14px;
  color: var(--muted);
}
.source-note,
.draft-notice {
  font-size: 15px;
  background: var(--surface);
  padding: 15px 20px;
  max-width: 720px;
  margin: 25px 0 0;
  color: var(--accent);
}
.article-layout {
  padding: 10px var(--margin) 85px;
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  justify-content: space-between;
  gap: 55px;
}
.article-layout aside nav {
  position: sticky;
  top: 30px;
  font-size: 14px;
  max-width: 220px;
}
.article-layout aside a {
  display: block;
  text-decoration: none;
  margin-bottom: 14px;
  color: var(--muted);
}
.article-layout aside p {
  font-weight: 600;
}
.prose li {
  margin-bottom: 15px;
}
.prose a {
  overflow-wrap: anywhere;
}
.related {
  padding: 50px var(--margin) 70px;
  background: var(--surface);
}
.related h2 {
  font-size: 32px;
}
.related > a {
  display: block;
  font-size: 21px;
  margin: 20px 0;
}
.experiment {
  margin: 0 var(--margin) 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.controls {
  padding: 35px 40px;
}
.controls h2,
.decision-panel h2 {
  font-size: 25px;
  margin: 0 0 30px;
}
.controls > label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.controls > input {
  display: block;
  width: 100%;
  margin: 22px 0 36px;
  accent-color: var(--accent);
  min-height: 35px;
  cursor: pointer;
}
.check-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 12px 0;
  min-height: 44px;
}
.check-control input {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.check-control label {
  cursor: pointer;
}
.controls > p {
  font-size: 14px;
  color: var(--muted);
  margin: 30px 0 0;
}
.decision-panel {
  padding: 35px 40px;
  background: var(--accent);
  color: var(--bg);
  --art-bg: var(--accent);
}
.decision-panel output {
  display: block;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 10px 0 22px;
}
.decision-panel p {
  font-size: 15px;
  margin: 0;
}
.decision-panel .technical-art {
  max-height: 220px;
}
.demo-explanation {
  margin: 0 auto 100px;
  padding: 0 24px;
}
.demo-explanation pre {
  font-size: 14px;
}
.language-landing {
  padding: 15vh var(--margin);
  max-width: 1000px;
  margin: auto;
}
.language-landing h1 {
  font-size: clamp(38px, 8vw, 100px);
  margin: 0 0 30px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
@supports (animation-timeline: scroll()) {
  .monument {
    animation: word-scale linear both;
    animation-timeline: scroll();
    animation-range: 0 650px;
  }
  @keyframes word-scale {
    to {
      transform: scale(0.96);
    }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-top {
    animation: arrive 0.65s var(--ease) both;
  }
  .monument {
    animation-name: arrive;
  }
  .hero-bottom {
    animation: arrive 0.85s var(--ease) both;
  }
  @keyframes arrive {
    from {
      opacity: 0.5;
      translate: 0 16px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
  .entry-copy {
    animation: entry-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }
  @keyframes entry-in {
    from {
      translate: 0 18px;
      opacity: 0.65;
    }
    to {
      translate: 0 0;
      opacity: 1;
    }
  }
}
@media (min-width: 1500px) {
  .monument {
    font-size: 12.5vw;
  }
  .entry-art {
    max-height: 330px;
  }
  .technical-art {
    max-height: 330px;
  }
}
@media (max-width: 850px) {
  .brand-name {
    display: none;
  }
  .hero {
    padding-top: 50px;
  }
  .hero-top p {
    font-size: 17px;
    max-width: 390px;
  }
  .hero-top .text-link {
    font-size: 15px;
  }
  .monument {
    margin: 70px 0;
  }
  .entry {
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
  }
  .entry h3 {
    font-size: 30px;
  }
  .entry-copy > p {
    font-size: 16px;
  }
  .entry-meta {
    font-size: 13px;
  }
  .entry-topics {
    font-size: 13px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
  .article-layout aside nav {
    position: static;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .article-layout aside p {
    width: 100%;
    margin-bottom: 0;
  }
  .article-layout aside a {
    margin: 0;
  }
  .article-layout .prose {
    margin: auto;
    width: 100%;
  }
  .experiment {
    grid-template-columns: 1fr 1fr;
  }
  .controls,
  .decision-panel {
    padding: 26px;
  }
  .controls > label,
  .check-control {
    font-size: 16px;
  }
  .about-layout {
    gap: 35px;
  }
  .about-layout .prose {
    font-size: 17px;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding-top: 22px;
    padding-bottom: 20px;
    gap: 12px;
  }
  .site-header nav {
    gap: 17px;
    font-size: 14px;
  }
  .brand {
    font-size: 22px;
  }
  .language {
    font-size: 14px;
  }
  .hero {
    padding-top: 38px;
  }
  .hero-top {
    display: block;
  }
  .hero-top p {
    font-size: 17px;
    max-width: 330px;
  }
  .hero-top .text-link {
    display: inline-block;
    margin-top: 25px;
  }
  .monument {
    font-size: 12vw;
    margin: 55px 0 45px;
    letter-spacing: -0.075em;
  }
  .hero-bottom {
    font-size: 13px;
  }
  .cursor {
    display: none;
  }
  .writing-section {
    padding-top: 44px;
    padding-bottom: 50px;
  }
  .section-heading {
    align-items: center;
    margin-bottom: 30px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .section-heading > a {
    font-size: 14px;
    white-space: nowrap;
    text-align: right;
  }
  .entry {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .entry-art {
    max-height: 220px;
  }
  .entry-art .technical-art {
    height: 210px;
  }
  .entry h3 {
    font-size: 31px;
    margin-top: 12px;
  }
  .entries {
    gap: 44px;
  }
  .entry-copy > p {
    font-size: 17px;
  }
  .entry-meta {
    font-size: 13px;
  }
  .entry-topics {
    font-size: 14px;
  }
  .lab-promo {
    grid-template-columns: 1fr;
    padding-top: 50px;
    padding-bottom: 45px;
    gap: 25px;
  }
  .lab-promo h2 {
    font-size: 36px;
  }
  .lab-promo p {
    font-size: 17px;
  }
  .lab-visual .technical-art {
    max-height: 230px;
  }
  .tracks {
    padding-top: 50px;
    padding-bottom: 60px;
  }
  .tracks h2 {
    font-size: 32px;
  }
  .track-list a {
    grid-template-columns: 1fr 28px;
    gap: 8px 15px;
  }
  .track-list strong {
    font-size: 40px;
  }
  .track-list a > span:first-of-type {
    grid-column: 1;
    grid-row: 2;
    font-size: 16px;
  }
  .track-list a > span:last-child {
    grid-column: 2;
    grid-row: 1/3;
  }
  .footer {
    padding-top: 35px;
  }
  .footer-top {
    flex-direction: column;
    gap: 10px;
  }
  .footer-top > p {
    font-size: 22px;
    max-width: 290px;
  }
  .footer-top > div {
    font-size: 15px;
    gap: 22px;
  }
  .privacy {
    font-size: 13px;
    max-width: 320px;
  }
  .footer-word {
    margin-top: 30px;
    font-size: 14.8vw;
  }
  .page-heading {
    padding-top: 45px;
    padding-bottom: 40px;
  }
  .page-heading h1 {
    font-size: 43px;
  }
  .page-heading > p {
    font-size: 18px;
  }
  .filters {
    gap: 8px;
    padding-bottom: 30px;
  }
  .filters > a {
    font-size: 14px;
    padding: 10px 13px;
  }
  .about-layout {
    display: block;
    padding-top: 45px;
    padding-bottom: 65px;
  }
  .about-layout h1 {
    font-size: 48px;
    margin-bottom: 35px;
  }
  .about-layout .prose {
    font-size: 18px;
  }
  .article-heading {
    padding-top: 35px;
    padding-bottom: 35px;
  }
  .article-heading h1 {
    font-size: 42px;
  }
  .article-kind {
    margin-top: 30px;
    font-size: 13px;
  }
  .article-dates {
    font-size: 13px;
    line-height: 1.8;
  }
  .article-layout {
    padding-bottom: 50px;
    gap: 40px;
  }
  .article-layout aside nav {
    font-size: 14px;
  }
  .article-layout .prose {
    font-size: 18px;
    line-height: 1.8;
  }
  .prose pre {
    font-size: 13px;
    padding: 20px 16px;
  }
  .prose h2 {
    font-size: 29px;
    margin-top: 40px;
  }
  .experiment {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
  .controls,
  .decision-panel {
    padding: 26px 22px;
  }
  .decision-panel output {
    font-size: 36px;
  }
  .controls h2,
  .decision-panel h2 {
    font-size: 25px;
  }
  .decision-panel .technical-art {
    max-height: 180px;
  }
  .demo-explanation {
    margin-bottom: 60px;
  }
  .demo-explanation h2 {
    font-size: 29px;
  }
  .related h2 {
    font-size: 30px;
  }
  .empty h2 {
    font-size: 28px;
  }
  .empty {
    padding: 15px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Put inspectable work alongside the publication's typographic signature. */
.hero {
  padding-top: 38px;
  padding-bottom: 30px;
}
.monument {
  font-size: clamp(40px, 9.4vw, 144px);
  letter-spacing: -0.04em;
  margin: 32px 0 28px;
}
.hero-top {
  align-items: center;
}
.hero-top p {
  max-width: 560px;
}
.lab-promo {
  padding-top: 52px;
  padding-bottom: 52px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.lab-visual,
.lab-visual:hover,
.lab-visual:focus-visible {
  color: var(--accent-ink);
}
.lab-visual {
  text-align: left;
  min-width: 0;
}
.policy-preview {
  font:
    clamp(14px, 1.3vw, 19px) / 1.75 ui-monospace,
    Consolas,
    monospace;
  margin: 0 0 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry-code {
  font:
    14px/1.75 ui-monospace,
    Consolas,
    monospace;
  margin: 0;
  padding: 32px;
  min-height: 240px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}
.entry,
.entry-copy,
.entry-art {
  min-width: 0;
}
.section-heading {
  flex-wrap: wrap;
}
.section-heading > a {
  white-space: normal;
}
.site-header nav a,
.site-header > .language {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 600px) {
  .site-header {
    padding-top: 16px;
    padding-bottom: 12px;
  }
  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 16px;
    margin-top: 0;
  }
  .hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .hero-top .text-link {
    margin-top: 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .monument {
    font-size: 9.4vw;
    margin: 24px 0;
    letter-spacing: -0.04em;
  }
  .lab-promo {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .lab-promo h2 {
    font-size: 32px;
    margin-bottom: 18px;
  }
  .policy-preview {
    font-size: 13px;
    line-height: 1.8;
  }
  .lab-visual > span {
    font-size: 14px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 12px 18px;
  }
  .section-heading > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-align: left;
  }
  .entry-code {
    font-size: 13px;
    padding: 24px;
    min-height: 190px;
  }
}

/* Reading entry points: titles first, examples second. */
.monument {
  font-size: clamp(38px, 8vw, 96px);
  letter-spacing: -0.035em;
}
.entry-art {
  margin: 0;
}
.entry-art:has(svg) {
  display: none;
}
.entry:has(.entry-art svg) {
  grid-template-columns: 1fr;
}
.entry:has(.entry-art svg) .entry-copy {
  padding-block: 28px;
}
.entry-meta {
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.prose {
  max-width: 72ch;
}
.prose h2 {
  margin-top: 2em;
  margin-bottom: 0.7em;
  line-height: 1.2;
}
.site-header > .language {
  min-width: 48px;
  justify-content: center;
}
@media (max-width: 700px) {
  .entry-copy {
    order: -1;
  }
  .entry-art {
    order: 1;
  }
  .entry-code {
    min-height: 0;
  }
  .lab-promo {
    padding-block: 30px;
  }
  .monument {
    font-size: 9.4vw;
  }
}

/* Article diagrams (inline SVG, see content/figures.mjs). */
.diagram {
  margin: 32px 0;
  padding: 20px;
  background: #242623;
  border-radius: 6px;
}
.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.diagram figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}
.dg-box {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.dg-accent {
  fill: var(--accent);
}
.dg-bar {
  fill: var(--muted);
  opacity: 0.55;
}
.dg-text,
.dg-label,
.dg-small {
  fill: var(--ink);
  font-family: inherit;
}
.dg-text {
  font-size: 19px;
}
.dg-accent-text {
  fill: var(--accent-ink);
  font-size: 19px;
  font-weight: 700;
}
.dg-label {
  font-size: 17px;
  fill: var(--accent);
  font-weight: 700;
}
.dg-small {
  font-size: 15px;
  fill: var(--muted);
}
.dg-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.dg-loop {
  stroke: var(--accent);
  stroke-dasharray: 5 4;
}
.dg-arrowhead {
  fill: var(--muted);
}
@media (max-width: 600px) {
  .diagram {
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
  }
}
.dg-accent-small {
  fill: var(--accent-ink);
  font-size: 15px;
}

/* Lab index and experiments. */
.lab-index {
  display: grid;
  gap: 20px;
  margin: 0 var(--margin) 80px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.lab-card {
  padding: 26px;
  background: var(--surface);
  border-radius: 6px;
}
.lab-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.lab-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.lab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  margin: 0 var(--margin);
  padding: 28px;
  background: var(--surface);
  border-radius: 6px;
}
.lab-controls {
  display: grid;
  gap: 16px;
  align-content: start;
}
.lab-controls label,
.lab-controls legend {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}
.lab-controls fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.lab-radio {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--ink) !important;
}
.lab input[type='number'],
.lab input:not([type]),
.lab select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 8px 10px;
  max-width: 100%;
}
.lab-result {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.lab-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.lab-big {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: var(--accent);
}
.lab-code {
  display: block;
  padding: 10px 12px;
  background: #242623;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.lab-note,
.lab-error {
  font-size: 15px;
  color: var(--muted);
}
.lab-error {
  color: var(--accent);
}
.lab-scale {
  position: relative;
  height: 14px;
  margin-top: 6px;
  border-radius: 3px;
  background: #242623;
}
.lab-scale span {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 3px;
}
.lab-hits {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}
.lab-score {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.lab-grid {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.lab-grid th,
.lab-grid td {
  padding: 6px 8px;
  text-align: center;
  font-size: 15px;
}
.lab-grid th:first-child {
  text-align: left;
  white-space: nowrap;
}
.lab-grid td.pass {
  background: var(--accent);
  color: var(--accent-ink);
}
.lab-grid td.fail {
  background: #3a3c38;
  color: var(--muted);
}
.lab-outputs {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.lab-link,
.lab-article-link {
  margin: 20px 0 0;
}
.lab-article-link {
  margin: 28px var(--margin) 80px;
}
@media (max-width: 760px) {
  .lab {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
  .lab-grid {
    display: block;
    overflow-x: auto;
  }
}
