@font-face {
  font-family: ArchiveSerif;
  src: local("Georgia");
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f3f5f6;
  color: #243643;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: #255c76;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #b97825;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  color: #19374a;
}
h1 {
  font-family: ArchiveSerif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 600;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}
small {
  font-size: 0.8rem;
}
.topbar {
  min-height: 100px;
  background: #19374a;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 22px max(5vw, 24px);
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.brand small {
  font-family: system-ui, sans-serif;
  display: block;
  font-size: 0.75rem;
  color: #c1cfd6;
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.brand-icon {
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  width: 43px;
  height: 49px;
  border: 1px solid #d4b783;
  color: #e6bc78;
  border-radius: 22px 22px 3px 3px;
}
.topbar nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 30px;
  margin-left: 4vw;
}
.topbar nav a {
  color: #c8d7e0;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
}
.topbar nav a[aria-current] {
  color: #fff;
}
.topbar nav a[aria-current]:after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e6bc78;
}
.account {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 0.875rem;
}
.account form {
  margin: 0;
}
.text-button {
  background: none;
  color: #c6d4de;
  border: 0;
  padding: 6px 0;
  font-size: 0.875rem;
}
.private-label {
  margin-left: auto;
  color: #d6e0e6;
  font-size: 0.875rem;
}
main {
  max-width: 1400px;
  padding: 52px 5vw 70px;
  margin: auto;
  min-height: calc(100vh - 190px);
}
footer {
  border-top: 1px solid #d7dfe4;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 5vw;
  padding: 24px 0;
  color: #677581;
  font-size: 0.875rem;
}
footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
footer a {
  color: #526b7b;
}
.footer-dot {
  padding: 0 8px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 34px;
}
.page-heading p:last-child {
  margin-bottom: 0;
}
.eyebrow {
  font-size: 0.75rem;
  color: #876429;
  letter-spacing: 0.13em;
  font-weight: 650;
  margin-bottom: 16px;
}
.muted {
  color: #5e7180;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.75;
}
.button {
  background: #25546c;
  color: #fff;
  border: 1px solid #25546c;
  border-radius: 5px;
  padding: 11px 19px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 550;
  white-space: normal;
}
.button:hover {
  background: #193e52;
}
.button.secondary {
  background: #fff;
  color: #25546c;
  border-color: #b7c9d3;
}
.button.secondary:hover {
  background: #eaf0f4;
}
.full {
  width: 100%;
}
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 36px;
}
.collection-tools {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}
.search {
  display: flex;
  border: 1px solid #ccd7de;
  border-radius: 6px;
  background: #fff;
  width: 100%;
  overflow: hidden;
}
.search input {
  border: 0;
  background: transparent;
  min-width: 0;
  padding: 13px 16px;
  margin: 0;
}
.search button {
  border: 0;
  border-left: 1px solid #e1e7eb;
  background: #fff;
  color: #25546c;
  font-size: 0.875rem;
  padding: 0 18px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.person-card {
  color: inherit;
  text-decoration: none;
  border: 1px solid #dce3e8;
  background: white;
  border-radius: 7px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.person-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #19374a12;
}
.portrait {
  height: 143px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3eaf0;
  border-bottom: 1px solid #dae3e9;
}
.portrait span {
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 2.7rem;
  border: 1px solid #aebfca;
  color: #4f7186;
  border-radius: 50%;
  width: 88px;
  height: 88px;
}
.person-card:nth-child(3n + 2) .portrait {
  background: #ece8e2;
}
.person-card:nth-child(3n + 2) .portrait span {
  border-color: #c7bcae;
  color: #8b765b;
}
.person-card:nth-child(3n) .portrait {
  background: #e4eaeb;
}
.person-card-body {
  padding: 20px;
}
.person-card h2 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.dates {
  font-size: 0.875rem;
  color: #526c7d;
  margin-bottom: 10px;
}
.location {
  font-size: 0.8rem;
  color: #6b7981;
  margin-bottom: 12px;
}
.excerpt {
  font-size: 0.875rem;
  color: #667581;
  line-height: 1.6;
  min-height: 4.2em;
}
.card-caption {
  font-size: 0.75rem;
  color: #526f80;
  border-top: 1px solid #e4e9ed;
  display: block;
  padding-top: 13px;
}
.summary-panel {
  background: #e7edf1;
  border-radius: 7px;
  padding: 24px;
  margin-bottom: 35px;
  border-top: 3px solid #b6955f;
}
.summary-panel > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0;
}
.summary-panel strong {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: #264b60;
}
.summary-panel span {
  font-size: 0.875rem;
  color: #4d6473;
}
.summary-panel > a {
  font-size: 0.875rem;
  display: block;
  margin-top: 25px;
}
.activity h2 {
  font-size: 1rem;
  margin-bottom: 20px;
}
.activity article {
  border-left: 2px solid #d5dfe5;
  padding: 0 0 22px 16px;
}
.activity article > a {
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}
.activity article p {
  font-size: 0.875rem;
  color: #617480;
  margin: 3px 0;
}
.activity small {
  color: #6b7b88;
  font-size: 0.75rem;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  background: #fff;
  border: 1px dashed #c4d2dc;
  border-radius: 8px;
  padding: 64px 28px;
  color: #657b89;
}
.empty h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.8rem;
}
.empty-mark {
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  width: 70px;
  height: 78px;
  border: 1px solid #b0c4d0;
  color: #355f77;
  border-radius: 40px 40px 4px 4px;
  font:
    2.5rem Georgia,
    serif;
}
.compact {
  padding: 25px;
}
.compact p {
  margin: 0;
}
.form-wrap {
  max-width: 790px;
  margin: 0 auto;
}
.back-link {
  display: inline-block;
  font-size: 0.875rem;
  margin-bottom: 26px;
}
.form-card {
  background: #fff;
  border: 1px solid #dce4e9;
  border-radius: 8px;
  padding: 35px;
}
.form-card h1 {
  font-size: 2rem;
}
.form-card form {
  margin-top: 25px;
}
form p {
  margin-bottom: 22px;
}
label {
  display: block;
  font-size: 0.925rem;
  font-weight: 550;
  margin-bottom: 7px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #bfcdd6;
  border-radius: 4px;
  background: #fff;
  color: #243643;
  padding: 11px 12px;
}
input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
input[type="file"] {
  font-size: 0.875rem;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
.helptext,
.help {
  display: block;
  font-size: 0.8rem;
  color: #687c89;
  margin-top: 7px;
  line-height: 1.6;
}
.helptext ul {
  padding-left: 20px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 12px;
}
.errorlist {
  padding: 12px 18px 12px 35px;
  background: #fff0ec;
  color: #973e32;
  border-radius: 4px;
  font-size: 0.875rem;
}
.notice {
  background: #e4efe9;
  border: 1px solid #adcbb9;
  color: #305e45;
  padding: 14px 20px;
  margin-bottom: 25px;
  border-radius: 5px;
}
.profile-heading {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 8px 0 35px;
}
.profile-heading .button {
  margin-left: auto;
}
.profile-heading p {
  margin-bottom: 6px;
}
.profile-heading h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin: 10px 0;
}
.profile-avatar {
  flex-shrink: 0;
  width: 135px;
  height: 150px;
  display: grid;
  place-items: center;
  background: #dfe8ee;
  color: #55748a;
  font:
    3.5rem Georgia,
    serif;
  border-radius: 70px 70px 6px 6px;
  border: 1px solid #c0d0db;
}
.section-nav {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #cedbe3;
  margin-bottom: 35px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.section-nav a {
  text-decoration: none;
  font-size: 0.925rem;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 30px;
}
.paper {
  background: #fff;
  border: 1px solid #dce4e9;
  padding: 28px;
  border-radius: 7px;
  margin-bottom: 30px;
  scroll-margin-top: 20px;
}
.prose {
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 8px 0 22px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a {
  font-size: 0.875rem;
}
.relative {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e2e8ec;
  text-decoration: none;
}
.relative small {
  display: block;
  color: #70818c;
}
.relative strong {
  font-size: 0.9rem;
  font-weight: 550;
}
.mini-avatar {
  background: #e9eef2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #466c83;
}
.subtle-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
}
.memory {
  border-bottom: 1px solid #dce5eb;
  padding: 5px 0 16px;
  margin-bottom: 25px;
}
.memory .muted {
  font-size: 0.875rem;
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.material-card {
  background: #fff;
  border: 1px solid #dce4e9;
  border-radius: 6px;
  overflow: hidden;
}
.material-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #e9eef1;
}
.material-body {
  padding: 20px;
}
.material-body h3 {
  margin-bottom: 7px;
}
.material-body p {
  font-size: 0.875rem;
  color: #607887;
}
.material-body small {
  display: block;
  color: #607887;
}
.material-people {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.material-people a {
  font-size: 0.75rem;
  background: #edf2f5;
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
}
.document-symbol {
  height: 150px;
  background: #e8edf1;
  display: grid;
  place-items: center;
  color: #6b8290;
  font:
    2rem Georgia,
    serif;
}
.download-link {
  font-size: 0.875rem;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
  max-width: 1050px;
  margin: 25px auto;
}
.login-story h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.15;
}
.login-story .lead {
  color: #637986;
}
.login-card {
  padding: 35px;
  background: #fff;
  border: 1px solid #d9e3e9;
  border-radius: 8px;
  box-shadow: 0 12px 40px #233e4f08;
}
.login-card h2 {
  font:
    1.9rem/1.25 Georgia,
    serif;
  margin: 15px 0;
}
.login-card form {
  margin-top: 25px;
}
.login-card .help {
  margin-top: 25px;
}
.generations {
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 300px;
  margin-top: 35px;
  color: #6d808c;
  font-size: 0.875rem;
}
.generations span,
.generations strong {
  padding: 7px 20px;
  border: 1px solid #c9d6de;
  border-radius: 4px;
  background: #f8fafb;
  font-weight: 400;
}
.generations strong {
  background: #e2eaf0;
  color: #31576d;
}
.generations i {
  height: 17px;
  border-left: 1px solid #9eb3c0;
}
.tree-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 15px;
  font-size: 0.875rem;
  color: #617684;
}
.tree-toolbar > div {
  display: flex;
  gap: 6px;
}
.tree-toolbar button {
  background: #fff;
  border: 1px solid #bdcdd8;
  border-radius: 4px;
  padding: 6px 13px;
  color: #224f69;
}
.tree-toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}
#tree-viewport {
  background: #e9eff3;
  border: 1px solid #c8d8e2;
  border-radius: 8px;
  overflow: auto;
  height: 580px;
  max-width: 100%;
}
#tree-canvas {
  display: block;
}
.tree-node rect {
  fill: #fff;
  stroke: #b5c9d6;
  stroke-width: 1.3;
}
.tree-node text {
  font-family: system-ui, sans-serif;
  fill: #264c65;
  font-size: 16px;
}
.tree-node .node-date {
  font-size: 13px;
  fill: #637e91;
}
.tree-node:hover rect,
.tree-node:focus rect {
  stroke: #a67e3d;
  stroke-width: 2;
}
.tree-edge {
  fill: none;
  stroke: #88a2b3;
  stroke-width: 2;
}
.tree-edge.secondary {
  stroke: #aa8c59;
  stroke-dasharray: 6 5;
}
.tree-list {
  margin-top: 25px;
}
.skip,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  clip: auto;
  width: auto;
  height: auto;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 10px;
  z-index: 10;
}
details summary {
  cursor: pointer;
  color: #315d77;
}
details {
  margin-top: 22px;
}
section {
  scroll-margin-top: 20px;
}
@media (min-width: 1500px) {
  main {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1100px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archive-layout {
    grid-template-columns: minmax(0, 1fr) 215px;
    gap: 24px;
  }
  .topbar {
    gap: 25px;
  }
  .topbar nav {
    margin-left: 0;
    gap: 22px;
  }
  .login-layout {
    gap: 35px;
    grid-template-columns: 1fr 380px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .paper {
    padding: 22px;
  }
}
@media (max-width: 780px) {
  .topbar {
    padding: 18px 22px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .brand {
    font-size: 1.15rem;
  }
  .topbar nav {
    order: 3;
    flex-basis: 100%;
    gap: 28px;
    padding: 5px 0;
  }
  .topbar nav a[aria-current]:after {
    bottom: -8px;
  }
  .account {
    gap: 13px;
  }
  .account > span {
    display: none;
  }
  main {
    padding: 32px 22px 45px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading h1 {
    margin-bottom: 12px;
  }
  .archive-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .archive-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .profile-heading {
    flex-wrap: wrap;
    gap: 18px;
  }
  .profile-avatar {
    width: 85px;
    height: 100px;
    font-size: 2.5rem;
  }
  .profile-heading > div:nth-child(2) {
    flex: 1;
    min-width: 190px;
  }
  .profile-heading .button {
    margin-left: 0;
  }
  .profile-heading h1 {
    font-size: 2rem;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 25px;
  }
  .login-story h1 {
    font-size: 2.6rem;
  }
  .login-story .lead {
    margin-bottom: 0;
  }
  .generations {
    display: none;
  }
  .login-card {
    max-width: 500px;
    width: 100%;
    align-self: center;
    padding: 28px;
  }
  .login-story {
    text-align: center;
  }
  .login-story .eyebrow {
    font-size: 0.68rem;
  }
  .private-label {
    font-size: 0.75rem;
  }
  .tree-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .tree-toolbar > span {
    font-size: 0.8rem;
  }
  footer {
    flex-direction: column;
    gap: 10px;
    margin: 0 22px;
  }
  .form-card {
    padding: 23px;
  }
  .section-nav {
    gap: 20px;
  }
  .paper .section-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 430px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    height: 135px;
  }
  .archive-aside {
    grid-template-columns: 1fr;
  }
  .materials-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
  .private-label {
    display: none;
  }
  .topbar {
    gap: 13px;
  }
  .brand small {
    font-size: 0.68rem;
  }
  .page-heading .button {
    width: 100%;
  }
  .profile-heading {
    align-items: flex-start;
  }
  .profile-avatar {
    width: 62px;
    height: 76px;
    font-size: 1.8rem;
  }
  .profile-heading > div:nth-child(2) {
    min-width: 170px;
  }
  .profile-heading h1 {
    font-size: 1.7rem;
  }
  .tree-toolbar button {
    min-height: 44px;
  }
  .login-card {
    padding: 23px;
  }
  .login-story h1 {
    font-size: 2.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .person-card {
    transition: none;
  }
}
