:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #1d302c;
  --muted: #596860;
  --forest: #173f36;
  --accent: #b54e32;
  --line: #d8ddd2;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.7 var(--sans);
}
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid #bd5b3c; outline-offset: 4px; }
.preview { padding: .65rem 1rem; background: #fff1c5; color: #604600; text-align: center; font-size: .9rem; }
.skip-link { position: absolute; z-index: 10; top: -10rem; left: 1rem; padding: .5rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1280px;
  min-height: 104px;
  margin: auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-title { display: flex; align-items: center; gap: .8rem; color: var(--ink); font: 700 1.28rem/1.15 var(--serif); text-decoration: none; }
.site-title small { display: block; margin-top: .3rem; color: var(--muted); font: 600 .62rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.site-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--forest); color: #fffaf0; font: 700 1.35rem var(--serif); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; }
.nav a { color: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--accent); }

.layout { max-width: 1280px; margin: 0 auto; padding: 3.25rem 2rem 5rem; display: grid; grid-template-columns: minmax(0, 1fr) 255px; align-items: start; gap: clamp(3rem, 6vw, 6rem); }
main { min-width: 0; }
.eyebrow { margin: 0 0 1.15rem; color: var(--accent); font: 700 .68rem/1.4 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.accent-dot { color: var(--accent); }
.listing-header { margin-bottom: 2.5rem; }
.listing-header h1, .entry-header h1 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; overflow-wrap: anywhere; }
.listing-header h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.04; }
.entry-header h1 { font-size: clamp(2.45rem, 4vw, 3.5rem); line-height: 1.1; }
.listing-home { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); background: var(--forest); color: #faf8ef; }
.listing-home::after { content: ''; position: absolute; z-index: -1; right: -9rem; bottom: -15rem; width: 28rem; height: 28rem; border: 1px solid rgba(250,248,239,.22); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(250,248,239,.035), 0 0 0 6rem rgba(250,248,239,.035); }
.listing-home .eyebrow { color: #eeb59d; }
.listing-home .accent-dot { color: #f0a083; }
.listing-home > p:last-child { max-width: 32rem; margin: 1.4rem 0 0; color: #e1e8df; font-size: .95rem; }
.listing-label { display: flex; justify-content: space-between; gap: 1rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--ink); color: var(--muted); font: 700 .65rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.listing-label span:first-child { color: var(--ink); }
.entry-summary { padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--line); }
.entry-summary h2 { margin: .5rem 0 .65rem; font: 400 clamp(1.9rem, 3vw, 2.6rem)/1.12 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.entry-summary h2 a { color: var(--ink); text-decoration: none; }
.entry-summary h2 a:hover { color: var(--accent); }
.entry-summary p { max-width: 63ch; margin: 0 0 1rem; color: #485750; font-size: .95rem; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: .78rem; font-weight: 600; }
.meta span { padding: 0 .35rem; color: var(--accent); }
.meta a { color: var(--forest); text-decoration: none; }
.meta .comment-count, .meta .revision-count { white-space: nowrap; }
.meta .draft-badge { padding: .15rem .45rem; border-radius: .2rem; background: #e2e9dd; color: var(--forest); }
.meta a:hover { text-decoration: underline; }
.read-more { color: var(--forest); font-size: .78rem; font-weight: 750; text-decoration: none; }
.read-more span { display: inline-block; margin-left: .2rem; color: var(--accent); }
.read-more:hover { text-decoration: underline; }

.entry-full { max-width: 47.5rem; }
.entry-header { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.entry-header .eyebrow { margin-bottom: .75rem; }
.entry-header .meta { margin-top: .8rem; }
.content { margin-top: 1.4rem; font-size: 1.0625rem; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.content p { margin: 0 0 1.1em; }
.content :is(ul, ol) { margin: .5em 0 1em; padding-left: 1.5em; white-space: normal; }
.content :is(ul, ol) :is(ul, ol) { margin: .3em 0; }
.content li { margin: .15em 0; }
.content img { max-width: 100%; height: auto; border-radius: .25rem; }
.content > img { display: block; margin: 1.1rem 0; }
.content img.legacy-align-center { display: block; margin: 1rem auto; }
.content img.legacy-smiley { display: inline; width: 1em; height: 1em; margin: 0; border-radius: 0; vertical-align: -.1em; }
.content .legacy-underline { text-decoration: underline; }
.content .legacy-red { color: #c5221f; }
.content .legacy-large { font-size: 18pt; }
.content .legacy-indent { padding-left: 30px; }
.content ul.legacy-columns { column-count: 2; column-gap: 40px; }
.content figure { max-width: 100%; margin: 1.5rem 0; }
.content figcaption { color: var(--muted); font-size: .85rem; }
.content h1, .content h2, .content h3, .content h4 { margin: 1.5em 0 .35em; font-family: var(--serif); line-height: 1.2; }
.content h4 { margin: 1.7rem 0 .65rem; padding-left: .75rem; border-left: 3px solid var(--accent); color: var(--forest); font-size: clamp(1.125rem, 1.5vw, 1.2rem); line-height: 1.3; }
.content pre { overflow-x: auto; padding: 1.25rem; background: #e9ede4; font-size: .85rem; line-height: 1.5; white-space: pre; }
.content blockquote { margin: 1.25rem 0; padding: .65rem 1.1rem; border-left: 3px solid var(--accent); background: #edf0e8; color: var(--muted); font-family: var(--serif); font-size: 1.1em; white-space: pre-line; }
.content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.content td, .content th { padding: .5rem; border: 1px solid var(--line); }
.revision-history { margin-top: 2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: #e9eee5; }
.revision-kicker { color: var(--accent); font-size: .65rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.revision-history p { margin: .35rem 0 0; font-size: .83rem; line-height: 1.5; }
.revision-history .revision-dates { color: var(--muted); font-size: .76rem; }
.revision-timeline { margin-top: .7rem; font-size: .78rem; }
.revision-timeline summary { color: var(--forest); cursor: pointer; font-weight: 700; }
.revision-timeline ol { margin: .6rem 0 0; padding-left: 1.2rem; }
.revision-timeline li { padding: .2rem 0; }
.revision-timeline li span { display: block; color: var(--muted); font-size: .73rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .75rem; }
.gallery img { display: block; max-height: 260px; object-fit: contain; }
.gallery.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: .35rem; line-height: 1.4; }
.legacy-video { margin: 1.25rem 0; padding: 1.25rem; background: var(--forest); color: #faf8ef; }
.legacy-video button { padding: .65rem .9rem; border: 0; background: #faf8ef; color: var(--forest); font: 700 .85rem var(--sans); cursor: pointer; }
.legacy-video .video-load { display: none; }
.legacy-video .video-load.video-ready { display: inline-block; }
.legacy-video button:focus-visible { outline: 3px solid #f0a083; outline-offset: 4px; }
.legacy-video p { margin: .6rem 0; font-size: .85rem; }
.legacy-video a { color: #faf8ef; font-size: .85rem; }
.legacy-video iframe { display: block; width: 100%; max-width: 640px; aspect-ratio: 4 / 3; border: 0; }

.sidebar { padding-top: .5rem; }
.sidebar section { padding: 1.6rem; background: #e9eee5; }
.sidebar h2 { margin: 0; font: 400 2rem/1.1 var(--serif); letter-spacing: -.03em; }
.sidebar-intro { margin: .75rem 0 1.5rem; color: #485b50; font-size: .85rem; line-height: 1.6; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { border-top: 1px solid #cbd6c9; }
.sidebar li a { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem 0; color: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none; }
.sidebar li a:hover { color: var(--accent); }
.sidebar li span { color: var(--accent); }
.comments { max-width: 47.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.comments h2 { margin: 0 0 1rem; font: 400 2rem/1.2 var(--serif); }
.comment-list, .replies { margin: 0; padding: 0; list-style: none; }
.replies { margin: .75rem 0 0 .75rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.comment { padding: .9rem 0; }
.comment-list > .comment { border-bottom: 1px solid var(--line); }
.replies .comment { padding: .75rem 0 0; }
.comment-meta { display: flex; align-items: center; gap: .65rem; margin-bottom: .6rem; color: var(--muted); font-size: .8rem; }
.comment-avatar { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #dce7dd; color: var(--forest); font-size: .9rem; font-weight: 700; }
.comment-byline strong, .comment-byline span { display: block; line-height: 1.4; }
.comment-byline strong { color: var(--ink); }
.comment-byline span { font-size: .72rem; }
.comment-body { font-size: .9375rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.comment-body p { margin: 0 0 .7em; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-note { color: var(--muted); font-size: .85rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.pagination a, .pagination span { display: grid; min-width: 2.75rem; min-height: 2.75rem; place-items: center; border: 1px solid var(--line); font-size: .85rem; font-weight: 700; text-decoration: none; }
.pagination [aria-current='page'] { border-color: var(--forest); background: var(--forest); color: #fff; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer > div { max-width: 1280px; margin: auto; padding: 1.75rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer a { color: var(--forest); font-weight: 600; }

@media (max-width: 760px) {
  .header-inner { min-height: 0; padding: 1.1rem 1.25rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav { gap: .45rem 1.1rem; }
  .layout { display: block; padding: 1.5rem 1.25rem 3rem; }
  .listing-header { margin-bottom: 2rem; }
  .listing-home { padding: 2.25rem 1.5rem; }
  .listing-header h1 { font-size: clamp(2.35rem, 9vw, 3.4rem); }
  .entry-summary { padding: 1.6rem 0 1.8rem; }
  .entry-summary h2 { font-size: 2rem; }
  .sidebar { margin-top: 3rem; }
  .replies { margin-left: .5rem; padding-left: .75rem; }
  .site-footer > div { padding: 1.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
