
:root {
  --ink: #10231e;
  --ink-soft: #1d3930;
  --paper: #f5f1e7;
  --paper-deep: #e9e3d5;
  --lime: #d9f58a;
  --coral: #ee7960;
  --muted: #607068;
  --line: rgba(16, 35, 30, .16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, 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-family: var(--sans); }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 5; padding: 10px 14px; background: var(--lime); color: var(--ink); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; line-height: .93; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: .9rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }

header.shell { padding: 20px 0; border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: var(--serif); font-size: 1rem; font-weight: 700; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-size: .85rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--coral); }

.journal-shell, .post-shell { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 90px; }
.journal-head { margin-bottom: 40px; }
.journal-head .display { margin-top: 14px; font-size: clamp(3.2rem, 7vw, 5.6rem); }
.journal-lede { max-width: 560px; margin: 18px 0 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }

.journal-controls { display: flex; align-items: center; gap: 16px; margin: 0 0 40px; }
.journal-search { flex: 1; border: 1px solid var(--ink); border-radius: 999px; background: #fffdf7; color: var(--ink); font: inherit; font-size: .95rem; padding: 12px 18px; }
.journal-search::placeholder { color: var(--muted); }
.journal-count { color: var(--muted); font-size: .82rem; font-weight: 750; white-space: nowrap; }

.journal-year { margin-bottom: 44px; }
.journal-year[hidden] { display: none; }
.journal-year-title { display: flex; align-items: baseline; gap: 10px; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: transparent; cursor: pointer; font-family: var(--serif); font-size: 1.9rem; font-weight: 400; letter-spacing: -.04em; color: var(--ink); text-align: left; }
.journal-year-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.journal-year-title[aria-pressed="true"] { color: var(--coral); box-shadow: inset 0 -2px 0 var(--coral); text-decoration: none; }
.journal-year-count { font-family: var(--sans); font-size: .78rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.journal-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.journal-entry { border-bottom: 1px solid var(--line); }
.journal-entry[hidden] { display: none; }
.journal-entry article { display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding: 24px 0; }
.journal-date { color: var(--muted); font-size: .82rem; font-weight: 750; padding-top: 3px; }
.journal-title { margin: 0 0 8px; }
.journal-title a { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 400; letter-spacing: -.045em; text-decoration: none; }
.journal-entry:hover .journal-title a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.journal-blurb { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.journal-tags, .post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .76rem; font-weight: 750; }
button.chip { background: transparent; cursor: pointer; font: inherit; }
button.chip:hover { border-color: var(--ink); }
.journal-empty { margin: 8px 0 30px; color: var(--muted); font-size: .95rem; }

.post-head { margin-bottom: 40px; }
.post-head .display { margin-top: 14px; font-size: clamp(2.8rem, 6vw, 4.4rem); }
.post-head .lede { max-width: 620px; margin: 20px 0 0; color: var(--ink-soft); font-size: 1.15rem; line-height: 1.62; }
.post-cover { margin: 0 0 34px; }
.post-cover img { display: block; width: 100%; border: 1px solid var(--line); }

.post-body { font-family: var(--serif); font-size: 1.09rem; line-height: 1.75; color: var(--ink-soft); }
.post-body p { margin: 0 0 22px; }
.post-body h2 { margin: 44px 0 14px; color: var(--ink); font-size: 1.85rem; font-weight: 400; letter-spacing: -.05em; line-height: 1.05; }
.post-body h3 { margin: 36px 0 12px; color: var(--ink); font-size: 1.35rem; font-weight: 400; letter-spacing: -.03em; }
.post-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.post-body strong { color: var(--ink); }
.post-body blockquote { margin: 28px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--coral); font-size: 1.22rem; font-style: italic; letter-spacing: -.015em; }
.post-body blockquote p { margin: 0; }
.post-body pre { overflow-x: auto; margin: 26px 0; padding: 18px 20px; border-radius: 6px; background: var(--ink); color: var(--lime); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.6; }
.post-body code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }
.post-body p code, .post-body li code { padding: 2px 5px; border-radius: 4px; background: var(--paper-deep); color: var(--ink); }
.post-body pre code { background: none; padding: 0; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 26px; }
.post-body li { margin-bottom: 8px; }
.post-body img { display: block; width: 100%; margin: 26px 0; border: 1px solid var(--line); }
.post-body hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }

.post-tags { margin-top: 34px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.post-nav-link { display: block; text-decoration: none; }
.post-nav-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.post-nav-link .eyebrow { display: block; margin-bottom: 8px; }
.post-nav-link strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: -.03em; }
.post-nav-link.next { text-align: right; }
.post-nav-link:empty { visibility: hidden; }
.post-return { margin: 34px 0 0; font-size: .9rem; font-weight: 750; }
.post-return a { color: var(--muted); text-decoration: none; }
.post-return a:hover { color: var(--ink); }

footer.shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 34px; margin-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.footer-links { display: flex; gap: 18px; }
footer a { font-weight: 750; text-decoration: none; }

@media (max-width: 780px) {
  .shell, .journal-shell, .post-shell { width: min(100% - 32px, 1160px); }
  .nav-links { gap: 14px; }
  .journal-entry article { grid-template-columns: 1fr; gap: 6px; }
  .journal-date { padding-top: 0; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }
  footer.shell { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
