@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #14201d;
  --muted: #62716d;
  --paper: #f4f4ee;
  --card: #ffffff;
  --line: #d8ddd7;
  --accent: #d5f36b;
  --accent-deep: #3c5a35;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.site-header, main, .site-footer { width: min(var(--max-width), calc(100% - 40px)); margin: 0 auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -.04em; font-size: 1.2rem; }
.brand span { color: var(--accent-deep); }
.site-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; }
.site-nav a[href='education.html'] { order: 1; }
.site-nav a[href='projects.html'] { order: 2; }
.site-nav a[href='experience.html'] { order: 3; }
.site-nav a[href='publications.html'] { order: 4; }
.site-nav a[href='news.html'] { order: 5; }
.site-nav a[href='volunteering.html'] { order: 6; }
.site-nav a { color: var(--muted); font-size: .84rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--ink); }
.eyebrow, .label { font: 500 .72rem 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.hero { padding: 108px 0 128px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); align-items: center; gap: clamp(42px, 8vw, 110px); }
.hero-copy { min-width: 0; }
.hero-image { margin: 0; position: relative; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 5; background: var(--card); box-shadow: 0 24px 60px rgba(35, 31, 27, .12); }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255, 248, 235, .08), rgba(35, 31, 27, .18)); pointer-events: none; }
.hero-image img { width: 125%; height: 125%; max-width: none; display: block; object-fit: cover; object-position: 50% 0; transform: translateX(-10%); filter: saturate(.9) contrast(.96); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.4rem, 9vw, 7.8rem); letter-spacing: -.09em; line-height: .9; margin: 22px 0 34px; max-width: 900px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.065em; line-height: 1; margin-bottom: 24px; }
h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 9px; }
.lede { max-width: 620px; color: var(--muted); font-size: 1.15rem; }
.social-links { display: flex; gap: 14px; margin: -12px 0 28px; }
.social-links a { display: inline-flex; color: var(--ink); }
.social-links a:hover { color: var(--accent-deep); }
.social-links svg { width: 30px; height: 30px; fill: currentColor; }
.button { display: inline-block; background: var(--ink); color: var(--paper); padding: 12px 18px; margin-top: 18px; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.button:hover { background: var(--accent-deep); }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }
.section { padding: 78px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 30px; }
.section-heading a { color: var(--muted); font-size: .88rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 26px; min-height: 190px; }
.card p { color: var(--muted); font-size: .94rem; }
.card .meta, .meta { color: var(--muted); font: .75rem 'DM Mono', monospace; }
.page-intro { padding: 90px 0 70px; max-width: 750px; }
.experience-intro { display: grid; grid-template-columns: minmax(0, 750px) 260px; align-items: center; gap: clamp(36px, 8vw, 80px); max-width: 1090px; }
.volunteering-intro { display: grid; grid-template-columns: minmax(0, 750px) 260px; align-items: center; gap: clamp(36px, 8vw, 80px); max-width: 1090px; }
.experience-intro-copy { min-width: 0; }
.volunteering-intro-copy { min-width: 0; }
.experience-intro-image { width: 260px; height: 320px; }
.volunteering-intro-image { width: 360px; height: 240px; aspect-ratio: 3 / 2; }
.volunteering-intro-image img { width: 100%; height: 100%; transform: none; object-position: 68% 50%; }
.education-intro { padding-bottom: 24px; }
.page-intro h1 { font-size: clamp(3.2rem, 7vw, 6.4rem); }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 30px 0; border-top: 1px solid var(--line); }
.timeline-item:first-child { border-top: 0; }
.timeline-item h3 { margin-bottom: 4px; }
.timeline-item p { color: var(--muted); max-width: 680px; margin-bottom: 0; }
.news-entry { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 24px; align-items: start; }
.news-image-link { display: block; overflow: hidden; background: var(--line); }
.news-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.news-image-link:hover .news-image { transform: scale(1.03); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--muted); font-size: .72rem; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 45px; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
@media (max-width: 720px) {
  .site-header { align-items: flex-start; gap: 20px; flex-direction: column; }
  .site-nav { gap: 10px 14px; justify-content: flex-start; }
  .hero { padding: 60px 0 85px; }
  .hero-layout { grid-template-columns: 1fr; gap: 42px; }
  .hero-image { max-width: 520px; width: 100%; }
  .experience-intro { grid-template-columns: 1fr; gap: 42px; }
  .experience-intro-image { width: min(100%, 520px); height: auto; }
  .volunteering-intro { grid-template-columns: 1fr; gap: 42px; }
  .volunteering-intro-image { width: min(100%, 520px); height: auto; aspect-ratio: 3 / 2; }
  .grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .news-entry { grid-template-columns: 1fr; gap: 18px; }
  .button.secondary { margin-left: 0; }
  .site-footer { flex-direction: column; gap: 8px; }
}
