:root { color-scheme: light; --ink: #172334; --muted: #586678; --accent: #1f5f8b; --line: #dfe5ea; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #174968; }
a:focus-visible { outline: 3px solid #9fc9e3; outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: white; padding: .5rem; }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav { max-width: 1000px; margin: auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.site-header a { text-decoration: none; }
.brand { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
main, footer { max-width: 800px; margin: auto; padding: 0 1.5rem; }
main { min-height: 65vh; }
.diary-header { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.025em; margin: .6rem 0 0; overflow-wrap: break-word; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.45rem; margin: .4rem 0; }
.eyebrow, .muted { color: var(--muted); font-size: .9rem; }
.eyebrow { margin: 0; }
.empty-state { background: #f4f7f9; padding: 1.2rem 1.4rem; border-left: 3px solid #9ebcd0; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.post-list li p:last-child { margin-bottom: 0; }
.series { margin: 2.2rem 0; font-size: .9rem; }
.post-header { padding-bottom: 1.75rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.prose { overflow-wrap: break-word; }
.prose h2 { margin-top: 2rem; }
.prose img { max-width: 100%; height: auto; }
.prose pre { overflow-x: auto; padding: 1rem; background: #f4f7f9; }
.prose blockquote { margin-left: 0; padding-left: 1.25rem; border-left: 3px solid #9ebcd0; color: var(--muted); }
mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; padding: .25rem 0; }
.post-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.post-navigation a { max-width: 100%; }
footer { margin-top: 4rem; padding-top: 1.2rem; padding-bottom: 2rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
@media (max-width: 500px) { .diary-header { padding-top: 2.5rem; } body { font-size: 16px; } }
