* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f2ead8;
  --muted: #c6c0b0;
  --line: #3d3c32;
  --accent: #e2c98a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --gutter: clamp(1.1rem, 4.5vw, 4.2rem);
}
body { margin: 0; color: var(--ink); background: var(--bg); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h1 { font-size: clamp(2.9rem, 1.45rem + 4vw, 5.65rem); letter-spacing: -.066em; }
h2 { font-size: clamp(2.25rem, 1.6rem + 2.3vw, 4.1rem); letter-spacing: -.047em; text-wrap: balance; }
h3 { font-size: clamp(1.45rem, 1rem + 1.2vw, 2.1rem); letter-spacing: -.025em; }
p { max-width: 61ch; }
img { display: block; width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: .82rem; line-height: 1.5; padding-top: .65rem; }
.wrap { width: min(100% - var(--gutter) * 2, 76rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .55rem .9rem; background: var(--ink); color: var(--bg); transform: translateY(-190%); }
.skip:focus { transform: none; }
.site-head, .footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 2rem; }
.site-head { min-height: 4.8rem; border-bottom: 1px solid var(--line); }
.brand { font: 1.23rem/1.2 var(--serif); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: .89rem; }
nav a, .brand, .profile-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
nav a { text-decoration: none; color: var(--muted); }
.eyebrow { font-size: .73rem; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); font-weight: 650; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .48fr); align-items: center; gap: clamp(1.9rem, 6.2vw, 6.5rem); padding-block: clamp(2.4rem, 4.65vw, 4.6rem); }
.profile h1 { margin-block: .65rem 1rem; }
.profile h1 span { white-space: nowrap; }
.profile-summary { font: clamp(1.25rem, 1.05rem + .7vw, 1.75rem)/1.4 var(--serif); max-width: 34ch; }
.appointments { color: var(--muted); margin-top: 1.1rem; font-size: .94rem; }
.profile-links { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: 1.45rem; font-size: .87rem; }
.action { gap: .8em; border: 1px solid #796741; padding-inline: .85rem; text-decoration: none; color: var(--accent); }
.action:hover { background: #252219; }
.headshot { width: min(100%, 23rem); justify-self: end; }
.headshot img { aspect-ratio: 4 / 4.5; object-fit: cover; object-position: 50% 38%; }
.research, .section { border-top: 1px solid var(--line); padding-block: clamp(2.2rem, 5.2vw, 4.5rem); }
.section-intro { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: .9rem 3rem; margin-bottom: 1.9rem; }
.truffle-origins { border-block: 1px solid var(--line); padding-block: clamp(1.2rem, 3vw, 2.2rem); margin-bottom: 2.3rem; }
.truffle-origins .section-intro { align-items: start; }
.truffle-origins figure { max-width: 62rem; margin-inline: auto; }
.truffle-origins figcaption { text-align: end; }
.truffle-origins figcaption a { display: inline-flex; align-items: center; gap: .5em; min-height: 2.75rem; }
.section h2, .section-intro h2 { margin-top: .55rem; }
.section p:not(.eyebrow), .section-intro>p, .research-list p:not(.eyebrow), .field-copy p:not(.eyebrow) { color: var(--muted); }
.field-feature { display: grid; grid-template-columns: minmax(0,1.38fr) minmax(0,.72fr); align-items: center; gap: clamp(1.3rem, 4vw, 4rem); margin-block: 1.6rem 2.5rem; }
.field-feature img { aspect-ratio: 4 / 3; object-fit: cover; }
.field-copy { padding-block: .4rem; }
.field-copy h3 { margin-block: .5rem .8rem; }
.field-copy p+p { margin-top: .65rem; }
.research-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.4rem; }
.research-list article { border-top: 1px solid var(--line); padding-top: .9rem; display: grid; align-content: start; gap: .5rem; }
.citations { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.citations li { border-top: 1px solid var(--line); display: grid; grid-template-columns: 4.25rem 1fr; gap: .75rem; padding-block: .95rem; }
.citations h3 { font-size: 1.18rem; line-height: 1.4; margin-bottom: .3rem; }
.citations p, .year { font-size: .9rem; }
.year { color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 3rem; align-items: center; }
.teaching-intro { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.publication-pdf { display: inline-block; margin-inline-start: .65em; color: var(--accent); }
.course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.course-group, .mentorship { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.course-group h3, .mentorship h3 { margin-block: .45rem .65rem; }
.course-group article { margin-top: 1.05rem; }
.course-group h4 { margin: 0 0 .25rem; font: 400 1.25rem/1.25 var(--serif); }
.course-group .eyebrow + p { margin-top: .45rem; }
.mentorship { margin-top: 1.9rem; }
.photo-series { margin-top: 2rem; }
.series-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; border-top: 1px solid var(--line); padding-block: .85rem; }
.series-head p { margin-top: .35rem; font-size: .86rem; }
.gallery-controls:not([hidden]) { display: flex; align-items: center; gap: .5rem; }
.gallery-count { min-width: 5.6rem; color: var(--muted); font-size: .81rem; text-align: end; font-variant-numeric: tabular-nums; }
.gallery-controls button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; border: 1px solid #887951; background: transparent; color: var(--accent); font: 1.34rem/1 var(--sans); cursor: pointer; }
.gallery-controls button:not([aria-disabled="true"]):hover { background: #252219; }
.gallery-controls button[aria-disabled="true"] { color: #b3a585; border-color: #6b624a; cursor: default; }
.gallery-controls button:focus-visible, .gallery-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery-track { position: relative; display: flex; gap: 1.25rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: .45rem; }
.gallery-slide { flex: 0 0 calc((100% - 1.25rem) / 2); min-width: 0; scroll-snap-align: start; }
.field-photo img, .macro-photo img { aspect-ratio: 4 / 3; object-fit: contain; background: #0c0d0b; }
.macro-photo img { background: #000; }
.plate { background: #000; }
.plate img { aspect-ratio: 1.72; object-fit: contain; }
.plate figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .95rem; border-top: 1px solid var(--line); }
.plate i { color: var(--ink); font: 1.12rem var(--serif); }
.about { align-items: start; }
.about-copy p:not(.eyebrow) { margin-top: .85rem; }
.about-portrait { max-width: 24rem; width: 100%; }
.cv-download { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .5rem; margin-top: .65rem; color: var(--accent); }
.cv-list > div { padding: .6rem 0; border-top: 1px solid var(--line); }
.cv-list dd { color: var(--muted); font-size: .9rem; }
.footer { padding-block: 1.2rem 2.2rem; color: var(--muted); font-size: .87rem; border-top: 1px solid var(--line); }
@media (max-width: 55rem) {
  .site-head { padding-top: .35rem; }
  nav { column-gap: .9rem; }
  .section-intro, .field-feature { grid-template-columns: 1fr; }
  .profile { gap: 1.6rem; }
}
@media (max-width: 43rem) {
  .site-head { display: block; }
  .profile, .split, .research-list, .course-list { grid-template-columns: 1fr; }
  .gallery-slide { flex-basis: 100%; }
  .profile { padding-block: 2rem; }
  .profile h1 { margin-block: .55rem .7rem; }
  .headshot { justify-self: start; width: min(69%,16rem); }
  .headshot img { aspect-ratio: 1; }
  .research-list { gap: 1rem; }
  .section-intro h2 { text-wrap: wrap; }
}
@media (max-width: 39rem) {
  nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .81rem; gap: 0 .6rem; }
  .field-feature img { aspect-ratio: auto; }
  .citations li { grid-template-columns: 2.7rem 1fr; }
}
@media (prefers-reduced-motion: no-preference) { .gallery-track { scroll-behavior: smooth; } }
@media (forced-colors: active) { a:focus-visible, .gallery-controls button:focus-visible, .gallery-track:focus-visible { outline-color: Highlight; } }
