:root {
  color-scheme: light;
  --background: #fbfaf8;
  --surface: #f1efe9;
  --text: #1a1917;
  --muted: #706d66;
  --line: #d9d5cc;
  --accent: #204a3e;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
}
a { color: inherit; text-underline-offset: 0.17em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.page { width: min(100% - 40px, 760px); margin: 0 auto; padding: 28px 0 72px; }
.home-page { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.wordmark { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .86rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; }
nav { display: flex; gap: 20px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem; }
nav a { text-decoration: none; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; min-width: 1em; }
.icon-link img { display: block; width: 1em; height: 1em; }
.intro { padding: clamp(72px, 16vh, 150px) 0 clamp(68px, 13vh, 120px); max-width: 660px; }
.eyebrow { margin: 0 0 9px; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; }
h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 4.8rem); font-weight: 500; letter-spacing: -.045em; }
h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 500; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 1.12rem; font-weight: 650; }
.lede { margin: 26px 0 8px; font-size: clamp(1.17rem, 2.5vw, 1.45rem); line-height: 1.45; }
.current { margin: 0; color: var(--muted); }
.section { border-top: 1px solid var(--line); padding-top: 28px; }
.section-heading { display: grid; gap: 0; }
.project { margin-top: 32px; max-width: 630px; padding: 23px; background: var(--surface); border-radius: 4px; }
.project p { margin: 8px 0 0; color: #47443f; }
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 52px; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .86rem; }
.article-list { padding: clamp(72px, 14vh, 130px) 0; }
.article-list ol { list-style: none; margin: 42px 0 0; padding: 0; border-top: 1px solid var(--line); }
.article-list li { border-bottom: 1px solid var(--line); }
.post-link { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; text-decoration: none; }
.post-link strong { display: block; font-size: 1.1rem; }
.post-summary, time { color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .86rem; }
time { white-space: nowrap; }
.post { max-width: 680px; padding: clamp(52px, 10vh, 96px) 0; }
.post h1 { margin-bottom: 28px; font-size: clamp(2.35rem, 6vw, 4rem); }
.post p { margin: 0 0 1.25em; }
.back-link { display: inline-block; margin-bottom: 48px; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .86rem; }
.mermaid { overflow-x: auto; margin: 32px 0; padding: 16px; background: var(--surface); border-radius: 4px; }
@media (max-width: 520px) { body { font-size: 17px; } .page { width: min(100% - 32px, 760px); } .post-link { align-items: flex-start; flex-direction: column; gap: 5px; } }
