/* ==========================================================================
   The LAIR — site styles
   Palette: night indigo sky, cool paper, sodium-amber accent, plasma teal links
   Type: Archivo (expanded widths for display/UI), Source Serif 4 (reading)
   ========================================================================== */

:root {
  --night: #131b36;
  --night-2: #1e2a52;
  --night-line: #2f3d6b;
  --star: #c9d2ec;
  --paper: #f6f7f4;
  --paper-2: #eceee8;
  --ink: #1a2130;
  --muted: #586174;
  --rule: #d6dad2;
  --amber: #e2a33b;
  --amber-ink: #8f5c0c;
  --teal: #1e6e79;
  --teal-dark: #144f58;
  --storm: #5e6fb0;
  --iono: #3b8f9a;
  --belts: #b88a3a;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 72rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-s: 3px;
  --radius-m: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-stretch: 118%; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-stretch: 112%; margin-top: 2.2em; }
h3 { font-size: 1.2rem; font-stretch: 105%; margin-top: 1.8em; }
p { margin: 0 0 1em; }
.small { font-size: 0.9rem; color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--amber); color: var(--night); padding: 0.6rem 1rem; font-family: var(--sans); }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header and top menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night);
  color: #fff;
  border-bottom: 1px solid var(--night-line);
}
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 1.5rem; min-height: 4rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-logo { height: 2.25rem; width: auto; }
.brand-word { font: 750 1.2rem/1 var(--sans); font-stretch: 125%; letter-spacing: 0.01em; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 0.25rem; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a { font-family: var(--sans); text-decoration: none; }
.menu > li > a {
  color: var(--star);
  font-size: 0.95rem; font-weight: 520; font-stretch: 108%;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-s);
  position: relative;
}
.menu > li > a:hover, .menu > li:focus-within > a { color: #fff; }
.menu > li.is-current > a { color: #fff; }
.menu > li.is-current > a::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: -0.05rem;
  height: 2px; background: var(--amber);
}
.sub-toggle {
  background: none; border: 0; color: var(--star); cursor: pointer;
  padding: 0.5rem 0.3rem; margin-left: -0.4rem; display: inline-flex; border-radius: var(--radius-s);
}
.sub-toggle:hover { color: #fff; }
.sub-toggle svg { transition: transform 0.15s ease; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.sub {
  list-style: none; margin: 0; padding: 0.4rem;
  position: absolute; top: calc(100% + 0.55rem); left: 0; min-width: 12rem;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-m);
  box-shadow: 0 12px 28px rgba(5, 10, 30, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
.sub a { display: block; color: var(--star); padding: 0.45rem 0.7rem; border-radius: var(--radius-s); font-size: 0.93rem; }
.sub a:hover, .sub a:focus-visible { background: rgba(255, 255, 255, 0.07); color: #fff; }
.sub a[aria-current="page"] { color: var(--amber); }
@media (hover: hover) and (min-width: 56.01rem) {
  .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.nav-toggle { display: none; }

@media (max-width: 56rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: none; border: 1px solid var(--night-line); color: #fff;
    font: 550 0.9rem var(--sans); padding: 0.45rem 0.75rem; border-radius: var(--radius-s); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--night); border-bottom: 1px solid var(--night-line);
    display: none; max-height: calc(100vh - 4rem); overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav .menu { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--night-line); }
  .menu > li > a { flex: 1; padding: 0.85rem 0; font-size: 1.05rem; }
  .menu > li.is-current > a::after { left: 0; right: auto; width: 1.5rem; bottom: 0.5rem; }
  .sub-toggle { padding: 0.85rem 0.5rem; }
  .sub {
    position: static; flex-basis: 100%; display: none;
    opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; border: 0; padding: 0 0 0.75rem 0.75rem;
  }
  .has-sub.is-open > .sub { display: block; }
}

/* ---------- Home hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 75% 0%, rgba(94, 111, 176, 0.28), transparent 70%),
    var(--night);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 760; font-stretch: 122%;
  line-height: 1.02; letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-title span:nth-child(1) { color: #fff; }
.hero-title span:nth-child(2) { color: #e4e8f6; font-stretch: 112%; }
.hero-title span:nth-child(3) { color: #c9d2ec; font-stretch: 100%; }
.hero-title span:nth-child(4) { color: #aab5da; font-stretch: 88%; font-weight: 680; }
.hero-lede { font-size: 1.15rem; line-height: 1.6; color: var(--star); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-figure { margin: 0 calc(-1 * clamp(0rem, 3vw, 3rem)) 0 0; }
.hero-scene { position: relative; }
.hero-scene img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
          mask-composite: intersect;
}
.scene-tag {
  position: absolute; transform: translate(-50%, 0);
  font: 650 0.78rem/1 var(--sans); font-stretch: 115%; letter-spacing: 0.06em;
  color: #fff; text-decoration: none; white-space: nowrap;
  padding: 0.38rem 0.6rem; border-radius: 999px;
  background: rgba(19, 27, 54, 0.62); border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(3px);
}
.scene-tag:hover, .scene-tag:focus-visible { background: var(--amber); color: var(--night); border-color: var(--amber); }
.hero-figure figcaption { font: 400 0.85rem/1.5 var(--sans); color: #8e9ac2; margin-top: 0.75rem; max-width: 28rem; }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 38rem; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font: 600 0.95rem/1 var(--sans); font-stretch: 108%;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-s);
  background: var(--amber); color: var(--night);
  text-decoration: none;
  border: 1px solid var(--amber);
}
.button:hover { background: #f0b552; color: var(--night); text-decoration: none; }
.button-quiet { background: transparent; color: inherit; border-color: currentColor; }
.button-quiet:hover { background: rgba(255, 255, 255, 0.08); color: inherit; }
main .button-quiet { color: var(--teal); }
main .button-quiet:hover { background: rgba(30, 110, 121, 0.07); color: var(--teal-dark); }
.hero .button-quiet { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* ---------- Home sections ---------- */
.band-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band-alt { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: minmax(10rem, 0.35fr) 1fr; gap: 1rem 3rem; align-items: baseline; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: var(--measure); }
@media (max-width: 40rem) { .section-head { grid-template-columns: 1fr; } }

.topic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.topic-list li { border-bottom: 1px solid var(--rule); }
.topic-list a {
  display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 0.25rem 2.5rem;
  padding: 1.15rem 0.25rem; color: inherit; text-decoration: none; align-items: baseline;
}
.topic-name { font: 650 1.25rem/1.2 var(--sans); font-stretch: 112%; color: var(--ink); }
.topic-blurb { color: var(--muted); max-width: var(--measure); }
.topic-list a:hover .topic-name { color: var(--teal); }
.topic-list a:hover { background: linear-gradient(90deg, rgba(226, 163, 59, 0.08), transparent 60%); }
@media (max-width: 40rem) {
  .topic-list a { grid-template-columns: 1fr; }
}

/* Mission timeline: real sequence (launch order) */
.mission-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.mission-timeline::before { content: ""; position: absolute; left: 4.6rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--rule); }
.mission-timeline li { position: relative; }
.mission-timeline a {
  display: grid; grid-template-columns: 4rem 8.5rem 1fr auto; gap: 0.25rem 1.5rem; align-items: baseline;
  padding: 0.95rem 0.25rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule);
}
.mission-timeline a::before {
  content: ""; position: absolute; left: calc(4.6rem - 4px); top: 1.35rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--muted);
}
.band-alt .mission-timeline a::before { background: var(--paper-2); }
.m-year { font: 500 0.9rem/1.2 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.m-name { font: 700 1.15rem/1.2 var(--sans); font-stretch: 118%; color: var(--ink); padding-left: 0.6rem; }
.m-desc { color: var(--muted); }
.mission-timeline a:hover .m-name { color: var(--teal); }
.mission-timeline-full .m-desc { color: var(--ink); }
@media (max-width: 48rem) {
  .mission-timeline::before { left: 3.1rem; }
  .mission-timeline a { grid-template-columns: 2.5rem 1fr; }
  .mission-timeline a::before { left: calc(3.1rem - 4px); }
  .m-name { padding-left: 1.2rem; }
  .m-desc, .mission-timeline .status { grid-column: 2; padding-left: 1.2rem; justify-self: start; }
}

.status {
  font: 550 0.78rem/1 var(--sans); white-space: nowrap;
  padding: 0.32rem 0.55rem; border-radius: 999px;
  border: 1px solid currentColor;
}
.status-orbit { color: var(--teal); background: rgba(30, 110, 121, 0.08); }
.status-orbit::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 0.4rem; vertical-align: 1px; }
.status-done { color: var(--muted); }
.status-dev { color: var(--amber-ink); }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.split h2 { margin-top: 0; }
@media (max-width: 48rem) { .split { grid-template-columns: 1fr; } }
.recent-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.recent-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.recent-list a { color: var(--ink); text-decoration: none; display: block; line-height: 1.4; }
.recent-list a:hover { color: var(--teal); text-decoration: underline; }
.recent-meta { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }
.join { background: var(--night); color: var(--star); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-m); align-self: start; }
.join h2 { color: #fff; }
.join a:not(.button) { color: #f0c779; }
.join-wide { margin: 3rem 0 4rem; }
.join-wide .button-quiet { color: #fff; border-color: rgba(255,255,255,0.45); }

/* ---------- Inner page head ---------- */
.page-head { background: var(--night); color: #fff; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.75rem); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 2rem 3rem; align-items: end; }
.page-head h1 { margin: 0; }
.page-head .subtitle { font: 500 1.1rem/1.35 var(--sans); font-stretch: 105%; color: #f0c779; margin: 0.5rem 0 0; }
.page-head .lede { color: var(--star); font-size: 1.15rem; max-width: var(--measure); margin: 1rem 0 0; }
.crumbs { margin: 0 0 0.6rem; font: 500 0.9rem var(--sans); }
.crumbs a { color: #8e9ac2; text-decoration: none; }
.crumbs a:hover { color: #fff; }
@media (max-width: 48rem) { .page-head-grid { grid-template-columns: 1fr; } }


/* ---------- Prose and figures ---------- */
.prose { padding-bottom: 4rem; }
.prose > * { max-width: var(--measure); }
.prose > h2:first-child { margin-top: 0.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--muted); }
.prose::after { content: ""; display: table; clear: both; }

.fig { margin: 1.5rem 0; }
.fig img { width: 100%; border-radius: var(--radius-s); background: var(--paper-2); }
.fig figcaption { font: 400 0.86rem/1.45 var(--sans); color: var(--muted); margin-top: 0.55rem; }
.prose > .fig-wide, .prose > .fig-pair, .prose > .fig-trio { max-width: 56rem; }
.fig-pair, .fig-trio { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.fig-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-pair .fig, .fig-trio .fig { margin: 0; }
@media (max-width: 40rem) { .fig-pair, .fig-trio { grid-template-columns: 1fr; } }
@media (min-width: 64rem) {
  .prose > .fig-side { float: right; width: 22rem; max-width: none; margin: 0.35rem 0 1.25rem 2.5rem; }
  .prose > h2 { clear: both; }
}
/* Placeholder shown when an image file has not been added yet */
.fig.is-missing img { display: none; }
.fig.is-missing::before {
  content: attr(data-missing);
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 9rem; padding: 1rem;
  font: 500 0.8rem/1.4 var(--sans); color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, #e5e8e1 10px 20px);
  border: 1px dashed #c3c8be; border-radius: var(--radius-s);
}

.refs { margin: 3rem 0 0; border-top: 1px solid var(--rule); padding-top: 1rem; clear: both; }
.refs summary { font: 600 1rem var(--sans); cursor: pointer; color: var(--ink); }
.refs summary:hover { color: var(--teal); }
.refs ol { font-size: 0.92rem; line-height: 1.5; margin-top: 1rem; color: var(--muted); }
.refs a { white-space: nowrap; }

/* Mission pages */
.mission-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 2rem 3.5rem; align-items: start; }
.mission-layout .prose { grid-column: 1; grid-row: 1; }
.facts {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 5.5rem;
  border-top: 3px solid var(--amber);
  background: #fff; padding: 1.25rem 1.25rem 0.5rem;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  font-family: var(--sans); font-size: 0.9rem;
}
.facts-logo { max-width: 9rem; margin: 0 auto 1rem; }
.facts dl { margin: 0; }
.facts dt { font-weight: 600; color: var(--muted); font-size: 0.78rem; margin-top: 0.85rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0.15rem 0 0; line-height: 1.4; }
.facts dd:last-child { margin-bottom: 0.75rem; }
@media (max-width: 56rem) {
  .mission-layout { grid-template-columns: 1fr; }
  .facts { grid-column: 1; grid-row: 1; position: static; }
  .mission-layout .prose { grid-row: 2; }
}
.mission-layout .prose > .fig-side { float: right; width: 16rem; margin: 0.35rem 0 1rem 1.75rem; }
@media (max-width: 40rem) { .mission-layout .prose > .fig-side { float: none; width: auto; margin: 1.5rem 0; } }

/* ---------- Publications ---------- */
.pub-index { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.pub-index li { border-bottom: 1px solid var(--rule); }
.pub-index li + li { border-left: 1px solid var(--rule); }
.pub-index a { display: block; padding: 1.5rem 1.5rem 1.75rem; color: inherit; text-decoration: none; height: 100%; }
.pub-index a:hover { background: #fff; }
.pub-count { display: block; font: 750 2.75rem/1 var(--sans); font-stretch: 120%; color: var(--amber-ink); font-variant-numeric: tabular-nums; }
.pub-name { display: block; font: 650 1.25rem/1.2 var(--sans); font-stretch: 110%; margin: 0.6rem 0 0.4rem; color: var(--ink); }
.pub-index a:hover .pub-name { color: var(--teal); }
.pub-blurb { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 48rem) { .pub-index { grid-template-columns: 1fr; } .pub-index li + li { border-left: 0; } }
.recent-block { max-width: 48rem; margin-bottom: 4rem; }
.recent-block h2 { margin-top: 0; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0 0 0.5rem; font-family: var(--sans); }
.filter-bar label { font-weight: 600; font-size: 0.9rem; }
.filter-bar input {
  flex: 1 1 18rem; max-width: 28rem;
  font: 400 1rem var(--sans); padding: 0.6rem 0.8rem;
  border: 1px solid #bfc5bb; border-radius: var(--radius-s); background: #fff; color: var(--ink);
}
.filter-bar input:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--amber); }
.filter-count { margin: 0; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.filter-empty { font-family: var(--sans); color: var(--muted); padding: 2rem 0 4rem; }

.pub-list { padding-bottom: 4rem; }
.year-group { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0 2rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 1.25rem; }
.year-group .year { font: 700 1.35rem/1.2 var(--sans); font-stretch: 115%; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; position: sticky; top: 5rem; align-self: start; }
.pub-list .year-group:not([data-year]) { grid-template-columns: 11rem minmax(0, 1fr); }
.pub-list .year-group:not([data-year]) .year { font-size: 1.1rem; font-stretch: 108%; }
@media (max-width: 40rem) {
  .year-group, .pub-list .year-group:not([data-year]) { grid-template-columns: 1fr; }
  .year-group .year { position: static; margin-bottom: 0.5rem; }
}
.cite-list { list-style: none; margin: 0; padding: 0; }
.cite { padding: 0 0 1rem; line-height: 1.5; max-width: 50rem; }
.cite-authors { color: var(--muted); }
.cite-authors strong { color: var(--ink); font-weight: 600; }
.cite-title { color: var(--ink); }
.cite em { color: var(--ink); }
.cite .doi { font-size: 0.88rem; word-break: break-all; }
.cite .tag { display: inline-block; font: 600 0.75rem/1 var(--sans); color: var(--amber-ink); background: rgba(226, 163, 59, 0.12); padding: 0.25rem 0.45rem; border-radius: var(--radius-s); margin-right: 0.5rem; vertical-align: 1px; }
.cite .note { font: 500 0.82rem var(--sans); color: var(--teal); }
.cite[hidden], .year-group[hidden] { display: none; }
mark { background: rgba(226, 163, 59, 0.3); color: inherit; padding: 0 1px; border-radius: 2px; }
.book { display: flex; gap: 1.25rem; align-items: flex-start; }
.book-cover { width: 6rem; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* ---------- People ---------- */
.on-page { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font: 500 0.95rem var(--sans); margin-bottom: 1rem; }
.people-group { margin-top: 2.5rem; }
.people-group h2 { margin: 0 0 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 2rem 2.5rem; }
.person { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.1rem; align-items: start; }
.photo { width: 5.5rem; height: 5.5rem; border-radius: 50%; overflow: hidden; background: var(--night-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.initials { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font: 650 1.4rem var(--sans); font-stretch: 115%; color: var(--star); }
.person-name { font-size: 1.1rem; margin: 0.2rem 0 0.2rem; }
.person-role { font: 500 0.9rem/1.35 var(--sans); color: var(--teal); margin: 0 0 0.2rem; }
.person-role:empty { display: none; }
.person-meta { font: 400 0.82rem var(--sans); color: var(--muted); margin: 0 0 0.45rem; }
.person-bio { font-size: 0.95rem; line-height: 1.5; margin: 0; }
.people-lead { grid-template-columns: 1fr; }
.people-lead .person { grid-template-columns: 8rem 1fr; max-width: 44rem; }
.people-lead .photo { width: 8rem; height: 8rem; }
.people-lead .person-name { font-size: 1.35rem; font-stretch: 110%; }
.alumni-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 1.5rem 2rem; }
.alumni-col h3 { font-size: 1rem; margin: 0 0 0.5rem; color: var(--muted); }
.alumni-col ul { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; line-height: 1.6; }
.alumni-col:last-child ul { columns: 2; column-gap: 1.5rem; }
@media (max-width: 56rem) { .alumni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .alumni-grid { grid-template-columns: 1fr; } .person { grid-template-columns: 4.5rem 1fr; } .photo { width: 4.5rem; height: 4.5rem; } }
.lab-info { margin-top: 3.5rem; border-top: 1px solid var(--rule); padding-top: 0.5rem; }
.lab-info h2 { margin-top: 1rem; }
.course-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0 0 1rem; align-items: baseline; }
.course-list dt, .course-list dd { line-height: 1.5; }
.course-list dt { font: 600 0.92rem/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.course-list dd { margin: 0; }

/* ---------- Links page ---------- */
.link-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 4rem; }
.link-groups h2 { margin-top: 0; font-size: 1.25rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.link-list a { font-family: var(--sans); font-weight: 550; }
.link-list span { display: block; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 48rem) { .link-groups { grid-template-columns: 1fr; } }

/* ---------- Content to fill in (visible during review; remove before launch) ---------- */
.todo {
  background: rgba(226, 163, 59, 0.16);
  outline: 1px dashed var(--amber-ink);
  outline-offset: 1px;
  color: var(--amber-ink) !important;
  font-family: var(--sans);
  font-size: 0.88em;
  border-radius: 2px;
  padding: 0 0.25em;
}
p.todo { padding: 0.6rem 0.8rem; }
.status.todo { border-radius: 999px; padding: 0.32rem 0.55rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #8e9ac2; font: 400 0.9rem/1.6 var(--sans); padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem 3rem; }
.footer-name { font: 750 1.1rem var(--sans); font-stretch: 125%; color: #fff; margin-bottom: 0.5rem; }
.site-footer a { color: var(--star); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-base { border-top: 1px solid var(--night-line); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.82rem; }
.footer-base p { margin: 0; }
@media (max-width: 48rem) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .filter-bar, .on-page { display: none; }
  .page-head { background: none; color: var(--ink); }
  .todo { display: none; }
}

/* Alumni */
.alumni-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.25rem 2rem; }
.alum { display: grid; grid-template-columns: 3.75rem 1fr; gap: 0.85rem; align-items: center; }
.alum .photo { width: 3.75rem; height: 3.75rem; }
.alum .initials { font-size: 1rem; }
.alum-name { font: 600 1rem/1.25 var(--sans); margin: 0; }
.alum-meta { font: 400 0.85rem/1.4 var(--sans); color: var(--muted); margin: 0.1rem 0 0; }
.alum-now { display: block; color: var(--teal); }
.alumni-names ul { list-style: none; margin: 0; padding: 0; columns: 4 11rem; column-gap: 2rem; font-size: 0.95rem; line-height: 1.7; }

/* Reverse numbering on papers and talks */
.cite-list .cite:has(> .num) { position: relative; padding-left: 3rem; }
.cite .num { position: absolute; left: 0; top: 0.1em; width: 2.4rem; text-align: right; font: 500 0.85rem/1.5 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.person-links { display: inline-flex; gap: 1rem; margin-top: 0.35rem; font-family: var(--sans); font-size: 0.9rem; }
.mission-timeline-full { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Research topic pages: "at a glance" sidebar */
.facts ul { list-style: none; margin: 0.2rem 0 0; padding: 0; }
.facts li { margin: 0 0 0.2rem; line-height: 1.35; }
.facts li span { color: var(--muted); font-size: 0.82rem; }
.lead-fig { margin-top: 0; }
.topic-links { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1rem 0 1.5rem; list-style: none; }
.topic-links a { display: inline-block; font: 550 0.88rem/1 var(--sans); padding: 0.5rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; background: #fff; text-decoration: none; }
.topic-links a:hover { border-color: var(--teal); }

/* Instrument table */
.prose > .table-wrap { max-width: 56rem; overflow-x: auto; margin: 2rem 0 1rem; }
.inst-table { width: 100%; border-collapse: collapse; font: 400 0.92rem/1.4 var(--sans); }
.inst-table th, .inst-table td { text-align: left; vertical-align: baseline; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
.inst-table thead th { font-weight: 600; font-size: 0.8rem; color: var(--muted); border-bottom-color: var(--ink); }
.inst-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.inst-table td:last-child { white-space: nowrap; padding-right: 0; }
@media (max-width: 40rem) { .inst-table tbody th { white-space: normal; } }
/* Photo groups cropped to a common shape */
.fig-crop .fig img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 40rem) {
  .inst-table thead { display: none; }
  .inst-table, .inst-table tbody, .inst-table tr { display: block; }
  .inst-table tr { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .inst-table th, .inst-table td { display: block; border: 0; padding: 0.1rem 0; white-space: normal; }
  .inst-table td:nth-child(3) { color: var(--muted); }
  .inst-table td:last-child { padding-top: 0.4rem; }
}
@media (max-width: 40rem) { .scene-tag { font-size: 0.66rem; padding: 0.3rem 0.45rem; } }
/* LAIR initials in the home title */
.hero-title b { font-weight: inherit; color: var(--amber); }
.earlier-work { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule); }
.earlier-work h3 { margin-top: 2rem; }
