:root {
  color-scheme: light;
  --paper: #fcf8f2;
  --ink: #302621;
  --muted: #65534a;
  --accent: #57392b;
  --sand: #efe2d3;
  --rule: #cbb5a4;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: 3px solid #895b3e; outline-offset: 4px; }
img { display: block; width: 100%; }
main img { filter: saturate(.88) contrast(.96) sepia(.06); }
.portrait img { filter: brightness(1.055) saturate(.86) contrast(.97) sepia(.05); }
#wildlife img { filter: saturate(.75) contrast(.96) sepia(.07); }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); padding: .7rem; background: white; z-index: 1; }
.skip:focus { transform: none; }
.header { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: .35rem clamp(.35rem, 1.3vw, .9rem); border-bottom: 1px solid var(--rule); }

nav { display: flex; flex-wrap: wrap; gap: .15rem clamp(.45rem, 1.35vw, 1rem); }
nav a { display: flex; align-items: center; min-height: 44px; font-size: .9rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.wordmark { display: grid; place-items: center; flex: none; min-width: 32px; height: 44px; text-decoration: none; }
.wordmark span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 50%; font: .85rem var(--serif); }
.languages { gap: .15rem; flex-wrap: nowrap; flex-shrink: 0; width: auto; }
.languages a { justify-content: center; min-width: 2rem; }
.languages a[aria-current="page"] { color: var(--accent); font-weight: 750; text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .48fr); gap: clamp(1.4rem, 4vw, 4rem); align-items: center; margin-block: clamp(.85rem, 2.5vw, 1.8rem); padding: clamp(1.2rem, 4.2vw, 3.8rem); border: 1px solid #e3d3c3; border-radius: 22px; background: linear-gradient(125deg, #fcf8f2 25%, #f2e7db); }
.eyebrow { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); line-height: 1.4; }
.location { display: flex; align-items: center; gap: .7rem; }
.location::before { content: ''; width: 1.5rem; border-top: 1px solid currentColor; }
h1, h2, h3, h4 { font-weight: 680; }
h1 { margin: 1.15rem 0 1.2rem; }
.hero-wordmark { width: min(100%, 22rem); height: auto; }
.hero-roles { display: grid; gap: .22rem; margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid var(--rule); color: var(--accent); font-size: .9rem; font-weight: 620; line-height: 1.35; }
.hero-role-group { padding-top: calc(.2rem + 1px); background: linear-gradient(var(--rule), var(--rule)) left top / 3rem 1px no-repeat; }
.intro { margin-top: .65rem; max-width: 48ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.18rem); line-height: 1.6; }
.actions { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: .65rem 1.05rem; background: var(--accent); color: var(--paper); border-radius: 9px; font-weight: 650; text-decoration: none; }
.button:hover { background: #704d38; }
.button-outline { border: 1px solid var(--accent); background: transparent; color: var(--accent); }
.button-outline:hover { background: var(--sand); }
.portrait { width: min(100%, 12rem); justify-self: center; background: var(--sand); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--rule); }
.portrait img { height: auto; aspect-ratio: 4 / 5; max-height: 15rem; object-fit: cover; object-position: center 42%; }
.owners-photos { width: min(100%, 17rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-bottom: 1rem; }
.owners-photos img { aspect-ratio: 3 / 2; height: auto; }
.colleague-photos { display: grid; width: min(100%, 24rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .55rem; margin-bottom: 1rem; }
.colleague-photos img { height: auto; aspect-ratio: 4 / 3; }
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.work, .publications { background: var(--sand); }
h2 { font-size: clamp(1.85rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.036em; text-wrap: balance; margin-top: .65rem; }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; margin-bottom: .85rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 2rem; align-items: start; }
.work-grid article { min-width: 0; padding: clamp(1.05rem, 2.5vw, 1.8rem); border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.work-grid p, .work-feature p { max-width: 62ch; }
.work-grid p + p, .work-feature p + p { margin-top: .85rem; }
.work-grid ul { padding-inline-start: 1.2rem; margin-block: .85rem; }
.work-grid li + li { margin-top: .55rem; }
.colleague-resources { margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.colleague-resources h4 { margin: 0; font-size: 1.05rem; }
.work-grid img, .work-feature img { border-radius: 9px; background: var(--sand); object-fit: cover; }
.work-grid .status { margin-top: 1rem; }
.work-feature { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 5vw, 5rem); border-bottom: 1px solid var(--rule); }
.work-feature img { width: min(100%, 20rem); aspect-ratio: 4 / 3; }
.wildlife-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; width: min(100%, 28rem); }
.wildlife-photos img { width: 100%; height: auto; aspect-ratio: 3 / 4; }
.work-feature img.first-aid-photo { width: min(100%, 17rem); aspect-ratio: 4 / 4.5; object-position: center 52%; }
.work-feature h2 { margin: 0 0 1rem; }
.work-feature p + a { display: inline-block; margin-top: .8rem; }
.programme-outcomes { border-left: 3px solid #956a4e; background: var(--sand); padding: .8rem 1rem; }
.profile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.4rem, 5vw, 5rem); }
.timeline > div { display: grid; grid-template-columns: 7rem 1fr; gap: .2rem .8rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
.timeline dt, .papers span { color: var(--muted); font-size: .875rem; }
.status { padding: .85rem 1rem; margin-top: .8rem; border-left: 3px solid #956a4e; background: var(--sand); }
.papers { margin: 0; padding: 0; list-style: none; }
.papers li { border-top: 1px solid var(--rule); padding: .85rem 0; }
.papers span { display: block; }
.papers a { display: inline-block; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 620; line-height: 1.45; }
footer { background: var(--accent); color: var(--paper); }
footer .eyebrow, footer p { color: #f0e2d4; }
.contact { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; }
.contact h2 + p { max-width: 45ch; margin-top: .85rem; }
.contact-links { overflow-wrap: anywhere; min-width: 0; }
.contact-links .button { background: var(--paper); color: var(--accent); }
.contact-links .button:hover { background: var(--sand); }
.contact-links div { display: flex; flex-wrap: wrap; gap: 1.15rem; margin-top: .5rem; }
.contact-links div a, .footer-line a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-line { border-top: 1px solid #aa8268; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-block: .4rem; font-size: .875rem; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .header { flex-wrap: wrap; padding-block: .6rem; }
  .profile, .contact, .work-feature, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .68fr); gap: .75rem .9rem; padding: 1rem; border-radius: 16px; }
  .hero-copy { display: contents; }
  .hero .location { grid-area: 1 / 1; align-self: end; }
  .hero h1 { grid-area: 2 / 1; align-self: start; margin: 0; }
  .hero-wordmark { width: min(100%, 10rem); }
  .portrait { grid-area: 1 / 2 / span 2; width: min(100%, 8rem); justify-self: end; }
  .hero-roles, .hero .intro, .hero .actions { grid-column: 1 / -1; }
  .hero-roles { margin-top: .2rem; }
  .hero .intro, .hero .actions { margin-top: 0; }
}
@media (max-width: 510px) {
  .header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: .15rem 0; border-bottom: 0; }
  .header .wordmark { display: none; }
  .header nav:not(.languages) { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .1rem .45rem; }
  .header nav:not(.languages) a { min-height: 38px; font-size: .875rem; line-height: 1.24; overflow-wrap: anywhere; }
  .header .languages { grid-area: 2 / 1 / 3 / -1; align-items: center; }
  .header .languages::before { content: ''; flex: 1; margin-right: .4rem; border-top: 1px solid var(--rule); }
  .header .languages a { min-height: 32px; }
  .hero { gap: .42rem .85rem; margin-top: .3rem; padding: .75rem; }
  .hero-wordmark { width: min(100%, 7.5rem); }
  .hero .portrait { width: min(100%, 5.5rem); }
  .hero .intro { line-height: 1.42; }
  .hero-roles { gap: .16rem; margin-top: 0; padding-top: .5rem; line-height: 1.3; }
  .hero .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .45rem; }
  .hero .actions .button { justify-content: center; min-height: 44px; padding: .4rem .5rem; font-size: .9rem; line-height: 1.22; text-align: center; overflow-wrap: anywhere; }
  .timeline > div { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 375px) and (max-width: 510px) and (min-height: 640px) {
  .hero { min-height: calc(100svh - 8rem); align-content: space-evenly; }
  .hero-wordmark { width: min(100%, 9.25rem); }
  .hero .portrait { width: min(100%, 7.25rem); }
  .hero:lang(ru) .portrait { width: min(100%, 6.25rem); }
}
@media (max-width: 350px) {
  .header nav:not(.languages) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
