/* CARMA Lab — modern, clean, elegant */
:root {
  --ink: #0b1526;
  --ink-2: #12233c;
  --teal: #0f766e;
  --teal-deep: #0b5f5c;
  --teal-tint: #e6f2f1;
  --paper: #ffffff;
  --paper-soft: #f6f8f8;
  --text: #232b36;
  --muted: #68727f;
  --line: #e6eaea;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--teal-tint); }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.25; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

section { scroll-margin-top: 84px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 21, 38, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 32px; width: 32px; }
.brand-text { color: #fff; font-family: var(--serif); font-size: 1.12rem; letter-spacing: 0.1em; }
.brand-lab { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.34em; color: #aeb9c6; }

.nav-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.35rem; }
.nav-links a {
  color: #cdd6e1;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 50% -8%, rgba(15, 118, 110, 0.28), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #eef1f5;
  text-align: center;
  padding: 6.5rem 1.5rem 5.5rem;
}

.hero-mark { height: 96px; width: 96px; margin-bottom: 1.6rem; }

.hero-title {
  color: #fff;
  font-size: 3.4rem;
  letter-spacing: 0.16em;
  margin: 0;
  font-weight: 600;
}
.hero-title span {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: #aeb9c6;
  vertical-align: middle;
}

.hero-rule {
  width: 56px;
  height: 3px;
  background: var(--teal);
  border: none;
  margin: 1.8rem auto;
  border-radius: 2px;
}

.hero-expansion {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: #d5dce5;
  margin: 0 0 0.5rem;
}

.hero-tagline {
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa0b3;
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1020px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
}
.section:last-of-type { padding-bottom: 5rem; }
.section > p { max-width: 70ch; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.6rem;
}

.section h2 {
  font-size: 2.1rem;
  margin: 0 0 1.6rem;
  letter-spacing: 0.01em;
}
.section h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-top: 0.7rem;
}

.section h3 { font-size: 1.2rem; margin: 2.2rem 0 0.8rem; }

/* ---------- Research cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.7rem 1.6rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #cfd8d8;
  box-shadow: 0 14px 34px rgba(11, 21, 38, 0.1);
}
.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.card h3 { margin: 0.45rem 0 0.6rem; font-size: 1.28rem; }
.card p { font-size: 0.95rem; margin: 0.55rem 0; color: var(--text); }
.card-work { color: var(--muted); font-size: 0.87rem !important; }

/* ---------- Publications ---------- */
.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li {
  padding: 1rem 0 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  max-width: 78ch;
  line-height: 1.7;
}
.pubs li:last-child { border-bottom: none; }
.pubs em { color: var(--ink); }

/* ---------- People ---------- */
.person {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  max-width: 680px;
}
.person h3 { margin: 0 0 0.35rem; font-size: 1.5rem; }
.person-role { color: var(--teal-deep); font-size: 0.95rem; font-weight: 600; margin: 0 0 0.3rem; }
.person-aff { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.person-links { margin: 0; }
.person-links a {
  display: inline-block;
  margin: 0 1.3rem 0.4rem 0;
  font-size: 0.93rem;
  font-weight: 600;
}

.collab-note {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 64ch;
  border-left: 3px solid var(--teal-tint);
  padding-left: 1rem;
}

/* ---------- Contact ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff !important;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--teal-deep); text-decoration: none; transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #8fa0b3;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.88rem;
}
.site-footer p { margin: 0; }
.site-footer strong { color: #d5dce5; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .hero { padding: 4.5rem 1.25rem 4rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-expansion { font-size: 1.12rem; }
  .nav { padding: 0.7rem 1rem; }
  .nav-links a { font-size: 0.84rem; }
  .section { padding: 3.2rem 1.25rem 0.5rem; }
  .section h2 { font-size: 1.7rem; }
}
