*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5faf8;
  --surface: #ffffff;
  --border: rgba(61, 140, 114, 0.18);
  --border-strong: rgba(61, 140, 114, 0.35);
  --green-dark: #1a4a3a;
  --green-mid: #2d6b57;
  --green-soft: #3d8c72;
  --green-light: #e8f4f0;
  --accent: #6dbfa0;
  --text: #1a2e28;
  --muted: #4a6b60;
  --serif: 'Instrument Serif', serif;
  --sans: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  background: rgba(245, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1rem;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-dark); }
.nav-links a.active { color: var(--green-soft); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--green-dark); }

/* ABOUT */
.about-main {
  min-height: 100vh;
  padding-top: 60px;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.about-intro {
  background: var(--green-light);
  border-right: 1px solid var(--border);
  padding: 5rem 2.5rem 4rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

.about-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-name {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--green-dark);
  margin-bottom: 2.5rem;
}

.about-name em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-soft);
}

.photo-placeholder {
  width: 170px;
  height: 210px;
  background: #c8e8de;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--green-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: auto;
  position: relative;
}

.photo-placeholder::after {
  content: '';
  position: absolute;
  bottom: -7px; right: -7px;
  width: 100%; height: 100%;
  border: 1px solid var(--accent);
  opacity: 0.5;
}

.about-content {
  padding: 5rem 3.5rem 4rem;
  max-width: 620px;
}

.about-lead {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.8rem;
}

.about-lead em { color: var(--green-soft); font-style: italic; }

.about-body { font-size: 0.97rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.85; }

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.fact { display: flex; justify-content: space-between; align-items: baseline; }
.fact-label { font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.fact-value { font-size: 0.9rem; color: var(--text); }

.about-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.cta-primary {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}
.cta-primary:hover { background: var(--green-mid); }

.cta-secondary {
  display: inline-block;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
}
.cta-secondary:hover { border-color: var(--green-dark); color: var(--green-dark); }

/* INNER PAGES */
.page-main { max-width: 860px; margin: 0 auto; padding: 8rem 2.5rem 6rem; }
.page-header { margin-bottom: 4rem; }

.page-number {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.page-title {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-dark);
  margin-bottom: 0.9rem;
}

.page-subtitle { font-size: 1rem; color: var(--muted); max-width: 500px; line-height: 1.7; }

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* RESEARCH */
.research-interests { margin-bottom: 4rem; }
.interests-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.interest-pill {
  border: 1px solid var(--border-strong);
  padding: 0.4rem 1rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 0.2s;
}
.interest-pill:hover { background: var(--green-light); }

.research-section { margin-bottom: 4rem; }
.paper-list, .lab-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }

.paper-item, .lab-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}

.paper-year, .lab-period { font-family: var(--sans); font-size: 0.76rem; color: var(--muted); padding-top: 0.2rem; }
.paper-body h3, .lab-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--green-dark); }
.paper-body p, .lab-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 0.7rem; }
.paper-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ptag { font-family: var(--sans); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.65rem; border: 1px solid var(--border); color: var(--muted); border-radius: 2px; }

/* PROJECTS - BLOG STYLE */
.projects-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }

.project-post {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.project-post:hover .project-post-title { color: var(--green-soft); }

.project-post-date {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-top: 0.3rem;
  line-height: 1.5;
}

.project-post-title {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  line-height: 1.3;
}

.project-post-excerpt { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 0.9rem; }
.project-post-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.project-tag {
  font-family: var(--sans);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  background: var(--green-light);
  color: var(--green-soft);
  border-radius: 2px;
}

/* ETC */
.etc-section { margin-bottom: 3.5rem; }

.etc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }

.etc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.6rem;
}

.etc-card-label {
  font-family: var(--sans);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.etc-card h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.4rem; }
.etc-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

.etc-list { list-style: none; border-top: 1px solid var(--border); }
.etc-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.etc-item-label { font-size: 0.92rem; color: var(--text); }
.etc-item-value { font-size: 0.82rem; color: var(--muted); font-family: var(--sans); }

/* CONTACT */
.contact-main { max-width: 640px; }

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  padding: 1.4rem 1.8rem;
  text-decoration: none;
  transition: background 0.2s;
}
.contact-card:hover { background: var(--green-light); }

.contact-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  color: var(--green-soft);
  flex-shrink: 0;
  font-family: var(--sans);
  font-weight: 700;
  border-radius: 2px;
}

.contact-label { font-family: var(--sans); font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.15rem; }
.contact-value { font-size: 0.93rem; color: var(--text); }
.contact-arrow { margin-left: auto; color: var(--muted); font-size: 1rem; transition: transform 0.2s; }
.contact-card:hover .contact-arrow { transform: translateX(4px); color: var(--green-soft); }
.contact-note { font-size: 0.83rem; color: var(--muted); line-height: 1.75; }

/* MOBILE */
@media (max-width: 760px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .about-main { grid-template-columns: 1fr; }
  .about-intro { min-height: auto; padding: 3rem 1.5rem 2.5rem; border-right: none; border-bottom: 1px solid var(--border); }
  .about-content { padding: 2.5rem 1.5rem; }
  .page-main { padding: 6rem 1.5rem 4rem; }
  .paper-item, .lab-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .project-post { grid-template-columns: 1fr; gap: 0.4rem; }
  .etc-grid { grid-template-columns: 1fr; }
}
