:root {
  --ink: #17232b;
  --muted: #57646a;
  --paper: #ffffff;
  --line: #d6d9da;
  --accent: #1d5369;
  --navy: #183745;
  --yellow: #e6d6aa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 5; background: var(--ink); color: white; padding: .5rem .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header, main, footer { max-width: 1040px; margin: auto; }
.site-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: .7rem; align-items: center; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; text-decoration: none; }
.brand:hover { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 1.35rem; }
nav { display: flex; gap: 1.9rem; }
nav a { color: var(--muted); font-size: .86rem; text-decoration: none; }
nav a.active, nav a:hover { color: var(--ink); font-weight: 700; }
.header-socials { display: flex; align-items: center; gap: .12rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.header-socials a { display: grid; place-items: center; width: 27px; height: 27px; color: var(--muted); border-radius: 50%; }
.header-socials a:hover, .header-socials a:focus-visible { color: var(--accent); background: #eef3f4; }
.header-socials svg { width: 15px; height: 15px; fill: currentColor; }
.menu-toggle { display: none; border: 0; background: transparent; font: inherit; color: var(--ink); }
main { min-height: calc(100vh - 171px); }
.page { padding: 5.8rem 0 6rem; animation: enter .28s ease-out; }
.page#home { padding-top: 2rem; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.hero { max-width: 850px; padding: 3rem 0 4.5rem; }
.eyebrow, .card-label { margin: 0 0 1.15rem; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; }
h1 { max-width: 780px; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.9rem); font-weight: 400; letter-spacing: -.05em; }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); letter-spacing: -.025em; }
.role-line { max-width: 700px; margin: .4rem 0 0; color: var(--ink); font-size: clamp(1.25rem, 2.3vw, 1.7rem); font-weight: 500; line-height: 1.3; }
h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: -.025em; }
h3 { margin: .25rem 0 .75rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.hero-copy { max-width: 665px; margin-top: 1rem; color: var(--muted); font-size: 1.03rem; }
.actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.hero .button { padding: 0; background: transparent; color: var(--accent); font-size: .94rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hero .button:hover { background: transparent; color: var(--ink); transform: none; }
.button { display: inline-flex; gap: .8rem; align-items: center; padding: .7rem 1rem; background: var(--ink); color: white; text-decoration: none; font-weight: 700; font-size: .9rem; transition: transform .15s, background .15s; }
.button:hover { color: white; background: var(--accent); transform: translateY(-2px); }
.button span { font-size: 1.2rem; line-height: 1; }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button.secondary:hover { color: white; }
.text-link { color: var(--ink); font-weight: 700; }
.home-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.feature-card { padding: 2.4rem 3rem 2.7rem 0; }
.feature-card p:last-child { color: var(--muted); max-width: 450px; }
.feature-card a, .misc-card a { color: var(--accent); font-weight: 700; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 4.5rem; padding: 2.1rem 0 2.1rem; }
.home-bio { max-width: 650px; }
.home-role { margin: 0 0 1.1rem; color: var(--ink); font-size: 1.14rem; font-weight: 600; line-height: 1.45; }
.home-bio p:not(.home-role) { max-width: 640px; margin: 0 0 1rem; color: var(--muted); font-size: 1.03rem; }
.home-profiles { border-left: 1px solid var(--line); padding-left: 2.6rem; }
.home-profiles h2 { margin: 0 0 1.1rem; font-size: 1.55rem; }
.home-profiles ul { display: grid; gap: .55rem; margin: 0; padding: 0; color: var(--muted); font-size: .95rem; list-style: none; }
.home-profiles a, .selected-entry a, .home-more a { color: var(--accent); }
.selected-work { border-top: 1px solid var(--line); padding-top: 1.7rem; }
.selected-work > h2 { margin-bottom: 1.15rem; font-size: 1.8rem; }
.selected-entry { display: grid; grid-template-columns: 142px minmax(0, 1fr) auto; gap: 2rem; align-items: start; padding: 1rem 0 1.1rem; border-top: 1px solid var(--line); }
.selected-entry h3 { margin: 0 0 .25rem; font-size: 1.17rem; line-height: 1.28; }
.selected-entry h3 a { text-decoration: none; }
.selected-entry h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.selected-entry div > p { max-width: 620px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.48; }
.selected-meta { margin: 0; color: var(--ink); font-size: .85rem; font-weight: 600; line-height: 1.5; }
.selected-meta span { color: var(--muted); font-weight: 400; }
.entry-link { padding-top: .08rem; font-size: .87rem; font-weight: 600; text-align: right; text-decoration: none; white-space: nowrap; }
.entry-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.entry-link span { margin-left: .35rem; }
.home-more { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; padding: 1.1rem 0 .1rem; color: var(--muted); font-size: .94rem; }
.home-more a { font-weight: 600; }
.section-heading { max-width: 760px; margin-bottom: 4.5rem; }
.section-heading h1 { font-size: clamp(2.9rem, 6vw, 4.8rem); }
.section-heading > p:last-child { color: var(--muted); font-size: 1.1rem; }
.research-layout { display: grid; grid-template-columns: 1fr 290px; gap: 7rem; }
.project { padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.project p:last-child { margin-bottom: 0; color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: .45rem .8rem; }
.project-links a + a::before { content: "·"; color: var(--muted); margin-right: .8rem; }
.project-year { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin: 0; color: var(--accent); font-weight: 700; font-size: .82rem; }
.project-org { color: var(--muted); font-weight: 600; }
.research-note { align-self: start; padding: 2rem; background: var(--navy); color: #f4f0e6; }
.research-note p:nth-child(2) { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.research-note .text-link { color: var(--yellow); }
.publications { margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.publications ol { max-width: 820px; padding-left: 1.3rem; }
.publications li { padding: 1rem 0 1.1rem .75rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.publications a { margin-left: .5rem; color: var(--accent); font-size: .83rem; font-weight: 700; }
.cv-heading { display: flex; gap: 2rem; align-items: end; justify-content: space-between; max-width: none; }
.cv-heading .button { flex: none; margin-bottom: .5rem; }
.cv-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: .5rem; }
.cv-links a { color: var(--accent); font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 6rem; }
.cv-grid section { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.timeline { margin: 0; }
.timeline div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.timeline dt { color: var(--accent); font-size: .84rem; font-weight: 700; }
.timeline dd { margin: 0; color: var(--muted); }
.timeline strong { color: var(--ink); }
.plain-list { padding: 0; margin: 0; list-style: none; color: var(--muted); }
.plain-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.misc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.misc-card { min-height: 315px; padding: 2.1rem; display: flex; flex-direction: column; background: var(--paper); }
.misc-card h2 { font-size: 2rem; }
.misc-card > p:not(.card-label) { color: var(--muted); }
.misc-card a { margin-top: auto; }
.misc-card.recipe { background: #f0dec2; }
.misc-card.notes { background: #d7e4e0; }
.misc-card.reading { background: #e6dce7; }
.icon { color: var(--accent); font-family: var(--serif); font-size: 2.4rem; line-height: 1; margin-bottom: 1.5rem; }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.6rem 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
footer p { margin: 0; } footer div { display: flex; gap: 1.2rem; }

@media (max-width: 760px) {
  .site-header, main, footer { margin-inline: 1.3rem; }
  .site-header { min-height: 72px; position: relative; }
  .brand { flex: none; font-size: 1.05rem; white-space: nowrap; }
  .menu-toggle { display: block; order: 3; margin-left: .5rem; font-weight: 700; }
  .header-tools { margin-left: auto; gap: .35rem; }
  .header-socials { padding-left: 0; border-left: 0; }
  .header-socials a { width: 23px; height: 27px; }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; z-index: 3; flex-direction: column; gap: 0; padding: .6rem 1rem; background: var(--ink); }
  nav.open { display: flex; } nav a, nav a.active { padding: .7rem .2rem; color: #fff; }
  .page { padding: 3.5rem 0 4rem; }
  .page#home { padding-top: 2rem; }
  .hero { padding: 1rem 0 3.8rem; } h1 { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .home-grid, .home-intro, .research-layout, .cv-grid, .misc-grid { grid-template-columns: 1fr; }
  .home-intro { gap: 1.8rem; padding: 1.5rem 0 2rem; }
  .home-profiles { border-top: 1px solid var(--line); border-left: 0; padding: 1.5rem 0 0; }
  .home-profiles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; row-gap: .65rem; }
  .selected-entry { grid-template-columns: 1fr; gap: .45rem; padding: 1.1rem 0; }
  .entry-link { padding-top: .25rem; text-align: left; }
  .feature-card { padding: 2rem 0; } .feature-card.warm { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .research-layout { gap: 2.5rem; } .section-heading { margin-bottom: 3rem; }
  .cv-heading { display: block; } .cv-heading .button { margin-top: 1.5rem; }
  .cv-grid { gap: 2.7rem; } .misc-card { min-height: 250px; }
  footer { align-items: flex-start; flex-direction: column; gap: .4rem; }
}
