/* Source Sans 3 (SIL Open Font License, see fonts/OFL.txt), self-hosted so visitors
   make no requests to Google. One variable file per subset covers weights 400-800. */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1a3a5c;
  --navy-deep: #0f2740;
  --sky: #7eb8f7;
  --sky-tint: #e0ecfb;
  --rule: #c8dcf3;
  --ground: #f4f6f9;
  --surface: #ffffff;
  --border: #dce3ec;
  --hairline: #e3e8ef;
  --ink: #1a2a3a;
  --muted: #4f6073;
  --on-navy: #d3e0ee;
  --on-navy-muted: #b9cbe0;
  --footer-rule: #355678;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--ground);
  color: var(--ink);
}

img { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Header and navigation */
.site-header { background: var(--navy); color: #fff; }
.site-header__bar { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.wordmark { color: #fff; text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: 0.08em; }
.wordmark:hover { color: #fff; }
.wordmark span, .hero__wordmark span { color: var(--sky); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; padding: 12px 14px; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--on-navy-muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sky); font-weight: 600; }

/* Home hero: wordmark band with the screenshot overlapping the page below */
.hero { background: var(--navy); color: #fff; text-align: center; padding: 80px 0 190px; }
.hero__wordmark { margin: 0; font-size: clamp(64px, 12vw, 120px); line-height: 1; font-weight: 800; letter-spacing: 0.06em; }
.hero__name { margin: 18px 0 0; font-size: 28px; font-weight: 700; }
.hero__tagline { margin: 12px 0 0; font-size: 19px; color: var(--on-navy); }
.hero-shot { margin-top: -150px; }
.hero-shot__frame { background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: 0 30px 60px rgba(10, 25, 45, 0.25); }
.hero-shot__frame img { width: 100%; height: 380px; object-fit: cover; object-position: left center; border-radius: 8px; }

/* Inner page title band */
.page-title { background: var(--navy); color: #fff; padding: 40px 0 56px; }
.page-title h1 { margin: 0; font-size: 44px; line-height: 1.1; }
.page-title p { margin: 10px 0 0; font-size: 19px; color: var(--on-navy); }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--sky); font-weight: 600; text-decoration: none; }
.back-link:hover { color: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section__head h2 { margin: 0; font-size: 38px; color: var(--navy); }
.section__more { font-weight: 600; }

/* Project cards */
.theme + .theme { margin-top: 40px; }
.theme__title { margin: 0 0 20px; padding-bottom: 10px; font-size: 21px; color: var(--navy); border-bottom: 2px solid var(--rule); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card__image { width: 100%; height: 170px; object-fit: cover; object-position: top left; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card__title { margin: 0; font-size: 21px; }
.card__text { margin: 0; font-size: 16px; color: var(--muted); flex-grow: 1; }
.card__link { font-weight: 600; font-size: 16px; }
.chip { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--sky-tint); color: var(--navy); }
.chip--live { background: var(--navy); color: #fff; }
.chip--soon { background: #eef1f5; color: var(--muted); }

/* Publications */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 40px; }
.pub-list { margin: 0; padding: 0; list-style: none; }
.pub { display: flex; gap: 28px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.pub__year { flex-shrink: 0; width: 56px; font-size: 20px; font-weight: 800; color: var(--navy); }
.pub__body { display: flex; flex-direction: column; gap: 4px; }
.pub__title { font-size: 18px; font-weight: 700; }
.pub__meta { font-size: 16px; color: var(--muted); }
.pub__links { display: flex; gap: 16px; font-size: 15px; font-weight: 600; }

/* Team */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.member { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.member__initials { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--sky); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.member__name { font-size: 19px; font-weight: 700; }
.member__role { font-size: 16px; color: var(--muted); }
.past-members { margin: 24px 0 0; font-size: 16px; color: var(--muted); }
.team-heading { margin: 0 0 20px; font-size: 26px; color: var(--navy); }

/* Project detail pages */
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.detail h2 { margin: 32px 0 12px; font-size: 26px; color: var(--navy); }
.detail h2:first-child { margin-top: 0; }
.detail p { margin: 0 0 16px; }
.detail__figure { margin: 0; }
.detail__figure img { border: 1px solid var(--border); border-radius: 10px; }
.video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin-bottom: 16px; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; }
.site-footer__grid { padding: 64px 0 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.site-footer h2 { margin: 0 0 12px; font-size: 28px; }
.site-footer p { margin: 0 0 12px; color: var(--on-navy); }
.site-footer a { color: var(--sky); font-size: 19px; font-weight: 700; }
.site-footer a.button { display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--sky); color: var(--navy-deep); font-size: 17px; text-decoration: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--footer-rule); font-size: 15px; color: var(--on-navy-muted); }

@media (max-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 140px; }
  .hero__name { font-size: 22px; }
  .hero-shot { margin-top: -110px; }
  .hero-shot__frame img { height: 200px; }
  .page-title h1 { font-size: 34px; }
  .section__head h2 { font-size: 30px; }
  .panel { padding: 24px; }
  .pub { flex-direction: column; gap: 4px; }
}
