/* Ink & Paper: matte charcoal, warm ivory, one fine muted brass rule. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --charcoal: #201f1d;
  --charcoal-line: #3a3834;
  --ivory: #f5efe2;
  --ivory-deep: #ece4d2;
  --ink: #201f1d;
  --ink-muted: #5a554a;
  --on-dark: #f1e9d6;
  --on-dark-muted: #bdb5a2;
  --brass: #a98a4e;          /* the rule */
  --brass-on-dark: #d3b97f;  /* text and focus on charcoal */
  --brass-on-ivory: #6b4f1c; /* text and focus on ivory */
  --hair: #d8cfba;

  --serif: "Newsreader", "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --wide: 70rem;
  --read: 38rem;
  --body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--brass-on-ivory);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--brass-on-ivory);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--brass-on-dark); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  background: var(--ivory);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 10;
  font-size: 1rem;
}
.skip:focus { transform: translateY(0.5rem); }

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.on-dark .eyebrow { color: var(--on-dark-muted); }

.rule {
  display: block;
  width: clamp(3.5rem, 10vw, 6rem);
  height: 1px;
  background: var(--brass);
  margin: 1.75rem 0;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 0;
}
.wordmark {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
}
.wordmark:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); }

/* ---------- Home hero ---------- */
.on-dark {
  background: var(--charcoal);
  color: var(--on-dark);
}
.hero-top { padding-bottom: 0.5rem; }
.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(min(100svh, 54rem) - 5.5rem);
  padding: 4rem 0 clamp(3rem, 8vw, 5.5rem);
}
.hero-body .wrap { width: 100%; }
.hero-body h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 8.4vw + 0.4rem, 5.75rem);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--on-dark);
}
.hero-body .affiliation {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-on-dark);
}
.hero-body .intro p {
  max-width: 36rem;
  margin: 0 0 1.1rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.55;
  color: var(--on-dark);
}
.hero-body .intro p:last-child { margin-bottom: 0; color: var(--on-dark-muted); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Sections ---------- */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.band { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 6rem); }

h1, h2, h3, h4 { font-weight: 450; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }

.ways {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
.way {
  padding: 2rem 0;
  border-top: 1px solid var(--hair);
}
.way:first-child { border-top: 0; padding-top: 0; }
.way .eyebrow { margin-bottom: 0.9rem; }
.way h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.way p { margin: 0 0 1.25rem; }
.way .cta { font-size: 1rem; }

@media (min-width: 62rem) {
  .ways { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
  .way { border-top: 1px solid var(--hair); padding: 2rem 0 0; }
  .way:first-child { border-top: 1px solid var(--hair); padding-top: 2rem; }
}

.invite {
  border-top: 1px solid var(--hair);
  padding-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.invite h2 { margin: 0; font-size: 1.5rem; }
.invite p { margin: 0; }

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(3rem, 8vw, 5.5rem); }
.page-head h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.25rem, 5.5vw + 0.6rem, 4.25rem);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.page-head .lede {
  max-width: var(--read);
  margin: 0;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4rem);
  color: var(--ink-muted);
}
.reading { max-width: var(--read); }
.reading p { margin: 0 0 1.1rem; }

.section { padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--hair); margin-top: clamp(2.5rem, 6vw, 4rem); }
.section h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); max-width: 24ch; }
.section h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }

.jump {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: q;
  max-width: var(--read);
}
.jump li { counter-increment: q; padding: 0.3rem 0; }
.jump li::before { content: counter(q) "."; display: inline-block; width: 1.75rem; color: var(--ink-muted); }

/* Research */
.why { max-width: var(--read); }
.group {
  margin: 2.25rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.papers { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.paper { padding: 1.5rem 0; border-top: 1px solid var(--hair); }
.paper:first-child { border-top: 0; }
.tag {
  display: inline-block;
  margin: 0 0.6rem 0.4rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.tag-progress { color: var(--ink-muted); font-weight: 500; }
.paper .year { font-size: 0.9375rem; color: var(--ink-muted); }
.paper h4 { margin: 0 0 0.35rem; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); line-height: 1.28; font-weight: 500; }
.paper .cite { margin: 0 0 0.75rem; font-size: 0.9875rem; color: var(--ink-muted); line-height: 1.5; }
.paper .cite strong { color: var(--ink); font-weight: 600; }
.paper .finding { margin: 0 0 0.6rem; }
.paper .recognition { margin: 0 0 0.6rem; font-style: italic; font-size: 0.9875rem; color: var(--ink-muted); }
.paper .links { margin: 0; font-size: 0.9875rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.paper.progress h4 { font-weight: 450; }
.note { font-size: 0.9875rem; color: var(--ink-muted); max-width: var(--read); }

/* Teaching */
.feature { max-width: 46rem; }
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; max-width: 46rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 0 1.25rem 3.25rem;
  border-top: 1px solid var(--hair);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brass-on-ivory);
  font-weight: 400;
}
.steps .step-title { margin: 0 0 0.35rem; font-size: 1.25rem; font-weight: 500; }
.steps p { margin: 0; }
.pull { margin: 0; padding: 0; list-style: none; max-width: var(--read); }
.pull li { padding: 0.9rem 0 0.9rem 1.25rem; border-left: 1px solid var(--brass); font-size: 1.1875rem; font-style: italic; margin-bottom: 0.6rem; }
.courses { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.courses li { display: grid; gap: 0.1rem 2rem; padding: 0.9rem 0; border-top: 1px solid var(--hair); }
.courses .t { font-size: 1.15rem; }
.courses .m { color: var(--ink-muted); font-size: 0.9875rem; }
@media (min-width: 40rem) {
  .courses li { grid-template-columns: 1fr auto; align-items: baseline; }
  .courses .m { text-align: right; }
}
.plain { margin: 0; padding-left: 1.2rem; max-width: var(--read); }
.plain li { margin-bottom: 0.6rem; }

.course-table { width: 100%; max-width: 54rem; border-collapse: collapse; }
.course-table th, .course-table td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-top: 1px solid var(--hair); vertical-align: baseline; font-weight: 400; }
.course-table thead th { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); border-top: 0; padding-bottom: 0.5rem; }
.course-table tbody th { font-size: 1.1rem; font-weight: 450; }
.course-table td { color: var(--ink-muted); font-size: 0.9875rem; }
@media (max-width: 40rem) {
  .course-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .course-table, .course-table tbody, .course-table tr, .course-table th, .course-table td { display: block; }
  .course-table tr { padding: 0.9rem 0; border-top: 1px solid var(--hair); }
  .course-table th, .course-table td { border: 0; padding: 0.05rem 0; }
}
.talks { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 54rem; }
.talks li { padding: 0.8rem 0; border-top: 1px solid var(--hair); display: grid; gap: 0.1rem 2rem; }
.talks .who { font-size: 1.1rem; }
.talks .what { color: var(--ink-muted); font-size: 0.9875rem; }
@media (min-width: 48rem) { .talks li { grid-template-columns: 16rem 1fr; } }

/* Speaking */
.topic { padding-top: clamp(2.5rem, 6vw, 4rem); margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--hair); }
.topic:first-of-type { border-top: 0; margin-top: 2rem; }
.topic h2 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.topic .summary { font-size: 1.25rem; color: var(--ink-muted); max-width: var(--read); margin: 0 0 1.5rem; }
.facets { margin: 0; max-width: 46rem; }
.facets dt { margin: 1.4rem 0 0.35rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.facets dd { margin: 0; }
.facets ul { margin: 0; padding-left: 1.2rem; }
.facets li { margin-bottom: 0.4rem; }

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--charcoal);
  color: var(--on-dark);
  text-decoration: none;
  font-size: 1.0625rem;
  border: 1px solid var(--charcoal);
}
.button:hover { background: #34322e; text-decoration: none; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--ivory-deep); }

/* About */
.about-grid { display: grid; gap: 2rem; }
.portrait { width: min(100%, 22rem); height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 56rem) {
  .about-grid.has-portrait { grid-template-columns: 22rem 1fr; gap: 4rem; align-items: start; }
}
.bio { max-width: var(--read); margin-bottom: 2.5rem; }
.bio h3 { margin: 0 0 0.75rem; font-size: 1.25rem; }
.bio h3 small { font-size: 0.9375rem; font-weight: 400; color: var(--ink-muted); margin-left: 0.4rem; }
.bio-text { border-left: 1px solid var(--brass); padding-left: 1.25rem; }
.bio-text p { margin: 0 0 1rem; }
.bio-text p:last-child { margin-bottom: 0; }
.copy { margin-top: 1rem; font: inherit; font-size: 1rem; padding: 0.55rem 1.1rem; background: transparent; color: var(--ink); border: 1px solid var(--ink); cursor: pointer; }
.copy:hover { background: var(--ivory-deep); }
.copy-status { min-height: 1.5em; margin: 0.5rem 0 0; font-size: 0.9875rem; color: var(--ink-muted); }
address { font-style: normal; margin: 0 0 1.25rem; }
.contact-cols { display: grid; gap: 1.5rem 3rem; max-width: 46rem; }
@media (min-width: 40rem) { .contact-cols { grid-template-columns: 1fr 1fr; } }
.contact-cols h3 { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  background: var(--charcoal);
  color: var(--on-dark);
}
.site-footer .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2.5rem;
  display: grid;
  gap: 2rem;
}
.site-footer a { color: var(--on-dark); text-decoration-color: var(--brass); }
.site-footer .wordmark { font-size: 1.25rem; }
.site-footer p { margin: 0.25rem 0 0; color: var(--on-dark-muted); font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.75rem; }
.site-footer .small { font-size: 0.875rem; }
@media (min-width: 48rem) {
  .site-footer .inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Print ---------- */
@media print {
  .site-nav, .copy, .skip, .site-footer ul, .copy-status { display: none !important; }
  .on-dark { background: #fff; color: #000; }
  body { background: #fff; font-size: 11pt; }
  .hero-body { min-height: 0; }
  .hero-body h1, .hero-body .intro p { color: #000; }
  a { color: #000; }
}

.topic-link { margin: 1.25rem 0 0; font-size: 1.0625rem; }
