:root {
  color-scheme: light;
  --paper: #f6efe4;
  --ink: #3a2a1f;
  --muted: #7a5c45;
  --accent: #8a4b2a;
  --rule: #e3d5c2;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Literata', 'Literata Fallback', Georgia, serif;
  font-size: 125%;
  line-height: 1.7;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(1440px, calc(100% - 2 * clamp(20px, 5vw, 80px))); margin-inline: auto; padding-block: 48px 64px; } /* owner 1 Nov: full width, not a narrow column */
a { color: var(--accent); text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 1px; }
.skip { position: absolute; top: -100px; left: 24px; background: var(--paper); padding: 10px; }
.skip:focus { top: 12px; }
.site-header { margin-bottom: 64px; font-size: .85rem; }
.post-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: 2.4rem; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 48px; overflow-wrap: anywhere; }
.topic { margin-top: 48px; }
.topic h2 { font-size: 1.3rem; line-height: 1.5; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding-block: 25px; border-bottom: 1px solid var(--rule); }
.post-list h3 { margin: 0 0 7px; font-size: 1.18rem; line-height: 1.45; }
.post-list h3 a { color: var(--ink); }
.post-list h3 a:hover, .post-list h3 a:focus-visible { color: var(--accent); }
.meta { font-size: .8rem; color: var(--muted); margin: 0; }
.teaser { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.site-footer { border-top: 1px solid var(--rule); margin-top: 64px; padding-top: 24px; font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { overflow-wrap: anywhere; }
.post-title { margin-bottom: 42px; }
.post-title h1 { font-size: 2.1rem; margin-bottom: 20px; line-height: 1.3; }
.prose { overflow-wrap: break-word; }
.prose p { margin: 0 0 1.35em; }
.prose h2 { font-size: 1.5rem; line-height: 1.4; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; line-height: 1.5; margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-block: 1.4em; }
.prose li { padding-left: .25em; }
.prose li p { margin-bottom: .6em; }
.prose a { text-decoration: underline; }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose blockquote { margin-inline: 0; padding-left: 24px; border-left: 2px solid var(--rule); }
.prose blockquote footer { color: var(--muted); font-size: .9em; }
.prose .arrows { margin-block: 1.35em; }
.prose .arrows .arrow { margin-bottom: .6em; padding-left: 1.1em; text-indent: -1.1em; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.35em; font-size: .9em; font-variant-numeric: tabular-nums; }
.prose .table-scroll { max-width: 100%; overflow-x: auto; }
.prose .table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.prose caption { text-align: left; font-weight: 600; margin-bottom: .5em; }
.prose th, .prose td { padding: .5em .65em; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose td { text-align: right; }
.article-end { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: .85rem; }
.neighbours { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.next { font-size: 1rem; }
.source { margin-top: 28px; }
.invitation { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .8rem; }
.invitation a { color: inherit; }
::selection { background: #e3d5c2; color: var(--ink); }
@media (max-width: 600px) {
  :root { font-size: 112.5%; }
  .page { width: calc(100% - 40px); padding-block: 28px 44px; }
  .site-header { margin-bottom: 44px; }
  h1 { font-size: 2.1rem; margin-bottom: 36px; }
  .post-title h1 { font-size: 1.8rem; }
  .topic { margin-top: 36px; }
  .post-list li { padding-block: 24px; }
  .post-list h3 { font-size: 1.15rem; }
  .meta { font-size: .82rem; }
  .site-footer nav { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media print {
  :root { font-size: 12pt; line-height: 1.5; background: white; }
  .page { width: 100%; padding: 0; }
  .skip, .site-header, .site-footer, .article-end { display: none; }
}

/* Final reading-page review: shared quiet footer, readable metadata and measure. */
:root { --muted: #6b4f3a; }
h2, h3 { text-wrap: pretty; }
.post-list li:last-child { border-bottom: 0; }
.prose > p, .prose > ul, .prose > ol, .service-content > p { max-width: 110ch; }
.site-footer { font-size: 15px; }
.site-footer nav { flex-direction: row; align-items: center; gap: 4px 22px; }
.site-footer a, .site-footer [aria-current] { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.site-footer [aria-current] { color: var(--ink); }
.invitation { border-top: 0; padding-top: 0; font-size: 15px; }
.source { margin-top: 20px; }
.article-end span[aria-hidden="true"] { display: inline-block; font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif; font-size: 1.1em; line-height: 1; vertical-align: 0; }
:root[data-theme="night"] { color-scheme: dark; --paper: #141a2a; --ink: #e8dfc8; --muted: #b7b6c4; --accent: #e9c46a; --rule: #3e465a; }
@media(max-width:600px) {
  .site-footer { font-size: 14px; }
  .site-footer nav { flex-direction: row; gap: 4px 20px; }
  .post-title h1 { font-size: clamp(30px, 8vw, 40px); }
}

/* Social profiles sit on the right of the footer; they wrap under the page links on phones. */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 28px; }
.site-footer .footer-social { margin-left: auto; }
@media (max-width: 600px) { .site-footer .footer-social { margin-left: 0; } }

/* Phone links keep a finger-sized target in either orientation. */
@media (pointer: coarse) {
  :where(a[href]:not(p a, li a, td a, figcaption a, blockquote a, dd a)) { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; max-width: 100%; }
  /* Links inside sentences stay inline (they keep a taller hit area without breaking the line). */
  :where(p, li, td, figcaption, blockquote, dd) a[href] { padding-block: .35em; }
  .page { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .prose pre { max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; touch-action: pan-x pan-y; }
}
