html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  color: #1d1f1a;
  background-color: #f7f1e6;
  background:
    radial-gradient(circle at top left, rgba(223, 173, 86, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(72, 125, 117, 0.14), transparent 24%),
    linear-gradient(180deg, #f6f0e4 0%, #f8f5ef 38%, #fbfaf7 100%);
  line-height: 1.65;
}

a {
  color: #1d332f;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

a:hover {
  color: #000;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 84px 28px 100px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
  margin-bottom: 52px;
  border: 1px solid rgba(108, 96, 74, 0.4);
  background-color: #fbf5ea;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(240, 228, 206, 0.98)),
    radial-gradient(circle at top right, rgba(210, 165, 85, 0.22), transparent 34%),
    #fffdf9;
  box-shadow: 0 28px 80px rgba(77, 63, 41, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -110px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 162, 68, 0.34), transparent 66%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(38, 91, 85, 0.24), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 300px);
  gap: 52px;
  align-items: center;
  z-index: 1;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d614f;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.95;
  color: #182522;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  font-size: 1.6rem;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.16rem;
  line-height: 1.3;
}

.hero-lead {
  max-width: 34rem;
  margin: 18px 0 0;
  font-size: 1.18rem;
  line-height: 1.72;
  color: #2d3936;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.detail-pill {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(80, 99, 95, 0.38);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.72);
  color: #33433f;
  font-size: 0.95rem;
}

.profile-meta {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(107, 96, 77, 0.34);
}

.meta-line {
  margin-bottom: 0;
  max-width: 36rem;
  color: #4a4d46;
}

.portrait {
  margin: 0;
  justify-self: end;
  max-width: 300px;
}

.portrait figcaption {
  margin-top: 12px;
  color: #5f5a4e;
  font-size: 0.94rem;
  text-align: center;
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 10px solid rgba(255, 251, 245, 0.92);
  background: #ece6da;
  box-shadow: 0 22px 42px rgba(59, 49, 34, 0.16);
}

.profile-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 12px;
  align-items: start;
}

.profile-links li {
  color: #49433a;
}

.profile-links a {
  display: block;
  min-width: 118px;
  text-align: center;
  padding: 9px 14px;
  border: 1px solid rgba(29, 51, 47, 0.34);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.profile-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 51, 47, 0.38);
  background: #fff;
}

.section {
  margin-bottom: 28px;
  padding: 26px 0 0;
  border-top: 1px solid #cbbfaa;
}

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

.filter-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: #5d5549;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
}

.filter-group {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #c6bba8;
  background: #f3eee4;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-row + .filter-row {
  margin-top: 10px;
}

.filter-label {
  min-width: 52px;
  font-size: 0.95rem;
  color: #5d5549;
}

.filter-chip {
  padding: 5px 12px;
  border: 1px solid #9f927b;
  background: #fbf8f1;
  color: #2a2a2a;
  font: inherit;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: #1f1f1f;
  background: #1f1f1f;
  color: #fcfcf8;
}

.publication-list {
  display: grid;
  gap: 16px;
}

.paper-card {
  padding: 24px 24px 22px;
  border: 1px solid #bbae9b;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(77, 66, 46, 0.05);
}

.paper-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.paper-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #b68e39;
  background: #d3a64c;
  color: #fffdf8;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.paper-year {
  color: #6b6458;
}

.paper-authors {
  margin-bottom: 0;
  color: #534c42;
  font-size: 1.02rem;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.button {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #1f1f1f;
  background: #1f1f1f;
  color: #fcfcf8;
  text-decoration: none;
}

.button:hover {
  color: #fcfcf8;
  background: #000;
}

.button-muted {
  background: transparent;
  color: #1f1f1f;
}

.button-muted:hover {
  color: #000;
  background: #ece7db;
}

.button-disabled {
  border-color: #bbae9b;
  color: #8b8375;
  background: #f1ece1;
  cursor: not-allowed;
  pointer-events: none;
}

.empty-state {
  color: #6b6458;
}

.info-section {
  padding-top: 22px;
}

.visitor-section {
  padding-bottom: 8px;
}

.visitor-head {
  margin-bottom: 18px;
}

.visitor-copy {
  max-width: 42rem;
  margin-bottom: 0;
  color: #585447;
}

.visitor-map-card {
  padding: 24px;
  border: 1px solid #bbae9b;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 238, 226, 0.88)),
    #fffdf8;
  box-shadow: 0 12px 28px rgba(77, 66, 46, 0.06);
}

.visitor-map-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.info-section p:last-child,
.item p:last-child {
  margin-bottom: 0;
}

.item {
  margin-bottom: 20px;
}

.item:last-child {
  margin-bottom: 0;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 4px;
}

.item-head p {
  white-space: nowrap;
  color: #6a6256;
}

@media (max-width: 720px) {
  .page {
    padding: 52px 18px 72px;
  }

  .hero {
    padding: 24px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .section-head {
    display: block;
  }

  .visitor-map-card {
    padding: 18px;
  }

  .portrait {
    max-width: 240px;
    justify-self: start;
  }

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

  .item-head {
    display: block;
  }

  .item-head p {
    white-space: normal;
    margin-bottom: 10px;
  }
}
