:root {
  --fg: #141414; --bg: #ffffff; --muted: #595959; --rule: #e4e2dd; --accent: #8a3324; --field: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fg: #e9e7e2; --bg: #121212; --muted: #a8a59f; --rule: #2e2c29; --accent: #e3a38f; --field: #1b1b1b; color-scheme: dark; }
}
:root[data-theme="dark"] { --fg: #e9e7e2; --bg: #121212; --muted: #a8a59f; --rule: #2e2c29; --accent: #e3a38f; --field: #1b1b1b; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Iowan Old Style", serif;
  line-height: 1.65; text-rendering: optimizeLegibility;
}
.sans, nav, .meta, button, input, select, textarea, label {
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 2.25rem 1.25rem 3rem; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: .5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header { margin-bottom: 3rem; }
.site-name { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.site-name[aria-current] { text-decoration: none; }
nav ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; font-size: .85rem; }
nav a[aria-current="page"] { text-decoration-thickness: 2px; color: var(--accent); }
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.theme-toggle, .theme-toggle[type] { background: none; border: 0; padding: .35rem 0; color: var(--muted); font-size: .78rem; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.75rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 .25rem; }
.tagline { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.meta { color: var(--muted); font-size: .8rem; margin: .1rem 0 .4rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.more { font-size: .85rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose img, figure img { max-width: 100%; height: auto; display: block; }
.prose blockquote, blockquote.pull { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); font-style: italic; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--field); border: 1px solid var(--rule); font-size: .85rem; line-height: 1.5; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .4rem .5rem; text-align: left; }
.footnote { font-size: .85rem; color: var(--muted); }
figure { margin: 1.5rem 0; }
.portrait img { width: 240px; max-width: 60%; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { margin: 0 0 .65rem; }
.list.loose li { margin-bottom: .9rem; }
.list time { color: var(--muted); font-size: .8rem; display: inline-block; min-width: 6.6rem; }
.year { font-size: 1rem; color: var(--muted); margin-top: 2.25rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-top: 1px solid var(--rule); padding-top: .25rem; margin-bottom: 1.25rem; }
.timeline h3 { margin-top: 1rem; }
.venture { border-top: 1px solid var(--rule); padding: .25rem 0 .5rem; }
.venture h2 { margin-top: 1.25rem; margin-bottom: .1rem; }
.venture .logo { max-height: 44px; width: auto; margin-top: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin: 1.5rem 0 2rem; font-size: .85rem; }
.media-list { list-style: none; padding: 0; margin: 0; }
.media-list li { display: flex; gap: 1rem; border-top: 1px solid var(--rule); padding: 1rem 0; }
.media-list .thumb { width: 120px; height: auto; flex: none; align-self: flex-start; }
.item-title { font-size: 1.05rem; margin: 0 0 .35rem; font-weight: 600; }
select, input, textarea, button {
  font-size: .95rem; color: var(--fg); background: var(--field); border: 1px solid var(--muted); border-radius: 3px; padding: .45rem .6rem;
}
button { background: var(--fg); color: var(--bg); border-color: var(--fg); cursor: pointer; }
.contact label { display: block; font-size: .85rem; margin-bottom: .25rem; }
.contact input, .contact textarea { width: 100%; }
.hp { position: absolute; left: -9999px; }
.search { display: flex; gap: .5rem; margin: 1.25rem 0; }
.search input { flex: 1; min-width: 0; }
.results { padding-left: 1.25rem; }
.results li { margin-bottom: 1.1rem; }
.results .meta { margin: 0; }
.notice { border-left: 3px solid var(--accent); padding: .5rem .9rem; font-size: .9rem; }
.pager { border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 1rem; font-size: .9rem; }
.pager p { margin: .3rem 0; }
.yt { margin: 1.5rem 0; }
.yt-poster { display: block; position: relative; aspect-ratio: 16 / 9; background: #000; color: #fff; text-decoration: none; overflow: hidden; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.yt-blank { display: block; width: 100%; height: 100%; background: #1d1d1d; }
.yt-play { position: absolute; left: 1rem; bottom: 1rem; background: #000; color: #fff; padding: .4rem .8rem; font-family: system-ui, sans-serif; font-size: .9rem; }
.yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.yt-note { font-size: .75rem; color: var(--muted); margin: .35rem 0 0; }
.site-footer { margin-top: 4.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; color: var(--muted); font-size: .8rem; }
.site-footer p { margin: .2rem 0; }

img, video, iframe { max-width: 100%; }
.prose { overflow-wrap: break-word; }
@media (max-width: 600px) {
  html { font-size: 106.25%; }
  .wrap { padding: 1.25rem 1.1rem 2.5rem; }
  .site-header { margin-bottom: 2.25rem; }
  nav ul { gap: .1rem .8rem; }
  .filters label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  nav a { display: inline-block; padding: .4rem 0; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.15rem; margin-top: 2.25rem; }
  .tagline { font-size: 1.05rem; }
  .list time { display: block; min-width: 0; }
  .media-list li { gap: .75rem; }
  .media-list .thumb { width: 80px; }
  .filters input[type="search"] { flex: 1 1 100%; }
  .filters select { flex: 1 1 40%; }
  .search { flex-wrap: wrap; }
  .search input { flex: 1 1 100%; }
  .portrait img { max-width: 70%; }
  .site-footer { margin-top: 3rem; }
}
