/* ================================================================
   ICS FACULTY — faculty.icscanada.edu
   One stylesheet for every page.

   Colour, type and the footer are inherited from the ICS design
   system (info/Design-References/ics-site/css/styles.css).
   The masthead alone is black / white / brand red.
   ================================================================ */

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

:root {
  /* Crimson core — ICS brand red */
  --wine:        #9B0D24;
  --wine-deep:   #7A0A1C;
  --wine-mid:    #BE0B28;
  --wine-soft:   #D44B5E;

  /* Burnt Copper accent */
  --accent:       #A85A32;
  --accent-light: #C87A52;
  --accent-muted: #8E4A28;
  --accent-pale:  #EEDACA;
  --accent-deep:  #7A4020;

  /* Warm Umber — tertiary */
  --teal:         #7A5C3A;
  --teal-light:   #A07A4E;
  --teal-muted:   #6B4E30;
  --teal-pale:    #E6D9C6;
  --teal-deep:    #5A4228;

  /* Neutrals */
  --cream:       #FDFBF7;
  --cream-warm:  #F9F5ED;
  --parchment:   #F0E9DD;
  --text-dark:   #2E1318;
  --text-body:   #3A3330;
  --text-muted:  #6E6862;
  --text-on-dark:#E8C2C2;
  --border-light:rgba(155,13,36,0.08);

  /* Masthead only */
  --ink:        #000000;
  --brand-red:  #D31145;
  --paper:      #FFFFFF;

  --rule: rgba(155,13,36,0.14);

  /* The masthead uses the education.icscanada.edu stack, not the page's, so it
     renders identically to the sibling property on any given device. */
  --nav-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans:  'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  font-family: var(--sans);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--wine); color: #fff;
  padding: 0.85rem 1.4rem; z-index: 1000;
  font-size: 0.85rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

:focus-visible {
  outline: 2px solid var(--wine-mid);
  outline-offset: 3px;
}
.ics-header :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

/* ================================================================
   MASTHEAD
   Geometry copied from education.icscanada.edu; recoloured to the
   ICS logo palette — black ground, white type, red accent.
   ================================================================ */
.ics-header {
  background: var(--ink);
  width: 100%;
  position: relative;
  z-index: 300;
  -webkit-font-smoothing: antialiased;
}

.ics-header__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100px;
}

.ics-header__logo-link { display: flex; align-items: center; flex-shrink: 0; }
.ics-header__logo-img  { height: 53px; width: auto; display: block; }

.ics-nav { display: flex; align-items: center; gap: 0; list-style: none; }
.ics-nav__item { position: relative; }

.ics-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 14px 12px;
  font-family: var(--nav-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease;
}
.ics-nav__link:hover {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}

.ics-nav__item--active .ics-nav__link {
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}

.ics-nav__caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid rgba(255,255,255,0.55);
  margin-left: 2px;
  margin-top: 1px;
  transition: border-top-color 0.2s ease;
}
.ics-nav__item:hover .ics-nav__caret,
.ics-nav__link[aria-expanded="true"] .ics-nav__caret {
  border-top-color: var(--brand-red);
}

.ics-dropdown {
  position: absolute;
  top: 100%; right: 0;
  min-width: 240px;
  background: var(--ink);
  border-top: 2px solid var(--brand-red);
  padding: 6px 0 10px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.ics-nav__item:hover .ics-dropdown,
.ics-nav__item:focus-within .ics-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.ics-dropdown__link {
  display: block;
  padding: 5px 20px;
  font-family: var(--nav-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: var(--paper);
}
.ics-dropdown__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.ics-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 8px;
  background: none; border: none; cursor: pointer;
}
.ics-burger span {
  display: block; height: 1px;
  background: rgba(255,255,255,0.85);
  transition: all 0.3s ease;
}
.ics-burger span:first-child  { width: 50%;  margin-left: auto; }
.ics-burger span:nth-child(2) { width: 100%; }
.ics-burger span:last-child   { width: 75%;  margin-left: auto; }
.ics-burger:hover span { background: var(--brand-red); }

.ics-mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 999;
  padding: 88px 1.5rem 3rem;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ics-mobile-menu.is-open { display: flex; }

.ics-mobile-menu__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-size: 1.9rem; line-height: 1;
}
.ics-mobile-menu__close:hover { color: var(--brand-red); }

.ics-mobile-menu__link {
  display: block;
  padding: 15px 0;
  font-family: var(--nav-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ics-mobile-menu__link--current {
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.ics-mobile-menu__group > .ics-mobile-menu__link { color: rgba(255,255,255,0.5); }

.ics-mobile-menu__sub { padding: 0.35rem 0 0.9rem 1.1rem; }
.ics-mobile-menu__sub a {
  display: block;
  padding: 11px 0;
  font-family: var(--nav-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.ics-mobile-menu__sub a:hover,
.ics-mobile-menu__sub a.is-current {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

@media (max-width: 1200px) {
  .ics-nav { display: none; }
  .ics-burger { display: flex; }
  .ics-header__inner { padding: 0 clamp(1rem, 4vw, 2rem); min-height: 69px; }
  .ics-header__logo-img { height: 30px; }
}
@media (min-width: 1201px) {
  .ics-mobile-menu { display: none !important; }
}

/* ================================================================
   PAGE OPENING
   ================================================================ */
.opening {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.opening__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 2rem;
}

/* A folio mark, in the position a journal puts its volume and date. */
.opening__census {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  text-align: right;
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-variant-numeric: oldstyle-nums;
  border-top: 1px solid var(--rule);
  padding-top: 0.6rem;
  white-space: nowrap;
}
.opening__census strong {
  display: block;
  font-weight: 400;
  color: var(--text-dark);
}

.opening__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 1rem;
}

.opening__kicker, .opening__title, .opening__lede { grid-column: 1; }

.opening__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wine);
}
.opening__title em { font-style: italic; font-weight: 400; }

.opening__lede {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-body);
  max-width: 46ch;
  margin-top: 1.35rem;
}

/* Standings — the horizontal register of sections */
.standings {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: 2px solid var(--wine);
  list-style: none;
}
.standings__link {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.standings__link:hover { color: var(--wine); border-bottom-color: var(--accent-light); }
.standings__item--current .standings__link {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

/* ================================================================
   THE REGISTER — the page's core structure.
   An entry is a portrait, an apparatus column, and the line the
   scholar is thinking with. Ruled like a journal's contributor pages.
   ================================================================ */
.register { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }

.register__group-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0.5rem;
}
.register__group-head:first-child { margin-top: 0; }

.register__group-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-muted);
}
.register__group-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.entry {
  position: relative;
  display: grid;
  transition: transform 0.62s var(--ease);
  grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
  padding: clamp(2rem, 3.5vw, 2.9rem) 0;
  border-top: 1px solid var(--rule);
}
.entry:first-of-type { border-top: none; }

/* A three-person standing is not a seven-person register. The portrait carries
   more, and the line runs at a proper measure instead of a narrow third. */
.register--sparse .entry {
  grid-template-columns: 172px minmax(0, 1fr);
  padding: clamp(2.4rem, 4vw, 3.4rem) 0;
}
.register--sparse .entry__gutter { grid-row: 1 / span 2; }
.register--sparse .entry__figure { width: 172px; height: 172px; }
.register--sparse .entry__line { grid-column: 2; grid-row: 2; margin-top: 1.15rem; }
.register--sparse .entry__name { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.register--sparse .precis { max-width: 36em; font-size: 1.05rem; }
.register--sparse .epigraph { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 30em; }

/* The one authored moment: the drop-rule draws itself as the entry settles. */
/* The one authored moment. Drawn by default so a fast scroll, a deep link or a
   dead script can never leave it missing; JavaScript opts in to the draw. */
.entry::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  height: 2px;
  width: 88px;
  background: var(--wine);
  transform-origin: left center;
  transition: transform 0.62s var(--ease);
}
.entry:first-of-type::before { display: none; }
.js .entry { transform: translateY(14px); }
.js .entry::before { transform: scaleX(0); }
.js .entry.is-in { transform: none; }
.js .entry.is-in::before { transform: scaleX(1); }

.entry__gutter {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.entry__figure {
  display: block;
  width: 132px; height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-light);
  background: var(--parchment);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.entry__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}
a.entry__figure:hover { border-color: var(--wine); transform: translateY(-3px); }

.entry__figure--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-muted);
  background: var(--accent-pale);
}

h2.entry__name,
h3.entry__name,
.entry__name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--wine);
}
.entry__name a { transition: color 0.2s ease; }
.entry__name a:hover { color: var(--wine-mid); text-decoration: underline; text-underline-offset: 4px; }

.entry__dagger {
  font-size: 0.75em;
  color: var(--text-muted);
  vertical-align: 0.35em;
  margin-left: 0.15em;
}

.standings__note {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.standings__note span { color: var(--text-body); }

.entry__degrees {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.entry__titles {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-body);
  list-style: none;
}
.entry__titles li + li { margin-top: 0.2rem; color: var(--accent-muted); }

.entry__years {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-variant-numeric: oldstyle-nums;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  text-align: right;
  padding-right: 0.15rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.55rem;
  width: 100%;
}
.entry__years--tbc { color: var(--wine-mid); }

.entry__field {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-body);
}

/* The line — an epigraph the scholar chose, or a précis of their work. */
.entry__line { min-width: 0; }

.epigraph {
  font-family: var(--serif);
  font-style: italic;
  text-indent: -0.42em;
  hanging-punctuation: first;
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  line-height: 1.55;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.epigraph em, .epigraph i { font-style: normal; }

.epigraph__attr {
  display: block;
  width: fit-content;
  text-indent: 0;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--accent-light);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.5;
  color: var(--accent-muted);
}
.epigraph__attr em, .epigraph__attr i { font-style: italic; }
.epigraph__attr strong { font-weight: 600; }

.precis {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}

.entry__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  border-bottom: 1px solid var(--accent-light);
  padding: 0.3rem 0 0.35rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.entry__more::after { content: '→'; transition: transform 0.25s ease; display: inline-block; }
.entry__more:hover { color: var(--wine-mid); border-color: var(--wine-mid); }
.entry__more:hover::after { transform: translateX(3px); }

/* ================================================================
   BIO PAGE
   ================================================================ */
.bio { padding: 0 0 clamp(3rem, 6vw, 5rem); }

.bio__masthead {
  padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 2px solid var(--wine);
}

.bio__crumb {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 1.1rem;
}
.bio__crumb a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.bio__crumb a:hover { border-bottom-color: var(--accent-light); }
.bio__crumb span { color: var(--text-muted); }

.bio__head {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: center;
}

.bio__portrait {
  width: 168px; height: 168px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-light);
  background: var(--parchment);
}
.bio__portrait img { width: 100%; height: 100%; object-fit: cover; }

.bio__name {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--wine);
}

.bio__degrees {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bio__titles {
  margin-top: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-body);
  list-style: none;
}
.bio__titles li + li { color: var(--accent-muted); }
.bio__titles a {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--wine);
  border-bottom: 1px solid var(--accent-light);
}
.bio__titles a:hover { color: var(--wine-mid); border-bottom-color: var(--wine-mid); }

.bio__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--wine);
  border-bottom: 1px solid var(--accent-light);
  padding: 0.25rem 0 0.35rem;
  word-break: break-all;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bio__contact:hover { color: var(--wine-mid); border-color: var(--wine-mid); }

.bio__lede {
  max-width: 54ch;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-dark);
}

/* Body — content column with the section index as a rail beside it */
.bio__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.bio__content { grid-column: 1; grid-row: 1; min-width: 0; }

.bio__index { grid-column: 2; grid-row: 1; position: sticky; top: 2.5rem; }
.bio__index-title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.85rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
}
.bio__index-inner { display: flex; flex-direction: column; }

.bio__index a {
  display: block;
  padding: 0.45rem 0 0.45rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--text-muted);
  border-left: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bio__index a:hover { color: var(--wine); border-left-color: var(--accent-light); }
.bio__index a.is-current { color: var(--wine); border-left-color: var(--wine); }

.bio__index a.bio__index-sub {
  padding: 0.3rem 0 0.3rem 1.9rem;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* The epigraph, at full scale */
/* The one ground change on the page. The panel steps left to the container
   margin while the quotation itself stays on the same rule as the prose below. */
.bio__epigraph {
  --epi-pad: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--cream-warm);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.9rem, 4vw, 2.8rem) var(--epi-pad) clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 clamp(0.75rem, 2vw, 1.5rem) calc(-1 * var(--epi-pad));
  width: calc(100% + var(--epi-pad));
  max-width: none;
}
.bio__epigraph > * { max-width: 34em; }
.bio__epigraph .epigraph {
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  line-height: 1.5;
}
.bio__epigraph .epigraph + .epigraph {
  margin-top: 2.1rem;
  padding-top: 2.1rem;
  border-top: 1px solid var(--rule);
}

.bio__epigraph-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 1.2rem;
}

.bio__section {
  padding: clamp(2.2rem, 4vw, 3.2rem) 0 0;
}

.bio__section-title a {
  border-bottom: 2px solid var(--accent-pale);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.bio__section-title a:hover { color: var(--wine-mid); border-bottom-color: var(--accent-light); }

.bio__section-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--wine);
  margin-bottom: 1.4rem;
}

.prose { max-width: 36em; overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose p { margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 0.85rem;
}

/* Inside a long ruled list the sub-headings need to out-rank the citations
   around them; the register's own group label does that job. */
.prose--list h3 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin: 2.6rem 0 1.1rem;
  scroll-margin-top: 1.5rem;
}
.prose--list h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.prose--list > ul:first-child + h3,
.prose--list h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2rem 0; padding-left: 0; list-style: none; }
.prose ol { counter-reset: item; }
.prose li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.65;
}
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}
.prose ol > li::before {
  counter-increment: item;
  content: counter(item) '.';
  position: absolute; left: 0; top: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-muted);
}
.prose li ul { margin: 0.6rem 0 0; }
.prose a {
  color: var(--wine);
  border-bottom: 1px solid var(--accent-light);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.prose a:hover { color: var(--wine-mid); border-bottom-color: var(--wine-mid); }
.prose em { font-style: italic; }
.prose strong { font-weight: 600; color: var(--text-dark); }

/* Publication lists read better as a ruled column than as bullets */
.prose--list ul { }
.prose--list li {
  padding-left: 0;
  padding-top: 0.9rem;
  margin-bottom: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.96rem;
}
.prose--list li::before { display: none; }
.prose--list li:first-child { border-top: none; padding-top: 0; }

.bio__external {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  border-bottom: 1px solid var(--accent-light);
  padding: 0.3rem 0 0.35rem;
}
.bio__external::after { content: '↗'; }
.bio__external:hover { color: var(--wine-mid); border-color: var(--wine-mid); }

/* ================================================================
   ELSEWHERE — the cross-links that closed every old page
   ================================================================ */
.elsewhere {
  background: var(--cream-warm);
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.elsewhere__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 1.5rem;
}
.elsewhere__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
}
.elsewhere__list li { border-top: 1px solid var(--rule); }
.elsewhere__list a {
  display: block;
  padding: 1rem 0 1.1rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--wine);
  transition: color 0.25s ease;
}
.elsewhere__list a::after {
  content: ' →';
  font-family: var(--sans);
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.elsewhere__list a span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.elsewhere__list a:hover { color: var(--wine-mid); }
.elsewhere__list a:hover::after { opacity: 1; }
.elsewhere__list a:hover span { color: var(--text-body); }

/* ================================================================
   FOOTER — copied from the ICS main site, unchanged
   ================================================================ */
.site-footer {
  background: var(--wine-deep);
  padding: 3.5rem 0 2rem;
  color: var(--text-on-dark);
  border-top: 1px solid rgba(168,90,50,0.12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer__desc {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  max-width: 280px;
}

.footer__address {
  font-size: 0.82rem;
  line-height: 1.7;
  font-style: normal;
}

.footer__heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.2rem;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.6rem; }
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-on-dark);
  transition: color 0.2s ease;
  display: inline-block;
  padding: 0.15rem 0;
}
.footer__links a:hover { color: var(--accent-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #C6A9A9;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--text-on-dark);
  transition: all 0.2s ease;
}
.footer__social a:hover { border-color: var(--accent-light); color: var(--accent-light); }
.footer__social .social-substack { font-size: 0.6rem; font-weight: 700; letter-spacing: -0.02em; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1000px) {
  html { scroll-padding-top: 4.5rem; }
  .bio__body { display: block; }
  .bio__index {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  }
  .bio__index-title { display: none; }
  .bio__index-inner {
    flex-direction: row;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
    padding-right: 2.5rem;
  }
  .bio__index-inner::-webkit-scrollbar { display: none; }
  .bio__index a.bio__index-sub { display: none; }
  .bio__index a {
    flex: 0 0 auto;
    padding: 0.95rem 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .bio__index a:hover { border-left-color: transparent; }
  .bio__index a.is-current { border-left-color: transparent; border-bottom-color: var(--wine); }
}

@media (max-width: 900px) {
  .entry {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1.25rem 1.4rem;
  }
  .entry__figure { width: 96px; height: 96px; }
  .entry__line { grid-column: 1 / -1; }
  .register--sparse .entry { grid-template-columns: 120px minmax(0, 1fr); }
  .register--sparse .entry__gutter { grid-row: auto; }
  .register--sparse .entry__figure { width: 120px; height: 120px; }
  .register--sparse .entry__line {
    grid-column: 1 / -1; grid-row: auto; margin-top: 0.35rem;
  }
  .entry::before { width: 64px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .container { padding: 0 1.25rem; }
  .footer__grid, .footer__bottom { padding-left: 1.25rem; padding-right: 1.25rem; }

  .opening { padding-top: 2.4rem; }
  .opening__head { grid-template-columns: 1fr; }
  .opening__census {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
    margin-top: 1.4rem;
    white-space: normal;
  }
  .register__group-head { flex-wrap: wrap; gap: 0.5rem; }
  .register__group-rule { flex-basis: 100%; }
  .standings { gap: 0 1.4rem; }
  .standings__link {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.85rem 0;
  }

  .entry {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 1rem 1.1rem;
    padding: 1.8rem 0;
  }
  .entry__figure { width: 76px; height: 76px; border-width: 2px; }
  .register--sparse .entry { grid-template-columns: 88px minmax(0, 1fr); }
  .register--sparse .entry__figure { width: 88px; height: 88px; border-width: 2px; }
  .register--sparse .entry__name { font-size: 1.3rem; }
  .register--sparse .precis { font-size: 1rem; }
  h2.entry__name,
h3.entry__name,
.entry__name { font-size: 1.22rem; }
  .entry__line { margin-top: 0.2rem; }
  .epigraph { font-size: 1.02rem; }

  .bio__head { grid-template-columns: 1fr; gap: 1.25rem; }
  .bio__portrait { width: 116px; height: 116px; border-width: 3px; }
  .bio__epigraph { max-width: none; }

  .site-footer { padding: 2.5rem 0 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__desc { max-width: 100%; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__social { justify-content: center; }
  .footer__social a { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .entry, .js .entry.is-in { transform: none; }
  .js .entry::before { transform: scaleX(1); }
}

@media print {
  .ics-header, .ics-mobile-menu, .bio__index, .elsewhere, .site-footer { display: none; }
  body { background: #fff; }
  .js .entry { transform: none; }
  .js .entry::before { transform: scaleX(1); }
}
