@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
}
:root {
  --bg: #fbf9f4; --fg: #1f1c18; --muted: #5d564d; --rule: #e3ddd1; --accent: #8a3b22; --tint: #f3efe5;
  --serif: "Source Serif 4", Charter, "Iowan Old Style", "Palatino Linotype", Georgia, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Serif KR", serif;
  --measure: 42.5rem;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16140f; --fg: #ebe6db; --muted: #aba397; --rule: #332f27; --accent: #e5a98c; --tint: #1e1b15; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.3125rem/1.65 var(--serif);        /* 21px desktop */
  font-optical-sizing: auto; font-kerning: normal; font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word; hanging-punctuation: first;
}
@media (max-width: 640px) { body { font-size: 1.1875rem; } }   /* 19px phone */
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem .75rem; z-index: 2; }

.site-header, main, .site-footer { width: 100%; max-width: 45.5rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; padding-top: 2rem; padding-bottom: 1rem; }
.brand { color: var(--fg); text-decoration: none; font-size: 1rem; letter-spacing: .01em; font-weight: 600; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a, .meta, .eyebrow, .badge, .pager-label, .site-footer {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.site-header nav a { color: var(--muted); text-decoration: none; padding: .5rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--fg); }
.site-header nav a[aria-current] { box-shadow: 0 1px 0 var(--accent); }
@media (max-width: 640px) { .site-header nav a, .meta, .eyebrow, .badge, .pager-label, .site-footer { font-size: .78rem; letter-spacing: .1em; } }

main { padding-top: 3.5rem; padding-bottom: 6rem; }
h1, h2, h3 { font-weight: 600; line-height: 1.18; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: 2.6rem; font-weight: 650; }
@media (max-width: 640px) { main { padding-top: 2.25rem; } h1 { font-size: 2.05rem; } }

/* Home */
.hero { padding: 3rem 0 4.5rem; }
.avatar { display: block; width: 112px; height: 112px; margin: 0 0 1.75rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.hero h1 { font-size: 3.4rem; line-height: 1.06; letter-spacing: -0.02em; }
.lede { font-size: 1.5rem; line-height: 1.45; font-style: italic; color: var(--muted); margin: 1.25rem 0 0; max-width: 30rem; text-wrap: pretty; }
@media (max-width: 640px) { .avatar { width: 80px; height: 80px; margin-bottom: 1.25rem; } .hero { padding: 1.5rem 0 3rem; } .hero h1 { font-size: 2.6rem; } .lede { font-size: 1.3rem; } }
.eyebrow { color: var(--muted); margin: 0 0 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }

/* Lists */
.essay-list { list-style: none; padding: 0; margin: 0; }
.essay-list li { padding: 0 0 2.5rem; }
.essay-list h2, .essay-list h3 { font-size: 1.6rem; line-height: 1.22; }
.essay-list h2 a, .essay-list h3 a { color: var(--fg); text-decoration: none; }
.essay-list h2 a:hover, .essay-list h3 a:hover { color: var(--accent); }
.excerpt { margin: .6rem 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.55; text-wrap: pretty; max-width: var(--measure); }
.meta { color: var(--muted); margin: 0 0 .65rem; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; }
.badge { border: 1px solid var(--rule); color: var(--muted); padding: .1rem .5rem; border-radius: 99px; font-size: .7rem; }
.all { margin: .5rem 0 0; font-size: 1.0625rem; }
.empty { color: var(--muted); font-style: italic; }
.page > h1 { margin-bottom: 2.75rem; }

/* Post */
.post-head { margin-bottom: 3rem; }
.post-head h1 { font-size: 2.9rem; line-height: 1.1; letter-spacing: -0.02em; max-width: 42.5rem; }
@media (max-width: 640px) { .post-head h1 { font-size: 2.15rem; } .post-head { margin-bottom: 2.25rem; } }
.dek { margin: 1.25rem 0 0; font-style: italic; color: var(--muted); font-size: 1.3rem; line-height: 1.45; max-width: var(--measure); text-wrap: pretty; }
@media (max-width: 640px) { .dek { font-size: 1.15rem; } }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.35em; hyphens: manual; }
.prose h2 { font-size: 1.55rem; line-height: 1.25; margin: 2.75em 0 .8em; letter-spacing: -0.005em; }
.prose h3 { font-size: 1.2rem; margin: 2em 0 .6em; }
.prose blockquote { margin: 2em 0; padding: .1rem 0 .1rem 1.5rem; border-left: 2px solid var(--accent); font-style: italic; color: var(--fg); }
.prose blockquote p { margin-bottom: .8em; }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.prose li { margin: .4em 0; padding-left: .25em; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; text-align: center; margin: 2.5em 0; }
.prose hr::before { content: "\00b7  \00b7  \00b7"; color: var(--muted); white-space: pre; }
.prose img { max-width: 100%; height: auto; }
.prose code { font-size: .88em; background: var(--tint); padding: .1em .3em; border-radius: 3px; }
.placeholder { color: var(--muted); }
.end-mark { text-align: center; color: var(--muted); margin: 3.5rem 0 3rem; max-width: var(--measure); font-size: 1.2rem; }

/* Previous / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: 1rem; }
.pager a { display: block; text-decoration: none; color: var(--fg); }
.pager-label { display: block; color: var(--muted); margin-bottom: .4rem; }
.pager-title { display: block; font-size: 1.1rem; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.pager a:hover .pager-title { color: var(--accent); }
.pager-newer { text-align: right; grid-column: 2; }
.pager-older { grid-column: 1; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager-newer { text-align: left; grid-column: 1; order: -1; } }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 3rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
@media print { .site-header nav, .pager, .skip { display: none; } body { background: #fff; color: #000; } }
