/* ================================================================
   SHARED STYLES — assets/css/style.css
   All colors, fonts, and layout for every page live here.
   The easiest knobs are the "design tokens" just below.
   ================================================================ */

/* ============ Design tokens — change fonts/colors here ============ */
:root {
  --font-prose: "Source Serif 4", Georgia, serif;   /* headings + body text */
  --font-ui:    "Inter", -apple-system, "Segoe UI", sans-serif; /* nav, labels, meta */
  --ink:        #1d1f23;
  --muted:      #5c6068;
  --faint:      #8a8f98;
  --hairline:   #e6e4df;
  --paper:      #ffffff;
  --accent:     #9b1c14;   /* deep cardinal — link + accent color */
  --accent-dk:  #6f120d;
  --sidebar-w:  256px;
  --content-w:  720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-prose);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ============ Masthead ============ */
.masthead {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--hairline);
}
.masthead-inner {
  max-width: calc(var(--sidebar-w) + var(--content-w) + 6rem);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 3.4rem; gap: 1rem;
}
.site-title {
  font-family: var(--font-prose);
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
  letter-spacing: .01em; white-space: nowrap;
}
.site-title:hover { text-decoration: none; color: var(--accent); }
nav.site-nav { display: flex; gap: .25rem; overflow-x: auto; }
nav.site-nav a {
  font-family: var(--font-ui);
  font-size: .82rem; font-weight: 500;
  color: var(--muted);
  padding: .45rem .6rem; border-radius: 4px;
  white-space: nowrap;
}
nav.site-nav a:hover { color: var(--ink); text-decoration: none; background: #f4f3f0; }
nav.site-nav a.active { color: var(--accent); }

/* ============ Layout ============ */
.page {
  max-width: calc(var(--sidebar-w) + var(--content-w) + 6rem);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

/* ============ Sidebar ============ */
.sidebar { position: sticky; top: 5rem; font-family: var(--font-ui); }
.portrait {
  width: 176px; height: 176px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 1px solid var(--hairline);
}
.monogram {
  width: 176px; height: 176px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: #f4f1ec; border: 1px solid var(--hairline);
  font-family: var(--font-prose); font-weight: 700;
  font-size: 3.4rem; color: var(--accent);
}
.sidebar h1 {
  font-family: var(--font-prose);
  font-size: 1.5rem; font-weight: 700;
  margin: 1.1rem 0 .2rem; line-height: 1.2;
}
.sidebar .role { font-size: .86rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.1rem; }
.sidebar .role .chairline { color: var(--faint); font-size: .8rem; display: block; margin-top: .25rem; }
.sidebar .role .school { display: block; margin-top: .55rem; }
.contact { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.contact li { display: flex; gap: .55rem; align-items: baseline; padding: .22rem 0; color: var(--muted); }
.contact .ico { width: 1rem; flex: none; text-align: center; color: var(--faint); font-size: .8rem; }
.contact a { color: var(--muted); }
.contact a:hover { color: var(--accent); }

/* ============ Content ============ */
main { max-width: var(--content-w); }
section { padding-top: .5rem; margin-bottom: 3.2rem; }
.eyebrow {
  font-family: var(--font-ui);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .4rem;
}
section > h2 {
  font-size: 1.65rem; font-weight: 700;
  margin: 0 0 1rem; line-height: 1.25;
}
h3 {
  font-size: 1.08rem; font-weight: 600;
  margin: 2rem 0 .75rem;
}
section p { margin: 0 0 1rem; }

/* Publication list */
ol.pubs, ul.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li {
  padding: .55rem 0 .55rem 1.4rem;
  text-indent: -1.4rem;              /* hanging indent, reference-list style */
  font-size: .95rem; line-height: 1.55;
  border-bottom: 1px solid #f1efeb;
}
.pubs li:last-child { border-bottom: none; }
.pubs .yr { color: var(--faint); }
.pubs em { font-style: italic; }
.pubs a.title { color: var(--ink); font-weight: 600; }
.pubs a.title:hover { color: var(--accent); }
.pubs a.co { color: var(--muted); }
.pubs a.co:hover { color: var(--accent); }
.assets { text-indent: 0; display: inline; white-space: nowrap; }
.assets a {
  font-family: var(--font-ui); font-size: .7rem; font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: .08rem .5rem; margin-left: .3rem;
  text-decoration: none;
}
.assets a:hover { color: var(--accent); border-color: var(--accent); background: #fdf7f6; }

/* Teaching + service lists */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain > li { padding: .45rem 0; border-bottom: 1px solid #f1efeb; font-size: .97rem; }
ul.plain > li:last-child { border-bottom: none; }
.meta { font-family: var(--font-ui); font-size: .78rem; color: var(--faint); }
.note {
  background: #faf8f4; border: 1px solid var(--hairline); border-radius: 6px;
  padding: .8rem 1rem; font-size: .92rem; margin-top: 1.2rem;
}
/* Button-style link (e.g., TLC materials download) */
.btn {
  display: inline-block;
  font-family: var(--font-ui); font-size: .88rem; font-weight: 600;
  color: #fff; background: var(--accent);
  padding: .55rem 1rem; border-radius: 6px;
  margin: .3rem 0 .2rem;
}
.btn:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }

/* Content images (e.g., TLC figures) */
.figure {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--hairline); border-radius: 6px;
  margin: .75rem 0 1.25rem;
}

/* Small highlighted note attached to a single course in a list */
.coursenote {
  background: #faf8f4; border: 1px solid var(--hairline); border-radius: 6px;
  padding: .55rem .8rem; font-size: .88rem; line-height: 1.5;
  margin-top: .5rem;
}

footer {
  border-top: 1px solid var(--hairline);
  font-family: var(--font-ui); font-size: .78rem; color: var(--faint);
  padding: 1.5rem 1.25rem 2.5rem; text-align: center;
}

/* ============ Mobile ============ */
@media (max-width: 780px) {
  .page { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.75rem; }
  .sidebar { position: static; display: grid; grid-template-columns: auto 1fr; gap: 0 1.25rem; align-items: center; }
  .portrait, .monogram { width: 108px; height: 108px; }
  .monogram { font-size: 2.1rem; }
  .sidebar h1 { margin-top: 0; font-size: 1.35rem; }
  .sidebar .id { grid-column: 2; }
  .contact { grid-column: 1 / -1; margin-top: .75rem; columns: 1; }
}
