/* ============================================================
   Academic site stylesheet.
   Palette and type are set once here as CSS variables — change
   the values in :root to re-theme the whole site.
   ============================================================ */

:root {
  --color-bg: #fbfaf7;
  --color-bg-alt: #f2efe9;
  --color-text: #26241f;
  --color-text-muted: #6b675c;
  --color-accent: #7a3b2e;      /* brick/maroon accent */
  --color-accent-light: #b5735f;
  --color-border: #e2ddd2;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

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

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

/* ---------- Header / nav ---------- */

header.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 20px;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; }

.site-tagline {
  margin: 4px 0 10px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom-color: var(--color-accent-light);
}

/* ---------- Main content ---------- */

main {
  padding: 44px 0 80px;
  min-height: 60vh;
}

main .wrap > h1:first-child {
  margin-top: 0;
}

.lede {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

/* ---------- Home / bio ---------- */

.hero-banner {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 8px;
  margin-bottom: 36px;
  display: block;
}

@media (max-width: 560px) {
  .hero-banner { height: 200px; }
}

.bio-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.bio-body p { margin: 0 0 18px; }

.bio-inline-photo {
  float: right;
  width: 260px;
  border-radius: 8px;
  margin: 4px 0 16px 24px;
}

.bio-inline-photo + p::after,
.bio-body::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 640px) {
  .bio-inline-photo {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
  }
}

.home-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.home-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.section-link {
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Cards (blog list, speaking list) ---------- */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--color-accent-light); }

.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.card h3 a { color: var(--color-text); }
.card h3 a:hover { color: var(--color-accent); }

.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.card-meta .dot { margin: 0 6px; }

.card p.excerpt {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 0.88rem;
}

.card-links a::before {
  content: "↗ ";
  opacity: 0.6;
}

.cta-line {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  font-size: 0.96rem;
}

.tag {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 6px;
}

/* ---------- Blog post page ---------- */

.post-header { margin-bottom: 8px; }
.post-title { margin-bottom: 6px; font-size: 2rem; }
.post-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.post-body h2 { margin-top: 36px; font-size: 1.4rem; }
.post-body h3 { margin-top: 28px; font-size: 1.15rem; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--color-accent-light);
  color: var(--color-text-muted);
  font-style: italic;
}
.post-body code {
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-body img { max-width: 100%; border-radius: 6px; }
.post-body a { text-decoration: underline; }

.back-link { display: inline-block; margin-top: 40px; }

/* ---------- CV page ---------- */

.cv-actions { margin: 20px 0 32px; }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { background: var(--color-accent-light); text-decoration: none; }

.cv-embed {
  width: 100%;
  height: 900px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-top: 12px;
}

/* ---------- Contact page ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 10px;
}
.contact-list .label {
  color: var(--color-text-muted);
  min-width: 90px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0 40px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* ---------- Misc ---------- */

.empty-state {
  color: var(--color-text-muted);
  font-style: italic;
  padding: 20px 0;
}

