:root {
  color-scheme: light;
  --paper: #fafaf9;
  --surface: #fff;
  --ink: #20201f;
  --muted: #575754;
  --rule: #d8d8d4;
  --placeholder: #e8e8e5;
  --sans: system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --measure: 67ch;
  --gutter: clamp(1rem, 4.4vw, 4.5rem);
  --section-gap: clamp(2.75rem, 6vw, 5.5rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
.wrap { width: min(100%, 80rem); padding-inline: var(--gutter); margin-inline: auto; }
a { color: inherit; text-decoration-thickness: .07em; text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.skip { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-200%); background: var(--surface); padding: .5rem; z-index: 10; }
.skip:focus { transform: none; }
.site-header, .site-footer { border-block-end: 1px solid var(--rule); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; padding-block: .9rem; }
.wordmark { font-size: 1.4rem; font-weight: 750; letter-spacing: .065em; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .15rem clamp(.65rem, 2vw, 1.6rem); }
.site-header nav a { display: inline-block; min-height: 2rem; padding-block: .18rem; font-size: .92rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }
main { padding-block: clamp(2rem, 5vw, 4.5rem) var(--section-gap); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.13; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.35rem, 5.7vw, 5rem); max-width: 18ch; letter-spacing: -.04em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin-block: .6em; }
.page-head { margin-block-end: clamp(1.5rem, 4vw, 3.2rem); }
.lead { max-width: 54ch; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.33rem); margin-block-start: .95rem; }
.meta, time, figcaption, .crumb { font-size: .9rem; color: var(--muted); }
.crumb { margin-block-end: 1.35rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: stretch; border-block: 1px solid var(--rule); }
.feature > div:first-child { padding: clamp(1.15rem, 3vw, 2.5rem) clamp(1rem, 4vw, 3rem) clamp(1.15rem, 3vw, 2.5rem) 0; align-self: center; }
.feature h2 { margin-block: .4rem .8rem; }
.feature a:not(:hover), .card h3 a:not(:hover) { text-decoration: none; }
.placeholder { min-height: clamp(10rem, 22vw, 19rem); position: relative; display: grid; place-items: center; overflow: hidden; background: var(--placeholder); border: 1px solid var(--rule); }
.placeholder::before { position: absolute; inset: 15% 13%; content: ""; border: 1px solid #a5a5a0; background: linear-gradient(25deg, transparent 49.8%, #aaa 50%, transparent 50.2%), linear-gradient(-25deg, transparent 49.8%, #aaa 50%, transparent 50.2%); }
.placeholder span { position: relative; width: 13%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #a5a5a0; background: var(--placeholder); }
.section { margin-block-start: var(--section-gap); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-block-end: .85rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; }
.card { border: 1px solid var(--rule); background: var(--surface); padding: clamp(.95rem, 2vw, 1.45rem); min-width: 0; }
.card .meta { margin-block: 0 .65rem; }
.card p:last-child { margin-block-end: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; }
.tags a, .tags.plain li { display: block; padding: .4rem .75rem; border: 1px solid var(--rule); background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; border: 1px solid var(--rule); padding: 1rem; background: var(--surface); }
.filters label { display: grid; gap: .25rem; flex: 1 1 9rem; min-width: 0; font-size: .9rem; }
.filters select, .filters button { font: inherit; background: var(--paper); color: var(--ink); border: 1px solid #777; min-height: 2.65rem; padding: .3rem .6rem; border-radius: 0; max-width: 100%; }
.filters select { appearance: none; padding-inline-end: 1.65rem; background-image: linear-gradient(45deg, transparent 50%, currentColor 51%), linear-gradient(135deg, currentColor 50%, transparent 51%); background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.filters button { cursor: pointer; }
.results { padding: 0; list-style: none; }
.results > li { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--rule); }
.results .card { border: 0; flex: 1; }
.results time { display: block; margin: .5rem clamp(.95rem, 2vw, 1.45rem) 1rem; }
.timeline { margin: 0; padding: 0 0 0 clamp(.7rem, 3vw, 2rem); list-style: none; border-inline-start: 1px solid var(--rule); }
.timeline li { max-width: var(--measure); padding-block: .65rem 1rem; scroll-margin-top: 1rem; }
.timeline li + li { border-block-start: 1px solid var(--rule); }
.timeline li:target { background: var(--placeholder); }
.article-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem 1rem; padding: 1rem 0; border-block: 1px solid var(--rule); margin-block-end: 2rem; }
.article-meta dt { color: var(--muted); font-size: .9rem; }
.article-meta dd { margin-inline-start: 0; }
.article .page-head { margin-block-end: 1.4rem; }
.prose { max-width: var(--measure); overflow-wrap: anywhere; }
.article .prose { font: clamp(1.08rem, 1.35vw, 1.25rem)/1.67 var(--serif); margin-inline: auto; }
.prose h2, .prose h3, .prose h4 { margin-block: 1.4em .45em; }
.prose blockquote { border-inline-start: 3px solid var(--rule); padding-inline-start: 1rem; margin-inline: 0; }
.figure { margin: 1.6rem 0; }
figcaption { font-family: var(--sans); margin-block-start: .45rem; }
.table { overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font: .92rem/1.5 var(--sans); }
th, td { text-align: start; vertical-align: top; padding: .5rem; border: 1px solid var(--rule); }
th { background: var(--placeholder); }
.site-footer { border-block: 1px solid var(--rule) 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 42rem) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature > div:first-child { padding-inline-end: 0; }
  .feature .placeholder { margin-block-end: .9rem; }
}
