:root {
  --paper: #f3efe6;
  --paper-deep: #e7e1d4;
  --card: #fffcf8;
  --ink: #1a2332;
  --muted: #5c6672;
  --line: #ddd6c8;
  --line-strong: #c9c0b0;
  --accent: #0e6b5c;
  --accent-deep: #0a4f44;
  --clay: #8d3b24;
  --clay-soft: #f6e4dc;
  --inverse: #f6f1e8;
  --inverse-muted: #c9c2b6;
  --shadow: 0 16px 40px rgba(26, 35, 50, 0.06);
  --sans: "Source Sans 3", sans-serif;
  --serif: "Source Serif 4", serif;
  --mono: ui-monospace, "SFMono-Regular", "Source Code Pro", Menlo, Consolas, monospace;
  --header: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-deep);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(243, 239, 230, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.nav-wrap {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-inner {
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-button {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--card);
  cursor: pointer;
}

.nav-button-bars,
.nav-button-bars::before,
.nav-button-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  content: "";
}

.nav-button-bars::before,
.nav-button-bars::after {
  position: absolute;
  left: 0;
}

.nav-button-bars::before { top: -5px; }
.nav-button-bars::after { top: 5px; }

.site-nav {
  display: flex;
  gap: 0.2rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover {
  background: rgba(14, 107, 92, 0.08);
  color: var(--accent-deep);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-deep);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.hero {
  background-image: radial-gradient(circle, rgba(26, 35, 50, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -10px -10px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 3rem;
  align-items: end;
  padding: 4.2rem 0 3.4rem;
}

.eyebrow,
.panel-label,
.footer-label {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: baseline;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 0.96;
  margin: 0 0 1rem;
}

.tagline {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.hero-intro {
  margin-top: 1.4rem;
  max-width: 42rem;
}

.hero-intro p,
.page-lede {
  color: var(--ink);
}

.hero-intro p + p,
.page-lede + .page-lede {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-deep);
  color: white;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button-ghost:hover {
  background: white;
  color: var(--accent-deep);
}

.hero-panel {
  background: var(--ink);
  color: var(--inverse);
  border-radius: 20px;
  padding: 1.35rem 1.35rem 0.6rem;
  box-shadow: var(--shadow);
}

.hero-panel .panel-label {
  color: #e7c7a4;
}

.fact-list,
.contact-facts {
  margin: 0;
}

.fact-list div,
.contact-facts div {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
}

.fact-list dt,
.contact-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inverse-muted);
}

.fact-list dd,
.contact-facts dd {
  margin: 0.15rem 0 0;
}

.hero-panel a {
  color: #f3d7b0;
}

.panel-links {
  display: flex;
  gap: 1rem;
}

.section {
  padding: 3.4rem 0;
}

.section-alt {
  background: var(--paper-deep);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head h2,
.year-heading {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}

.section-head a {
  font-weight: 600;
  white-space: nowrap;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 1px solid var(--line);
}

.news-item.is-placeholder {
  padding: 1rem 1.1rem;
  margin: 0.75rem 0;
  border-top: 1px dashed #d7b2a4;
  border-bottom: 1px dashed #d7b2a4;
}

.news-item time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.2rem;
}

.news-item h3 {
  font-size: 1.28rem;
  margin-bottom: 0.25rem;
}

.news-item h3 a {
  color: inherit;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.news-item p,
.card p,
.member-body p,
.publication p {
  margin-bottom: 0.45rem;
}

.card-grid,
.member-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.card-grid,
.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 1rem;
}

.card,
.member-card,
.publication,
.is-placeholder {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card {
  padding: 1.25rem 1.3rem 1.1rem;
}

.card h3,
.publication h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.card h3 a,
.publication h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover,
.publication h3 a:hover {
  color: var(--accent-deep);
}

.tags,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.tags li {
  font-size: 0.82rem;
  color: var(--accent-deep);
  background: rgba(14, 107, 92, 0.08);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

.link-row a {
  display: inline-flex;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line-strong);
}

.publication {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding: 1.15rem 1.2rem;
  margin-bottom: 0.8rem;
}

.publication-year {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0;
  color: var(--accent);
}

.publication-authors,
.publication-note,
.citation {
  color: var(--muted);
}

.citation {
  font-size: 0.95rem;
}

.page-header {
  padding: 3.2rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.page-lede {
  max-width: 42rem;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.page-body {
  padding: 1.8rem 0 3.5rem;
}

.member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.member-card h2 {
  font-size: 1.7rem;
  margin-bottom: 0.15rem;
}

.member-card h2 span {
  font-weight: 500;
  color: var(--muted);
}

.member-role {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.member-title {
  color: var(--muted);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 2rem;
  overflow: hidden;
}

.is-featured .avatar {
  width: 120px;
  height: 120px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-facts div {
  border-top-color: var(--line);
}

.contact-facts dt {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.affiliation-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.affiliation-units dd + dd {
  margin-top: 0.45rem;
}

.muted {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--clay-soft);
  color: var(--clay);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

.is-placeholder {
  background-color: #fffaf6;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(141, 59, 36, 0.035) 8px,
    rgba(141, 59, 36, 0.035) 9px
  );
  border-style: dashed;
  border-color: #d7b2a4;
  box-shadow: none;
}

.is-placeholder-field {
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed #d7b2a4;
  border-radius: 12px;
  background: #fffaf6;
}

.edit-hint {
  max-width: 48rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.6rem;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(26, 35, 50, 0.05);
  padding: 0.05rem 0.3rem;
  border-radius: 5px;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: var(--inverse);
  padding: 2.4rem 0 1.2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.footer-label {
  color: #e7c7a4;
}

.site-footer a {
  color: #f3d7b0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer p {
  margin-bottom: 0.35rem;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
  color: var(--inverse-muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .nav-button {
    display: inline-flex;
  }

  .nav-wrap {
    position: static;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 1.25rem 1rem;
    background: rgba(243, 239, 230, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.2rem;
  }

  .hero-grid,
  .publication,
  .footer-inner,
  .news-item,
  .member-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 2.4rem;
    gap: 1.6rem;
  }

  .news-item time {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .section-head,
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
