@font-face {
  font-family: "Instrument Serif";
  src: url("serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("sans.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #222420;
  --muted: #5b6158;
  --accent: #405641;
  --line: #dedfd6;
  --soft: #f0f1ea;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; -webkit-user-drag: none; user-select: none; }
.wrap { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 10px; left: 10px; translate: 0 -180%; padding: 8px 12px; background: var(--ink); color: white; }
.skip-link:focus { translate: none; }
.site-header { border-bottom: 1px solid var(--line); }
.mast { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font: 34px/1 var(--serif); letter-spacing: -.025em; }
.mast nav, .site-footer nav { display: flex; gap: 25px; color: var(--muted); font-size: 14px; }
.mast nav { flex-wrap: wrap; }
.mast nav a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.mast nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; }

.week-photo { margin: 34px 0 41px; }
.hero-skeleton { margin: 34px 0 41px; height: calc(clamp(190px, 31vw, 380px) + 34px); }
.skeleton { background: var(--soft); border-radius: 5px; animation: skeleton-pulse 1.45s ease-in-out infinite alternate; }
.skeleton-heading { width: min(55%, 380px); height: 32px; margin: 16px 0; }
.skeleton-line { width: min(94%, 640px); height: 13px; margin: 10px 0; }
.skeleton-line.short { width: 59%; margin-bottom: 26px; }
.content-skeleton { min-height: 245px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes skeleton-pulse { to { opacity: .54; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.slide { position: relative; background: var(--soft); border-radius: 5px; }
.slide img { display: block; width: 100%; height: clamp(190px, 31vw, 380px); object-fit: cover; object-position: center 54%; border-radius: 5px; }
.slide img:not([src]) { visibility: hidden; }
.slide-label { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 4px; color: #fff; background: #252821e8; opacity: 0; transition: opacity .2s ease; }
.slide:hover .slide-label, .slide:focus-within .slide-label { opacity: 1; }
#slide-controls { display: flex; justify-content: space-between; position: absolute; inset: 0; align-items: center; padding: 0 12px; pointer-events: none; }
#slide-controls button { pointer-events: auto; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); font: 28px/1 var(--serif); cursor: pointer; }
.week-photo figcaption, .slide-actions { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.week-photo figcaption { justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 13px; }
.slide-actions button { color: var(--accent); padding: 6px; min-height: 32px; background: transparent; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
#photo-caption { color: var(--accent); font-weight: 600; }
.layout.photo-layout { display: block; }
.photo-layout #sidebar { display: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; list-style: none; padding: 0; }
.photo-grid a { display: grid; gap: 4px; text-decoration: none; }
.photo-grid a:hover strong { text-decoration: underline; }
.photo-grid img, .photo-grid .photo-unavailable { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--soft); }
.photo-grid small { color: var(--muted); }
.photo-filters, .entry-search { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 16px 0 22px; }
.photo-filters label, .entry-search label { display: grid; gap: 5px; }
.photo-filters select { font: inherit; color: var(--ink); background: var(--paper); padding: 8px; border: 1px solid var(--line); border-radius: 4px; }
.entry-search input { padding: 8px; border: 1px solid var(--line); border-radius: 4px; font: inherit; color: var(--ink); background: var(--paper); }
.entry-search button { padding: 8px 12px; }
.related-entries, .series-navigation { margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); }
.related-entries .entry { padding: 12px 0; }
.series-navigation p { margin: 9px 0; }
#entry-body > p[id] { scroll-margin-top: 25px; }
#entry-body > p:target { background: var(--soft); }
.paragraph-share { margin-inline-start: .4em; padding: 3px 7px; border: 0; border-radius: 4px; color: var(--accent); background: var(--soft); cursor: pointer; opacity: 0; }
#entry-body > p:hover .paragraph-share, .paragraph-share:focus-visible { opacity: 1; }
@media (hover: none) { .paragraph-share { opacity: 1; } }
.photo-detail h1 { margin: 10px 0; font-size: clamp(38px, 6vw, 66px); }
.photo-detail img { display: block; max-width: 100%; width: auto; height: auto; margin: 20px 0; border-radius: 5px; }
.photo-description { max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.photo-unavailable { display: grid; place-items: center; min-height: 80px; background: var(--soft); color: var(--muted); }
@media (hover: none), (prefers-reduced-motion: reduce) { .slide-label { opacity: 1; transition: none; } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: clamp(42px, 7vw, 86px); align-items: start; margin: 0 0 72px; }
.week-photo[hidden] + .layout { margin-top: 49px; min-height: 48vh; }
.layout.legal-layout { display: block; max-width: 680px; margin-inline: auto; }
h1, h2, h3 { font: 400 38px/1.08 var(--serif); margin: 0; overflow-wrap: anywhere; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.section-head h1, .section-head h2 { font-size: clamp(38px, 4.7vw, 52px); letter-spacing: -.025em; }
.section-note, .meta, .side-title, .post-nav span { color: var(--muted); font: 600 12px/1.5 var(--sans); }
.section-note { white-space: nowrap; }
.entry { padding: 19px 0 20px; border-bottom: 1px solid var(--line); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 6px; }
.tag { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-title { font-size: clamp(30px, 3.7vw, 40px); letter-spacing: -.012em; }
.entry-title a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.entry-title a:hover { text-decoration: none; }
.entry-title a:hover .headline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.entry p:not(.meta) { margin: 5px 26px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.arrow { font: 16px/1 var(--sans); color: var(--accent); }

aside { border-left: 1px solid var(--line); padding-left: 21px; }
aside:empty { display: none; }
.side-title { margin: 5px 0 8px; color: var(--ink); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; overflow-wrap: anywhere; }
.side-list a[aria-current] { color: var(--accent); font-weight: 600; }
.side-list span { color: var(--muted); font: 12px var(--sans); font-variant-numeric: tabular-nums; }
.side-section + .side-section { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.side-section .back { margin: 8px 0 0; }
#content > .side-list a { border-bottom: 1px solid var(--line); padding: 12px 0; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 20px; }
.pagination a { display: grid; place-items: center; min-width: 40px; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; }
.pagination a[aria-current] { background: var(--ink); color: white; border-color: var(--ink); }
.pagination .section-note { margin-left: auto; }

.article h1, .legal h1 { font-size: clamp(49px, 6.4vw, 76px); letter-spacing: -.025em; line-height: .98; }
.article .meta { margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.back { display: inline-block; margin-bottom: 20px; color: var(--accent); font-size: 13px; }
.prose { max-width: 66ch; font: 19px/1.78 Georgia, serif; overflow-wrap: anywhere; }
.prose p { white-space: pre-line; }
.prose ul { list-style-type: disc; }
.prose ul.square-list { list-style-type: square; }
.prose h1, .prose h2 { font: 400 34px/1.12 var(--serif); margin: 1.4em 0 .35em; }
.prose h3, .prose h4, .prose h5, .prose h6 { font: 400 27px/1.2 var(--serif); margin: 1.2em 0 .35em; }
.prose a, .status a { color: var(--accent); text-decoration: underline; text-underline-offset: .17em; }
.prose blockquote { border-left: 2px solid var(--line); margin-inline: 0; padding-left: 16px; color: var(--muted); }
.prose pre { overflow: auto; padding: 12px 16px; background: var(--soft); font-size: 14px; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 11px; }
.prose .media-slot { display: block; min-height: 60px; }
.prose .media-slot[aria-busy="true"] { border-radius: 4px; background: var(--soft); }
.prose img { display: block; width: auto; height: auto; max-height: 75vh; object-fit: contain; border-radius: 3px; }
.video { margin-block: 22px; }
.video iframe, .video video { width: 100%; display: block; aspect-ratio: 16/9; border: 0; background: var(--soft); }
.video-link { font: 13px var(--sans); }
.video .video-caption { margin: 6px 0 0; font: 15px/1.4 var(--sans); }
.prose .attachment { border: 1px solid var(--line); color: var(--accent); background: var(--soft); border-radius: 4px; padding: 9px 12px; font: 600 14px/1.4 var(--sans); min-height: 42px; overflow-wrap: anywhere; cursor: pointer; }
.attachment-status:not(:empty) { display: block; font: 13px var(--sans); color: var(--muted); margin-top: 5px; }
.post-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin: 36px 0 30px; padding: 17px 0; border-block: 1px solid var(--line); }
.post-nav a { font: 25px/1.18 var(--serif); overflow-wrap: anywhere; }
.post-nav a:last-child { text-align: right; }
.post-nav span { display: block; margin-bottom: 5px; }
.comments h2, .legal section h2 { font-size: 34px; }
.comments h3 { font: 600 15px/1.5 var(--sans); }
.comment { border-bottom: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.comment p { white-space: pre-wrap; margin: 4px 0; }
.legal section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; scroll-margin-top: 18px; }
form { display: grid; gap: 12px; margin-top: 20px; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
input, textarea { width: 100%; padding: 10px 12px; border: 1px solid #a5ac9d; border-radius: 3px; background: #fffefa; color: var(--ink); font: 16px/1.45 var(--sans); }
textarea { resize: vertical; }
button { justify-self: start; min-height: 44px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: white; padding: 8px 15px; font: 600 14px var(--sans); cursor: pointer; }
button:hover { background: #304331; }
button:disabled { opacity: .6; cursor: default; }
.quiet-button { background: transparent; color: var(--accent); }
.quiet-button:hover { background: var(--soft); }
.status, .loading { color: var(--muted); font-size: 14px; margin: 0; }
.loading { animation: appear .15s .25s both; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .loading { animation: none; } }
.comments > div > .status { margin-top: 8px; }
.site-footer { position: relative; isolation: isolate; min-height: clamp(98px, 12vw, 182px); border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.footer-landscape { position: absolute; z-index: -1; bottom: 0; width: 100%; height: auto; display: block; transition: opacity .3s ease; }
body[data-loading] .footer-landscape { opacity: 0; }
@media (scripting: none) { body[data-loading] .footer-landscape { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .footer-landscape { transition: none; } }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .mast { min-height: 64px; flex-wrap: wrap; }
  .brand { font-size: 29px; }
  .mast nav { gap: 14px; font-size: 13px; }
  .week-photo, .hero-skeleton { margin: 22px 0 27px; }
  .layout { grid-template-columns: 1fr; gap: 30px; margin-bottom: 42px; }
  .week-photo[hidden] + .layout { margin-top: 30px; }
  .entry { padding: 17px 0; }
  .entry p:not(.meta) { margin-right: 8px; }
  aside { border-left: 0; border-top: 1px solid var(--line); padding: 15px 0 0; }
  .prose { font-size: 18px; }
}
@media (max-width: 350px) {
  .mast { gap: 7px; }
  .brand { font-size: 24px; }
  .mast nav { gap: 10px; }
}

@media print {
  @page { margin: 18mm; }
  body:has(.article) { background: white; color: black; }
  body:has(.article) :is(.site-header, .site-footer, #sidebar, .back, .post-nav, .comments,
    .related-entries, .series-navigation, .paragraph-share, .skip-link, .attachment, .attachment-status, iframe, video) { display: none !important; }
  body:has(.article) :is(main, .layout, #content, .article, .prose) { display: block; width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; }
  .article h1 { font: 32pt/1.1 Georgia, serif; }
  .article .prose { font: 11pt/1.55 Georgia, serif; }
  .article img { max-width: 100%; max-height: 145mm; break-inside: avoid; }
  .article :is(h2, h3, h4) { break-after: avoid; }
  .article p { orphans: 3; widows: 3; }
}
