:root {
  --bg: #f5f3ee;
  --paper: #fffdf9;
  --surface: #ffffff;
  --surface-soft: #fbf8f2;
  --line: #ddd7ca;
  --line-strong: #c9c0ae;
  --text: #1f2430;
  --muted: #606775;
  --accent: #154a7d;
  --accent-soft: #e9f1f8;
  --shadow: 0 12px 30px rgba(31, 36, 48, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(21, 74, 125, 0.05), transparent 35%),
    radial-gradient(circle at 95% 10%, rgba(120, 93, 41, 0.04), transparent 40%),
    linear-gradient(rgba(21, 74, 125, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 74, 125, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 22px 22px, 22px 22px, auto;
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(201, 192, 174, 0.55);
  background: rgba(245, 243, 238, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.site-header nav a:hover {
  color: var(--text);
  background: rgba(21, 74, 125, 0.06);
  text-decoration: none;
}

.hero {
  padding-top: 2.2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}

.hero-main,
.hero-card,
.stat-card,
.section-panel,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero-card {
  padding: 1.1rem;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: auto -30% -35% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 74, 125, 0.08), transparent 68%);
  pointer-events: none;
}

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


h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.9rem, 3.1vw, 2.85rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

h3 {
  font-size: 1.02rem;
  margin-top: 1.25rem;
  margin-bottom: 0.65rem;
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.lead {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 68ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #103c65;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.compact-list {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.compact-list div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(201, 192, 174, 0.45);
}

.compact-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.compact-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-list dd {
  margin: 0;
  font-weight: 500;
}

.profile-links {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  font-size: 0.82rem;
  border: 1px solid rgba(21, 74, 125, 0.12);
  background: rgba(21, 74, 125, 0.04);
  color: var(--accent);
}

.profile-links a:hover {
  text-decoration: none;
  background: rgba(21, 74, 125, 0.08);
}

.profile-links svg,
.contact-links svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  padding: 1rem;
}

.stat-value {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  color: var(--accent);
}

.stat-label {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 1rem 0.5rem 0 0;
}

.section-heading h2 {
  margin-top: 0.15rem;
}

.section-panel {
  padding: 1.2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: var(--accent-soft);
  border: 1px solid rgba(21, 74, 125, 0.12);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid rgba(201, 192, 174, 0.5);
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.timeline-item p {
  margin: 0.1rem 0 0;
}

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

.experience-accordion {
  gap: 0.7rem;
}

.exp-item {
  border-radius: 12px;
  border: 1px solid rgba(201, 192, 174, 0.5);
  background: var(--surface-soft);
  overflow: hidden;
}

.exp-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  margin: 0;
  border: 0;
}

.exp-item summary::-webkit-details-marker {
  display: none;
}

.exp-item summary.timeline-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding-right: 2.6rem;
}

.exp-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(21, 74, 125, 0.16);
  background: rgba(21, 74, 125, 0.04);
  font-weight: 600;
  line-height: 1;
}

.exp-item[open] summary::after {
  content: "−";
}

.exp-item[open] summary {
  border-bottom: 1px solid rgba(201, 192, 174, 0.5);
  background: rgba(21, 74, 125, 0.02);
}

.exp-content {
  padding: 0.8rem 0.9rem 0.9rem;
}

.exp-content .clean-list {
  gap: 0.45rem;
}

.exp-links {
  margin-top: 0.6rem;
}

.exp-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  border: 1px solid rgba(21, 74, 125, 0.2);
  background: rgba(21, 74, 125, 0.06);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.exp-links a:hover {
  background: rgba(21, 74, 125, 0.11);
  text-decoration: none;
}

.paper-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.paper-list li {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 192, 174, 0.6);
  background: var(--surface-soft);
}

.paper-list-plain {
  list-style: none;
  padding-left: 0;
}

.paper-list strong,
.paper-list span,
.paper-list em {
  display: block;
}

.paper-list span,
.paper-list em {
  color: var(--muted);
  font-style: normal;
}

.paper-links {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.paper-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(21, 74, 125, 0.14);
  background: rgba(21, 74, 125, 0.04);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.paper-links a:hover {
  text-decoration: none;
  background: rgba(21, 74, 125, 0.08);
}

.paper-access {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: start;
}

.paper-dropdown {
  border: 1px solid rgba(201, 192, 174, 0.8);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}

.paper-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 0.52rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
}

.paper-dropdown summary::-webkit-details-marker {
  display: none;
}

.paper-dropdown summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  color: var(--accent);
}

.paper-dropdown[open] summary::after {
  content: "−";
}

.paper-dropdown[open] summary {
  border-bottom: 1px solid rgba(201, 192, 174, 0.65);
}

.paper-viewer {
  padding: 0.65rem;
}

.paper-viewer-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.45rem;
}

.paper-open-full-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  border: 1px solid rgba(21, 74, 125, 0.2);
  background: rgba(21, 74, 125, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.paper-open-full-btn:hover {
  background: rgba(21, 74, 125, 0.11);
  text-decoration: none;
}

.paper-viewer iframe {
  width: 100%;
  min-height: 560px;
  border: 1px solid rgba(201, 192, 174, 0.75);
  border-radius: 10px;
  background: #fff;
}

.paper-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(21, 74, 125, 0.2);
  background: rgba(21, 74, 125, 0.06);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 2rem;
}

.paper-download-btn:hover {
  background: rgba(21, 74, 125, 0.11);
  text-decoration: none;
}

.paper-contact {
  padding: 0.75rem;
}

.paper-contact p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.paper-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(21, 74, 125, 0.2);
  background: rgba(21, 74, 125, 0.06);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.paper-contact-btn:hover {
  background: rgba(21, 74, 125, 0.11);
  text-decoration: none;
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.clean-list li {
  color: var(--text);
}

.split-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.split-panel h3:first-child {
  margin-top: 0;
}

.contact-panel {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.contact-panel h2 {
  margin-top: 0.15rem;
}

.contact-links {
  display: grid;
  gap: 0.65rem;
}

.contact-links a,
.contact-links span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 192, 174, 0.65);
  background: var(--surface-soft);
  color: var(--text);
}

.contact-links a:hover {
  border-color: rgba(21, 74, 125, 0.28);
  text-decoration: none;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 192, 174, 0.65);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
    padding: 0.25rem 0 0;
  }

  .split-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: auto;
    padding: 0.75rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    gap: 0.45rem;
  }

  .hero-main,
  .hero-card,
  .section-panel,
  .contact-panel,
  .stat-card {
    padding: 1rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .exp-item summary::after {
    top: 0.9rem;
    transform: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .paper-access {
    grid-template-columns: 1fr;
  }

  .paper-viewer iframe {
    min-height: 420px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
