:root {
  --dal-black: #111111;
  --dal-gold: #f7c600;
  --ink: #1d252d;
  --muted: #5f6f7a;
  --line: #dce3e6;
  --paper: #ffffff;
  --mist: #eef4f6;
  --sea: #2f6f73;
  --brick: #9d3f31;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8faf9 0%, #eef4f6 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  width: 100%;
  min-height: 94px;
  padding: 0 max(20px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.08rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.nav-links a,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
  white-space: nowrap;
}

.nav-links a:hover,
.button:hover {
  background: transparent;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--dal-gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

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

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--dal-black);
  background: var(--dal-gold);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.profile {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(64px, 8vw, 80px) 0 clamp(48px, 6vw, 68px);
}

.profile-intro {
  align-self: center;
}

.profile-photo {
  display: block;
  width: 85%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(17, 17, 17, 0.16);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 780px;
  color: var(--dal-black);
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.profile-name {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.role {
  margin: 16px 0 0;
  color: var(--dal-black);
  font-size: 1.24rem;
  font-weight: 700;
}

.summary {
  max-width: 690px;
  margin: 18px 0 0;
  color: #384852;
  font-size: 1.15rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 8px 0 30px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(41, 64, 72, 0.08);
  font-size: 1.15rem;
}

.contact-panel,
.news-panel,
.page-panel {
  padding: clamp(22px, 3vw, 32px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-heading span {
  color: var(--sea);
  font-weight: 800;
}

h2 {
  margin: 0 0 18px;
  color: var(--dal-black);
  font-size: 1.42rem;
  line-height: 1.2;
}

.contact-list,
.news-list,
.service-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li,
.news-list li {
  padding-left: 0;
}

.news-list li:first-child {
  padding-top: 0;
}

.contact-list p,
.news-list p,
.page-panel p,
.course-list p {
  margin: 0;
}

.page {
  padding: clamp(40px, 7vw, 74px) 0 56px;
}

.page h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.08;
  margin-bottom: 28px;
}

.page-panel {
  max-width: 100%;
  font-size: 1.15rem;
}

.page-panel p + p {
  margin-top: 18px;
}

.publication-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 22px;
}

.course-list,
.research-list,
.student-list {
  display: grid;
  gap: 22px;
}

.course-list article,
.research-list article,
.student-list article {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.course-list article:last-child,
.research-list article:last-child,
.student-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.course-list ul,
.student-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-list li,
.student-list li {
  margin-bottom: 12px;
}

.course-list li:last-child,
.student-list li:last-child {
  margin-bottom: 0;
}

.service-list li {
  padding-left: 0;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 78px;
  }

  .menu-button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    align-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button > span:not(.sr-only) {
    width: 25px;
    height: 2px;
    margin-left: auto;
    background: var(--dal-black);
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] > span:nth-last-child(2) {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    z-index: 10;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 12px 0 20px;
    display: none;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(17, 17, 17, 0.08);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
  }

  .nav-links a {
    padding: 11px 16px;
  }

  .nav-links a::after {
    right: auto;
    bottom: 7px;
    left: 16px;
    width: 32px;
  }

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

  .profile {
    padding-top: 12px;
  }

  .profile-intro {
    order: -1;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  main {
    width: min(100% - 28px, 1120px);
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .quick-actions {
    width: 100%;
  }

}
