/* ---------- Theme ---------- */
:root {
  --bg: #f2f5f6;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #ce8464;
  --rule: #dcdfe0;
  --card: rgba(255, 255, 255, 0.6);
  --serif: "EB Garamond", "Garamond", "Georgia", serif;
  --body: "Crimson Pro", "Georgia", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { opacity: 0.75; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 32px;
}
.site-header nav { display: flex; gap: 28px; grid-column: 3; grid-row: 1; justify-content: flex-end; }
.site-header .site-title { grid-column: 2; grid-row: 1; }
.site-header nav a,
.site-title {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-header nav a { font-size: 16px; padding: 6px 0; }
.site-header nav a[aria-current="page"] { color: var(--accent); }
.site-title { font-family: var(--serif); font-size: 20px; letter-spacing: 0.25em; }

/* ---------- Layout ---------- */
main { max-width: 820px; margin: 0 auto; padding: 24px 20px 80px; }
.wide { max-width: 1000px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; }
h2.section { font-style: italic; font-size: 28px; margin: 0 0 12px; }
h2.center { text-align: center; }
h3 { font-size: 24px; margin: 32px 0 8px; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

/* ---------- Home ---------- */
.intro { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.intro img { width: 200px; }
.intro p:first-child { margin-top: 0; }

.highlight h3 { font-style: italic; }

.logos { margin-top: 40px; }
main > .logos:first-child { margin-top: 0; }
main > .logos:first-child h4:first-child { margin-top: 8px; }
.logos h4 {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 14px; color: var(--muted); text-align: center;
  margin: 40px 0 16px;
}
/* multiply makes the logos' white background take on the page colour */
.logos img { margin: 0 auto; mix-blend-mode: multiply; }

/* ---------- Research ---------- */
.paper { margin: 36px 0; }
html { scroll-behavior: smooth; }
#research { scroll-margin-top: 24px; }
.paper h3 { font-style: italic; margin-top: 0; }
.paper p { margin: 8px 0; font-size: 16px; }
.paper .status { font-weight: 600; }
.paper .status span { font-weight: 400; }

details summary {
  cursor: pointer;
  display: inline-block;
  list-style: none;
  border: 1.5px solid #c0a0a0;
  color: #c0a0a0;
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  margin-top: 8px;
}
details summary::-webkit-details-marker { display: none; }
details[open] summary { background: #c0a0a0; color: #fff; }
details .abstract { background: var(--card); padding: 12px 14px; margin-top: 10px; font-size: 15px; }

/* ---------- Other ---------- */
.resources ul { padding-left: 22px; margin: 0; }
.resources li { margin: 4px 0; }
.resources li ul { margin-top: 2px; }

/* ---------- Footer ---------- */
footer { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 20px 40px; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .site-header { grid-template-columns: 1fr; gap: 12px; padding: 20px 16px; text-align: center; }
  .site-header .site-title { grid-column: 1; grid-row: 1; }
  .site-header nav { grid-column: 1; grid-row: 2; justify-content: center; }
  .site-header > span { display: none; }
  main { padding: 16px 16px 60px; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .intro img { width: 160px; margin: 0 auto; }
  .site-header nav a { font-size: 15px; }
}
