:root {
  --ink: #142033;
  --muted: #566273;
  --line: #d8e1ea;
  --paper: #fbfaf7;
  --white: #ffffff;
  --accent: #3f83bc;
  --accent-soft: #eaf4fb;
  --shadow: 0 18px 44px rgba(20, 32, 51, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
}

p, nav, footer, .eyebrow, .label, .card p, input, textarea, button {
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
}

.brand {
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  text-decoration: none;
  color: #0B5E8E;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-variant-caps: small-caps;
  font-weight: 600;
}

nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.91rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 4.5vw, 54px);
  align-items: center;
  max-width: 1160px;
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  padding: 30px clamp(22px, 4vw, 54px);
}

.eyebrow,
.label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.35vw, 4.25rem);
  letter-spacing: -0.045em;
  font-weight: 500;
  color: #142033;
}

.subtitle {
  max-width: 610px;
  margin: 12px 0 18px;
  color: var(--accent);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.35;
}

.intro {
  max-width: 690px;
  color: #293548;
  font-size: 0.95rem;
  line-height: 1.48;
}

.intro p {
  margin: 0 0 11px;
}

.portrait {
  margin: 0;
  width: 100%;
  max-width: 330px;
  max-height: calc(100vh - 120px);
  justify-self: end;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 225, 234, 0.78);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.interests {
  padding: 34px clamp(22px, 4vw, 54px) 42px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading span {
  width: 72px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  min-height: 170px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.12rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

footer {
  padding: 26px 24px 24px;
  text-align: center;
  background: #edf5fa;
  color: var(--muted);
}

footer p { margin: 0 0 8px; }

footer a {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 14px;
}

footer small {
  display: block;
  font-size: 0.78rem;
}

/* Contact page */
.contact-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 46px) 48px;
}

.contact-intro {
  max-width: 720px;
  margin-bottom: 20px;
}

.contact-intro h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #233047;
}

.contact-intro .subtitle {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.contact-form {
  display: block;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label,
.checkboxes legend {
  display: block;
  margin-bottom: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.field label span,
.field label strong,
.checkboxes legend strong {
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: 0.98rem/1.45 Arial, Helvetica, sans-serif;
  padding: 12px 13px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 2px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfe;
}

.checkboxes legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
}

.checkboxes label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #293548;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  line-height: 1.35;
}

.checkboxes input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.website-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-note {
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

button[type="submit"] {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: 700 0.95rem/1 Arial, Helvetica, sans-serif;
  padding: 14px 22px;
}

button[type="submit"]:hover {
  background: #26344a;
}

.form-status {
  margin-top: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.form-status.success { color: #22623a; }
.form-status.error { color: #9d2f2f; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .portrait {
    max-width: 360px;
    justify-self: start;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    min-height: 58px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.2rem);
  }

  .hero {
    padding-top: 26px;
  }

  .cards,
  .form-grid,
  .checkboxes {
    grid-template-columns: 1fr;
  }

  .section-heading span {
    width: 36px;
  }
}


.required-key {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.required-star {
  color: #b3261e;
  font-weight: 800;
  margin-left: 3px;
}

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


.portrait picture {
  display: block;
}

.portrait img {
  aspect-ratio: auto;
}


/* ============================================================
   ADDITIONS — content pages (Practice, Credentials, Teaching,
   Publications, Speaking) and expanded Home.
   Everything above this line is the original stylesheet, unchanged.
   ============================================================ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font: 700 0.9rem/1 Arial, Helvetica, sans-serif;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Home: hero is no longer full-height, arc follows below --- */
.hero.hero-compact { min-height: auto; padding-bottom: 8px; }

.arc {
  max-width: 1160px;
  margin: 0 auto;
  padding: 6px clamp(22px, 4vw, 54px) 40px;
}
.arc .arc-body {
  max-width: 720px;
  color: #293548;
  font-size: 1.0rem;
  line-height: 1.62;
}
.arc .arc-body p { margin: 0 0 17px; }
.arc .arc-body p:first-child {
  font-size: 1.09rem;
  line-height: 1.55;
  color: var(--ink);
}

/* --- Proof strip --- */
.stats {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px clamp(22px, 4vw, 54px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat .num {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 9px;
}
.stat .cap {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 230px;
  margin: 0 auto;
}

/* --- Verification block --- */
.verify {
  padding: 34px clamp(22px, 4vw, 54px) 40px;
  max-width: 1160px;
  margin: 0 auto;
}
.verify-inner {
  max-width: 820px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.verify h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.verify .verify-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.citation {
  margin: 0 0 14px;
  padding-left: 15px;
  border-left: 3px solid var(--accent-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #293548;
}
.citation a { color: var(--accent); word-break: break-word; }
.verify-links {
  margin: 18px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}
.verify-links a { color: var(--accent); margin-right: 18px; }

/* --- Generic content page --- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px clamp(22px, 4vw, 54px) 56px;
}
.page-head { margin-bottom: 30px; }
.page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
}
.page-head .subtitle { margin-top: 13px; }

.page section { margin-bottom: 38px; }

.page h2 {
  margin: 0 0 15px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  letter-spacing: -0.02em;
}
.page h3 {
  margin: 24px 0 7px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.page p {
  margin: 0 0 13px;
  color: #293548;
  font-size: 0.97rem;
  line-height: 1.6;
}
.page section > p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.05rem !important;
  line-height: 1.55 !important;
  color: var(--ink) !important;
}

/* Entry blocks — appointments, awards, publications */
.entry {
  margin: 0 0 18px;
  padding-left: 15px;
  border-left: 2px solid var(--line);
}
.entry:hover { border-left-color: var(--accent); }
.entry .entry-title {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.3;
  color: var(--ink);
}
.entry .entry-meta {
  margin: 0 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.87rem;
  color: var(--accent);
}
.entry p {
  margin: 0 0 8px;
  font-size: 0.93rem;
  line-height: 1.55;
}
.entry p:last-child { margin-bottom: 0; }

/* Course lists */
.courses { margin: 0 0 20px; }
.courses h3 { margin: 20px 0 6px; }
.courses ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 22px;
}
.courses li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #293548;
  padding-left: 15px;
  position: relative;
}
.courses li::before {
  content: "·";
  position: absolute;
  left: 3px;
  color: var(--accent);
  font-weight: 700;
}

/* Pull quote / citation panel */
.pullquote {
  margin: 26px 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--white);
}
.pullquote blockquote {
  margin: 0 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
}
.pullquote cite {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
}

/* Highlight panel */
.panel {
  margin: 26px 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: var(--accent-soft);
  text-align: center;
}
.panel .panel-num {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: #0B5E8E;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.panel p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1d3348;
}

/* Dissertation abstract */
.abstract {
  margin: 12px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f4f8fb;
  border: 1px solid var(--line);
}
.abstract p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #34435a;
}
.abstract p:last-child { margin-bottom: 0; }

/* Download button */
.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none;
  font: 700 0.92rem/1 Arial, Helvetica, sans-serif;
}
.btn:hover { background: #26344a; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--white); border-color: var(--accent); }

/* Domain cards on home get left-aligned text */
.cards.cards-left .card { text-align: left; }
.cards.cards-left .card { min-height: 0; }

/* Footer nav */
.footer-nav {
  margin: 0 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}
.footer-nav a {
  display: inline-block;
  margin: 0 9px 6px;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .courses ul { grid-template-columns: 1fr; }
  .page h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
}

/* Home hero: intro paragraph balances the portrait column */
.hero.hero-compact .intro { margin-top: 16px; }
.hero.hero-compact .intro p { font-size: 1.0rem; line-height: 1.58; }

/* Verification block centred under the wide sections */
.verify-inner { margin: 0 auto; }

/* Align hero intro and arc measure so the text column does not jog */
.hero.hero-compact .intro { max-width: 700px; }
.arc .arc-body { max-width: 700px; }

/* Arc shares the hero's grid so the prose column aligns exactly, and the
   seam between hero intro and arc reads as continuous text. */
.hero.hero-compact { padding-bottom: 0; }
.arc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 4.5vw, 54px);
  padding-top: 0;
}
.arc .arc-body { max-width: none; grid-column: 1; }
.hero.hero-compact .intro { max-width: none; }
.hero.hero-compact .intro p:last-child { margin-bottom: 0; }
.arc .arc-body p:first-child { margin-top: 11px; }

@media (max-width: 900px) {
  .arc { grid-template-columns: 1fr; }
}

/* Hero now carries the full biography: align columns to the top and let the
   prose run continuously beside the portrait. */
.hero.hero-compact { align-items: start; padding-bottom: 34px; }
.hero.hero-compact .portrait { position: sticky; top: 82px; }

@media (max-width: 900px) {
  /* Sticky positioning and the viewport-based max-height both misbehave once
     the hero collapses to one column: the portrait blanked and was stranded
     below the whole biography. Show it first, at a sane size. */
  .hero.hero-compact { align-items: stretch; }
  .hero.hero-compact .portrait {
    position: static;
    order: -1;
    max-width: 260px;
    max-height: none;
    justify-self: start;
    margin-bottom: 6px;
  }
  .hero.hero-compact .portrait img { height: auto; }
}

/* ORCID iD */
.orcid {
  margin: 14px 0 0 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem !important;
}
.orcid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}
.orcid a:hover { color: var(--ink); }
.orcid-mark {
  display: inline-grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #A6CE39;
  color: #fff;
  font: 700 0.66rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

/* Inline links inside body prose */
.arc-body a, .intro a, .page p a, .entry p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.arc-body a:hover, .intro a:hover, .page p a:hover, .entry p a:hover { color: #0B5E8E; }

.cite-note {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

/* Photo galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 8px;
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.gallery figcaption {
  padding: 11px 14px 13px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Single inline figure, e.g. one per teaching appointment */
.entry-figure {
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 420px;
}
.entry-figure img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
}
.entry-figure figcaption {
  padding: 9px 12px;
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Square-format originals (Polaroid) keep their aspect ratio */
.gallery-square { grid-template-columns: repeat(auto-fit, minmax(260px, 460px)); }
.gallery-square img { aspect-ratio: 1 / 1; }

.entry-figure-wide { max-width: 560px; }
.entry-figure-wide img { aspect-ratio: 16 / 9; }

/* Notre Dame — teachers grid */
.page-wide { max-width: 1100px; }
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.person {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.person img { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.person-body { padding: 15px 16px 17px; }
.person h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.25; }
.person-field {
  margin: 0 0 9px !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem !important;
  color: var(--accent);
}
.person-note { margin: 0 !important; font-size: 0.9rem !important; line-height: 1.5 !important; }
.nd-hero { margin: 0 0 30px; border-radius: 18px; overflow: hidden;
           border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.nd-hero img { display: block; width: 100%; height: auto; }
.nd-hero figcaption { padding: 12px 16px; font-family: Arial, Helvetica, sans-serif;
                      font-size: 0.86rem; color: var(--muted); }
