@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/marcellus-400.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ptserif-400.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ptserif-700.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ptserif-400i.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/ptserif-700i.woff2") format("woff2"); }

:root {
  --accent: #D4967D;
  --accent-dark: #b9765b;
  --ink: #2b2b2b;
  --paper: #ffffff;
  --stone: #e5e3de;
  --heading: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --body: "PT Serif", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 16px 22px;
  background: linear-gradient(#e9e7e2, #fbfaf8);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}
.logo img { width: min(400px, 78vw); mix-blend-mode: multiply; }
.site-header nav { display: flex; gap: 30px; font-size: 15px; }
.site-header nav a { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Shared */
main { overflow-x: clip; }
section { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; color: var(--accent); line-height: 1.2; text-align: center; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 2.7rem); padding: 90px 0 70px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose p { text-align: justify; hyphens: auto; margin: 0 0 1.2em; }
.divider { display: block; width: 100%; height: 90px; margin: 70px 0; stroke: var(--accent); }
[id] { scroll-margin-top: 150px; }

/* Home */
.split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 50px; align-items: start; max-width: 900px; margin: 0 auto; }
.lead { font-weight: 700; font-style: italic; margin-bottom: 2.6em !important; }
.field { width: 100%; }
.topics h2 { padding-bottom: 70px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { font-size: 1.75rem; padding: 34px 20px 40px; flex: 1; }
.button {
  display: inline-block; background: #cf9781; color: #fff; text-decoration: none;
  padding: 16px 32px; border-radius: 14px; font-size: 14px;
  transition: background .2s;
}
.button:hover { background: var(--accent-dark); color: #fff; }

/* Research */
.topic { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; padding-top: 90px; }
.topic:last-of-type { padding-bottom: 40px; }
.topic.flip .prose { order: 2; }
.topic h2 { padding-bottom: 32px; }
.topic .prose { font-size: 16px; }
.figures { display: grid; gap: 24px; justify-items: center; }
.figures:has(.small) { grid-template-columns: 1.6fr 1fr; align-items: center; }
.figures:has(.small) img:first-child { grid-column: 1 / -1; }

/* Publications */
.publications { max-width: 860px; }
.publications h1 { padding-bottom: 50px; }
.publications ul { margin: 0; padding-left: 1.2em; }
.publications li { text-align: justify; margin-bottom: 2em; }
.publications li a { overflow-wrap: anywhere; }

.notfound { text-align: center; padding-bottom: 60px; }

/* Footer */
.site-footer { background: var(--stone); margin-top: 120px; position: relative; padding: 110px 24px 70px; text-align: center; }
.site-footer .wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: 90px; fill: var(--stone); display: block; margin-bottom: -1px; }
.footer-inner { display: flex; justify-content: center; gap: 44px; align-items: flex-start; }
.footer-side { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.footer-side img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; }
.social { color: var(--ink); display: inline-flex; }
address { font-style: normal; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
address strong { font-size: 20px; }
address a { color: inherit; text-decoration: none; }
address a:hover { text-decoration: underline; }
.copyright { font-size: 13px; margin: 70px 0 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { padding: 56px 0 40px; }
  .split, .topic, .cards { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .field { max-width: 320px; margin: 0 auto; }
  .cards { gap: 56px; max-width: 420px; margin: 0 auto; }
  .card h3 { padding: 24px 10px 24px; }
  .topic { gap: 32px; padding-top: 56px; }
  .topic.flip .prose { order: 0; }
  .divider { height: 50px; margin: 44px 0; }
  .topics h2 { padding-bottom: 44px; }
  .site-header { padding: 12px 16px 10px; gap: 6px; }
  .logo img { width: min(250px, 66vw); }
  .site-header nav { gap: 22px; font-size: 14px; }
  .prose p, .publications li { text-align: left; hyphens: manual; }
  [id] { scroll-margin-top: 100px; }
  .footer-inner { flex-direction: column; align-items: center; gap: 26px; }
  .site-footer { margin-top: 90px; padding-top: 70px; }
  .site-footer .wave { height: 50px; }
}
