:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #20242a;
  --muted: #5c6672;
  --line: #d9e1e8;
  --accent: #12665f;
  --accent-strong: #0d4f49;
  --accent-warm: #884236;
  --shadow: 0 18px 45px rgba(24, 38, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #ffffff;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1rem max(1.25rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(217, 225, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
  font-size: 0.92rem;
}

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

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
}

.hero-text {
  max-width: 720px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.18;
}

h1 {
  font-size: 3.4rem;
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.portrait {
  margin: 0;
  justify-self: end;
}

.portrait img {
  width: 280px;
  height: 280px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

main {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.4rem 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

.section-heading {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.section-body > *:first-child {
  margin-top: 0;
}

.section-body > *:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.facts div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.2rem 0 0;
}

.paper-list {
  display: grid;
  gap: 2.25rem;
}

.paper {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.paper:first-child {
  padding-top: 0;
  border-top: 0;
}

.paper h3 a {
  color: var(--ink);
  text-decoration-color: rgba(18, 102, 95, 0.35);
}

.paper h3 a:hover {
  color: var(--accent);
}

.meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.paper p:not(.meta) {
  margin: 0.9rem 0 0;
}

.paper-links,
.course-list {
  list-style: none;
  padding: 0;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.45rem;
  row-gap: 0.35rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.paper-links li {
  display: inline-block;
  min-width: 0;
}

.paper-links a {
  color: var(--accent-strong);
  font-weight: 650;
  text-decoration-thickness: 1px;
}

.paper-links a:hover {
  color: var(--accent);
}

.link-group {
  white-space: nowrap;
}

.link-group span:first-child {
  color: var(--muted);
  font-weight: 650;
}

.media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  margin-top: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid rgba(136, 66, 54, 0.45);
  background: #f9fbfc;
  color: var(--muted);
  font-size: 0.86rem;
}

.media-links span {
  color: var(--accent-warm);
  font-weight: 750;
}

.media-links a {
  color: var(--accent-strong);
  font-weight: 650;
}

.course-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.course-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.course-list span:last-child {
  color: var(--muted);
  text-align: right;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  gap: 2rem;
}

.site-footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 1.25rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.75rem 0 3rem;
  }

  .portrait {
    justify-self: start;
  }

  .portrait img {
    width: 210px;
    height: 210px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding: 2.4rem 0;
  }

  .section-heading {
    position: static;
  }

  .course-list li,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .course-list span:last-child {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .hero,
  .section,
  .site-footer {
    width: min(100% - 1.5rem, 1120px);
  }

  .nav-links {
    gap: 0.7rem;
  }

  h1 {
    font-size: 2.1rem;
  }
}
