:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --surface: #fffefa;
  --ink: #182926;
  --muted: #4d615b;
  --accent: #006d58;
  --line: #d8ded6;
  --dark: #102b27;
  --radius: 18px;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; line-height: 1.66; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #ae5a19; outline-offset: 4px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 7.7vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.muted, .lede { color: var(--muted); }
.lede { max-width: 62ch; font-size: 1.13rem; }
.skip { position: absolute; top: 0; left: 12px; z-index: 2; padding: 10px; transform: translateY(-115%); background: var(--surface); }
.skip:focus { transform: translateY(0); }

.masthead { border-bottom: 1px solid var(--line); background: var(--surface); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 16px; }
.identity { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--ink); font-weight: 740; text-decoration: none; }
.monogram { width: 36px; height: 36px; display: grid; place-items: center; background: var(--dark); color: #fff; border-radius: 50%; font: 1rem Georgia, serif; }
.site-nav { display: flex; flex-wrap: wrap; gap: 5px; }
.site-nav a, .jump-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 13px; border-radius: 100px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-nav a:hover, .site-nav a[aria-current="page"], .jump-links a:hover { color: var(--accent); background: #e3eee6; }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5.5vw, 80px); padding-block: clamp(46px, 6vw, 84px) clamp(38px, 5vw, 68px); }
.hero h1 { font-size: clamp(2.8rem, 6.3vw, 5.85rem); line-height: 1.02; text-wrap: initial; }
.hero h1 em { display: block; color: var(--accent); font-weight: 400; }
.hero .lede { margin: 20px 0 25px; }
.hero-photo { margin: 0; overflow: hidden; background: var(--dark); color: #ecf3ed; border: 1px solid #183a33; border-radius: var(--radius); box-shadow: 0 16px 36px -22px #102b2780; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 13px 16px; font-size: .78rem; color: #c2d8ce; }
.hero-photo figcaption span:first-child { color: #fff; font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 16px; color: #fff; background: var(--dark); border-radius: 9px; font-size: .9rem; font-weight: 680; text-decoration: none; }
.button:hover { background: #216351; }
.text-link { font-weight: 680; }
.text-link:hover { text-decoration-thickness: 2px; }

.section { padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 20px; }
.section-head .eyebrow { margin: 0 0 .45em; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-card { display: flex; flex-direction: column; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.work-card p { margin: 10px 0; color: var(--muted); }
.work-card .eyebrow { margin-top: 0; color: var(--accent); font-size: .66rem; letter-spacing: .1em; }
.work-card .text-link { margin-top: auto; padding-top: 8px; align-self: start; font-size: .9rem; }
.project-art { width: 100%; height: auto; margin: 0 0 17px; border: 1px solid #183a3326; border-radius: 10px; background: #e3ebe0; }
.publication { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(18px, 5vw, 70px); }
.publication .eyebrow, .contact-panel .eyebrow { margin-bottom: .5em; }
.publication-entry h3 { max-width: 38ch; }
.publication-entry h3 + p { color: var(--muted); margin-top: 8px; }
.publication-entry + .publication-entry { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.thesis-entry { display: grid; grid-template-columns: clamp(60px, 11vw, 100px) minmax(0, 1fr); gap: clamp(12px, 2vw, 20px); align-items: start; }
.thesis-cover { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 5px 14px -9px #102b2780; }
.file-detail { display: block; color: var(--muted); font-size: .78rem; margin-top: .2rem; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--dark); color: #fff; }
.contact-panel .eyebrow { color: #a0d9c7; }
.contact-panel p:last-child { color: #d4e4dd; margin: .75em 0 0; }
.contact-panel .button { background: var(--surface); color: var(--dark); }
.contact-panel .button:hover { background: #e3eee6; }

.site-page { padding-block: clamp(34px, 6vw, 74px); min-height: 62vh; }
.page-intro { border-bottom: 1px solid var(--line); padding-bottom: 23px; margin-bottom: 22px; }
.page-intro h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.page-intro p:last-child { max-width: 64ch; color: var(--muted); margin: .8em 0 0; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.profile-grid > section, .project-section, .news-entry { padding: clamp(17px, 3vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.profile-grid > section > :last-child, .project-section > :last-child, .news-entry > :last-child { margin-bottom: 0; }
.profile-grid h2, .news-entry h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin-bottom: 10px; }
.profile-grid p, .project-section p, .news-entry p { max-width: 76ch; }
.profile-grid ul, .project-section ul { padding-inline-start: 1.2em; }
.profile-grid li + li { margin-top: .45em; }
.profile-grid .education { list-style: none; padding: 0; }
.profile-grid .education li + li { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.jump-links a { border: 1px solid var(--line); }
.project-list, .news-list { display: grid; gap: 15px; }
.project-group + .project-group { margin-top: 40px; }
.project-group > h2 { margin-bottom: 16px; }
.project-section .eyebrow { margin-bottom: .55em; }
.project-section h3 { font: 400 clamp(1.65rem, 3vw, 2.35rem)/1.12 Georgia, serif; letter-spacing: -.035em; margin-bottom: 10px; }
.illustrated-project { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; }
.illustrated-project > div > :last-child { margin-bottom: 0; }
.research-figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.research-figure img { width: 100%; height: auto; }
.research-figure figcaption { padding: 9px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.research-figure figcaption a { font-weight: 680; }
.project-section .metrics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.metrics li { background: #eaf2eb; color: var(--dark); border-radius: 8px; padding: 6px 10px; font-size: .82rem; }

.gallery-section { padding-block: 21px; border-bottom: 1px solid var(--line); }
.gallery-section h2 { margin-bottom: 14px; }
.gallery-section > p { max-width: 70ch; }
.gallery-grid, .classic-music-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 174px), 1fr)); gap: 12px; }
.gallery-grid .item, .classic-music-item { background: var(--surface); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.gallery-grid .item img, .classic-music-item img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; background: #eceee6; }
.gallery-grid .item a, .gallery-caption, .classic-music-item a { display: block; margin: 0; padding: 10px 12px; font-size: .92rem; font-weight: 640; }
.album-details { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 5vw, 55px); align-items: start; margin-top: 20px; }
.album-cover img { border-radius: 12px; width: 100%; }
.album-info h1 { font-size: clamp(2rem, 5vw, 4.4rem); margin-bottom: 14px; }
.footer { border-top: 1px solid var(--line); padding-block: 22px 30px; color: var(--muted); font-size: .87rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }

@media (max-width: 790px) {
  .shell { width: calc(100% - 36px); }
  .hero, .publication, .illustrated-project { grid-template-columns: 1fr; }
  .hero { padding-block: 37px 30px; }
  .hero-photo { max-width: 600px; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (min-width: 560px) and (max-width: 790px) {
  .work-card { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); column-gap: 18px; }
  .work-card .project-art { grid-row: span 4; align-self: center; margin: 0; }
}
@media (max-width: 560px) {
  .section-head { align-items: start; flex-direction: column; gap: 9px; }
  .masthead-inner { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding-inline: 8px; }
  .album-details { grid-template-columns: 1fr; }
  .album-cover { max-width: 300px; }
}
