:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #182536; background: #f4f7fa; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
.wrap { width: min(100% - 2.5rem, 46rem); margin: 0 auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2; padding: .6rem 1rem; background: #fff; }
.skip-link:focus { top: .5rem; }
.site-header { border-bottom: 1px solid #dce4ec; }
.header-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-size: 1.05rem; font-weight: 750; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 1.5rem); }
nav a { padding: .4rem 0; color: #486076; font-size: .92rem; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { color: #182536; text-decoration: underline; text-underline-offset: .3em; }
main { flex: 1; }
.hero { padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(4rem, 10vw, 6rem); text-align: center; }
h1 { font-size: clamp(2.8rem, 8vw, 5rem); letter-spacing: -.06em; line-height: 1.08; margin: 0 0 1rem; }
.subtitle { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; margin: 0 0 2rem; }
.lead { max-width: 34rem; margin: 0 auto; line-height: 1.9; color: #486076; }
.down { display: inline-block; margin-top: 2.5rem; color: #486076; font-size: 1.6rem; text-decoration: none; }
.down:hover, .down:focus-visible { color: #182536; }
section { padding: 2rem 0 3rem; border-top: 1px solid #dce4ec; }
h2 { font-size: 1.55rem; margin: 0 0 1.5rem; letter-spacing: -.03em; }
section p { margin: 0 0 .75rem; line-height: 1.85; color: #486076; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.text-link, .back-link { color: #385a78; text-underline-offset: .2em; }
.text-link:hover, .back-link:hover { color: #182536; }
.entries { display: grid; gap: 1rem; }
.entry-card { background: #fff; border: 1px solid #dce4ec; border-radius: .85rem; }
.entry-card > a { display: block; padding: 1.5rem; text-decoration: none; border-radius: .85rem; }
.entry-card > a:hover, .entry-card > a:focus-visible { outline: 2px solid #7d9fb8; outline-offset: 2px; }
time { display: block; margin-bottom: .55rem; color: #617588; font-size: .88rem; }
.entry-card h2, .entry-card h3 { margin: 0 0 .6rem; font-size: 1.1rem; line-height: 1.45; }
.entry-card p { margin: 0; line-height: 1.7; color: #536779; }
.read-more { display: inline-block; margin-top: 1rem; color: #385a78; font-size: .9rem; font-weight: 600; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; max-width: 25rem; }
.topics span { padding: .75rem 0; border-bottom: 1px solid #dce4ec; }
.page-intro { padding: clamp(3rem, 8vw, 5rem) 0 2.5rem; }
.page-intro h1 { font-size: clamp(2.5rem, 6vw, 3.6rem); }
.page-intro p { line-height: 1.8; color: #486076; }
.notes-list { padding-bottom: 4rem; }
.post { padding: clamp(3rem, 8vw, 5rem) 0 4rem; }
.post-header { padding-bottom: 2rem; border-bottom: 1px solid #dce4ec; }
.post-header h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: 1.2; }
.post-header p { color: #486076; line-height: 1.8; }
.prose { font-size: 1rem; line-height: 1.9; overflow-wrap: anywhere; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 1.45rem; line-height: 1.4; }
.prose p { margin: 0 0 1.2rem; color: #384e62; }
.prose ul { padding-left: 1.5rem; color: #384e62; }
.prose li { margin: .4rem 0; }
.prose pre { overflow-x: auto; padding: 1rem 1.25rem; border: 1px solid #dce4ec; border-radius: .7rem; background: #eaf0f5; line-height: 1.6; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.prose :not(pre) > code { padding: .1rem .3rem; border-radius: .25rem; background: #eaf0f5; }
.back-link { display: inline-block; margin-top: 2.5rem; }
.about-copy { padding-bottom: 4rem; }
footer { border-top: 1px solid #dce4ec; padding: 1.5rem 0; color: #617588; font-size: .88rem; }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; }
footer a { color: inherit; text-underline-offset: .2em; }
@media (max-width: 480px) {
  .wrap { width: min(100% - 2rem, 46rem); }
  .header-inner { min-height: 4rem; }
  .brand { font-size: .96rem; }
  nav a { font-size: .85rem; }
  .entry-card > a { padding: 1.2rem; }
  .section-heading { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
