/* System fonts only, no external requests. Dark by default, light when the visitor's system asks for it. */
:root {
  color-scheme: dark;
  --bg: #0f1318; --surface: #151b23; --fg: #e6e9ee; --muted: #9aa4b2; --line: #26303b;
  --accent: #4aa3f7; --accent-fg: #0b1220;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fbfbfa; --surface: #f1f2f4; --fg: #1a1f26; --muted: #566070; --line: #d9dde3;
    --accent: #0b63c4; --accent-fg: #ffffff;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfbfa; --surface: #f1f2f4; --fg: #1a1f26; --muted: #566070; --line: #d9dde3;
  --accent: #0b63c4; --accent-fg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.6 var(--sans); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
main { padding-top: 1.5rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 2rem 0 .5rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.12rem; margin: 1.6rem 0 .4rem; }
.mono, time, .meta, .badge, .tags, .toc, .cite { font-family: var(--mono); }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.brand img { display: block; }
.site-header nav { flex: 1 1 auto; }
.site-header ul { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--fg); }
.site-header nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; width: 2.2rem; height: 2.2rem; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle:hover { color: var(--fg); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 1.5rem 0 3rem; color: var(--muted); font-size: .95rem; text-align: center; }
.mirror { text-align: center; letter-spacing: .5em; color: var(--muted); margin: 0 0 1.2rem; user-select: none; }
.links { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; }
.links a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.links a:hover { color: var(--fg); text-decoration: underline; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.footer-nav a { color: var(--muted); }
.footer-nav a + a::before { content: "·"; margin: 0 .6rem; color: var(--muted); }
.ai-credit { margin: .8rem 0 0; }

/* home */
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { margin-top: 0; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.intro { max-width: 40rem; font-size: 1.1rem; }
.intro p { margin: 0; }
.doors ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.doors a { display: block; height: 100%; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); text-decoration: none; }
.doors a:hover { border-color: var(--accent); }
.doors strong { display: block; font-size: 1.1rem; }
.doors span { color: var(--muted); }
.featured a { display: flex; gap: 1rem; align-items: center; color: var(--fg); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; max-width: 34rem; }
.featured img { width: 7rem; height: 7rem; object-fit: cover; border-radius: 6px; flex: none; }
.featured small { display: block; color: var(--muted); font-family: var(--mono); }

/* lists */
.entries { list-style: none; padding: 0; margin: 0; }
.entries li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.entries a.title { font-size: 1.15rem; font-weight: 600; color: var(--fg); text-decoration: none; }
.entries a.title:hover { color: var(--accent); }
.entries .meta { margin: 0 0 .15rem; }
.entries .summary { margin: .2rem 0 0; color: var(--muted); }
.meta { font-size: .85rem; color: var(--muted); margin: 0 0 .5rem; }
.meta .sep { margin: 0 .25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .6rem 0; font-size: .85rem; }
.tags a { border: 1px solid var(--line); border-radius: 999px; padding: .05rem .6rem; color: var(--muted); text-decoration: none; }
.tags a:hover { border-color: var(--accent); color: var(--fg); }
.badge { display: inline-block; font-size: .78rem; border: 1px solid currentColor; border-radius: 4px; padding: 0 .4rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.badge-result { color: var(--accent); }
.badge-idea { border-style: dashed; }
.legend { color: var(--muted); font-size: .92rem; }
.legend dt { font-family: var(--mono); float: left; clear: left; width: 8rem; }
.legend dd { margin: 0 0 .25rem 8rem; }
.year-nav { font-family: var(--mono); display: flex; gap: 1rem; flex-wrap: wrap; }
.empty { color: var(--muted); }

/* reading */
.prose { max-width: 42rem; }
.post .prose, .page .prose, .prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; }
.page.prose { margin-left: auto; margin-right: auto; }
.post { max-width: 46rem; }
.post-head h1 { margin: .4rem 0 .6rem; }
.post-head .summary { font-size: 1.15rem; color: var(--muted); margin: 0 0 .5rem; font-family: var(--serif); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table, .prose pre { margin: 0 0 1.1em; }
.prose h1, .prose h2, .prose h3 { font-family: var(--sans); }
.prose blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: 1rem; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface); padding: .1em .3em; border-radius: 4px; }
.prose pre { background: var(--surface); padding: 1rem; overflow-x: auto; border-radius: 8px; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .4rem .8rem; text-align: left; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { display: block; border-radius: 6px; }
.prose figcaption { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.equation { overflow-x: auto; overflow-y: hidden; margin: 0 0 1.1em; }
.katex-display { margin: .6em 0; }
.footnotes { font-size: .95rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.footnotes-sep { display: none; }
.toc { border: 1px solid var(--line); border-radius: 8px; padding: .6rem 1rem; margin: 1.2rem 0; font-size: .9rem; max-width: 42rem; }
.toc h2 { font-size: 1rem; margin: 0 0 .3rem; font-family: var(--mono); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc ol ol { margin-top: .1rem; }
.stub { color: var(--muted); font-family: var(--sans); font-size: .95rem; border: 1px dashed var(--line); border-radius: 8px; padding: .6rem 1rem; }

.revisions, .related, .series-nav, .cite { max-width: 42rem; font-size: .92rem; margin-top: 2rem; }
.revisions h2, .related h2, .cite h2 { font-size: 1rem; font-family: var(--mono); margin: 0 0 .3rem; }
.revisions ul { padding-left: 1.1rem; margin: 0; }
.series-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .8rem 0; }
.series-nav .next { text-align: right; margin-left: auto; }
.series-note { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin: .2rem 0; }
.cite { background: var(--surface); border-radius: 8px; padding: .8rem 1rem; }
.cite p { margin: 0; overflow-wrap: anywhere; }
.back { margin-top: 2rem; }

@media (max-width: 40rem) {
  .legend dt { float: none; width: auto; }
  .legend dd { margin-left: 0; }
  .prose { font-size: 1.08rem; }
}
@media print { .site-header, .site-footer, .theme-toggle { display: none; } body { background: #fff; color: #000; } }

/* home hero: name and tagline centered on top, the photo full width, the intro under it */
.hero { padding: 2rem 0 .5rem; text-align: center; }
.hero h1 { margin: 0 0 .4rem; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.tagline { font-family: var(--sans); color: var(--muted); margin: 0 0 1.6rem; font-size: clamp(1rem, 2.4vw, 1.4rem); }
.tag-item { white-space: nowrap; }
@media (min-width: 44rem) { .tagline { white-space: nowrap; } }
.hero-img img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.hero .intro { max-width: 40rem; margin: 1.5rem auto 0; font-size: 1.15rem; }

/* generic bits */
.lead { color: var(--muted); max-width: 42rem; }
.subnav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: var(--mono); margin: 1rem 0 0; }
.button { display: inline-block; background: var(--accent); color: var(--accent-fg); padding: .5rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.button:hover { text-decoration: underline; }
.more { margin-top: 1rem; }
.note { color: var(--muted); font-size: .9rem; }
.link-list { list-style: none; padding: 0; margin: .4rem 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.badge + .badge { margin-left: .3rem; }
.source { color: var(--muted); font-size: .9rem; }
h2[id], h3[id], section[id] { scroll-margin-top: 1rem; }

/* embeds */
.embed { margin: 0 0 1rem; }
.embed-box { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: .5rem; text-align: center; }
.embed-bandcamp .embed-box { aspect-ratio: auto; height: 120px; padding: 0; }
.embed-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-load { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 6px; padding: .45rem .9rem; cursor: pointer; }
.embed-title { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.embed-note { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.video-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.video-grid .embed { margin: 0; }

/* music */
.release { display: grid; gap: 1rem 1.5rem; grid-template-columns: 1fr; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 44rem) { .release { grid-template-columns: 14rem 1fr; } }
.release-cover img { display: block; width: 100%; max-width: 14rem; height: auto; border-radius: 8px; }
.release h3 { margin-top: 0; }
.soon { font-family: var(--mono); color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: .6rem 1rem; display: inline-block; }
.streaming { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); }
.streaming span { font-family: var(--mono); font-size: .85rem; }
.tracklist ol { padding-left: 1.4rem; }
.tracklist li, .tracklist .total { font-variant-numeric: tabular-nums; }
.dur { font-family: var(--mono); color: var(--muted); margin-left: .4rem; }
.total { list-style: none; margin-left: -1.4rem; border-top: 1px solid var(--line); padding-top: .2rem; }
.shows { list-style: none; padding: 0; margin: 0 0 .6rem; }
.shows li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.shows time { font-family: var(--mono); font-size: .88rem; color: var(--muted); margin-right: .6rem; display: inline-block; }
.show.cancelled .show-title { text-decoration: line-through; color: var(--muted); }
.show-map { font-size: .85rem; }

/* 3D */
.thumbs { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.thumbs a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-group { margin-bottom: 2rem; }
.gallery-group h3 { margin-bottom: .1rem; }
.sl-items { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }

/* research, press */
.pubs { list-style: none; padding: 0; }
.pubs li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.pubs .meta { display: block; margin: .1rem 0; }
.research .prose { max-width: 42rem; }
.research .equation { margin: 1rem 0; font-size: 1.05em; }
.press-card { padding: .8rem 1rem; margin: 0 0 .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; max-width: 44rem; }
.press-card h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.press-card p { margin: .2rem 0; }
.press-groups:has(.press-group:target) .press-group:not(:target) { display: none; }

/* readable wrapping */
p, li, dd, figcaption, .lead, .summary { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* tabs (no JavaScript: all panels are shown, the bar is a list of jump links) */
.tablist { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin: 1.2rem 0 1rem; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.tablist a { color: var(--muted); text-decoration: none; padding: .45rem 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tablist a:hover { color: var(--fg); }
.tablist a[aria-selected="true"], .tablist a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabs .tabs > .tablist { border-bottom-style: dashed; margin-top: .4rem; }
.tabs-on > .tabpanel > .tab-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabpanel[hidden] { display: none; }
.tabpanel { margin-bottom: 1.5rem; }
.credit { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* YouTube tile: the thumbnail is the play button */
.embed-yt .embed-box { padding: 0; }
.embed-yt .embed-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.embed-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.embed-yt.has-thumb .embed-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .75)); pointer-events: none; }
.play-icon { position: absolute; top: 50%; left: 50%; width: 3.6rem; height: 3.6rem; transform: translate(-50%, -58%); z-index: 1; transition: transform .15s; }
.play-icon svg { display: block; width: 100%; height: 100%; }
.embed-yt .embed-play:hover .play-icon { transform: translate(-50%, -58%) scale(1.1); }
.embed-yt .embed-title { position: absolute; left: .6rem; right: .6rem; bottom: .45rem; z-index: 1; text-align: left; font-size: .85rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.embed-yt:not(.has-thumb) .embed-title { color: var(--fg); text-shadow: none; }
.embed-yt .embed-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.embed[hidden] { display: none; }
.show-more { display: block; margin: 1rem auto 0; font: inherit; font-weight: 600; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem 1.2rem; cursor: pointer; }
.show-more:hover { border-color: var(--accent); }
.show-more[hidden] { display: none; }

/* galleries */
.masonry { columns: 12rem; column-gap: .6rem; }
.masonry-tight { margin-top: 1rem; }
.masonry a { display: block; break-inside: avoid; margin: 0 0 .6rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.masonry img { display: block; width: 100%; height: auto; }
.lb { cursor: zoom-in; }

/* lightbox */
.lb-open { overflow: hidden; }
dialog.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(0, 0, 0, .92); color: #fff; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lb-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3.5rem 3.5rem 1rem; overflow: auto; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 13rem); width: auto; height: auto; object-fit: contain; }
.lb-fig figcaption { color: #d7dbe0; font-size: .85rem; margin-top: .6rem; max-width: 46rem; text-align: center; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; font-family: var(--mono); }
.lightbox button { font: inherit; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-close { padding: .45rem .9rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 4rem; font-size: 2rem; line-height: 1; }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
@media (max-width: 40rem) { .lb-stage { padding: 3.5rem .5rem 1rem; } .lb-prev, .lb-next { width: 2.2rem; height: 3.2rem; opacity: .85; } }

/* papers (Research) */
.papers { display: grid; gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.paper { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .paper { grid-template-columns: 8rem 1fr; } }
.paper-img { display: block; width: 8rem; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.paper h3 { margin: 0 0 .2rem; }
.paper p { margin: .3rem 0; }
.btnrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.btnrow .button, .btnrow button { font: inherit; font-size: .95rem; font-weight: 600; border-radius: 8px; padding: .4rem .9rem; cursor: pointer; text-decoration: none; background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
.btnrow .button:hover { border-color: var(--accent); }
.btnrow .button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.viewer { margin: 0 0 1rem; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.viewer-bar button { font: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .8rem; cursor: pointer; }
#vframe { width: 100%; height: min(80vh, 60rem); border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* store products */
.product { margin: 2rem 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.product h3 { margin-top: 0; }
.group-links { margin: .3rem 0; }

/* a prose page in the normal site font (Contact) */
.prose.sans, .prose.sans p { font-family: var(--sans); font-size: 1.05rem; line-height: 1.6; }

/* tidy link row (Research) */
.link-row { list-style: none; padding: 0; margin: .4rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.link-row li { white-space: nowrap; }

/* Second Life items: a picture with a caption (and a link if it has one) */
.sl-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 1rem; }
.sl-card { margin: 0; display: flex; flex-direction: column; }
.sl-card .lb { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sl-card img { display: block; width: 100%; height: auto; }
.sl-card figcaption, .lb-fig figcaption { display: flex; flex-direction: column; gap: .15rem; }
.sl-card figcaption { margin-top: .5rem; font-size: .95rem; flex: 1 1 auto; }
.sl-card figcaption span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.sl-card figcaption a { margin-top: auto; padding-top: .35rem; }
.sl-card figcaption span { color: var(--muted); }
.lb-fig figcaption a { color: #9cc9ff; }

/* Lab list */
.lab-list { display: grid; gap: 1rem; margin-top: 1rem; }
.lab-entry { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 40rem) { .lab-entry { grid-template-columns: 14rem 1fr; } .lab-entry.no-thumb { grid-template-columns: 1fr; } }
.lab-thumb img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.lab-entry h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.lab-entry p { margin: .3rem 0; }
