:root {
  color-scheme: light;
  --ink: #202823;
  --muted: #616a64;
  --accent: #285b49;
  --line: #dfe4df;
  --paper: #ffffff;
  --soft: #f3f6f3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.shell { max-width: 980px; padding: 0 36px; margin: auto; }
.skip { position: absolute; left: 20px; top: -80px; background: white; padding: 8px; z-index: 5; }
.skip:focus { top: 10px; }
.site-header { display: flex; align-items: center; gap: 28px; min-height: 108px; border-bottom: 1px solid var(--line); }
.navigation { display: flex; gap: 27px; margin-left: auto; }
.navigation a { font-size: 14px; color: var(--muted); padding: 9px 0; border-bottom: 1px solid transparent; }
.navigation a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.language { display: flex; gap: 12px; padding-left: 22px; border-left: 1px solid var(--line); font-size: 13px; }
.language a { color: var(--muted); }
.language a[aria-current] { color: var(--ink); font-weight: 600; }
main { min-height: calc(100vh - 205px); padding: 60px 0 76px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 40px; padding: 12px 0 48px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.portrait { display: block; width: 240px; max-width: 100%; height: auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 21px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.025em; }
h1 { font: 400 clamp(42px, 6vw, 68px)/1.12 Georgia, "Times New Roman", "Songti SC", serif; letter-spacing: -.045em; margin: 0 0 23px; }
.subtitle { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.degree-status { display: inline-block; margin-left: 6px; color: #707971; font-size: 13px; font-weight: 400; white-space: nowrap; }
.links { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; padding: 2px 0; border-bottom: 1px solid #91aa9d; font-size: 14px; font-weight: 600; color: var(--accent); }
.pill:hover { text-decoration: none; border-bottom-color: var(--accent); }
.section { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 34px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.section h2 { grid-column: 1; grid-row: 1 / span 4; font-size: 16px; font-weight: 600; margin: 4px 0 0; }
.section > :not(h2) { grid-column: 2; }
.section > p { margin: 0 0 14px; }
.section > p:last-child { margin-bottom: 0; }
.section > .links { margin-top: 6px; }
.section:last-child { border-bottom: 0; padding-bottom: 0; }
.education { display: flex; align-items: center; }
.education h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.education p { margin: 0; color: var(--muted); font-size: 16px; }
.heading { margin-bottom: 40px; }
.heading p:last-child { color: var(--muted); max-width: 650px; margin: 0; }
.project { padding: 32px 0 36px; border-top: 1px solid var(--line); }
.project:last-child { padding-bottom: 0; }
.project-header { display: flex; align-items: baseline; gap: 20px; justify-content: space-between; }
.project h2 { font-size: 27px; font-weight: 550; margin: 0; overflow-wrap: anywhere; }
.project-index { font: 13px ui-monospace, SFMono-Regular, monospace; color: var(--muted); }
.project p { margin: 16px 0; color: var(--muted); max-width: 720px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 18px 0; }
.tags li { font-size: 13px; background: var(--soft); color: #475e51; padding: 2px 10px; border-radius: 2px; }
.project .links { margin-top: 20px; }
.note-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.categories { align-self: start; position: sticky; top: 28px; }
.categories p { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 12px; }
.categories a { display: block; font-size: 15px; }
.categories a + a { margin-top: 8px; }
.note-category { scroll-margin-top: 28px; }
.note-category + .note-category { margin-top: 44px; }
.notes h2 { font-size: 30px; font-weight: 650; margin: 0 0 30px; }
.note { padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.note h3 { font-size: 21px; margin: 0 0 10px; font-weight: 550; }
.note h3 a { color: var(--ink); }
.note p { font-size: 16px; color: var(--muted); margin: 0 0 16px; }
.note > a { font-size: 14px; border-bottom: 1px solid #91aa9d; padding-bottom: 3px; }
.note-label { font-size: 11px; letter-spacing: 1px; color: var(--accent); display: block; margin-bottom: 8px; text-transform: uppercase; }
.quiet { font-size: 15px; color: var(--muted); margin-top: 23px; max-width: 600px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 24px 0 30px; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); }
@media (max-width: 650px) {
  .shell { padding: 0 24px; }
  .site-header { flex-wrap: wrap; gap: 4px 18px; padding: 25px 0 16px; min-height: 0; }
  .navigation { margin-left: 0; gap: 23px; }
  .language { margin-left: auto; padding-left: 14px; gap: 10px; }
  main { padding: 38px 0 54px; }
  .intro { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 22px; padding: 8px 0 35px; }
  .portrait { width: 150px; }
  .section { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 27px 0; }
  .section h2 { grid-column: 1; grid-row: auto; margin: 0 0 15px; color: var(--accent); }
  .section > :not(h2) { grid-column: 1; }
  .project { padding: 28px 0; }
  .project h2 { font-size: 24px; }
  .note-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .notes h2 { font-size: 26px; margin-bottom: 26px; }
  .note h3 { font-size: 20px; }
  .categories { position: static; }
  .categories p { margin-bottom: 5px; }
  .site-footer { flex-wrap: wrap; }
  .heading { margin-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
