:root { color-scheme: light; font: 16px/1.55 "Helvetica Neue", Arial, sans-serif; color: #25292c; background: #ebedef; --gutter: clamp(.8rem, 2vw, 2rem); --ink: #25292c; --line: #ccd0d2; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #174e60; text-underline-offset: .18em; }
button, select, input { font: inherit; }
button, select, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #007c98; outline-offset: 2px; }
.masthead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding: .85rem var(--gutter); background: #fafafa; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: baseline; gap: .85rem; }
.identity a { text-decoration: none; color: var(--ink); }
.identity a:first-child { font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.1; letter-spacing: -.055em; }
.identity .section-link { color: #5b6266; border-left: 1px solid var(--line); padding-left: .85rem; }
#search { width: min(100%, 16rem); padding: .38rem .7rem; border: 1px solid var(--line); border-radius: 3px; background: white; }
.blogs { display: flex; flex-wrap: wrap; background: #292d30; padding-inline: var(--gutter); gap: 0 .3rem; }
.blogs a { color: #d6dadc; text-decoration: none; padding: .6rem .7rem; font-size: .85rem; }
.blogs a:hover, .blogs a[aria-current] { color: white; background: #3d4549; box-shadow: inset 0 -3px #84d4dc; }
.filters { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin: 0 var(--gutter); padding: .85rem 0; font-size: .85rem; }
.filters select, .views button { background: #fafafa; border: 1px solid #bfc5c7; padding: .35rem .65rem; color: var(--ink); }
.count, .post-copy small, .tags, time { color: #575e62; }
.views { display: flex; margin-left: auto; }
.views button + button { border-left: 0; }
.views button[aria-pressed="true"] { background: #353c40; color: white; }
.posts { list-style: none; padding: 0; margin: 0 var(--gutter) 2rem; display: grid; align-items: stretch; }
.posts li, .post-copy { min-width: 0; }
.posts li { border: 1px solid var(--line); background: white; }
.posts a { color: inherit; text-decoration: none; display: block; height: 100%; }
.posts a:is(:hover, :focus-visible) strong { text-decoration: underline; }
.cover { display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, hsl(var(--hue) 25% 92%), hsl(var(--hue) 30% 76%)); }
.monogram { color: hsl(var(--hue) 35% 24%); font: 600 clamp(1.3rem, 4vw, 3rem)/1 Georgia, serif; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.cover img.loaded { opacity: 1; background: #f8f9fa; }
.post-copy { display: grid; gap: .25rem; padding: .6rem .75rem; }
.post-copy strong { line-height: 1.35; overflow-wrap: anywhere; }
.post-copy small { font-size: .75rem; }
.posts[data-view="grid"] { grid-template-columns: repeat(auto-fill,minmax(min(100%,7.5rem),1fr)); gap: .4rem; }
[data-view="grid"] .cover { aspect-ratio: 1; }
[data-view="grid"] .post-copy { padding: .35rem; text-align: center; border-top: 1px solid #e1e5e7; }
[data-view="grid"] strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; font-weight: 550; }
[data-view="grid"] small { display: none; }
.posts[data-view="list"] { grid-template-columns: minmax(0,1fr); gap: 0; }
[data-view="list"] li + li { border-top: 0; }
[data-view="list"] a { display: flex; align-items: center; padding: .4rem; }
[data-view="list"] .cover { width: 4rem; aspect-ratio: 1; flex: none; }
[data-view="list"] .monogram { font-size: 1.3rem; }
.scroll-marker { height: 1px; }
.byline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.byline, .tags { font-size: .85rem; }
body:has(.list-article:not([hidden])) { height: 100dvh; display: flex; flex-direction: column; }
body:has(.list-article:not([hidden])) :is(main, #view) { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.archive-layout:has(.list-article:not([hidden])) { flex: 1; min-height: 0; display: grid; grid-template-columns: clamp(12rem, 16vw, 16rem) minmax(0, 1fr); background: white; border-top: 1px solid var(--line); }
.post-rail:has([data-view="list"]) { overflow-y: auto; overscroll-behavior: contain; background: #f2f3f4; border-right: 1px solid var(--line); }
.post-rail .posts[data-view="list"] { margin: 0; }
.post-rail [data-view="list"] li { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.post-rail [data-view="list"] a { padding: .35rem; min-height: 2.75rem; }
.post-rail [aria-current="page"] { background: white; box-shadow: inset 3px 0 #217084; }
.post-rail [data-view="list"] .cover { width: 2rem; }
.post-rail [data-view="list"] small { display: none; }
.post-rail [data-view="list"] strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.list-article { overflow-y: auto; padding: 1.2rem clamp(1rem, 3vw, 3rem) 4rem; overflow-wrap: anywhere; }
.list-article > * { max-width: 50rem; }
.list-article h1 { margin: 0 0 .6rem; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.3; }
@media (min-width: 760px) {
  .list-article article > p:first-child:has(> img:only-child),
  .list-article article > p:first-child:has(> a:only-child > img:only-child) { float: left; width: 29%; margin: .4rem 1.4rem 1rem 0; }
}
@media (max-width: 640px) {
  .archive-layout:has(.list-article:not([hidden])) { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(3rem, 20%) minmax(0,1fr); }
  .post-rail:has([data-view="list"]) { border-bottom: 1px solid var(--line); }
}
@media (max-width:540px) {
  #search { flex: 1; min-width: 7rem; }
  .blogs { flex-wrap: nowrap; overflow-x: auto; }
  .blogs a { white-space: nowrap; }
  .posts[data-view="grid"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
article { margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: .7rem; overflow-wrap: anywhere; line-height: 1.75; }
article img { max-width: 100%; height: auto; }
article pre, article table { display: block; overflow-x: auto; }
article pre { background: #f0f2f3; padding: 1rem; line-height: 1.45; }
article td, article th { padding: .3rem .6rem; border: 1px solid var(--line); }
article iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
html:has(.grid-reader[open]) { overflow: hidden; }
.grid-reader { width: min(62rem, calc(100% - 2rem)); height: min(92dvh, 68rem); max-height: none; max-width: none; padding: 0; border: 0; border-radius: .35rem; background: #fafafa; color: var(--ink); box-shadow: 0 1rem 4rem #0005; }
.grid-reader[open] { display: flex; flex-direction: column; }
.grid-reader::backdrop { background: #161719c9; }
.reader-controls { display: flex; flex: none; padding: .65rem; }
.reader-controls button { color: var(--ink); font-size: 1.4rem; line-height: 1; min-width: 2.4rem; height: 2.1rem; background: #f2f2f2; border: 1px solid var(--line); }
.reader-controls button:disabled { color: #a9adb0; }
.reader-controls button:last-child { margin-left: auto; }
.reader-sheet { overflow-y: auto; overscroll-behavior: contain; padding: 1rem clamp(1rem, 6vw, 7rem) 4rem; }
.reader-sheet h1 { text-align: center; font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.3; overflow-wrap: anywhere; }
.reader-sheet .byline { justify-content: center; font-size: .8rem; }
@media (min-width:760px) {
  .grid-content article > p:first-child:has(> img:only-child),
  .grid-content article > p:first-child:has(> a:only-child > img:only-child) { float: left; width: 30%; margin: .5rem 1.5rem 1rem 0; }
}
@media (max-width:540px) {
  .grid-reader { width: calc(100% - .7rem); height: 96dvh; }
}
