:root {
  --paper: #f5f7f6;
  --surface: #ffffff;
  --ink: #17262b;
  --muted: #55676b;
  --rule: #d5dedc;
  --accent: #0b5563;
  --accent-ink: #ffffff;
  --note: #e8f0ef;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1719;
    --surface: #162124;
    --ink: #e3ebea;
    --muted: #9db0b3;
    --rule: #2a3a3d;
    --accent: #7fc8d6;
    --accent-ink: #0f1719;
    --note: #172a2e;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 0.75rem; top: -4rem; background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 4px; z-index: 10; }
.skip:focus { top: 0.75rem; }

.site-header { max-width: 44rem; margin: 0 auto; padding: 1.25rem 1.25rem 0; }
.wordmark { font: 700 1.05rem/1 var(--serif); letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
  display: inline-block; padding: 0.5rem 0; min-height: 44px; }
.wordmark:hover { color: var(--accent); }

.wrap { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0.5rem 0 0.9rem; }

.intro { padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--rule); }
.intro p { color: var(--muted); font-size: 1.125rem; margin: 0; max-width: 36rem; }

.entries { list-style: none; margin: 0; padding: 0; }
.entries li { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.entries h2 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 0.4rem; }
.entries h2 a { text-decoration: none; color: var(--ink); }
.entries h2 a:hover { color: var(--accent); text-decoration: underline; }
.entries p { margin: 0 0 0.5rem; color: var(--ink); }
.entries time, .meta { color: var(--muted); font-size: 0.9rem; }

.post-head { padding: 1rem 0 0.5rem; }
.meta { margin: 0 0 1.25rem; }

.prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; max-width: 40rem; hyphens: auto; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.2em; text-wrap: pretty; }
.prose strong { font-weight: 700; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; }

.note { margin: 2.25rem 0 0; padding: 1rem 1.25rem; background: var(--note); border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0; font-size: 0.95rem; max-width: 40rem; }
.note p { margin: 0; }

.pager { display: grid; gap: 0.75rem; margin: 2.5rem 0 0; grid-template-columns: 1fr; }
.pager a { display: block; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 6px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.3; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager span { display: block; font: 400 0.85rem var(--sans); color: var(--muted); margin-bottom: 0.2rem; }
.pager .next { text-align: right; }
@media (min-width: 38rem) { .pager { grid-template-columns: 1fr 1fr; } .pager .prev:only-child { grid-column: 1; } .pager .next:only-child { grid-column: 2; } }

.all { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.all h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.all ul { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2rem; }
.all li { break-inside: avoid; }
.all a { display: block; padding: 0.4rem 0; font-size: 0.97rem; line-height: 1.35; }
.all a[aria-current="page"] { color: var(--muted); text-decoration: none; font-weight: 700; }
@media (min-width: 40rem) { .all ul { columns: 2; } }

.site-footer { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 0.875rem; }
.site-footer p { margin: 0 0 0.6rem; max-width: 40rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .pager, .all, .skip { display: none; }
  a { color: #000; }
}

.banner { display: block; width: fit-content; max-width: 100%; margin: 0.5rem auto 1.25rem; line-height: 0; }
.banner img { display: block; max-width: 100%; height: auto; border-radius: 2px; }
