/* ===========================================================
   Minimal academic site — Spurs navy/white, single light theme.
   Inspired by clean, text-forward personal sites: big unboxed
   photo, quiet type, plain-text links instead of pills/cards.
   =========================================================== */

:root {
  --bg: #ffffff;
  --surface: #f2f4f9;
  --text: #10193a;
  --text-muted: #5b6480;
  --border: #dfe3ee;
  --accent: #132257;          /* Spurs navy */
  --max-width: 1040px;
  --font-display: "ogg-display", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "neue-haas-grotesk-display", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

h1, h2, .brand { font-family: var(--font-display); font-weight: 400; }

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

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.2rem;
  color: var(--text) !important;
  text-decoration: none !important;
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--accent) !important;
}

/* ---------- Home ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  padding: 56px 0 48px;
  align-items: start;
}
.home-photo img { max-width: 440px; }
.home-photo img {
  width: 100%;
  display: block;
  border-radius: 4px;
}
.home-main h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.home-main h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}
.home-aside {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.home-bio p {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 20px;
}
.currently-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
}
.currently-list li {
  padding: 6px 0;
  border-top: 1px dotted var(--border);
}
.currently-list li:first-child { border-top: none; }
.home-links {
  margin-top: 34px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Glance card (Home sidebar: quick facts + actions) ---------- */
.glance-card {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 22px 24px;
}
.glance-card .glance-role { font-weight: 600; font-size: 0.98rem; margin: 0 0 2px; }
.glance-card .glance-inst { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 18px; }
.glance-card h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 8px;
}
.glance-card .currently-list { margin: 0 0 20px; }
.glance-card .currently-list li { font-size: 0.9rem; }

.glance-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.glance-pills a {
  font-size: 0.82rem;
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--text) !important;
  text-decoration: none !important;
  background: var(--bg);
}
.glance-pills a:hover { border-color: var(--accent); color: var(--accent) !important; }
.glance-pills a.emph {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff !important;
}
.glance-pills a.emph:hover { opacity: 0.88; color: #ffffff !important; }

@media (max-width: 700px) {
  .home-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .home-photo img { max-width: 280px; }
}

/* ---------- Works / Publications / Contact ---------- */
.page-hero { padding: 48px 0 8px; }
.page-hero h1 { font-size: 2rem; margin: 0; }

h2 { font-size: 1.3rem; margin: 40px 0 4px; }
h2:first-of-type { margin-top: 32px; }

.pub-list { padding: 8px 0 40px; }
.pub-entry { padding: 18px 0; border-top: 1px dotted var(--border); }
.pub-entry:first-child { border-top: none; }
.pub-title { font-weight: 600; margin: 0 0 4px; }
.pub-authors { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 4px; }
.pub-venue { font-size: 0.9rem; margin: 0 0 6px; }
.pub-links { font-size: 0.85rem; margin: 0; }

/* ---------- For Students ---------- */
.section-list { padding: 8px 0 40px; }
.section-entry { padding: 26px 0; border-top: 1px dotted var(--border); }
.section-entry:first-child { border-top: none; }
.section-entry h2 { margin: 0 0 10px; }
.section-entry p { font-size: 1rem; line-height: 1.75; color: var(--text); margin: 0 0 14px; }

/* ---------- Reflections ---------- */
.reflection-list { padding: 8px 0 48px; }
.reflection-entry { padding: 28px 0; border-top: 1px dotted var(--border); }
.reflection-entry:first-child { border-top: none; }
.reflection-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.reflection-entry h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin: 0 0 10px; }
.reflection-entry p { font-size: 1rem; line-height: 1.75; color: var(--text); margin: 0 0 14px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  padding: 0 24px 48px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
