/* Readability and layout refinements for the academic site. */
:root {
  --ink: #18232b;
  --ink-mid: #43535d;
  --ink-soft: #626f76;
  --ink-ghost: #b9c5c8;
  --paper: #fbfcfa;
  --paper-warm: #f0f4f2;
  --blue: #20516b;
  --blue-light: #edf4f3;
  --blue-mid: #9ab6b4;
  --rule: rgba(29, 52, 60, .16);
  --max: 940px;
}
body { line-height: 1.7; }
nav { padding: 20px max(32px, calc((100vw - 940px) / 2)); background: rgba(251,252,250,.97); }
.nav-name { font-size: 1.35rem; white-space: nowrap; }
.nav-links { gap: 1.8rem; }
.nav-links a { font-size: .9rem; letter-spacing: .01em; }
.nav-links a.active { color: var(--blue); border-bottom: 2px solid #558d85; padding-bottom: 6px; }
a:focus-visible, button:focus-visible { outline: 3px solid #397e84; outline-offset: 3px; }
.page { padding-bottom: 5rem; }
footer .copy, footer .social a { font-size: .8rem; color: var(--ink-mid); }
.section-label { font-size: .76rem; letter-spacing: .12em; color: var(--blue); font-weight: 500; }
.pill, .outlet-pill { font-size: .83rem; padding: .4rem .85rem; border: 1px solid #b7c8c7; }
.pill.accent { background: #244f5b; border-color: #244f5b; color: #fff; }
.pill.accent:hover { background: #173d48; color: #fff; }
.paper-entry { padding: 1.35rem 0; }
.paper-title { font-size: 1.25rem; line-height: 1.35; padding-right: 3.5rem; }
.paper-meta { font-size: .88rem; line-height: 1.55; }
.paper-year { font-size: .82rem; color: var(--ink-mid); }
.paper-link { font-size: .8rem; padding: .3rem .7rem; border-radius: 4px; }
.media-card { border-radius: 6px; padding: 1.35rem 1.5rem; background: #fff; }
.media-card .card-meta { font-size: .82rem; }
.media-card .card-title { font-size: 1.22rem; line-height: 1.35; }
.media-card .card-desc { font-size: .9rem; }
.toggle-btn { font-size: .85rem; }
@media (max-width: 640px) {
  nav { padding: 15px 20px; flex-wrap: wrap; gap: 8px 20px; }
  .nav-name { font-size: 1.2rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; }
  .nav-links a { font-size: .82rem; }
  .page { padding-left: 20px; padding-right: 20px; }
  footer .footer-inner { align-items: flex-start; gap: 12px; flex-direction: column; }
}

/* Larger reading text on detail pages. */
.page-header h1 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.2; }
.body-text, .supervision-text, .abstract-text, .moment-desc { font-size: 1rem; }
.course-name { font-size: 1rem; }
.course-level, .podcast-meta { font-size: .85rem; }
.moment { border-color: var(--rule); background: #f1f6f4; border-radius: 6px; padding: 1.6rem; }
.moment-title { font-size: 1.4rem; line-height: 1.3; }
.moment-badge { font-size: .76rem; color: var(--blue); }
.moment-date { font-size: .82rem; color: var(--ink-mid); }
.podcast-title { font-size: 1.2rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.hero-social { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
.hero-social a { color: var(--blue); font-size: .85rem; text-decoration: underline; text-decoration-color: #a6c0bb; text-underline-offset: .2em; }
.hero-social a:hover { color: var(--ink); text-decoration-color: currentColor; }
