/* Layout idea: minimal multi-page site. White page, one accent, a sticky menu bar, left-aligned single column. Accent is the Ord sky blue. */
:root {
  --bg: #ffffff;
  --ink: #202428;
  --muted: #61676d;
  --line: #e4e6e8;
  --accent: #2f5f8f;
  --soft: #f3f5f7;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a; --ink: #e7e8e9; --muted: #a1a7ad; --line: #2c3035; --accent: #8cb6e0; --soft: #1c1f23;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15171a; --ink: #e7e8e9; --muted: #a1a7ad; --line: #2c3035; --accent: #8cb6e0; --soft: #1c1f23;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; max-width: 65ch; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Menu bar */
header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { display: block; padding: 6px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--ink); background: var(--soft); }
nav a[aria-current="page"] { color: var(--accent); background: var(--soft); }

/* Page body */
main.wrap { padding-block: 48px 64px; display: grid; gap: 48px; }
.intro { display: grid; gap: 14px; }
.intro p { color: var(--muted); font-size: 1.15rem; }
.block { display: grid; gap: 18px; }
.block > h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* Home banner */
.banner { height: clamp(180px, 28vw, 300px); background: #3a4048 url("images/ord-panorama.jpg") center 55% / cover no-repeat; }

/* Lists */
.themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.themes strong { display: block; }
.themes span { color: var(--muted); }
.rows { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: 180px 1fr; gap: 6px 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.row .meta { color: var(--muted); font-size: .95rem; }
.row p { color: var(--muted); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 700; border: 1px solid var(--line); }
.person small { display: block; color: var(--muted); line-height: 1.4; font-size: .92rem; }
.empty { color: var(--muted); font-style: italic; }

.todo { background: color-mix(in srgb, #d99a4e 25%, transparent); padding: 0 4px; border-radius: 3px; }
footer { border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: .9rem; }

/* Publications */
.selected { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.selected li { display: grid; gap: 2px; }
.selected h3 a { color: var(--ink); text-decoration: none; }
.selected h3 a:hover { color: var(--accent); text-decoration: underline; }
.selected .meta { color: var(--muted); font-size: .92rem; font-style: italic; }
.selected p { color: var(--muted); }
.year { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.year h3 { font-variant-numeric: tabular-nums; color: var(--accent); }
.refs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .97rem; }
.refs a { word-break: break-word; }
@media (max-width: 640px) { .year { grid-template-columns: 1fr; gap: 6px; } }

.checklist { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* Collapsible sections */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold > summary:hover h2 { color: var(--accent); }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.fold > :not(summary) { margin-top: 14px; }
.fold > p + p { margin-top: 10px; }
.thesis { font-style: italic; }
@media (prefers-reduced-motion: reduce) { .fold > summary::after { transition: none; } }

/* Publication themes */
.fold > summary h3 { font-size: 1.1rem; }
.fold .count { font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.block > .fold > summary { border-bottom: 1px solid var(--line); padding-block: 12px; }
