/* ===========================
   Add-on styles (safe, additive)
   Paste BELOW your existing rules
   =========================== */

/* --- Color tokens (easy theming) --- */
:root {
  --brand: #1f2937;          /* slate-800 */
  --brand-ink: #0f172a;      /* slate-900 */
  --brand-accent: #0ea5e9;   /* sky-500 */
  --brand-accent-2: #22c55e; /* green-500 */
  --muted: #6b7280;          /* gray-500 */
  --border: #e5e7eb;         /* gray-200 */
  --bg-soft: #f8fafc;        /* slate-50 */
}

/* --- Base typography polish --- */
.page__content {
  font-size: 1.00rem;
  line-height: 1.75;
  letter-spacing: 0.1px;
}
.page__content p { margin: 0 0 1.1rem; }
.page__content h1, .page__title { color: var(--brand-ink); }
.page__content h2 { margin-top: 2rem; color: var(--brand); }
.page__content h3 { margin-top: 1.25rem; color: var(--brand); }
.page__content em { font-style: italic; }

/* --- Links --- */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.page__content a { color: var(--brand-accent); }
.page__content a:visited { color: var(--brand); }

/* --- Subtle section dividers --- */
.page__content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
  clear: both; /* keeps your earlier intent */
}

/* --- Call-to-action buttons (uses MM classes) --- */
.btn, .btn--primary {
  background: var(--brand);
  border: 0;
  color: #fff !important;
  border-radius: 10px;
  padding: .55rem .9rem;
}
.btn--primary:hover { background: #111827; } /* darker slate */
.btn--inverse { background: var(--brand-accent); }
.btn--inverse:hover { filter: brightness(.95); }

/* --- “Hero” header polish (works with layout: splash) --- */
.page__hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page__hero .page__lead {
  max-width: 48rem;
  color: var(--muted);
}

/* --- Card grid for research/teaching lists --- */
.grid__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.archive__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.archive__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.archive__item .archive__item-teaser img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* --- Meta text under titles --- */
.page__meta, .archive__item .page__meta {
  color: var(--muted);
  font-size: .92rem;
}

/* --- Tables (for CV/teaching) --- */
.page__content table {
  border-collapse: collapse;
  width: 100%;
}
.page__content table th,
.page__content table td {
  border: 1px solid var(--border);
  padding: .6rem .7rem;
}
.page__content table th {
  background: var(--bg-soft);
  text-align: left;
}

/* --- Code blocks / inline code --- */
.page__content code { 
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .1rem .35rem;
}

/* --- Nav + footer subtlety (keeps theme structure) --- */
.masthead, .greedy-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.page__footer {
  border-top: 1px solid var(--border);
  background: #fff;
}
.page__footer-follow .social-icons a:hover {
  color: var(--brand-accent);
}

/* --- Responsive tweaks for your about block --- */
.about-wrap { margin-top: .25rem; }
.about-photo img {
  box-shadow: 0 8px 24px rgba(2,6,23,.08);
}

/* --- Image defaults --- */
.page__content img {
  border-radius: 10px;
}

/* --- Tag pills (optional: use <span class="tag">Policy</span>) --- */
.tag {
  display: inline-block;
  font-size: .8rem;
  padding: .2rem .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  margin-right: .35rem;
  margin-bottom: .35rem;
}

/* --- Compact lists for CV bullets --- */
.page__content ul.compact > li { margin-bottom: .35rem; }

/* --- Iframe wrapper for CV embed --- */
.embed-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}


/* ====== Font (optional, but nice) ====== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Fraunces:opsz,wght@9..144,700&display=swap');

:root{
  --brand: #0ea5e9;      /* accent */
  --ink: #0f172a;        /* slate-900 */
  --muted: #64748b;      /* slate-500 */
  --border: #e5e7eb;
  --bg-soft: #f8fafc;
}

/* Base typography polish */
body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.page__content { font-size: 1.06rem; line-height: 1.75; }
.page__content h2 { margin-top: 2rem; color: #1f2937; }

/* Big, stylish hero title/subtitle */
.page__hero { border-bottom: 1px solid var(--border); }
.page__hero .page__title {
  font-family: Fraunces, Inter, serif;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: clamp(2.6rem, 6vw, 4.6rem); /* BIG name */
  line-height: 1.05;
  margin-bottom: .35rem;
}
.page__hero .page__lead {
  color: #e2e8f0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 50rem;
}

/* Buttons */
.btn, .btn--primary {
  background: var(--ink);
  color: #fff !important;
  border-radius: 12px;
  padding: .6rem .95rem;
  border: 0;
}
.btn--primary { background: var(--brand); }
.btn:hover { filter: brightness(.95); }

/* Wider pages when `classes: wide` is set */
:root { --content-max: 68rem; --content-narrow: 58rem; }
.page { max-width: var(--content-narrow); margin: 0 auto; padding: 0 1.25rem; }
.wide .page, .page.wide { max-width: var(--content-max); }
@media (min-width: 1280px){ .page { max-width: var(--content-max); } }

/* Grid cards (matches your other pages) */
.grid__wrapper{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:1.2rem;
}
.archive__item{
  border:1px solid var(--border);
  border-radius:14px; background:#fff; padding:1rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.archive__item:hover{ transform: translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.06); }
.page__meta{ color: var(--muted); font-size: .92rem; }

/* Links */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.page__content a { color: var(--brand); }

/* Footer/nav subtlety */
.masthead, .greedy-nav { background:#fff; border-bottom:1px solid var(--border); }
.page__footer { border-top:1px solid var(--border); }


/* Hero title (Home) */
.page__hero .page__title {
  font-family: 'Fraunces', Inter, serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.00;
  letter-spacing: -0.5px;
  color: #f8fafc;
}

.page__hero .page__lead {
  color: #e2e8f0;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
}

/* Center hero content */
.page__hero {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Accent button tweaks (if you use them) */
.btn, .btn--primary {
  background: #0ea5e9;
  border: none;
  border-radius: 12px;
  color: #fff !important;
  padding: .6rem 1rem;
}
.btn:hover { filter: brightness(.9); }


.no-blue-titles .archive__item-title a {
  color: inherit;
  text-decoration: none;
}

.no-blue-titles .archive__item-title a:hover {
  color: inherit;
  text-decoration: none;
}


/* --- Float profile image left without breaking Markdown --- */
.about-float {
  overflow: hidden; /* ensures layout clears correctly */
  margin-bottom: 2rem;
}

img.profile-float {
  float: left;
  width: 220px;
  max-width: 35%;
  border-radius: 15px;
  margin: 0 1.5rem 1rem 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}


/* Responsive: stack image on top on small screens */
@media (max-width: 700px) {
  img.profile-float {
    float: none;
    display: block;
    margin: 0 auto 1rem auto;
    width: 200px;
    max-width: 70%;
  }
}



