:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --surface-alt: #f0ebe1;
  --text: #1f2933;
  --muted: #5b6773;
  --line: #d9d2c3;
  --accent: #193a59;
  --accent-soft: #2a587f;
  --max-width: 1080px;
  --shadow: 0 12px 30px rgba(25, 58, 89, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(25, 58, 89, 0.06), transparent 32%),
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 100%);
  line-height: 1.65;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 2rem, 860px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 210, 195, 0.8);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.65rem 0.9rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 0 0 0.75rem 0.75rem;
  z-index: 20;
}

.skip-link:focus {
  top: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.site-nav a {
  font-size: 0.98rem;
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

.hero,
.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.9rem;
  line-height: 1.2;
  color: #13283d;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 1rem;
}

.hero-subtitle,
.hero-institution {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-summary,
.page-intro {
  max-width: 42rem;
  margin-top: 1.5rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus {
  text-decoration: none;
}

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

.button-primary:hover,
.button-primary:focus {
  background: #0f2e48;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--accent);
}

.button-secondary:hover,
.button-secondary:focus {
  background: #ffffff;
}

.profile-card,
.panel,
.research-item,
.not-found-card {
  background: var(--surface);
  border: 1px solid rgba(217, 210, 195, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 1.4rem;
}

.profile-list {
  margin: 0;
}

.profile-list div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.profile-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

dt {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

dd {
  margin: 0.35rem 0 0;
}

.section {
  padding: 1.5rem 0 3rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(240, 235, 225, 0.48), rgba(240, 235, 225, 0.8));
  border-top: 1px solid rgba(217, 210, 195, 0.75);
  border-bottom: 1px solid rgba(217, 210, 195, 0.75);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 2rem;
}

.panel {
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.link-list {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.research-item {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.research-meta {
  color: var(--muted);
  font-size: 0.98rem;
}

.not-found {
  min-height: calc(100vh - 14rem);
  display: grid;
  align-items: center;
}

.not-found-card {
  padding: 2rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .header-inner,
  .hero-grid,
  .content-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero,
  .page-hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 0.98rem;
  }

  .container,
  .narrow {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
