:root {
  --green: #154733;
  --green-dark: #0e3426;
  --green-soft: #eaf0ed;
  --ink: #1f2723;
  --muted: #5f6a64;
  --paper: #ffffff;
  --wash: #f6f7f4;
  --line: #dfe4df;
  --gold: #f2c75c;
  --max: 1120px;
  --measure: 760px;
  --shadow: 0 12px 34px rgba(18, 52, 39, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: white; padding: .7rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 1.05rem;
}
.brand span { color: var(--green); font-weight: 600; font-size: .76rem; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: .93rem;
  padding: .56rem .78rem;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.nav .cv-link { border: 1px solid var(--green); color: var(--green); }
.menu-button { display: none; border: 1px solid var(--line); background: white; border-radius: 8px; padding: .45rem .65rem; font-size: 1rem; }

main { min-height: 70vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(21,71,51,.08), transparent 31%),
    linear-gradient(180deg, #fff 0%, var(--wash) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 28px 76px;
  display: block;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--green);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #18201c;
  line-height: 1.16;
  letter-spacing: -.018em;
}
h1 { font-size: clamp(1.9rem, 3vw, 2.55rem); margin: 0 0 1rem; max-width: 840px; }
h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 .55rem; }
.lede { font-size: 1.2rem; max-width: 750px; color: #39443f; margin: 0 0 1.55rem; }
.hero-meta { color: var(--muted); font-size: 1rem; margin: 0 0 1.7rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 8px;
  padding: .72rem 1rem;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid var(--green);
}
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: #fff; color: var(--green); }
.button.ghost { border-color: var(--line); color: var(--ink); background: white; }

.identity-card {
  border-left: 4px solid var(--green);
  background: white;
  padding: 1.45rem 1.5rem;
  box-shadow: var(--shadow);
}
.identity-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; margin-bottom: .4rem; }
.identity-card p { margin: .2rem 0; color: var(--muted); }
.identity-card a { font-weight: 700; }

.section { padding: 72px 0; }
.section.soft { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.8rem; }
.section-head p { max-width: 650px; color: var(--muted); margin: 0; }
.section-kicker { color: var(--green); text-transform: uppercase; letter-spacing: .11em; font-weight: 800; font-size: .8rem; margin-bottom: .5rem; }

.paper-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.paper-card, .course-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem;
}
.paper-card.featured { border-top: 4px solid var(--green); box-shadow: var(--shadow); }
.paper-card .meta, .research-item .meta { color: var(--muted); font-size: .91rem; margin-bottom: .75rem; }
.paper-card p { margin: .55rem 0 1rem; color: #3f4944; }
.inline-links { display: flex; flex-wrap: wrap; gap: .95rem; font-size: .92rem; font-weight: 750; }
.inline-links a { text-decoration: none; border-bottom: 1px solid currentColor; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; }
.prose { max-width: var(--measure); }
.prose p { color: #39443f; }
.fact-list { margin: 0; padding: 0; list-style: none; }
.fact-list li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.fact-list strong { display: block; color: var(--ink); }

.page-hero { padding: 66px 0 42px; border-bottom: 1px solid var(--line); background: var(--wash); }
.page-hero h1 { font-size: clamp(1.8rem,2.8vw,2.25rem); margin-bottom: .7rem; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.12rem; margin: 0; }

.research-list { max-width: 900px; }
.research-item { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.research-item:first-child { padding-top: .5rem; }
.research-item h3 { font-size: clamp(1.28rem,2vw,1.55rem); }
.research-item p { color: #3e4843; max-width: 850px; }
.badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 999px;
  padding: .23rem .55rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.abstract-toggle { border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 750; padding: 0; cursor: pointer; }
.abstract { margin-top: .65rem; }
.abstract[hidden] { display: none; }

.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.course-card h3 { font-size: 1.38rem; }
.course-card .level { color: var(--green); font-weight: 800; font-size: .84rem; text-transform: uppercase; letter-spacing: .07em; }
.course-card p { color: #414a46; }

.contact-box { background: var(--green); color: white; border-radius: 14px; padding: 2rem; }
.contact-box h2, .contact-box h3 { color: white; }
.contact-box a { color: white; }

.site-footer { background: #15201b; color: #dfe6e1; margin-top: 20px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 38px 28px; display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-inner p { margin: .1rem 0; font-size: .9rem; color: #becac3; }
.footer-inner p a { color: white; text-decoration: none; }
.footer-inner p a:hover { text-decoration: underline; }
.footer-inner strong { color: white; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: white; text-decoration: none; font-size: .9rem; }

.note { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--muted); }

@media (max-width: 850px) {
  .header-inner { min-height: 68px; }
  .menu-button { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: .8rem 20px 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 6px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 60px; }
  .paper-grid, .course-grid, .two-col { grid-template-columns: 1fr; }
  .paper-grid { gap: .8rem; }
  .footer-inner { flex-direction: column; }
  .section-head { align-items: flex-start; flex-direction: column; gap: .25rem; }
}

@media (max-width: 560px) {
  .header-inner, .wrap, .hero-inner { padding-left: 18px; padding-right: 18px; }
  .hero-inner { padding-top: 48px; padding-bottom: 52px; }
  .section { padding: 54px 0; }
  h1 { font-size: 1.95rem; }
  .brand span { display: none; }
}

@media print {
  .site-header, .site-footer, .menu-button, .actions, .abstract-toggle { display: none !important; }
  body { font-size: 11pt; }
  .page-hero, .section, .hero-inner { padding: 20px 0; }
  .abstract[hidden] { display: block !important; }
  a { color: black; text-decoration: none; }
}
