:root {
  color-scheme: light;
  --ink: #20291f;
  --muted: #74796e;
  --forest: #273c32;
  --forest-deep: #1e3029;
  --sage: #dbe1d3;
  --paper: #f5f3ec;
  --white: #fffefa;
  --line: #deded4;
  --accent: #c78d5c;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(6vw, calc((100vw - 1200px) / 2));
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--forest);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #a8b29f;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
}

.brand-light {
  color: #7d8478;
  font-weight: 400;
}

.top-nav {
  display: flex;
  gap: 32px;
  color: #53594f;
  font-size: 13px;
}

.top-nav a:hover,
.back-to-top:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  display: flex;
  min-height: 482px;
  align-items: center;
  overflow: hidden;
  padding: 64px max(8vw, calc((100vw - 1100px) / 2));
  color: #fbfaf4;
  background: var(--forest);
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--forest) 0%, var(--forest) 48%, rgb(39 60 50 / 45%) 100%);
  content: "";
}

.hero-content {
  z-index: 1;
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #c9d0bf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

.hero h1 {
  font-size: clamp(46px, 6vw, 73px);
  line-height: 1.07;
}

.hero h1 em {
  color: #d5b08d;
  font-weight: 500;
}

.hero-intro {
  max-width: 460px;
  margin: 22px 0 29px;
  color: #d0d5ca;
  font-size: 15px;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  gap: 20px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: var(--forest);
  background: #f5f3ec;
}

.hero-art {
  position: absolute;
  top: 50%;
  right: max(8vw, calc((100vw - 1100px) / 2));
  width: 340px;
  height: 340px;
  transform: translateY(-50%);
}

.orbit {
  position: absolute;
  inset: 14px;
  border: 1px solid rgb(218 225 211 / 17%);
  border-radius: 50%;
}

.orbit-two {
  inset: 50px;
  border-color: rgb(218 225 211 / 12%);
}

.tree-line {
  position: absolute;
  top: 94px;
  left: 166px;
  width: 1px;
  height: 165px;
  background: rgb(221 226 211 / 42%);
}

.tree-line::before,
.tree-line::after {
  position: absolute;
  top: 53px;
  left: -65px;
  width: 130px;
  height: 1px;
  background: rgb(221 226 211 / 42%);
  content: "";
}

.tree-line::after {
  top: 111px;
  left: -108px;
  width: 216px;
}

.tree-node {
  position: absolute;
  z-index: 1;
  width: 17px;
  height: 17px;
  border: 1px solid #cfb08e;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 6px rgb(207 176 142 / 8%);
}

.node-top {
  top: 85px;
  left: 158px;
}

.node-left {
  top: 138px;
  left: 93px;
}

.node-right {
  top: 138px;
  left: 223px;
}

.node-bottom-left {
  top: 195px;
  left: 50px;
}

.node-bottom-right {
  top: 195px;
  left: 266px;
}

.hero-year {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  color: #bec7b9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: .13em;
  text-align: center;
}

.section-wrap {
  width: min(100% - 48px, 1050px);
  margin: 0 auto;
}

.register-section {
  padding-top: 74px;
  padding-bottom: 70px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.eyebrow-dark {
  margin-bottom: 9px;
  color: #8d7053;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 39px);
}

.section-note {
  max-width: 310px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: flex;
  min-height: 61px;
  align-items: center;
  gap: 13px;
  padding: 0 19px;
  border: 1px solid #e0dfd5;
  background: var(--white);
}

.search-icon {
  color: #8c937f;
  font-size: 26px;
  line-height: 1;
  transform: rotate(-20deg);
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.search-box input:focus-visible {
  outline: none;
}

.search-hint {
  flex: none;
  color: #96998f;
  font-size: 11px;
}

.search-status,
.empty-state {
  margin: 17px 0 11px;
  color: var(--muted);
  font-size: 12px;
}

.person-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.person-result {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.person-result a {
  display: block;
  height: 100%;
  padding: 15px 18px;
  transition: background .18s ease;
}

.person-result a:hover {
  background: #eeeee5;
}

.person-name {
  display: block;
  overflow-wrap: anywhere;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.35;
}

.person-details {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.person-language {
  display: inline-block;
  margin-top: 9px;
  color: #8b7057;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.collections-section {
  padding: 70px 0 78px;
  background: #eaeae1;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.collection-card {
  position: relative;
  display: flex;
  min-height: 206px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 19px 21px;
  border: 1px solid #d7d9ce;
  background: rgb(255 254 250 / 73%);
  transition: transform .2s ease, border-color .2s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: #a8b29f;
}

.card-number {
  color: #8b7057;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.card-title {
  margin-top: 21px;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.25;
}

.card-description {
  margin-top: 7px;
  padding-right: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.card-arrow {
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: #8b7057;
  font-size: 17px;
}

.site-footer {
  display: flex;
  min-height: 95px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px max(6vw, calc((100vw - 1200px) / 2));
  background: var(--forest-deep);
  color: #d1d6cc;
}

.footer-brand {
  flex: none;
  color: #f1f1e9;
  font-size: 13px;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-color: #778579;
  font-size: 16px;
}

.footer-brand .brand-light {
  color: #aab3a8;
}

.site-footer p,
.back-to-top {
  margin: 0;
  color: #aeb8ad;
  font-size: 10px;
}

.back-to-top {
  flex: none;
}

.footer-contact {
  display: grid;
  flex: none;
  gap: 4px;
  color: #aeb8ad;
  font-size: 11px;
}

.footer-contact img {
  display: block;
}

.directory-main {
  min-height: calc(100vh - 172px);
  padding: 65px 0 80px;
}

.directory-kicker {
  margin: 0 0 11px;
  color: #8b7057;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.directory-title {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 39px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.directory-back {
  display: inline-block;
  margin-top: 25px;
  color: #6b725f;
  font-size: 12px;
}

.directory-back:hover {
  color: var(--accent);
}

.archive-main {
  min-height: calc(100vh - 172px);
  padding: 65px 0 80px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.archive-item {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.archive-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #eeeee7;
}

.archive-item figcaption {
  padding: 13px 3px 3px;
  color: #62695e;
  font-size: 12px;
}

.archive-item figcaption a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: #bac1b2;
  text-underline-offset: 3px;
}

.archive-item figcaption a:hover {
  color: #8b7057;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

[hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .hero-art {
    right: 0;
    opacity: .38;
  }

  .hero::after {
    background: linear-gradient(90deg, var(--forest) 0%, rgb(39 60 50 / 88%) 62%, rgb(39 60 50 / 52%) 100%);
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 66px;
    padding: 0 20px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .top-nav {
    gap: 15px;
    font-size: 11px;
  }

  .hero {
    min-height: 430px;
    padding: 58px 25px;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 61px);
  }

  .hero-intro {
    max-width: 370px;
    font-size: 13px;
  }

  .hero-art {
    right: -142px;
    opacity: .24;
  }

  .section-wrap {
    width: min(100% - 36px, 1050px);
  }

  .register-section {
    padding-top: 53px;
    padding-bottom: 55px;
  }

  .section-heading {
    display: block;
  }

  .section-note {
    margin-top: 9px;
  }

  .search-hint {
    display: none;
  }

  .person-results,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .collections-section,
  .archive-main,
  .directory-main {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .collection-grid {
    gap: 9px;
  }

  .collection-card {
    min-height: 196px;
    padding: 16px 13px;
  }

  .card-title {
    margin-top: 17px;
    font-size: 17px;
  }

  .card-description {
    font-size: 10px;
  }

  .site-footer {
    flex-wrap: wrap;
    padding: 19px 20px;
  }

  .site-footer p {
    order: 1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
