:root {
  --bg: #ede6db;
  --bg-deep: #d8cab5;
  --surface: rgba(255, 252, 247, 0.8);
  --surface-strong: #fffaf2;
  --ink: #1f2524;
  --muted: #55605d;
  --accent: #7f5a3d;
  --accent-deep: #2f4b45;
  --line: rgba(31, 37, 36, 0.12);
  --shadow: 0 30px 60px rgba(56, 45, 31, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --sidebar-width: 320px;
  --content-width: 980px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(127, 90, 61, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(47, 75, 69, 0.18), transparent 24%),
    linear-gradient(180deg, #f3ece1 0%, var(--bg) 42%, #f8f4ee 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.mobile-bar {
  display: none;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(280px, var(--sidebar-width)) minmax(0, 1fr);
  gap: 3rem;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  min-height: calc(100vh - 48px);
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(249, 244, 237, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: slide-in 0.7s ease both;
}

.brand {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__role {
  margin: 10px 0 12px;
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand__summary {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.sidebar__nav {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
}

.sidebar__nav a,
.sidebar__links a,
.site-footer__links a {
  position: relative;
  width: fit-content;
}

.sidebar__nav a::after,
.sidebar__links a::after,
.site-footer__links a::after,
.publication-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.sidebar__nav a:hover::after,
.sidebar__nav a.is-active::after,
.sidebar__links a:hover::after,
.site-footer__links a:hover::after,
.publication-card a:hover::after {
  transform: scaleX(1);
}

.sidebar__nav a.is-active {
  color: var(--accent);
}

.sidebar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  color: var(--muted);
}

.content {
  width: min(100%, var(--content-width));
  padding-top: 12px;
}

.section {
  margin-bottom: 72px;
  scroll-margin-top: 96px;
}

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

.hero__copy,
.hero__panel,
.news-card,
.fact-card,
.timeline__item,
.publication-card,
.profile-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero__copy {
  position: relative;
  overflow: hidden;
  padding: 44px;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 90, 61, 0.25), rgba(127, 90, 61, 0));
}

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

.hero h1,
.section-heading h2,
.panel-card h2,
.fact-card h3,
.timeline__item h3,
.publication-card h3,
.profile-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.96;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.9rem);
  max-width: 9ch;
}

.hero__lede {
  margin: 1.5rem 0 1rem;
  font-size: 1.25rem;
  line-height: 1.7;
  max-width: 44rem;
}

.hero__text,
.section-heading p,
.news-card p,
.about-copy p,
.timeline__item p,
.publication-card p,
.profile-card p,
.panel-card p,
.fact-card p,
.contact-card__label,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

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

.button--primary {
  background: var(--ink);
  color: #fdf8f0;
}

.button--primary:hover {
  background: var(--accent-deep);
}

.button--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero__panel {
  display: grid;
  gap: 1rem;
  padding: 24px;
}

.panel-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(31, 37, 36, 0.08);
}

.panel-card--accent {
  background: linear-gradient(135deg, rgba(47, 75, 69, 0.9), rgba(127, 90, 61, 0.88));
  color: #fff8ef;
}

.panel-card--accent p {
  color: rgba(255, 248, 239, 0.82);
}

.panel-card__label,
.fact-card__label,
.news-card__date,
.publication-card__meta,
.profile-card__eyebrow,
.timeline__year {
  margin: 0 0 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
}

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

.tag-list li {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 75, 69, 0.09);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 0.8rem;
}

.news-grid,
.facts-grid,
.profiles-grid {
  display: grid;
  gap: 1.2rem;
}

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

.news-card,
.fact-card,
.publication-card,
.profile-card {
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.news-card:hover,
.fact-card:hover,
.publication-card:hover,
.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 90, 61, 0.3);
  background: rgba(255, 252, 247, 0.95);
}

.news-card h3,
.fact-card h3,
.timeline__item h3,
.publication-card h3,
.profile-card h3 {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
  gap: 1.4rem;
}

.about-copy {
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow);
}

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

.timeline {
  position: relative;
  padding-left: 24px;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(127, 90, 61, 0.65), rgba(47, 75, 69, 0.25));
}

.timeline__item {
  position: relative;
  padding: 28px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 34px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(127, 90, 61, 0.16);
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-card a {
  position: relative;
  display: inline;
}

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

.profile-card {
  display: block;
}

.section--contact {
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 34px;
}

.contact-card__link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-family: "Cormorant Garamond", serif;
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.site-footer {
  width: min(100% - 48px, var(--content-width));
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.8s ease forwards;
}

.hero__copy[data-reveal] {
  animation-delay: 0.08s;
}

.hero__panel[data-reveal] {
  animation-delay: 0.18s;
}

.news-grid [data-reveal]:nth-child(2),
.facts-grid [data-reveal]:nth-child(2),
.publication-list [data-reveal]:nth-child(2),
.profiles-grid [data-reveal]:nth-child(2) {
  animation-delay: 0.08s;
}

.news-grid [data-reveal]:nth-child(3),
.facts-grid [data-reveal]:nth-child(3),
.publication-list [data-reveal]:nth-child(3),
.profiles-grid [data-reveal]:nth-child(3) {
  animation-delay: 0.16s;
}

.news-grid [data-reveal]:nth-child(4),
.facts-grid [data-reveal]:nth-child(4),
.publication-list [data-reveal]:nth-child(4),
.profiles-grid [data-reveal]:nth-child(4) {
  animation-delay: 0.24s;
}

.publication-list [data-reveal]:nth-child(5) {
  animation-delay: 0.32s;
}

.publication-list [data-reveal]:nth-child(6) {
  animation-delay: 0.4s;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: min(100% - 32px, 1440px);
    padding-top: 88px;
  }

  .mobile-bar {
    position: fixed;
    inset: 16px 16px auto;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(250, 245, 238, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }

  .mobile-bar__brand {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    font-weight: 600;
  }

  .mobile-bar__toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
  }

  .mobile-bar__toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 999px;
  }

  .sidebar {
    position: fixed;
    inset: 88px 16px 16px;
    z-index: 110;
    min-height: auto;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
  }

  .sidebar.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: min(100% - 32px, 1440px);
    padding-left: 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .hero__copy,
  .about-copy,
  .contact-card {
    padding: 28px;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .news-grid,
  .facts-grid,
  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .news-card h3,
  .fact-card h3,
  .timeline__item h3,
  .publication-card h3,
  .profile-card h3 {
    font-size: 1.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
