/* ------------------------------------------------------------------
   Jillian Chown — site styles
   To change the look site-wide, edit the variables in :root below.
   ------------------------------------------------------------------ */

:root {
  --bg:        #ffffff;   /* page background */
  --surface:   #fafafa;
  --text:      #222222;
  --muted:     #6b6b6b;
  --rule:      #e6e6e6;
  --accent:    #4e2a84;   /* Northwestern purple */
  --accent-soft: #f1ecf8;

  /* One font throughout, like carlosinoue.com. To bring back serif headings,
     set --serif to: "Newsreader", Georgia, serif */
  --sans:  "Source Sans 3", -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: var(--sans);

  --max: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

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

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 18px;
}
.brand {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
nav a {
  color: var(--text);
  font-size: 1.05rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--accent); text-decoration: none; }
nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: 2.2rem; margin: 0 0 0.4em; font-weight: 400; }
h2 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 2.6em 0 1em;
  padding-bottom: 0.7em;
  border-bottom: 1px solid var(--rule);
}
.hero-text h2:first-child { margin-top: 0; }
h3 { font-size: 1.12rem; margin: 0 0 0.25em; }

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.6em;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 44em; }

main { padding: 56px 0 80px; }

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

.hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}
.hero .headshot {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.hero-side h1 { margin: 28px 0 14px; }
.hero-side .role { margin: 0 0 6px; font-weight: 600; line-height: 1.4; }
.hero-side .affil { margin: 0 0 18px; color: var(--muted); line-height: 1.45; }

.contacts { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.contacts li { padding: 7px 0; border-top: 1px solid var(--rule); }
.contacts li:last-child { border-bottom: 1px solid var(--rule); }

.hero-text h1 { margin-top: -6px; }
.hero-text p { max-width: 38em; }

.interests { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.interests li {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
}
.card .venue { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin: 8px 0 14px; }
.card .more { margin-top: auto; font-size: 0.9rem; }

/* ---------- Page header (inner pages) ---------- */

.page-head { margin-bottom: 8px; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.95rem; margin-top: 18px; }
.note { font-size: 0.88rem; color: var(--muted); }

/* ---------- Papers ---------- */

.paper {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.paper:last-child { border-bottom: 0; }
.paper h3 a { color: var(--text); }
.paper h3 a:hover { color: var(--accent); }
.authors { margin: 0; color: var(--muted); font-size: 0.95rem; }
.authors strong { color: var(--text); font-weight: 600; }
.venue-line { margin: 2px 0 0; font-size: 0.95rem; }
.venue-line em { font-style: italic; }
.status { color: var(--accent); font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.badges li {
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: var(--surface);
}

details { margin-top: 10px; }
summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent);
  list-style: none;
  display: inline-block;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+ "; }
details[open] summary::before { content: "\2212  "; }
details p {
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 10px 0 0;
  max-width: 46em;
}

/* ---------- Simple lists (teaching, media) ---------- */

.item { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.item:last-child { border-bottom: 0; }
.item h3 { font-size: 1.1rem; }
.item .meta { margin: 0; color: var(--muted); font-size: 0.95rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.97rem; }
.plain li span { color: var(--muted); }

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

footer { border-top: 1px solid var(--rule); padding: 24px 0 40px; }
footer p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  main { padding: 36px 0 56px; }
  h1 { font-size: 2.1rem; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero .headshot { max-width: 220px; }
  .highlights { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
