:root {
  color-scheme: light dark;
  --paper: #f9f8f2;
  --ink: #172c29;
  --muted: #465c55;
  --rule: #afbbb0;
  --link: #214f48;
}
* { box-sizing: border-box; }
body { display: block; margin: 0; padding: 0; overflow-x: visible; background: var(--paper); color: var(--ink); font-family: var(--font-main); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .17em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 1; padding: .6rem 1rem; background: var(--paper); }
.skip:focus-visible { top: .5rem; }
.mast, .contents, .reading { width: min(71rem, calc(100% - 3rem)); margin-inline: auto; }
.mast { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 0; gap: 1rem; border-bottom: 1px solid var(--rule); }
.mast a { text-decoration: none; }
.mast a:hover, .mast a[aria-current] { text-decoration: underline; }
.signature { color: var(--ink); font-size: 1.25rem; font-weight: 650; white-space: nowrap; }
.mast nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); font: 600 .88rem/1.45 var(--font-ui); }
.mast nav a { display: inline-block; padding: .6rem 0; }
.contents { padding-block: clamp(2.3rem, 6vw, 5rem) 5rem; }
.contents-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; }
h1, h2, p, figure { margin: 0; }
p { color: inherit; font-size: inherit; line-height: inherit; }
h1, h2 { font-weight: 500; text-wrap: balance; }
.contents-head h1 { font-size: clamp(2.65rem, 7vw, 5.8rem); letter-spacing: -.045em; line-height: 1; }
.contents-head time, .byline, .topic, figcaption, caption, .afterword { font-family: var(--font-ui); }
.contents-head time, .byline { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; }
.entry-link { display: block; color: inherit; text-decoration: none; }
.entry-link:hover h2, .entry-link:focus-visible h2 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .12em; }
.cover { background: #f5f5ef; border: 1px solid var(--rule); }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 2.55; object-fit: contain; }
.topic { color: var(--link); font-size: .76rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.entry-copy { padding-top: 1.1rem; }
.entry h2 { margin: .55rem 0 .65rem; font-size: clamp(1.55rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.08; }
.entry-copy h2 + p { font-size: 1.09rem; line-height: 1.48; }
.featured { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); padding-block: 1.75rem; }
.featured .entry-link { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.featured .cover img { aspect-ratio: 800 / 351; }
.featured .entry-copy { padding: 0; }
.featured h2 { font-size: clamp(2.05rem, 4.2vw, 3.5rem); }
.reading { max-width: 50rem; padding-block: clamp(2.6rem, 6vw, 5rem) 4rem; }
.article-head { padding-bottom: 1.65rem; border-bottom: 1px solid var(--rule); }
.article-head h1 { margin: .75rem 0 .9rem; max-width: 22ch; font-size: clamp(2.6rem, 5.9vw, 4.75rem); letter-spacing: -.043em; line-height: 1.02; }
.deck { max-width: 54ch; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.38; }
.byline { margin-top: 1.15rem; }
.byline span { padding-inline: .32rem; }
.byline b { color: var(--ink); font-weight: 650; }
.byline code, .credits code, .entry-model, .companion-credit code { font: .94em var(--font-mono); }
.contents-head .topic { margin-bottom: .5rem; }
.entry-model { margin-top: .85rem; display: block; color: var(--muted); font-size: .77rem; }
.credits { max-width: 46rem; margin-top: .65rem; font: .87rem/1.55 var(--font-ui); color: var(--muted); }
.credits summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: .17em; }
.credits dl { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: .35rem 1.1rem; margin: .8rem 0 0; }
.credits dt { color: var(--ink); font-weight: 650; }
.credits dd { margin: 0; }
.companion-jump { display: inline-block; margin-top: .8rem; font: .87rem/1.5 var(--font-ui); }
.prose { max-width: 43rem; margin: 2rem auto; font-size: clamp(1.15rem, 2.15vw, 1.33rem); line-height: 1.64; overflow-wrap: break-word; }
.prose p + p { margin-top: 1.07em; }
.prose h2 { margin: 1.65em 0 .45em; font-size: 1.63em; letter-spacing: -.035em; line-height: 1.13; }
.refs { font: .73em/1.5 var(--font-ui); }
.prose figure { margin-block: 1.75rem; }
.plate img, .axis-picture img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.axis-picture img { max-height: 12rem; object-fit: contain; background: #faf8f1; }
figcaption { margin-top: .55rem; color: var(--muted); font-size: .87rem; line-height: 1.5; }
table { width: 100%; border-collapse: collapse; margin-block: 1.4rem; font: .87em/1.4 var(--font-ui); font-variant-numeric: tabular-nums; }
caption { color: var(--ink); text-align: left; font-weight: 650; padding-bottom: .6rem; }
th, td { border-bottom: 1px solid var(--rule); padding: .55rem .4rem; text-align: right; }
th:first-child { text-align: left; padding-left: 0; }
thead { border-top: 1px solid var(--ink); }
thead th { color: var(--muted); font-size: .88em; }
.axis-figure table { margin-block: .9rem .4rem; }
.prose .equation { max-width: 100%; overflow-x: auto; padding: .6rem .15rem; margin: .8em 0; font-size: 1.05em; }
.prose math[display="block"] { margin: 0; }
.prose figure.science { margin-block: 1.75em; }
.science img { display: block; width: 100%; height: auto; background: #fcfbf6; border: 1px solid var(--rule); }
.science figcaption strong { color: var(--ink); }
.source-links { font: .85rem/1.55 var(--font-ui); }
.calculation { border-block-start: 1px solid var(--rule); margin-block: 1.15em; }
.calculation summary { width: fit-content; padding-block: .7rem; cursor: pointer; color: var(--link); font: 600 .94rem/1.5 var(--font-ui); }
.calculation p { font-size: .93em; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 1.3rem 0; }
.table-wrap table { margin: 0; }
.companion { border-top: 2px solid var(--ink); margin-top: 3.25rem; padding-top: 1.55rem; scroll-margin-top: 1rem; }
.companion h2 { margin: .32em 0; }
.companion-credit { color: var(--muted); font: .9rem/1.5 var(--font-ui); margin-bottom: 1.35rem; }
.prose h3 { margin: 1.4em 0 .35em; font: 650 1.1em/1.3 var(--font-main); }
.prose blockquote { margin: 1.2em 0; border-left: 2px solid var(--rule); padding-left: .9em; }
.prose .archive-note { margin: 1.55em 0; border-left: 2px solid var(--rule); padding: .15rem 0 .15rem 1rem; font-size: .94em; }
.archive-note .topic { margin-bottom: .4em; }
summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.afterword { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--rule); padding-top: 1.1rem; font-size: .9rem; }
.afterword a:last-child { text-align: right; }
@media (max-width: 680px) {
  .mast, .contents, .reading { width: calc(100% - 2.2rem); }
  .mast { flex-wrap: wrap; row-gap: .2rem; }
  .entries { grid-template-columns: 1fr; gap: 1.8rem; }
  .featured .entry-link { grid-template-columns: 1fr; gap: 1rem; }
  .entry:not(.featured) { padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule); }
  .contents-head { align-items: start; flex-direction: column; gap: .6rem; }
  .prose { font-size: 1.15rem; }
  .credits dl { grid-template-columns: 1fr; gap: .1rem; }
  .credits dd + dt { margin-top: .4rem; }
  th, td { padding-inline: .25rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #18221e; --ink: #eff2e8; --muted: #b5c7ba; --rule: #52645a; --link: #afd9c7; }
}
@media (max-width: 540px) {
  .table-wrap .wide { display: block; }
  .wide caption { display: block; }
  .wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wide tbody, .wide tr { display: block; }
  .wide tr { border-top: 1px solid var(--rule); padding: .65rem 0; }
  .wide tbody th { display: block; border: 0; padding: 0 0 .3rem; }
  .wide td { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: baseline; border: 0; padding: .14rem 0; }
  .wide td::before { content: attr(data-label); content: attr(data-label) / ""; color: var(--muted); text-align: left; font-size: .87em; }
}
@media print {
  :root { --paper: white; --ink: black; --muted: #333; --link: #222; }
  .mast, .skip, .afterword { display: none; }
  .reading, .prose { max-width: none; width: 100%; padding: 0; font-size: 11pt; }
  .article-head h1 { font-size: 25pt; }
  table, figure { break-inside: avoid; }
}
