:root {
  --bg: #0a0e16;
  --surface: #111827;
  --surface-2: #0e1521;
  --ink: #e8eef7;
  --muted: #8a97a8;
  --line: #1d2738;
  --line-strong: #2a3650;
  --accent: #38bdf8;
  --accent-ink: #7dd3fc;
  --accent-dim: rgba(56, 189, 248, 0.14);
  --warm: #a78bfa;
  --soft-accent: rgba(56, 189, 248, 0.06);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px circle at 12% -12%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(760px circle at 100% 0%, rgba(167, 139, 250, 0.08), transparent 52%),
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
  background-attachment: fixed;
}

a {
  color: inherit;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topnav-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
}

.topnav-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.topnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.topnav-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.topnav-links a:hover {
  color: var(--accent-ink);
}

.section {
  scroll-margin-top: 76px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  min-height: 54vh;
  padding: 80px 0 52px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.card-kicker,
.paper-meta,
.meta {
  font-family: var(--mono);
}

.eyebrow,
.section-kicker,
.card-kicker,
.paper-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent);
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.intro,
.intent {
  max-width: 860px;
  color: #b4c0d0;
}

.intro {
  margin-bottom: 14px;
  font-size: clamp(18px, 2vw, 22px);
}

.intent {
  margin-bottom: 0;
  font-size: 17px;
  color: var(--muted);
}

.portrait {
  width: min(28vw, 300px);
  height: min(36vw, 380px);
  min-height: 300px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  object-fit: cover;
  object-position: center 36%;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12), 0 24px 60px rgba(0, 0, 0, 0.55);
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: var(--surface);
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card-link:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 6px 20px rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.text-link:hover {
  color: var(--accent-ink);
}

.section {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--warm);
}

.evidence-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 26px 0;
}

.evidence-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.evidence-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.evidence-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

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

.paper,
.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.paper:hover,
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.featured-paper,
.featured-card {
  background: var(--soft-accent);
  border-color: rgba(56, 189, 248, 0.32);
}

.featured-paper::before,
.featured-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px 1px var(--accent-dim);
}

.paper p,
.card p,
.split p,
.clean-list {
  color: #aebaccf2;
}

.paper p,
.card p {
  margin-bottom: 16px;
  color: #aebacc;
}

.paper-authors {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.author-self {
  color: var(--ink);
  font-weight: 600;
}

.paper-meta,
.card-kicker,
.meta {
  margin-bottom: 12px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-bottom: 1px solid var(--accent-dim);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease;
}

.text-link:hover {
  border-color: var(--accent);
}

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

.inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.inline-links a {
  position: relative;
}

.inline-links a:not(:first-child)::before {
  content: "·";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
}

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

.card-link {
  background: var(--surface-2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.clean-list li {
  position: relative;
  padding-left: 22px;
}

.clean-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

.clean-list li + li {
  margin-top: 9px;
}

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

.mentor-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.mentor-item:first-child {
  border-top: none;
  padding-top: 0;
}

.mentor-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.mentor-head strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.mentor-affil {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.mentor-work {
  margin: 0;
  font-size: 15px;
  color: #aebacc;
}

.mentor-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  vertical-align: middle;
}

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

.news-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.news-item:first-child {
  border-top: none;
  padding-top: 0;
}

.news-date {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  padding-top: 2px;
}

.news-body {
  color: #aebacc;
}

.news-body strong {
  color: var(--ink);
  font-weight: 600;
}

.news-body .text-link {
  margin-left: 10px;
  min-height: 0;
  font-size: 14px;
}

.writing-list {
  display: grid;
  gap: 10px;
}

.writing-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.writing-list a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.writing-list small {
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-socials a:hover {
  color: #d4ecff;
}

.footer-socials a:hover svg {
  color: var(--accent);
}

.footer-email {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
    gap: 28px;
  }

  .hero-copy {
    max-width: none;
  }

  .portrait {
    width: min(100%, 360px);
    height: 420px;
  }

  .evidence-band,
  .paper-list,
  .cards,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-bottom: 34px;
  }

  .portrait {
    width: min(100%, 280px);
    height: 320px;
  }

  .section {
    padding: 36px 0;
  }

  .card-link {
    min-height: 38px;
  }

  .topnav-name {
    display: none;
  }

  .topnav-links {
    flex: 1;
    justify-content: space-between;
    gap: 12px;
  }

  .writing-list a,
  .footer {
    flex-direction: column;
  }

  .writing-list small {
    white-space: normal;
  }
}
