:root {
  color-scheme: light;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #e9eef5;
  --text: #0f172a;
  --muted: #475569;
  --primary: #1e3a5f;
  --primary-soft: #e4edf7;
  --accent: #9a4b08;
  --border: #cbd5e1;
  --shadow: 0 16px 44px rgb(15 23 42 / 8%);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgb(30 58 95 / 9%), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

a:focus-visible,
button:focus-visible {
  border-radius: 4px;
  outline: 3px solid #c66a12;
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 10px;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(203 213 225 / 72%);
  background: rgb(248 250 252 / 92%);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

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

.page {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 620px;
  padding: clamp(4rem, 10vw, 8rem) 0;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.55fr);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
}

.hero-copy strong {
  color: var(--text);
}

.hero-cn {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--primary);
  font-weight: 700;
}

.portrait-frame {
  position: relative;
  width: min(100%, 300px);
  margin-left: auto;
}

.portrait-frame::before {
  position: absolute;
  z-index: -1;
  inset: -18px 18px 18px -18px;
  border: 1px solid var(--border);
  border-radius: 46% 46% 18px 18px;
  content: "";
}

.portrait {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border: 8px solid var(--surface);
  border-radius: 46% 46% 18px 18px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.actions {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #152d4a;
  box-shadow: 0 8px 24px rgb(30 58 95 / 20%);
  color: #fff;
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--primary);
}

.button.secondary:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.proof-strip {
  display: grid;
  margin: 0 0 clamp(4rem, 8vw, 7rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  min-height: 118px;
  padding: 1.35rem;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--border);
}

.proof-label {
  display: block;
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.proof-note {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: clamp(3.7rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  margin-bottom: 2rem;
  align-items: end;
  gap: 1rem 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
}

.section-heading p {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: flex;
  min-height: 330px;
  padding: clamp(1.3rem, 3vw, 2rem);
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgb(15 23 42 / 5%);
}

.card .tag {
  align-self: flex-start;
  margin-bottom: 1.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-links {
  display: flex;
  margin-top: auto;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-links a {
  font-size: 0.9rem;
  font-weight: 800;
}

.resource-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.resource {
  padding: 1.4rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}

.resource h3 {
  margin-bottom: 0.35rem;
}

.resource p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.research-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.research-item {
  display: grid;
  padding: 1.15rem 0;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 120px minmax(0, 1fr) auto;
}

.research-year {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-title {
  color: var(--text);
  font-weight: 800;
}

.research-role {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.research-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.about-grid {
  display: grid;
  gap: 2rem 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.about-grid p {
  margin-top: 0;
  color: var(--muted);
}

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

.identity-list li {
  display: flex;
  padding: 0.75rem 0;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.identity-list span {
  color: var(--muted);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .portrait-frame {
    width: min(68vw, 280px);
    margin: 1rem auto 0;
  }

  .cards,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(3) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .proof-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .nav {
    min-height: 62px;
  }

  .nav-links li:nth-child(-n + 3) {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .research-item {
    grid-template-columns: 1fr;
  }

  .research-links {
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .actions,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .card,
  .proof-strip {
    box-shadow: none;
    break-inside: avoid;
  }
}
