:root {
  --ink: #151718;
  --muted: #5f6769;
  --paper: #f8faf9;
  --surface: #ffffff;
  --line: #dfe6e3;
  --green: #0f6b4f;
  --teal: #237981;
  --red: #b4333a;
  --gold: #b88a10;
  --shadow: 0 18px 48px rgba(21, 23, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(248, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.section-band,
.section,
.quick-facts,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 64px 0 44px;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  border-color: var(--red);
  color: var(--red);
}

.button.primary:hover {
  background: var(--red);
  color: #ffffff;
}

.portrait-wrap {
  margin: 0;
}

.portrait {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait-wrap figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 54px;
}

.quick-facts article,
.publication,
.project-card,
.experience {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-facts article {
  min-height: 178px;
  padding: 22px;
}

.quick-facts span,
.pub-status,
.date {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

.quick-facts p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section {
  padding: 78px 0;
}

.section-alt {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: #eef5f2;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.28;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: start;
}

.two-column p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.check-list,
.project-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.check-list li,
.project-card li {
  margin-bottom: 10px;
}

.pub-list {
  display: grid;
  gap: 16px;
}

.publication {
  padding: 24px;
}

.publication p {
  margin: 10px 0 0;
  color: var(--muted);
}

.publication .pub-status {
  margin: 0 0 8px;
  color: var(--gold);
}

.publication a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 24px;
}

.project-card p {
  margin: 12px 0 16px;
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  font-weight: 800;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.experience {
  padding: 24px;
}

.experience p {
  margin: 10px 0 0;
  color: var(--muted);
}

.experience .date {
  margin-top: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 750;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 44px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .intro,
  .quick-facts,
  .two-column,
  .project-grid,
  .experience-layout {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    max-width: 100%;
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .portrait {
    width: 220px;
  }

  .project-card {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .section-band,
  .section,
  .quick-facts,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 16px 14px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }
}
