:root {
  color-scheme: light;
  --ink: #17221d;
  --muted: #647069;
  --paper: #f8f7f1;
  --panel: #fffef9;
  --line: #d9ddd6;
  --green: #1d5c43;
  --green-dark: #13412f;
  --mint: #dcecdf;
  --selected: #315f9e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 8% 8%, rgb(220 236 223 / 55%), transparent 38rem), var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--green); text-underline-offset: .22em; }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--selected);
  outline-offset: 5px;
  border-radius: 2px;
}
img, video { display: block; max-width: 100%; height: auto; }
iframe { max-width: 100%; }
figure { margin-inline: 0; }
button, input { font: inherit; }
main { flex: 1; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .6rem 1rem; border-radius: .4rem; background: var(--green); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: white; }
.site-header { border-bottom: 1px solid var(--line); background: rgb(255 254 249 / 88%); }
.header-inner, .footer-inner { width: min(100% - 4rem, 68rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.header-inner { min-height: 5.5rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .7rem; background: var(--green); color: var(--panel); font: 600 .9rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-shadow: 0 5px 14px rgb(29 92 67 / 15%); }
.brand-copy { display: grid; gap: .04rem; }
.brand-name { font-weight: 650; font-size: 1rem; letter-spacing: -.025em; }
.brand-description { font-size: .75rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.5rem; font-size: .88rem; }
.site-nav a { padding-block: .4rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .6em; }
.site-nav .project-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--green); background: var(--mint); border: 1px solid #bfd4c3; border-radius: .45rem; padding: .4rem .8rem; }
.site-nav .project-link:hover { background: #d0e3d4; }
.journal-shell { width: min(100% - 4rem, 60rem); margin-inline: auto; padding-bottom: 5rem; }
.journal-intro { padding: 5rem 0 4.5rem; max-width: 47rem; }
.eyebrow, .post-category { font: 600 .7rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { margin: 0 0 1.25rem; color: var(--green); }
.journal-intro h1 { margin: 0; font-size: clamp(2.8rem, 5.6vw, 4.25rem); line-height: 1.08; font-weight: 550; letter-spacing: -.055em; text-wrap: balance; }
.intro-description { max-width: 36rem; margin: 1.25rem 0 0; font-size: 1.15rem; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 1.05rem; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-size: .85rem; font-weight: 650; }
.section-aside { color: var(--muted); font-size: .75rem; }
.text-link { font-size: .8rem; text-decoration: none; }
.post-summary { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.post-summary.has-cover { grid-template-columns: 8.5rem minmax(0, 1fr) 11rem; }
.post-date { padding-top: .1rem; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.post-category { display: inline-block; margin-bottom: .6rem; font-size: .62rem; text-decoration: none; letter-spacing: .07em; }
.post-category:hover { text-decoration: underline; }
.summary-content { min-width: 0; }
.summary-content h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.25; font-weight: 580; letter-spacing: -.035em; text-wrap: pretty; }
.summary-content h3 a { color: var(--ink); text-decoration: none; }
.summary-content h3 a:hover { color: var(--green); }
.post-excerpt { margin: .8rem 0 1rem; max-width: 39rem; color: var(--muted); line-height: 1.75; overflow-wrap: anywhere; }
.read-link { display: inline-flex; align-items: baseline; gap: .5rem; font-size: .8rem; font-weight: 600; text-decoration: none; }
.read-link:hover { text-decoration: underline; }
.read-link > span[aria-hidden] { transition: transform .15s ease; }
.read-link:hover > span[aria-hidden] { transform: translateX(3px); }
.summary-cover { align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: .6rem; background: var(--panel); }
.summary-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.summary-cover:hover img { transform: scale(1.025); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-top: 2.5rem; font-size: .8rem; color: var(--muted); }
.nav-button { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: .45rem; text-decoration: none; background: var(--panel); }
.empty-state { padding: 3rem 0; }
.empty-state h3 { margin: 0; font-size: 1.3rem; font-weight: 550; }
.empty-state p { color: var(--muted); }
.reading-shell { width: min(100% - 4rem, 44rem); margin-inline: auto; padding-block: 3rem 5rem; }
.back-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .8rem; text-decoration: none; }
.back-link:hover { color: var(--green); }
.post-header { margin-block: 2.75rem 2.5rem; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; color: var(--muted); font-size: .8rem; }
.post-meta a { text-decoration: none; }
.post-header h1 { margin: 0; font-size: clamp(2.35rem, 4.9vw, 3.4rem); line-height: 1.12; font-weight: 560; letter-spacing: -.05em; overflow-wrap: anywhere; text-wrap: balance; }
.post-deck { margin: 1.4rem 0 0; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.reading-time { margin: 1rem 0 0; color: var(--muted); font-size: .8rem; }
.post-cover { margin-block: 0 2.5rem; }
.post-cover img { width: 100%; border: 1px solid var(--line); border-radius: .65rem; }
.prose { font-size: 1.08rem; line-height: 1.85; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose figure { margin-block: 0 1.5rem; }
.prose h2, .prose h3, .prose h4 { line-height: 1.3; letter-spacing: -.03em; font-weight: 600; margin-block: 2.75rem 1rem; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.35rem; }
.prose h4 { font-size: 1.1rem; }
.prose li { padding-left: .2rem; margin-block: .35rem; }
.prose li > ul, .prose li > ol { margin-bottom: 0; }
.prose img { border-radius: .55rem; }
.prose figcaption { margin-top: .6rem; color: var(--muted); text-align: center; font-size: .8rem; line-height: 1.6; }
.prose a { text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote { margin: 2rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 3px solid var(--green); color: var(--green-dark); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose code { padding: .16em .35em; border-radius: .25rem; background: #e9ece3; font: .84em/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre { max-width: 100%; margin: 2rem 0; padding: 1.35rem 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); white-space: pre; font-size: .9rem; line-height: 1.7; }
.prose pre code { padding: 0; background: transparent; border: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 2rem 0; font-size: .9rem; }
.prose th, .prose td { padding: .65rem .85rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--mint); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.post-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.post-tags a { padding: .2rem .65rem; border: 1px solid var(--line); border-radius: .35rem; font-size: .75rem; text-decoration: none; }
.post-tags a:hover { background: var(--mint); }
.post-end { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.post-end > span { color: var(--green); font-size: 1.4rem; }
.post-end a { font-size: .8rem; text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); background: rgb(255 254 249 / 55%); }
.footer-inner { padding-block: 1.75rem; color: var(--muted); font-size: .75rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--green); }
@media (max-width: 760px) {
  .header-inner, .footer-inner, .journal-shell, .reading-shell { width: calc(100% - 2.5rem); }
  .site-nav { gap: .3rem 1rem; font-size: .8rem; }
  .journal-intro { padding-block: 3.5rem; }
  .post-summary, .post-summary.has-cover { grid-template-columns: minmax(0, 1fr); gap: .7rem; padding-block: 2rem; }
  .post-date { font-size: .75rem; }
  .post-category { margin-bottom: .45rem; }
  .summary-cover { width: min(100%, 24rem); grid-row: 2; margin-block: .35rem .6rem; }
  .summary-cover img { aspect-ratio: 16 / 9; }
  .reading-shell { padding-top: 2rem; }
  .post-header { margin-top: 2rem; }
  .footer-inner { gap: .75rem 2rem; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .85rem; padding-block: 1.2rem 1rem; }
  .site-nav { width: 100%; gap: .35rem 1.3rem; }
  .site-nav .project-link { margin-left: auto; }
  .journal-intro { padding-block: 2.75rem 3rem; }
  .journal-intro h1 { font-size: 2.8rem; }
  .intro-description { font-size: 1.05rem; }
  .section-aside { display: none; }
  .post-summary { padding-block: 1.75rem; }
  .post-header h1 { font-size: 2.35rem; }
  .prose { font-size: 1rem; line-height: 1.8; }
  .prose pre { padding: 1rem; }
  .pagination { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .back-link, .post-end, .post-tags, .skip-link { display: none; }
  .reading-shell, .journal-shell { width: 100%; padding: 0; }
  .post-header { margin-top: 0; }
  .prose { font-size: 11pt; }
  .prose pre { white-space: pre-wrap; }
  a { color: inherit; }
}
