:root {
  color-scheme: light;
  --ink: #18222b;
  --ink-soft: #39434b;
  --paper: #f7f4ed;
  --white: #ffffff;
  --warm: #e8dfd0;
  --navy: #142630;
  --navy-light: #dce5e7;
  --rust: #8a3f2b;
  --gold: #d5a24a;
  --line: rgba(24, 34, 43, 0.22);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: 72rem;
  --space-section: clamp(4.5rem, 8vw, 8rem);
}

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

html {
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

:focus-visible {
  outline: 0.18rem solid var(--white);
  outline-offset: 0.14rem;
  box-shadow: 0 0 0 0.38rem var(--ink);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.08;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 8vw, 6.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero-title {
  max-width: none;
  font-size: clamp(2.5rem, 5.5vw, 4.6rem);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 600;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: #111820;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-block: 1rem;
}

.site-name {
  align-self: flex-start;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: 0.55rem;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--rust);
}

.hero {
  background: var(--navy);
  color: var(--white);
}

.hero-grid {
  display: grid;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.eyebrow,
.section-number {
  margin-bottom: 1.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-role {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--navy-light);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
}

.hero-link {
  align-self: flex-start;
  color: var(--white);
}

.hero-figure {
  align-self: center;
  margin: 0;
  padding-bottom: 2rem;
}

.hero-figure img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-figure figcaption {
  max-width: 52rem;
  margin-top: 0.8rem;
  color: #bec9cd;
  font-size: 0.76rem;
  line-height: 1.5;
}

.section {
  padding-block: var(--space-section);
  scroll-margin-top: 1rem;
}

.section-light {
  background: var(--paper);
}

.section-warm {
  background: var(--warm);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-grid {
  display: grid;
  gap: 2.5rem;
}

.section-heading {
  border-top: 1px solid currentColor;
  padding-top: 1.25rem;
}

.section-number {
  margin-bottom: 1rem;
  color: var(--rust);
}

.section-dark .section-number {
  color: var(--gold);
}

.prose {
  max-width: 43rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.65;
}

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.38rem);
  line-height: 1.6;
}

.text-link {
  display: inline-block;
  font-weight: 750;
}

.button {
  display: inline-block;
  min-height: 2.75rem;
  margin-top: 0.8rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid currentColor;
  font-weight: 750;
  text-decoration: none;
}

.button-light {
  color: var(--white);
}

.button-dark {
  background: var(--navy);
  color: var(--white);
}

.button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #111820;
}

.about-notes {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.about-intro {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.about-figure,
.teaching-figure {
  margin: 0;
}

.about-figure {
  width: min(100%, 28rem);
}

.about-figure img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--white);
}

.about-figure figcaption,
.teaching-figure figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.note-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.note-card-accent {
  background: var(--navy);
  color: var(--white);
}

.note-card p:not(.eyebrow) {
  max-width: 40rem;
}

.note-card .eyebrow {
  color: var(--rust);
}

.note-card-accent .eyebrow {
  color: var(--gold);
}

.publications {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.publications > h3 {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: publications;
}

.publication-list li {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem 0 1.75rem 3.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  counter-increment: publications;
}

.publication-list li::before {
  position: absolute;
  top: 1.75rem;
  left: 0;
  color: var(--gold);
  content: counter(publications, decimal-leading-zero);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.publication-list p {
  max-width: 57rem;
  margin-bottom: 0;
}

.publication-list a {
  justify-self: start;
  color: var(--navy-light);
  font-weight: 700;
}

.teaching-figure {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  margin-inline: auto;
}

.teaching-figure img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
}

.teaching-figure figcaption {
  max-width: 64rem;
}

.teaching-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.teaching-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
}

.teaching-panel .eyebrow {
  color: var(--rust);
}

.history-note {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.history-note p {
  max-width: 60rem;
  margin-bottom: 0;
}

.link-list {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.link-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.link-list > a:hover strong {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.link-list strong,
.link-list small {
  display: block;
}

.link-list strong {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.link-list small {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 2.5rem;
  background: #0d1a21;
  color: #d5dddf;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner p:first-child {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.error-page {
  min-height: 100vh;
  background: var(--paper);
}

.error-main {
  display: grid;
  min-height: calc(100vh - 5rem);
  place-items: center;
  padding-block: 4rem;
}

.error-card {
  max-width: 48rem;
}

.error-card .eyebrow {
  color: var(--rust);
}

.error-card h1 {
  color: var(--navy);
}

.error-card p:not(.eyebrow) {
  max-width: 35rem;
  font-size: 1.2rem;
}

@media (min-width: 48rem) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-list {
    justify-content: flex-end;
    gap: 0.4rem 1.4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(24rem, 1.05fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
  }

  .hero-figure {
    padding-block: clamp(2rem, 5vw, 4rem);
  }

  .section-grid {
    grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.5fr);
    gap: clamp(3rem, 8vw, 8rem);
  }

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

  .publication-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

@media (min-width: 64rem) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.85fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (forced-colors: active) {
  .note-card,
  .teaching-panel,
  .button,
  .hero-figure img,
  .about-figure img,
  .teaching-figure img {
    border: 1px solid CanvasText;
  }
}
