:root {
  color-scheme: light dark;
  --paper: #f5f2eb;
  --paper-raised: #fffdf8;
  --ink: #18241f;
  --muted: #5b675f;
  --line: #d7d6cd;
  --accent: #0b6859;
  --accent-soft: #d9ebe5;
  --header: rgba(245, 242, 235, 0.94);
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid #e9ad35;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-current {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: clamp(26rem, 58vw, 48rem);
  background-color: #52605d;
  background-image: url("/images/banner1.jpg");
  background-position: center center;
  background-size: cover;
}

.hero--compact {
  min-height: clamp(18rem, 36vw, 31rem);
}

.hero-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(2rem, 8vw, 8rem);
  background: linear-gradient(90deg, transparent 25%, rgba(5, 18, 16, 0.08) 52%, rgba(5, 18, 16, 0.7) 100%);
}

.hero-copy {
  width: min(42rem, 48vw);
  color: #fff;
  text-align: right;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.3);
}

.eyebrow,
.section-label {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow {
  color: #d7efe7;
}

.hero h1,
.hero-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 9vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.hero h1 span,
.hero-name span {
  display: block;
  font-style: italic;
}

.hero-name {
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.home-main,
.page-main {
  width: min(100% - 2.4rem, 72rem);
  margin: 0 auto;
}

.home-intro,
.page-article {
  position: relative;
  margin-top: clamp(-4rem, -6vw, -2.5rem);
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow: 0 1.2rem 3rem rgba(22, 37, 31, 0.1);
}

.home-intro {
  max-width: 66rem;
  margin-right: auto;
  margin-left: auto;
}

.section-label {
  color: var(--accent);
}

.page-heading {
  max-width: 50rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.content {
  max-width: 48rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.content > :first-child {
  margin-top: 0;
}

.content p {
  margin: 0 0 1.5rem;
}

.content h2 {
  margin: 3.8rem 0 1.6rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
}

.content strong {
  color: var(--ink);
  font-weight: 720;
}

.content a strong {
  color: inherit;
}

.content--publications {
  max-width: 58rem;
}

.content--publications p {
  padding: 0 0 1.35rem;
  border-bottom: 1px solid var(--line);
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}

.profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.profile-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  width: min(100% - 2.4rem, 72rem);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 5rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0.35rem 0.95rem;
  }

  .hero {
    min-height: 32rem;
    background-position: 38% center;
  }

  .hero--compact {
    min-height: 24rem;
  }

  .hero-shade {
    align-items: flex-end;
    padding: 2rem 1.2rem 5.5rem;
    background: linear-gradient(180deg, transparent 32%, rgba(5, 18, 16, 0.76) 100%);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1,
  .hero-name {
    font-size: clamp(3.4rem, 20vw, 6.2rem);
  }

  .home-intro,
  .page-article {
    padding: 1.7rem 1.25rem 2.2rem;
  }

  .profile-links {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .profile-link {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111815;
    --paper-raised: #17211d;
    --ink: #edf2ed;
    --muted: #abb8b0;
    --line: #35423b;
    --accent: #77d4bb;
    --accent-soft: #183d34;
    --header: rgba(17, 24, 21, 0.94);
  }

  .home-intro,
  .page-article {
    box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
  }
}
