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

:root {
  --ivory:   #f6f3ee;
  --paper:   #faf8f4;
  --surface: #ffffff;
  --text:    #18160f;
  --soft:    #3a3830;
  --muted:   #7c7a72;
  --faint:   #e6e2d9;
  --rule:    #d6d1c7;
  --teal:    #1d6a54;
  --blue:    #1a4b74;
  --warm:    #8a4520;
  --gold:    #b89a3e;
  --serif:   'Georgia', 'Times New Roman', serif;
  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:    'SFMono-Regular', 'Consolas', monospace;
  --width:   680px;
  --pad:     2rem;
}

html { font-size: 16px; }

/* ── BODY & BACKGROUND ── */
body {
  font-family: var(--sans);
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 700px 500px at 5% 0%, rgba(29,106,84,0.055) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 95% 80%, rgba(26,75,116,0.05) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='0.8' fill='%238a8070' opacity='0.18'/%3E%3C/svg%3E");
  color: var(--text);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

/* ── WRAPPER ── */
.wrapper {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--pad) 6rem;
}

/* ── TOP ACCENT LINE ── */
.top-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 50%, var(--teal) 100%);
  margin-bottom: 0;
}

/* ── NAV ── */
.site-nav {
  padding: 1.5rem 2rem;
  max-width: var(--width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.site-nav .brand {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: normal;
  color: var(--text);
  text-decoration: none;
  margin-right: 2.2rem;
  letter-spacing: 0.01em;
}

.site-nav a {
  font-size: 0.79rem;
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.3rem;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.site-nav a:hover       { color: var(--teal); }
.site-nav a.on          { color: var(--text); }
.site-nav .ext::after   { content: ' ↗'; font-size: 0.65rem; opacity: 0.6; }

/* ── PAGE HERO (index) ── */
.hero {
  padding: 4rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.hero-text .role {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.hero-text .tagline {
  font-size: 1rem;
  color: var(--soft);
  font-style: italic;
  font-family: var(--serif);
  margin: 0.9rem 0 1.6rem;
  line-height: 1.55;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--rule), 0 4px 24px rgba(0,0,0,0.08);
}

/* ── SOCIAL LINKS ── */
.socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.77rem;
  color: var(--soft);
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--surface);
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

.socials a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(29,106,84,0.05);
  text-decoration: none;
}

.socials a svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ── PAGE HEADER (inner pages) ── */
.page-top {
  padding: 3.2rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.page-top h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: normal;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.page-top .sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ── SECTION HEADINGS ── */
.section {
  margin-top: 3rem;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--faint);
}

h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--text);
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.6rem 0 0.28rem;
}

/* ── BODY TEXT ── */
p {
  font-size: 0.93rem;
  color: var(--soft);
  margin-bottom: 1rem;
  line-height: 1.82;
}

p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.15rem; margin-bottom: 1rem; }
li {
  font-size: 0.89rem;
  color: var(--soft);
  margin-bottom: 0.3rem;
  line-height: 1.65;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.6rem 0;
}

strong { color: var(--text); font-weight: 600; }
em     { font-style: italic; }

/* ── INDEX NAV LINKS ── */
.index-links {
  padding: 2.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.index-links a {
  font-size: 0.97rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--faint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.15s;
}

.index-links a:first-child { border-top: 1px solid var(--faint); }

.index-links a:hover { color: var(--teal); text-decoration: none; }

.index-links .link-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.6rem;
}

/* ── PROFILE ROW (work page) ── */
.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 2rem 0 0;
}

.profile-row img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}

.profile-text {
  font-size: 0.88rem;
  color: var(--soft);
  line-height: 1.78;
}

.profile-text strong { font-size: 0.96rem; display: block; margin-bottom: 0.1rem; }

.interests {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ── PUBLICATIONS ── */
.pub {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--faint);
}

.pub:first-child { padding-top: 0; }
.pub:last-child  { border-bottom: none; }

.pub-title {
  display: block;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.2rem;
}

.pub-authors {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.pub-venue {
  font-size: 0.79rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.42rem;
}

.pub-venue .ur { color: var(--warm); font-style: normal; font-weight: 500; }

.pub-links { display: flex; gap: 0.38rem; flex-wrap: wrap; align-items: center; }

.pub-links a {
  font-size: 0.72rem;
  color: var(--soft);
  border: 1px solid var(--rule);
  padding: 0.07rem 0.52rem;
  border-radius: 2px;
  background: var(--surface);
  transition: all 0.12s;
}

.pub-links a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.ep {
  font-size: 0.72rem;
  color: #7a5800;
  background: #fdf3cc;
  border: 1px solid #e0d080;
  padding: 0.07rem 0.48rem;
  border-radius: 2px;
}

/* ── AWARD LIST ── */
.award-list { list-style: none; padding: 0; }

.award-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--faint);
  font-size: 0.88rem;
  align-items: baseline;
}

.award-list li:last-child { border-bottom: none; }

.yr {
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── SERVICE ── */
.svc-year {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.6rem 0 0.5rem;
}

/* ── TEACHING & EDU ── */
.teach, .edu {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--faint);
}

.teach:last-child, .edu:last-child { border-bottom: none; }
.teach strong, .edu strong { font-size: 0.9rem; display: block; }
.teach span, .edu span { font-size: 0.8rem; color: var(--muted); display: block; line-height: 1.55; }

/* ── NOTES ── */
.note {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--faint);
  align-items: baseline;
}

.note:last-child { border-bottom: none; }

.note-date { font-size: 0.73rem; color: var(--muted); white-space: nowrap; }
.note a { font-size: 0.9rem; color: var(--text); }
.note a:hover { color: var(--teal); text-decoration: none; }
.ext-mark { font-size: 0.68rem; color: var(--muted); margin-left: 0.25rem; }

/* ── ARROW LINKS (about) ── */
.arrow-links {
  margin-top: 2.2rem;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.arrow-links a { font-size: 0.84rem; color: var(--soft); }
.arrow-links a:hover { color: var(--teal); text-decoration: none; }

/* ── FOOTER ── */
footer {
  padding-top: 3rem;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  border-top: 1px solid var(--faint);
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── CARD (about summary on index) ── */
.card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.1rem;
}

.card-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  :root { --pad: 1.2rem; }
  html  { font-size: 15px; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 100px; height: 100px; }
  .hero-text h1 { font-size: 2rem; }
  .card-row { grid-template-columns: 1fr; }
  .profile-row { flex-direction: column; gap: 1rem; }
}
