/* Whiteboard: a clean board with wide margins; handwritten marker notes are the only ornament. */
[hidden] { display: none !important; }
:root {
  --board: #f6f5f1;
  --paper: #ffffff;
  --ink: #1f242b;
  --ink-2: #3b414a;
  --muted: #5b626b;
  --line: #e3e1da;
  --dash: #d4d1c8;
  --chip: #efede7;
  --blue: #1f5cb5;
  --red: #b8322a;
  --footer-bg: #1f242b;
  --footer-fg: #ebe9e3;
  --footer-muted: #b4b8be;
  --shadow: rgba(31, 36, 43, 0.10);
  --font-hand: "Kalam", "Comic Neue", "Segoe Print", cursive;
  --font-body: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --board: #15181c; --paper: #1c2026; --ink: #ece9e2; --ink-2: #c8ccd2; --muted: #9ba2ab;
    --line: #2b3139; --dash: #3a414b; --chip: #232830; --blue: #8fb3f0; --red: #ef8b80;
    --footer-bg: #0e1013; --footer-fg: #dcdad4; --footer-muted: #a3a7ad; --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --board: #15181c; --paper: #1c2026; --ink: #ece9e2; --ink-2: #c8ccd2; --muted: #9ba2ab;
  --line: #2b3139; --dash: #3a414b; --chip: #232830; --blue: #8fb3f0; --red: #ef8b80;
  --footer-bg: #0e1013; --footer-fg: #dcdad4; --footer-muted: #a3a7ad; --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--board); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* header */
.site-header .header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 32px; padding-block: 22px;
}
.brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { font-family: var(--font-hand); font-weight: 700; font-size: 30px; line-height: 1; }
.brand-sub { font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-weight: 600; font-size: 15px; }
.nav a { position: relative; display: inline-block; padding: 11px 0; text-decoration: none; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: 6px; height: 4px;
  background: var(--red); border-radius: 3px; transform: rotate(-1.2deg); opacity: 0.9;
}

/* type */
.note { font-family: var(--font-hand); font-size: 22px; line-height: 1.3; color: var(--blue); margin: 0; }
.display {
  margin: 0; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.02em; max-width: 18ch;
}
.page-title { margin: 0; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.marked { position: relative; display: inline-block; white-space: nowrap; }
.marked svg { position: absolute; left: -3%; bottom: -0.16em; width: 106%; height: 0.32em; color: var(--red); overflow: visible; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 62ch; margin: 0; }
h2.h { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; }
.muted { color: var(--muted); }
.prose p { max-width: 66ch; color: var(--ink-2); }

/* layout pieces */
main { display: block; }
.hero { padding-block: 40px 36px; display: flex; flex-direction: column; gap: 22px; }
.page-head { padding-block: 40px 8px; display: flex; flex-direction: column; gap: 14px; }
.section { padding-block: 64px 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.section-head .left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--ink);
}
.btn-solid { background: var(--ink); color: var(--board); }
.btn-solid:hover { color: var(--board); background: var(--blue); border-color: var(--blue); }
.btn-line { color: var(--ink); }
.btn-line:hover { color: var(--blue); border-color: var(--blue); }
.more { font-weight: 600; white-space: nowrap; }

.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card p { margin: 0; color: var(--ink-2); }
.icon { width: 120px; height: 56px; flex: 0 0 auto; }
a.card { text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px var(--shadow); }
a.card .go { margin-top: auto; font-weight: 600; color: var(--blue); }

/* video */
.board-video {
  position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--chip);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px var(--shadow);
}
.board-video video { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: rgba(31, 36, 43, 0.72); color: #ffffff;
  font: 600 14px var(--font-body); cursor: pointer;
}
.video-toggle:hover { background: rgba(31, 36, 43, 0.9); }

/* lists with dashed marker rules */
.ruled > * { border-top: 2px dashed var(--dash); }
.ruled > *:last-child { border-bottom: 2px dashed var(--dash); }
.pub { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 24px; padding-block: 20px; }
.pub .yr, .news-item .when { font-family: var(--font-hand); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--blue); }
.pub .title { font-weight: 700; font-size: 18.5px; line-height: 1.35; text-decoration: none; }
a.title:hover { text-decoration: underline; }
.pub .meta { font-size: 15px; color: var(--muted); margin-top: 4px; }
.pub .meta strong { color: var(--ink); font-weight: 700; }
.pub .venue { font-style: italic; }
.year-group > h3 { font-family: var(--font-hand); font-weight: 700; font-size: 30px; color: var(--blue); padding-block: 26px 4px; border: 0; }
.year-group .pub { grid-template-columns: minmax(0, 1fr); }

.news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 24px; padding-block: 22px; }
.news-item h3 { font-size: 20px; }
.news-item p { margin: 6px 0 0; color: var(--ink-2); max-width: 70ch; }
.kind { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.kind.award { color: var(--red); }

/* chips and filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--dash); background: var(--paper); color: var(--ink); font: 600 14px var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--board); border-color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.filters { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 280px; min-width: 0; }
.field label, .label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.input, .select {
  min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--board);
  color: var(--ink); font: 500 16px var(--font-body); width: 100%;
}
.select { flex: 0 0 auto; width: auto; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.count { font-family: var(--font-hand); font-size: 22px; color: var(--blue); }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); }

/* research */
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; }
.area { padding-block: 56px 8px; scroll-margin-top: 16px; }
.area-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 22px; }
.area-head p { margin: 0; max-width: 68ch; color: var(--ink-2); font-size: 18.5px; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 22px; }
.theme h3 { font-size: 21px; }
.cites { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 2px dashed var(--dash); display: flex; flex-direction: column; gap: 10px; }
.cites li { font-size: 15px; line-height: 1.4; }
.cites a { font-weight: 600; text-decoration: none; }
.cites a:hover { text-decoration: underline; }
.cites .src { color: var(--muted); }

/* people */
.pi { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-weight: 700; font-size: 30px; color: var(--ink); flex: 0 0 auto; background: var(--paper);
}
.avatar.lg { width: 148px; height: 148px; font-size: 48px; }
.avatar.md { width: 104px; height: 104px; font-size: 34px; }
.card.member { max-width: 640px; gap: 16px; }
.card.member + .card.member { margin-top: 18px; }
.card.member p { font-size: 16px; line-height: 1.6; }
.member-head { display: flex; align-items: center; gap: 24px; }
.member-head .h { font-size: 24px; }
@media (max-width: 560px) {
  .card.member { padding: 20px; }
  .member-head { gap: 18px; }
  .member-head .avatar.md { width: 84px; height: 84px; }
  .member-head .h { font-size: 21px; }
}
.avatar.blue { border-color: var(--blue); color: var(--blue); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.people.teaser { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
a.person { text-decoration: none; color: var(--ink); }
a.person:hover { border-color: var(--ink); color: var(--ink); }
.avatar.dash { border-style: dashed; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.person { display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.person .name { font-weight: 700; line-height: 1.25; }
.person .role { font-size: 14px; color: var(--muted); }
.person .avatar { width: 76px; height: 76px; font-size: 24px; border-width: 2.5px; }

/* tools */
.tool .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tool .links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.tool .links a:hover { border-color: var(--blue); color: var(--blue); }
.tool .src { font-size: 14px; color: var(--muted); }
.tool h3 { font-size: 24px; font-weight: 800; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
address { font-style: normal; line-height: 1.7; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; } }
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row .field { flex: 1 1 220px; }
.contact-form > .field { flex: 0 0 auto; }
button.btn { font: 600 16px var(--font-body); cursor: pointer; }
.contact-form .select { width: 100%; }
.textarea { min-height: 160px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-status { margin: 0; font-weight: 600; color: var(--ink-2); }
.form-status.ok { color: var(--blue); }
.form-status.err { color: var(--red); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.copy { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.copy:hover { border-color: var(--blue); color: var(--blue); }

/* footer */
.site-footer { margin-top: 96px; background: var(--footer-bg); color: var(--footer-fg); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; padding-block: 52px 40px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer a { color: var(--footer-fg); }
.site-footer a:hover { color: #ffffff; }
.site-footer .h { font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.site-footer .small { color: var(--footer-muted); font-size: 14px; }
.site-footer .brand-mark { font-size: 30px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.colophon { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .board-video video { aspect-ratio: 16 / 10; }
  .pub, .news-item { grid-template-columns: minmax(0, 1fr); }
  .pi { grid-template-columns: minmax(0, 1fr); }
  .avatar.lg { width: 112px; height: 112px; font-size: 38px; }
  .lede { font-size: 18.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* icon strokes and fills follow the theme */
.s-ink { stroke: var(--ink); }
.s-blue { stroke: var(--blue); }
.s-red { stroke: var(--red); }
.f-blue { fill: var(--blue); }
.f-red { fill: var(--red); }
.f-paper { fill: var(--paper); }
.f-board { fill: var(--board); }

/* moving portraits: black-and-white loops with newsprint grain, a soft vignette and a faint flicker */
.avatar.media { position: relative; overflow: hidden; background: #e8e3d7; isolation: isolate; }
.avatar.media video, .avatar.media img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.media video { animation: prophet-exposure 4.3s steps(1, end) infinite; }
.avatar.media::before, .avatar.media::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1; }
.avatar.media::before { background: radial-gradient(circle at 50% 44%, rgba(40, 32, 20, 0) 56%, rgba(40, 32, 20, 0.42) 100%); }
.avatar.media::after {
  background-image: url("grain.svg"); background-size: 120px 120px; mix-blend-mode: multiply; opacity: 0.55;
  animation: prophet-grain 0.6s steps(6) infinite;
}
@keyframes prophet-grain {
  0% { background-position: 0 0; } 17% { background-position: -38px 21px; } 33% { background-position: 27px -44px; }
  50% { background-position: -61px -13px; } 67% { background-position: 44px 57px; } 83% { background-position: -17px 66px; } 100% { background-position: 0 0; }
}
@keyframes prophet-exposure {
  0% { filter: brightness(1) contrast(1.02); } 22% { filter: brightness(1.05) contrast(1); } 24% { filter: brightness(0.97) contrast(1.04); }
  51% { filter: brightness(1.02) contrast(1.02); } 77% { filter: brightness(0.99) contrast(1.05); } 79% { filter: brightness(1.04) contrast(1); }
}
@media (prefers-reduced-motion: reduce) {
  .avatar.media video, .avatar.media::after { animation: none; }
}
