:root {
  --ink: #13233a;
  --ink-soft: #40506a;
  --paper: #f6f3ed;
  --paper-deep: #ebe5db;
  --white: #fffdf9;
  --accent: #d9482f;
  --rule: rgba(19, 35, 58, .18);
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header { position: relative; width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.15rem; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: .85rem; }
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
main, .site-footer-inner { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }
h1, h2, h3, blockquote { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
h1 { margin: 0; font-size: clamp(2rem, 3.5vw, 2.5rem); }
h2 { margin: 0; font-size: 1.5rem; }
h3 { margin: 0; font-size: 1.2rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--accent); font-size: .9rem; font-weight: 650; letter-spacing: .025em; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link::after { content: "↗"; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.home-intro { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2.25rem; align-items: center; padding: 2.5rem 0; }
.home-portrait { margin: 0; }
.home-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 703 / 873; object-fit: cover; border: 1px solid var(--rule); }
.home-profile h1 { font-size: clamp(2.2rem, 4vw, 2.75rem); }
.home-role { margin: .35rem 0 .65rem; font-size: 1.15rem; }
.home-affiliation { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.home-summary { max-width: 43rem; margin: 1rem 0 0; }
.profile-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; }
.section { padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.2rem; }
.writing-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .95rem; }
.writing-links a { text-underline-offset: .2em; }
.post-meta { font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.home-post .post-meta { margin: 0 0 .5rem; }
.home-post h3 { font-family: inherit; font-size: 1.3rem; line-height: 1.5; letter-spacing: 0; }
.home-post h3 a { text-decoration: none; }
.home-post h3 a:hover { color: var(--accent); }
.home-post > p:last-child { max-width: 50rem; margin: .65rem 0 0; color: var(--ink-soft); }
.page-intro { padding: 2rem 0 1.5rem; }
.page-intro h1 { max-width: 48rem; font-size: clamp(1.9rem, 3.3vw, 2.25rem); }
.page-intro .lede { max-width: 46rem; margin: .75rem 0 0; color: var(--ink-soft); font-size: 1rem; }
.intro-link { margin: .75rem 0 0; font-size: .95rem; }
.research-main { max-width: 960px; }
.research-block { margin: 0 0 1.5rem; }
.research-block > h2 { padding: .65rem 0; font-family: inherit; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.project-list { border-top: 1px solid var(--rule); }
.project { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.project h3 { font-size: 1.17rem; line-height: 1.4; }
.project p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.project h3 a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.project h3 a:hover { color: var(--accent); }
.project p.status { color: var(--accent); font-size: .9rem; }
.blog-switch { display: inline-flex; gap: .25rem; padding: .25rem; border: 1px solid var(--rule); background: var(--paper-deep); margin-bottom: 1.5rem; }
.blog-switch a { padding: .4rem .8rem; text-decoration: none; font-weight: 600; font-size: .95rem; }
.blog-switch a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.empty-note { margin: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0; color: var(--ink-soft); }
.site-footer { margin-top: 2.5rem; background: var(--ink); color: var(--paper); }
.site-footer-inner { padding: 1.5rem 0; display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: center; }
.footer-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.footer-links { display: flex; gap: .5rem 1rem; justify-content: flex-end; flex-wrap: wrap; font-size: .9rem; }
.footer-links a { text-underline-offset: .2em; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; border-top: 1px solid rgba(255,255,255,.2); padding-top: .8rem; color: rgba(255,255,255,.75); font-size: .85rem; }
@media (max-width: 720px) {
  .site-header { min-height: 68px; }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; padding: 1rem; background: var(--ink); color: white; flex-direction: column; align-items: flex-start; gap: .8rem; }
  .nav.is-open { display: flex; }
  .home-intro { grid-template-columns: 140px minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.75rem 0; }
  .home-profile h1 { font-size: 2rem; }
  .home-role { font-size: 1.05rem; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 520px) {
  main, .site-header, .site-footer-inner { width: calc(100% - 2rem); }
  .home-intro { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .home-profile { grid-row: 1; }
  .home-portrait { width: 136px; }
  .page-intro { padding-top: 1.5rem; }
  .section-heading { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Shared editorial styling; compact content structure stays intact. */
:root {
  --ink: #203743;
  --ink-soft: #52636c;
  --paper: #faf8f3;
  --paper-deep: #ece7dc;
  --white: #fffefb;
  --accent: #9b4b36;
  --rule: rgba(32, 55, 67, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Noto Serif TC", "Songti TC", serif;
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, blockquote { font-family: var(--serif); }
.site-header { min-height: 80px; }
.brand { font-weight: 650; letter-spacing: -.025em; }
.brand-mark { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-family: var(--serif); }
.nav a { position: relative; padding: .5rem 0; font-size: .93rem; font-weight: 500; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; height: 2px; bottom: .1rem; left: 0; right: 0; background: var(--accent); }
.text-link::after { content: none; }
.text-link { font-weight: 550; }
.home-intro { grid-template-columns: 236px minmax(0, 1fr); gap: 3rem; padding: 2.75rem 0; }
.home-portrait { padding: .5rem; background: var(--white); border: 1px solid var(--rule); box-shadow: 8px 8px 0 var(--paper-deep); }
.home-portrait img { border: 0; }
.home-profile h1 { font-size: clamp(2.3rem, 4vw, 2.85rem); letter-spacing: -.04em; line-height: 1.16; }
.home-role { color: var(--accent); margin: .55rem 0 1rem; font-size: 1.1rem; }
.home-affiliation { padding-left: .9rem; border-left: 2px solid var(--rule); font-size: .95rem; }
.home-summary { margin-top: 1rem; max-width: 39rem; }
.profile-links { align-items: center; gap: .65rem 1.2rem; margin-top: 1.15rem; font-size: .95rem; }
.profile-links a:first-child { padding: .35rem .9rem; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 3px; }
.profile-links a:first-child:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; }
.profile-links a:not(:first-child) { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .3em; }
.profile-links a:not(:first-child):hover { text-decoration-color: var(--accent); }
.section-heading h2 { font-size: 1.65rem; }
.writing-links { gap: .75rem; font-size: .9rem; }
.writing-links a { padding: .25rem .65rem; border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; }
.writing-links a:hover { background: var(--paper-deep); }
.home-post { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: .55rem 1.4rem; padding: 1.3rem 1.5rem; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 3px; }
.home-post .post-meta { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-variant-numeric: tabular-nums; }
.home-post .post-meta span { color: var(--accent); }
.home-post h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
.home-post > p:last-child { grid-column: 2; margin: 0; font-size: .95rem; line-height: 1.75; }
.page-intro::before { content: ""; display: block; width: 2.25rem; height: 3px; background: var(--accent); margin-bottom: .9rem; }
.page-intro { padding-top: 2.25rem; }
.page-intro .eyebrow { color: var(--ink-soft); font-size: .92rem; }
.page-intro h1 { line-height: 1.24; letter-spacing: -.025em; }
.research-block { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.75rem; margin-bottom: 1.4rem; }
.research-block > h2 { padding-top: .9rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
.project h3 { font-family: inherit; font-weight: 600; font-size: 1.1rem; line-height: 1.45; letter-spacing: -.015em; }
.project p { font-size: .93rem; }
.project p.status { font-size: .88rem; }
.project h3 a { text-decoration-color: var(--rule); }
.project h3 a:hover { text-decoration-color: var(--accent); }
.blog-switch { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0; background: transparent; gap: 1.1rem; }
.blog-switch a { padding: .35rem 0 .55rem; color: var(--ink-soft); font-weight: 500; }
.blog-switch a[aria-current="page"] { background: transparent; color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.empty-note { background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 1.2rem 1.4rem; }
.site-footer { background: transparent; color: var(--ink); border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.site-footer-inner { padding: 1.3rem 0; gap: .9rem 2rem; }
.footer-title { font-family: var(--serif); font-size: 1.2rem; }
.footer-links { color: var(--ink-soft); }
.footer-links a { text-decoration-color: var(--rule); }
.footer-links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-bottom { border-top: 0; padding-top: 0; color: var(--ink-soft); }
@media (max-width: 720px) {
  .site-header { min-height: 68px; }
  .nav a { padding: .25rem 0; }
  .nav a[aria-current="page"] { color: #f4bd9c; }
  .nav a[aria-current="page"]::after { background: #f4bd9c; bottom: 0; }
  .home-intro { grid-template-columns: 160px minmax(0, 1fr); gap: 1.75rem; padding: 2rem 0; }
  .home-profile h1 { font-size: 2.2rem; }
  .research-block { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .research-block > h2 { padding-top: 0; }
}
@media (max-width: 520px) {
  .home-intro { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .home-portrait { width: 156px; }
  .home-profile { grid-row: 1; }
  .home-post { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; gap: .7rem; }
  .home-post .post-meta { grid-row: auto; flex-direction: row; flex-wrap: wrap; gap: .35rem 1rem; }
  .home-post > p:last-child { grid-column: 1; }
}
