/* Sumner Lab — phase 2 design system */

:root {
  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-text: #1c1a17;
  --color-text-muted: #5c574d;
  --color-border: #e7e2d8;
  --color-accent: #b45309;
  --color-accent-light: #fef3c7;
  --color-header-bg: #1c1a17;
  --color-header-text: #f5f1e8;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap-width: 72rem;
  --radius: 0.5rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 1.5em 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
p { margin: 0 0 1em; }

/* ---- Header ---- */

.site-header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  position: relative;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}

.site-brand {
  color: var(--color-header-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.site-tagline { font-size: 0.78rem; color: #c9c2b3; letter-spacing: 0.02em; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-header-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #4a453c;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-header-text);
}
.nav-toggle-bars::before { content: ""; margin-top: 4px; }
.nav-toggle-bars::after { content: ""; margin-top: 4px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---- Search ---- */

.search { position: relative; }
.search-toggle {
  background: none;
  border: 1px solid #4a453c;
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.search-toggle:hover { border-color: var(--color-accent); }
.search-icon {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--color-header-text);
  border-radius: 50%;
  position: relative;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 1.5px;
  height: 0.5rem;
  background: var(--color-header-text);
  right: -0.28rem;
  bottom: -0.42rem;
  transform: rotate(-45deg);
}

.search-box {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 30;
  width: min(24rem, 88vw);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: 0 1rem 2.5rem -0.5rem rgba(10,8,5,0.35);
  padding: 0.9rem;
}
.search-box.is-open { display: block; }
.search-input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
}
.search-input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }

.search-results {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  max-height: 22rem;
  overflow-y: auto;
}
.search-results li + li { margin-top: 0.2rem; }
.search-results a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  border-radius: 0.4rem;
}
.search-results a:hover { background: var(--color-accent-light); }
.search-result-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}
.search-result-meta {
  flex: none;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.search-empty {
  padding: 0.55rem 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* Hero pages: header floats transparently over the image instead of its own bar */
body.has-hero .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

/* ---- Hero (homepage) ---- */

.hero {
  position: relative;
  min-height: 88vh;
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.88) 0%, rgba(10,8,5,0.35) 45%, rgba(10,8,5,0.05) 75%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem 4.5rem;
  max-width: 46rem;
}
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 2rem + 4vw, 5rem);
}
.hero-tagline {
  color: #ecdfc3;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  margin: 0.75rem 0 0;
  max-width: 34rem;
}

.page-header-band {
  position: relative;
  aspect-ratio: 3.2 / 1;
  max-height: 460px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
@media (max-width: 700px) {
  .page-header-band { aspect-ratio: 1.6 / 1; }
}
.page-header-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.8) 0%, rgba(10,8,5,0.25) 55%, rgba(10,8,5,0.05) 80%);
}
.page-header-band-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 2.5rem;
}
.page-header-band h1 { color: #fff; margin: 0; }

/* For poster/graphic header images (e.g. a book cover) rather than photos */
.page-header-band-contain {
  background-color: var(--color-header-bg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center 15%;
}
.page-header-band-contain::after {
  background: linear-gradient(to top, rgba(10,8,5,0.9) 0%, rgba(10,8,5,0.4) 30%, rgba(10,8,5,0) 55%);
}

/* ---- Post banner (in-flow, below header — not an overlapping hero) ---- */

.post-banner {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  max-height: 210px;
  object-fit: cover;
  object-position: center 64%;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}
@media (max-width: 600px) {
  .post-banner { aspect-ratio: 2.4 / 1; max-height: 160px; }
}

.feature-band {
  min-height: 46vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-top: 3rem;
}
.feature-band-caption {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(10,8,5,0.75), rgba(10,8,5,0));
  width: 100%;
}
.feature-band-caption p {
  color: #f5f1e8;
  margin: 0;
  font-size: 0.95rem;
  max-width: 34rem;
}

.intro-prose {
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 42rem;
  padding-top: 2.5rem;
}

.prose blockquote {
  margin: 1.75em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text);
}
.prose blockquote p { margin: 0 0 0.3em; }

.section-heading { margin-top: 0; }

/* ---- Explore grid (homepage) ---- */

.explore { padding: 3rem 1.5rem; }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .explore-grid { grid-template-columns: 1fr; }
}
.explore-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 12rem;
  border-radius: var(--radius);
  background-color: var(--color-header-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-decoration: none;
}
.explore-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.78), rgba(10,8,5,0.05) 60%);
  transition: background 0.25s ease;
}
.explore-tile:not([style*="background-image"])::after {
  background: linear-gradient(160deg, var(--color-accent), var(--color-header-bg));
}
.explore-tile:hover::after { background: linear-gradient(to top, rgba(10,8,5,0.9), rgba(10,8,5,0.15) 60%); }
.explore-tile-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1rem;
}

/* ---- Research theme tiles ---- */

.research-tiles {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.research-tiles > li { position: relative; }
@media (max-width: 700px) {
  .research-tiles { grid-template-columns: 1fr; }
}
.research-tile {
  position: relative;
  display: flex;
  min-height: 20rem;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-header-bg);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
}
.research-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.82) 0%, rgba(10,8,5,0.25) 55%, rgba(10,8,5,0.05) 80%);
  transition: background 0.25s ease;
}
a.research-tile:hover::after {
  background: linear-gradient(to top, rgba(10,8,5,0.9), rgba(10,8,5,0.35) 55%, rgba(10,8,5,0.08) 80%);
}
.research-tile-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}
.research-tile-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}
.research-tile-desc {
  font-size: 0.88rem;
  color: #ecdfc3;
  margin: 0;
  max-width: 26rem;
  line-height: 1.5;
}
.research-tile-soon {
  filter: grayscale(0.5) brightness(0.7);
  cursor: default;
}
.research-tile-badge {
  position: absolute;
  z-index: 1;
  top: 1rem;
  right: 1rem;
  background: rgba(251,250,247,0.9);
  color: var(--color-text);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.research-tile-credit {
  position: absolute;
  z-index: 1;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(10,8,5,0.55);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-decoration: none;
}
.research-tile-credit:hover { background: rgba(10,8,5,0.75); }
@media (max-width: 700px) {
  .research-tile { min-height: 16rem; }
}

/* ---- Latest from the lab (homepage) / #sumnerlabucl (Bluesky) card grids ----
   Both sections show posts as the same-looking card, so their rules are
   shared (grouped selectors) rather than duplicated in parallel -- that
   duplication is exactly what let the two drift out of sync before. */

.latest { padding: 1rem 1.5rem 4rem; }
.social-wall { padding: 1rem 1.5rem 3.5rem; }

.latest-grid, .social-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin: 1.25rem 0 0;
}
.latest-grid { margin-bottom: 1.75rem; }
.social-wall-status { color: var(--color-text-muted); grid-column: 1 / -1; }

.latest-card, .social-post {
  text-decoration: none;
  color: var(--color-text);
  display: block;
  /* caps a card at roughly what a 3-up row produces, so 1-2 posts don't
     stretch wider than a full row would make them -- same effect as
     auto-fit already gives .latest-grid's usual 3 items */
  max-width: 22rem;
}

.latest-card-image, .social-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.latest-card-image { background-size: cover; background-position: center; }
.social-post-image { object-fit: cover; }
/* .prose img (higher specificity than a bare class) can otherwise leak
   margin/border-radius onto this when the wall is embedded in body content */
.social-wall .social-post img { margin: 0; }

.latest-card-date, .social-post-meta {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.latest-card-title, .social-post-text {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}
.social-post-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.4;
}
.latest-card:hover .latest-card-title,
.social-post:hover .social-post-text { text-decoration: underline; }

/* ---- Page / post / person ---- */

.page, .post { padding: 2.5rem 1.5rem 4rem; }

.prose :is(h2, h3) { margin-top: 1.75em; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { color: var(--color-text-muted); font-size: 0.875rem; margin-top: 0.4em; }

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.75rem;
  margin: 1.5em 0;
}

.prose figure.qr-figure {
  max-width: 240px;
  margin: 0;
}
.prose figure.qr-figure img {
  width: 100%;
  height: auto;
}

.poster-figure { max-width: 240px; margin: 0; }
.poster-figure a { display: block; }
.poster-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0.6rem 1.5rem rgba(10,8,5,0.18);
  border: 1px solid rgba(10,8,5,0.08);
  transition: transform 0.2s ease;
}
.poster-figure a:hover img { transform: translateY(-3px); }

.book-cover { max-width: 200px; margin: 0 0 1.5rem; }
.book-cover a { display: block; }
.book-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0.6rem 1.5rem rgba(10,8,5,0.18);
  border: 1px solid rgba(10,8,5,0.08);
  transition: transform 0.2s ease;
}
.book-cover a:hover img { transform: translateY(-3px); }

.media-play, .person-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.media-play:hover, .person-link-btn:hover { background: var(--color-accent); color: #fff; }
.media-play-icon {
  width: 0;
  height: 0;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.5rem solid currentColor;
}
.person-link-btn { padding: 0.35rem 0.9rem 0.35rem 0.7rem; }
.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}
.person-link-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Media scatter board ---- */

.media-board {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 2rem 1.25rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--color-accent-light), transparent 45%);
  border-radius: var(--radius);
}
.media-card { flex: 1 1 15rem; max-width: 17rem; }
.media-card-inner {
  display: block;
  background: var(--color-surface);
  padding: 0.7rem 0.7rem 0.9rem;
  box-shadow: 0 10px 22px -8px rgba(20,15,5,0.28), 0 2px 4px rgba(20,15,5,0.08);
  transform: rotate(var(--r));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: var(--color-text);
}
a.media-card-inner:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 16px 28px -10px rgba(20,15,5,0.32);
}
.media-card-text { padding-top: 1rem; }
.media-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  margin: 0 0 0.6rem;
  filter: saturate(0.94) contrast(1.02);
}
.media-card-photo { position: relative; margin: 0 0 0.6rem; }
.media-card-photo .media-card-thumb { margin: 0; }
.media-card-credit {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  background: rgba(10,8,5,0.55);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.media-card-outlet {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.media-card-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}
.media-card-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0 0 0.6rem;
}
.media-card-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
}
.media-card audio {
  width: 100%;
  height: 2.2rem;
  margin: 0.5rem 0 0.6rem;
}
@media (max-width: 480px) {
  .media-board { gap: 1.5rem 1rem; padding: 1.5rem 1rem; }
  .media-card { max-width: none; }
}

.game-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 750;
  margin: 1.5em 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.game-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.person-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.person-photo {
  width: 8rem; height: 8rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-accent-light);
}
.person-role { color: var(--color-text-muted); margin: 0.25em 0 0; }
.person-status {
  display: inline-block;
  margin-top: 0.5em;
  font-size: 0.8rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.15em 0.6em;
  border-radius: 999px;
}

.home-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.home-link {
  text-decoration: none;
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.home-link:hover { border-color: var(--color-accent); }

/* ---- People grid (instant-photo cards) ---- */

.people-grid {
  list-style: none;
  margin: 2rem 0 2.5rem;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--color-accent-light), transparent 45%);
  border-radius: var(--radius);
}
.people-card a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  padding: 0.6rem 0.6rem 1rem;
  box-shadow: 0 10px 22px -8px rgba(20,15,5,0.28), 0 2px 4px rgba(20,15,5,0.08);
  transform: rotate(var(--r));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.people-card a:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 16px 28px -10px rgba(20,15,5,0.32);
}
.people-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) sepia(0.08) contrast(1.03);
}
.people-card-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
}
.people-card-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0.65rem;
}
.people-card-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.people-card-role { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.15rem; }
.people-grid-alumni { background: linear-gradient(180deg, var(--color-border), transparent 45%); }

/* ---- Post list ---- */

.post-list { list-style: none; margin: 1rem 0; padding: 0; }
.post-list-item {
  border-bottom: 1px solid var(--color-border);
}
.post-list-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  text-decoration: none;
  color: var(--color-text);
}
.post-list-image {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}
.post-list-text { display: flex; flex-direction: column; gap: 0.15rem; }
.post-list-date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.post-list-title { font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; }
.post-list-item a:hover .post-list-title { text-decoration: underline; }

.pagination { display: flex; gap: 1rem; margin-top: 1.5rem; }

/* ---- Footer ---- */

.site-footer {
  background: var(--color-header-bg);
  color: #c9c2b3;
  margin-top: 3rem;
}
.site-footer .wrap { padding: 2rem 1.5rem; }
.site-footer a { color: var(--color-header-text); }
.footer-links span { margin: 0 0.4em; }

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--color-header-bg);
  }
  .site-nav ul.is-open { display: flex; }
  .site-nav li { border-top: 1px solid #3a352c; }
  .site-nav a { display: block; padding: 0.75rem 0.25rem; }
  .site-header .wrap { flex-direction: column; align-items: stretch; }
  .header-right { justify-content: space-between; }
  .search-box { right: auto; left: 0; }
  .hero { min-height: 70vh; }
}

/* ---- Numbers page (unlisted analytics dashboard) ---- */

.numbers-updated {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: -0.5rem 0 1.5rem;
}
.numbers-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 0 0 2.5rem;
}
.numbers-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.numbers-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
}
.numbers-stat-label {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
}

.numbers-map-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.world-map-svg { width: 100%; height: auto; display: block; }
.world-map-svg .country {
  fill: var(--color-bg);
  stroke: var(--color-border);
  stroke-width: 0.5;
  transition: fill 0.15s ease, fill-opacity 0.15s ease;
}
.world-map-svg .country:hover { fill: var(--color-accent); fill-opacity: 1; }

.numbers-empty {
  background: var(--color-accent-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.numbers-empty h3 { margin-top: 0; }

.numbers-table { width: 100%; border-collapse: collapse; margin-bottom: 2.5rem; }
.numbers-table th, .numbers-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.numbers-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.numbers-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
