@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=IBM+Plex+Sans+Thai:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #FAF8F3;
  --surface: #F1EDE3;
  --ink: #1E2A32;
  --ink-soft: #4A5760;
  --teal: #3E6259;
  --bronze: #A9825A;
  --line: #DAD3C4;
  --line-strong: #C3BAA6;
  --serif: 'Source Serif 4', 'Noto Serif Thai', serif;
  --sans: 'IBM Plex Sans Thai', 'IBM Plex Sans', sans-serif;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 62ch; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink); max-width: 58ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav .mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"] { border-bottom: 1.5px solid var(--teal); padding-bottom: 3px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}
.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
}
.hero-portrait img {
  display: block;
}
.eyebrow {
  color: var(--teal);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 500;
}
.hero .role {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--surface);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { background: #34534B; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.section-head { max-width: 62ch; margin-bottom: 34px; }

/* Definition-list style credential block (not cards) */
.cred-list { border-top: 1px solid var(--line); }
.cred-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cred-row dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}
.cred-row dd { margin: 0; color: var(--ink-soft); }

/* Timeline — genuine chronological sequence */
.timeline { position: relative; margin-top: 28px; }
.timeline::before {
  content: "";
  position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line-strong);
}
.t-item { position: relative; padding: 0 0 30px 34px; }
.t-item::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bronze); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.t-item .yr { font-size: 0.85rem; color: var(--bronze); font-weight: 600; margin-bottom: 4px; }
.t-item h3 { margin-bottom: 4px; }

/* Expertise grid — plain list, no card shadows */
.expertise-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.expertise-item {
  padding: 26px 26px 26px 0;
  border-bottom: 1px solid var(--line);
}
.expertise-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 26px; }
.expertise-item h3 { margin-bottom: 8px; }
.expertise-item a { font-size: 0.92rem; }

/* Publications */
.pub-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.pub-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.pub-list li .pub-year { color: var(--bronze); font-weight: 600; margin-right: 8px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; }

/* Appointment blocks */
.loc-block { border: 1px solid var(--line); padding: 26px; border-radius: 2px; background: var(--surface); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.loc-block dl { margin: 14px 0 0; }
.loc-block dt { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
.loc-block dd { margin: 2px 0 0; font-weight: 500; }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: 2px; margin-top: 30px; filter: grayscale(0.15); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 44px 0 40px;
  margin-top: 40px;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer.site p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--teal); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-portrait { aspect-ratio: 16/10; order: -1; }
  .cred-row { grid-template-columns: 1fr; gap: 4px; }
  .expertise-list { grid-template-columns: 1fr; }
  .expertise-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .loc-grid { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; gap: 14px; }
}

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