:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --panel: #efeee5;
  --ink: #232922;
  --green: #274437;
  --muted: #515a4f;
  --line: #d5d8ca;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.frame { width: min(100% - 3rem, 69rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 5rem; gap: 1.5rem; }
.wordmark { font: 1.35rem var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: clamp(1.1rem, 3vw, 2.5rem); align-items: center; }
nav a, .header-contact, .footer-links { font-size: .9rem; }
nav a { display: inline-block; padding-block: .7rem; text-decoration: none; color: var(--muted); }
nav a[aria-current="page"], nav a:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .55em; }
nav a[aria-current="page"] { font-weight: 650; }
.header-contact { justify-self: end; text-decoration: none; border: 1px solid var(--line); padding: .55rem 1rem; }
.header-contact:hover { border-color: var(--green); }

.hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 6vw, 7rem); padding-block: clamp(2rem, 4vw, 3.5rem); }
.hero h1 { color: var(--green); font-size: clamp(3.6rem, 7vw, 6.25rem); line-height: .96; letter-spacing: -.055em; margin-left: -.04em; }
.tagline { font: clamp(1.2rem, 2.3vw, 1.85rem)/1.24 var(--serif); margin-top: 1rem; }
.affiliation { color: var(--muted); margin-top: .65rem; font-size: .94rem; }
.portrait { margin: 0 clamp(.6rem, 2vw, 2rem) 0 0; padding: .8rem; background: var(--paper); border: 1px solid #d1d4c6; box-shadow: .6rem .6rem 0 #d8ddce; }
.portrait img { width: clamp(6rem, 12vw, 9rem); aspect-ratio: 1; object-fit: cover; }

.home-body { padding-block: clamp(1.8rem, 4vw, 3rem) clamp(3.4rem, 7vw, 6rem); }
.home-sidebar { display: grid; gap: 1.4rem; }
.home-body .prose > p:first-child { font-family: var(--serif); font-size: 1.35rem; line-height: 1.55; }
.research-card { padding: 1.2rem 1.35rem 1.35rem; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--green); }
.research-card .label { color: var(--muted); margin-bottom: .6rem; }
.research-card h2 { color: var(--green); font-size: 1.9rem; line-height: 1.12; letter-spacing: -.025em; }
.research-card p:not(.label) { color: var(--muted); font-size: .95rem; line-height: 1.55; margin-top: .75rem; }
.research-card a { display: inline-block; margin-top: .9rem; font-weight: 650; font-size: .9rem; }
.label { font: 650 .78rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

.page-head { padding-block: clamp(3.25rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 58rem; font-size: clamp(2.4rem, 5.5vw, 4.7rem); line-height: .99; color: var(--green); letter-spacing: -.058em; }
.page-head .label { margin-bottom: 1.2rem; color: var(--muted); }
.page-head .subtitle { max-width: 43rem; font: clamp(1.18rem, 2.4vw, 1.7rem)/1.45 var(--serif); margin-top: 1.15rem; }
.page-head .back-link { display: inline-block; font-size: .9rem; margin-bottom: 1.7rem; }
.title-continuation { display: block; max-width: 45rem; margin-top: .3em; font-size: .69em; line-height: 1.18; letter-spacing: -.035em; }
.page-head.article-head {
  position: relative;
  padding-block: clamp(2.65rem, 5.5vw, 4.75rem) clamp(1.9rem, 4vw, 3rem);
  background: var(--panel);
}
.article-head > .frame { position: relative; }
.article-head-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(59%, 70rem);
  height: 100%;
  object-fit: cover;
  opacity: .41;
  mask-image: linear-gradient(to right, transparent 2%, #000 80%);
  pointer-events: none;
}
.page-head.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.65rem); line-height: 1.07; letter-spacing: -.04em; }
.article-head .subtitle { color: var(--muted); font: clamp(1rem, 1.9vw, 1.2rem)/1.45 var(--sans); margin-top: 1.5rem; }
.article-image-credit { margin-bottom: 1.2rem; color: var(--muted); font-size: .8rem; }
.page-body { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3.5rem, 7vw, 6rem); }
.prose { max-width: 43rem; font-size: 1.0625rem; line-height: 1.77; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.6em; padding-top: .65em; border-top: 1px solid var(--line); color: var(--green); font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.prose ul { padding-left: 1.1em; margin-bottom: 0; }
.prose li + li { margin-top: .3em; }
.article-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.resource-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; row-gap: .75rem; font-size: .92rem; }
.resource-links .primary { background: var(--green); color: #fff; padding: .65rem .95rem; text-decoration: none; }
.resource-links .primary:hover { background: #365947; }
.article-citation { color: var(--muted); line-height: 1.5; font-size: .92rem; }
.reader-layout { display: grid; grid-template-columns: minmax(10.5rem, 14rem) minmax(0, 1fr); align-items: start; gap: clamp(2.6rem, 6vw, 6rem); }
.reader-contents { display: block; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; padding: 1rem .25rem 1rem 0; border-top: 2px solid var(--green); }
.reader-contents h2 { color: var(--green); font: 1.45rem/1.2 var(--serif); margin-bottom: .7rem; }
.reader-contents ul { margin: 0; padding: 0; list-style: none; }
.reader-contents a { display: block; padding: .28rem .2rem; margin-left: -.2rem; font-size: .88rem; line-height: 1.35; }
.reader-contents a:focus-visible { outline-offset: -1px; }
.reader-contents > ul > li > a { font-weight: 650; color: var(--green); }
.reader-contents .reader-sections { border-left: 1px solid var(--line); padding-left: .7rem; margin: .25rem 0 .55rem; }
.reader-sections .contents-level-4 { padding-left: .65rem; }
.reader-sections a { font-size: .82rem; }
.reader-body { max-width: 43rem; font-family: var(--serif); font-size: clamp(1.12rem, 1.7vw, 1.23rem); line-height: 1.7; }
.reader-body [id], .article-tools { scroll-margin-top: 1.5rem; }
.reader-body :is(h2, h3, h4):target { background: var(--panel); }
.article-hook { font: clamp(1.26rem, 2.1vw, 1.48rem)/1.48 var(--serif); color: var(--green); }
.article-section { margin-top: 2.8rem; }
.article-section:first-child { margin-top: 0; }
.article-section h2:first-child { border-top: 1px solid var(--line); padding-top: .82rem; }
.article-section:first-child h2:first-child { border-top: 0; padding-top: 0; }
.article-section h3 { color: var(--green); font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.25; margin: 2rem 0 .5rem; }
.article-section h4 { color: var(--green); font: 650 1.02rem/1.3 var(--sans); margin: 1.6rem 0 .5rem; }
.article-section p + p, .article-section h2 + p, .article-section .article-figure + p { margin-top: .9rem; }
.article-list { margin: .9rem 0; padding-inline-start: 2em; }
.article-list li { padding-inline-start: .35em; }
.article-list li + li { margin-top: .45em; }
.article-notes { font-size: .88em; overflow-wrap: anywhere; }
.article-notes li:target { background: var(--panel); }
.note-ref { font-size: .66em; line-height: 0; vertical-align: super; }
.note-ref a { text-decoration: none; }
.note-ref a:hover, .note-ref a[aria-expanded="true"] { text-decoration: underline; }
.note-ref:target { outline: 1px solid var(--green); outline-offset: 2px; }
.note-backlink { margin-inline-start: .25em; font: .8em/1.4 var(--sans); white-space: nowrap; }
.author-date-citation { color: inherit; text-decoration-style: dotted; text-decoration-color: var(--muted); }
.author-date-citation:hover, .author-date-citation[aria-expanded="true"] { color: var(--green); text-decoration-style: solid; }
.article-reference:target { background: var(--panel); }
.note-popover {
  position: fixed;
  z-index: 5;
  width: min(22rem, calc(100% - 1.5rem));
  max-height: min(52vh, 18rem);
  overflow: auto;
  overflow-wrap: anywhere;
  padding: .75rem .95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--green);
  box-shadow: 0 .25rem .8rem #23292225;
  font: .95rem/1.6 var(--serif);
}
.note-popover:focus { outline: 0; }
.note-popover-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; color: var(--green); font-family: var(--sans); }
.note-popover-close { display: grid; place-items: center; min-width: 2em; min-height: 2em; background: transparent; border: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; }
.note-popover-close:hover { background: var(--panel); }
.note-popover-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.full-text-credit { color: var(--muted); font: .92rem/1.55 var(--sans); }
.article-figure { margin: 1.5rem 0; padding: .7rem; border: 1px solid var(--line); background: #fffefa; }
.article-figure img { width: 100%; height: auto; }
.article-figure figcaption, .article-caption { color: var(--muted); font: .9rem/1.5 var(--sans); }
.article-figure figcaption { padding: .65rem .25rem .2rem; }
.article-caption { padding-left: .85rem; border-left: 2px solid var(--line); }
.article-section blockquote {
  margin: 1.2rem 0;
  margin-inline-start: clamp(.35rem, 1.5vw, 1rem);
  padding: .15rem 0 .15rem clamp(.7rem, 2vw, 1.25rem);
  border-inline-start: 2px solid var(--line);
}
.article-section blockquote p + p { margin-top: .6em; }
.article-end-rule { margin: clamp(2.35rem, 5vw, 3.5rem) 0 1.55rem; border: 0; border-top: 2px solid var(--green); }
.article-end-rule + :is(h3, h4) { margin-top: 0; }
.article-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); border-top: 2px solid var(--line); padding-top: 1.5rem; align-items: stretch; }
.article-page ~ .site-footer { background: var(--panel); }
.article-neighbors a { display: grid; align-content: start; gap: .35rem; padding: .8rem 1rem; border: 1px solid var(--line); color: var(--green); text-decoration: none; }
.article-neighbors a:hover { background: var(--panel); }
.article-neighbors .label { color: var(--muted); font-size: .72rem; }
.neighbor-title { font: 1.14rem/1.28 var(--serif); }
.article-edges { display: none; }

@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
  .reader-layout { width: min(100% - 8.5rem, 69rem); }
  .article-edges { display: block; }
  .article-edges::before, .article-edges::after {
    position: fixed;
    z-index: 2;
    inset-block: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .22s ease;
    content: "";
  }
  .article-edges::before {
    inset-inline-start: 0;
    width: var(--prev-gutter-width, 0px);
    background: linear-gradient(to right, #40463a30, transparent);
  }
  .article-edges::after {
    inset-inline-end: 0;
    width: var(--next-gutter-width, 0px);
    background: linear-gradient(to left, #40463a30, transparent);
  }
  .article-edges[data-gutter="prev"]::before, .article-edges[data-gutter="next"]::after { opacity: 1; }
  .article-edge {
    position: fixed;
    z-index: 3;
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    color: var(--green);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(var(--edge-offset), -50%);
    transition: opacity .25s ease-out, transform .25s ease-out, background-color .15s ease, border-color .15s ease;
  }
  .article-edge-prev { inset-inline-start: .55rem; --edge-offset: -.3rem; }
  .article-edge-next { inset-inline-end: .55rem; --edge-offset: .3rem; }
  .article-edge-arrow { font: 1.4rem/1 var(--sans); }
  .article-edges[data-gutter="prev"] .article-edge-prev,
  .article-edges[data-gutter="next"] .article-edge-next,
  .article-edge:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
  }
  .article-edge .neighbor-title {
    position: absolute;
    top: 50%;
    width: min(14rem, 22vw);
    padding: .65rem .8rem;
    background: var(--green);
    color: var(--paper);
    font-size: .95rem;
    border-radius: .2rem;
    box-shadow: 0 .15rem .5rem #2329221c;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  .article-edge-prev .neighbor-title { inset-inline-start: calc(100% + .45rem); }
  .article-edge-next .neighbor-title { inset-inline-end: calc(100% + .45rem); }
  .article-edge:hover, .article-edge:focus-visible {
    background: var(--panel);
    border-color: var(--green);
  }
  .article-edge:hover .neighbor-title,
  .article-edge:focus-visible .neighbor-title { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .article-edges::before, .article-edges::after, .article-edge, .article-edge .neighbor-title { transition: none; }
}

.prose .keywords { display: flex; flex-wrap: wrap; gap: .4rem .5rem; list-style: none; padding: 0; margin-top: .8rem; }
.prose .keywords li { border: 1px solid var(--line); padding: .27em .63em; margin: 0; font: .86rem/1.5 var(--sans); }

.research-page .page-head h1 { font-size: clamp(2.65rem, 6.8vw, 5.6rem); }
.home-body, .dissertation-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); align-items: start; gap: clamp(2.8rem, 7vw, 7rem); }
.dissertation-abstract { font: clamp(1.09rem, 1.65vw, 1.24rem)/1.73 var(--serif); }
.gallery-grid { display: grid; gap: 1.75rem; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; background: var(--panel); border: 1px solid var(--line); }
.gallery-grid figcaption { margin-top: .6rem; font-size: .93rem; line-height: 1.5; }
.gallery-grid .figure-caption { display: block; font: 1.05rem/1.42 var(--serif); }
.gallery-grid small { display: block; margin-top: .3rem; color: var(--muted); font-size: .81rem; line-height: 1.5; }

.publications { max-width: 57rem; }
.filters { display: flex; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.filters[hidden] { display: none; }
.filters label { display: grid; gap: .45rem; color: var(--muted); font-weight: 650; font-size: .84rem; }
.filters label:first-child { flex: 1; max-width: 27rem; }
.filters input, .filters select { font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: #fffefa; border: 1px solid #a6ad9f; border-radius: 0; padding: .68rem .75rem; min-height: 2.9rem; width: 100%; }
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-item { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.7rem; border-bottom: 1px solid var(--line); }
.publication-item:first-child { border-top: 1px solid var(--line); }
.publication-item[hidden] { display: none; }
.publication-year { font-size: .91rem; color: var(--muted); padding-top: .34rem; font-variant-numeric: tabular-nums; }
.publication-item h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.23; }
.publication-item h2 a { text-decoration: none; }
.publication-item h2 a:hover { text-decoration: underline; }
.publication-byline, .publication-journal { color: var(--muted); margin-top: .45rem; line-height: 1.5; font-size: .92rem; }
.publication-journal { margin-top: .2rem; }
.filter-status { margin-bottom: .8rem; color: var(--muted); font-size: .88rem; }
.bibliography { margin-top: 1.5rem; font-size: .92rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.8rem; }
.footer-inner p { color: var(--muted); font-size: .86rem; margin-top: .35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.45rem; }

@media (max-width: 800px) {
  .reader-layout, .home-body, .dissertation-layout { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .reader-contents { position: static; max-height: none; padding: .95rem 1rem; background: var(--panel); overflow: visible; }
  .reader-contents, .reader-body { width: 100%; max-width: 43rem; }
  .field-gallery { border-top: 1px solid var(--line); padding-top: 1.35rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
}

@media (max-width: 650px) {
  .frame { width: calc(100% - 2.5rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: .1rem 1rem; padding-top: .75rem; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .6rem; }
  .hero-inner { gap: 1.15rem; padding-block: 2.1rem; }
  .hero h1 { font-size: clamp(2.7rem, 10vw, 3.8rem); }
  .tagline { margin-top: .8rem; font-size: clamp(1.1rem, 3.5vw, 1.35rem); }
  .portrait { padding: .35rem; margin-right: .3rem; box-shadow: .3rem .3rem 0 #d8ddce; }
  .portrait img { width: clamp(4.5rem, 20vw, 6.5rem); }
  .research-card { max-width: 28rem; }
  .publication-item { grid-template-columns: minmax(0, 1fr); gap: .25rem; padding-block: 1.2rem; }
  .filters { gap: .65rem; }
  .footer-inner { align-items: start; flex-direction: column; gap: .9rem; }
  .article-neighbors { grid-template-columns: minmax(0, 1fr); }
  .article-head-image { width: 85%; opacity: .25; }
}

@media print {
  .site-header, .site-footer, .skip-link, .resource-links, .back-link, .reader-contents, .article-head-image, .article-neighbors, .article-edges, .note-popover { display: none; }
  :root { background: white; color: black; }
  .frame, .prose { width: 100%; max-width: 100%; }
  .reader-layout, .home-body, .dissertation-layout { display: block; }
  .page-head.article-head { background: white; }
  .page-head, .page-body { padding-block: .5rem; }
  .page-head h1 { font-size: 2.5rem; }
  .prose { font-size: .9rem; }
  .prose h2 { break-after: avoid; }
}
