/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-gray-600: oklch(44.6% 0.03 256.802);
    --spacing: 0.25rem;
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-parchment: #f3ecdc;
    --color-parchment-deep: #e6dcc4;
    --color-ink: #1f1a14;
    --color-ink-soft: #4a4036;
    --color-ink-muted: #756855;
    --color-burgundy: #7c2d2d;
    --color-burgundy-deep: #5c1f1f;
    --color-burgundy-soft: #a04545;
    --color-gold: #a8843e;
    --color-rule: #8b6f47;
    --font-display: "Cormorant Garamond", "Old Standard TT", Georgia, serif;
    --font-body: "PT Serif", Georgia, "Times New Roman", serif;
    --font-caps: "Cormorant SC", "PT Serif", serif;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .static {
    position: static;
  }
  .my-4 {
    margin-block: calc(var(--spacing) * 4);
  }
  .my-6 {
    margin-block: calc(var(--spacing) * 6);
  }
  .mt-1 {
    margin-top: calc(var(--spacing) * 1);
  }
  .block {
    display: block;
  }
  .w-full {
    width: 100%;
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-gray-600 {
    color: var(--color-gray-600);
  }
}
@layer base {
  html {
    background-color: var(--color-parchment);
    color: var(--color-ink);
    font-feature-settings: "kern", "liga", "onum", "calt";
  }
  body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.72;
    min-height: 100vh;
    background-image: radial-gradient(ellipse at 18% 12%, rgba(168, 132, 62, 0.07) 0%, transparent 45%),
      radial-gradient(ellipse at 88% 88%, rgba(124, 45, 45, 0.05) 0%, transparent 45%),
      radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(31, 26, 20, 0.04) 100%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42, 0 0 0 0 0.32, 0 0 0 0 0.22, 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 100% 100%, 100% 100%, 100% 100%, 280px 280px;
    background-attachment: fixed;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-ink);
    letter-spacing: -0.003em;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem;
  }
  h3 {
    font-size: 1.2rem;
    margin: 1.3rem 0 0.4rem;
  }
  h4 {
    font-size: 1.05rem;
    margin: 1.1rem 0 0.35rem;
  }
  p {
    margin-bottom: 1.1em;
  }
  p:last-child {
    margin-bottom: 0;
  }
  a {
    color: var(--color-burgundy);
    text-decoration: underline;
    text-decoration-color: rgba(124, 45, 45, 0.35);
    text-decoration-thickness: 0.5px;
    text-underline-offset: 0.22em;
    transition: color 180ms ease, text-decoration-color 180ms ease;
  }
  a:hover {
    color: var(--color-burgundy-deep);
    text-decoration-color: var(--color-burgundy-deep);
  }
  blockquote {
    border-left: 2px solid var(--color-rule);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-ink-soft);
  }
  hr {
    border: none;
    height: 1px;
    background: var(--color-rule);
    opacity: 0.4;
    margin: 2rem 0;
  }
  ::selection {
    background: rgba(124, 45, 45, 0.18);
    color: var(--color-burgundy-deep);
  }
}
.site-header {
  padding: 3.5rem 2rem 0;
  max-width: 80rem;
  margin: 0 auto;
}
.site-header-inner {
  text-align: center;
  max-width: 58rem;
}
@media (min-width: 760px) {
  .site-header-inner {
    margin-left: calc(12rem + 3.5rem);
  }
}
.site-header-eyebrow {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.site-header-title {
  margin: 0;
  text-align: center;
}
.site-header-title a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.9rem, 6vw, 4.2rem);
  letter-spacing: -0.018em;
  line-height: 1.02;
  color: var(--color-ink);
  text-decoration: none;
  font-feature-settings: "kern", "liga", "dlig", "calt";
  transition: color 220ms ease;
  text-shadow: 0 1px 0 rgba(31, 26, 20, 0.04);
}
.site-header-title a:hover {
  color: var(--color-burgundy);
}
.site-header-rule {
  width: 100%;
  max-width: 12rem;
  margin: 1.4rem auto 0;
}
.site-shell {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 3.5rem;
  max-width: 80rem;
  margin: 3rem auto 0;
  padding: 0 2rem;
  align-items: start;
}
.site-sidebar {
  position: sticky;
  top: 2rem;
  padding-top: 0.4rem;
}
.sidebar-heading {
  font-size: 0.74rem;
  color: var(--color-ink-muted);
  margin: 0 0 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(139, 111, 71, 0.4);
  font-weight: 500;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-item {
  position: relative;
}
.sidebar-item a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  text-decoration: none;
  display: block;
  padding: 0.1rem 0;
  line-height: 1.3;
  transition: color 180ms ease, transform 220ms ease;
}
.sidebar-item a:hover {
  color: var(--color-burgundy);
  transform: translateX(2px);
}
.sidebar-item-active a {
  color: var(--color-burgundy-deep);
  font-style: italic;
  font-weight: 500;
}
.sidebar-item-active::before {
  content: "❦";
  position: absolute;
  left: -1.1rem;
  top: 0.25rem;
  color: var(--color-burgundy);
  font-size: 0.78rem;
  font-family: var(--font-display);
}
.sidebar-empty {
  color: var(--color-ink-muted);
  font-style: italic;
  font-size: 1rem;
  margin: 0;
}
.site-main {
  max-width: 58rem;
  padding: 0 0 4rem;
  min-width: 0;
}
.site-main:has(.family-chart-container) {
  max-width: 72rem;
}
@media (max-width: 760px) {
  .site-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
    margin-top: 2rem;
  }
  .site-sidebar {
    position: static;
    border-bottom: 1px solid rgba(139, 111, 71, 0.3);
    padding-bottom: 1.5rem;
  }
  .sidebar-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
  }
  .sidebar-item-active::before {
    display: none;
  }
}
.site-footer {
  padding: 0 2rem 3.5rem;
  max-width: 80rem;
  margin: 0 auto;
}
.site-footer-inner {
  text-align: center;
  max-width: 58rem;
}
@media (min-width: 760px) {
  .site-footer-inner {
    margin-left: calc(12rem + 3.5rem);
  }
}
.site-footer-colophon {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
  max-width: 38rem;
  margin: 0 auto;
}
.site-footer-colophon a {
  color: var(--color-burgundy);
  text-decoration-color: rgba(124, 45, 45, 0.3);
}
.smallcaps {
  font-family: var(--font-caps);
  font-feature-settings: "smcp", "c2sc", "kern";
  letter-spacing: 0.14em;
  text-transform: lowercase;
  font-weight: 500;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.rule-double {
  border: none;
  height: 5px;
  background: linear-gradient(to bottom,
      var(--color-rule) 0,
      var(--color-rule) 1px,
      transparent 1px,
      transparent 4px,
      var(--color-rule) 4px,
      var(--color-rule) 5px);
  opacity: 0.55;
}
.ornament {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2.75rem auto;
  color: var(--color-rule);
  opacity: 0.85;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-rule) 50%, transparent);
}
.ornament-symbol {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-burgundy);
  line-height: 1;
  transform: translateY(-2px);
}
.dropcap > p:first-of-type::first-letter,
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  float: left;
  font-size: 4.4rem;
  line-height: 0.86;
  padding: 0.34rem 0.55rem 0 0;
  margin-top: 0.1rem;
  color: var(--color-burgundy);
}
.person-header, .clan-header {
  text-align: center;
  margin-bottom: 1rem;
}
.person-eyebrow, .clan-eyebrow {
  color: var(--color-ink-muted);
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}
.person-name, .clan-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-ink);
}
.person-name .person-first {
  font-style: italic;
  color: var(--color-burgundy-deep);
}
.person-name .person-first::after {
  content: " ";
}
.person-name .person-last {
  font-weight: 500;
}
.block-heading--large {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 2.25rem 0 1rem;
  color: var(--color-ink);
}
.block-heading--small {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 1.75rem 0 0.65rem;
  color: var(--color-burgundy-deep);
}
.biography {
  font-size: 1.085rem;
  color: var(--color-ink-soft);
}
.biography p:first-of-type {
  margin-top: 0;
}
.gallery {
  margin-top: 1rem;
}
.clan-body > * + * {
  margin-top: 1rem;
}
.site-main > h2:first-child,
.site-main > h3:first-child {
  margin-top: 0;
}
picture:has(img[data-size="small"]) {
  width: 30%;
}
picture:has(img[data-size="medium"]) {
  width: 55%;
}
picture:has(img[data-size="large"]) {
  width: 80%;
}
picture:has(img[data-size="full"]) {
  width: 100%;
}
picture img {
  width: 100%;
  height: auto;
  display: block;
}
picture:has(img[data-alignment="left"]) {
  float: left;
  margin-right: 1.25rem;
  margin-bottom: 0.5rem;
}
picture:has(img[data-alignment="right"]) {
  float: right;
  margin-left: 1.25rem;
  margin-bottom: 0.5rem;
}
picture:has(img[data-alignment="center"]) {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
figure {
  margin: 2rem auto;
}
figure img {
  border: 1px solid rgba(139, 111, 71, 0.4);
  box-shadow: 0 12px 32px -16px rgba(31, 26, 20, 0.25);
}
figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  text-align: center;
  margin-top: 0.7rem;
  letter-spacing: 0.005em;
}
a.lightbox-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32em;
  padding: 0 0.55em;
  min-width: 1.7em;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.85) 0%, rgba(232, 223, 203, 0.95) 100%),
    var(--color-parchment);
  border: 1px solid rgba(124, 45, 45, 0.38);
  border-radius: 999px;
  color: var(--color-burgundy-deep);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1em;
  line-height: 1.55;
  font-feature-settings: "lnum", "tnum", "kern";
  white-space: nowrap;
  vertical-align: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(124, 45, 45, 0.08),
    0 1px 0 rgba(31, 26, 20, 0.06);
  transition: background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}
a.lightbox-link:hover,
a.lightbox-link:focus-visible {
  color: var(--color-parchment);
  background: linear-gradient(180deg, var(--color-burgundy-soft) 0%, var(--color-burgundy) 100%);
  border-color: var(--color-burgundy-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 10px -3px rgba(124, 45, 45, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
}
a.lightbox-link:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(31, 26, 20, 0.05);
}
a.lightbox-link:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
a.lightbox-link::before {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 2h4v1.5H3.5V6H2V2zm12 0v4h-1.5V3.5H10V2h4zM2 14v-4h1.5v2.5H6V14H2zm12 0h-4v-1.5h2.5V10H14v4z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 2h4v1.5H3.5V6H2V2zm12 0v4h-1.5V3.5H10V2h4zM2 14v-4h1.5v2.5H6V14H2zm12 0h-4v-1.5h2.5V10H14v4z'/></svg>") no-repeat center / contain;
  opacity: 0.75;
}
a.lightbox-link:hover::before,
a.lightbox-link:focus-visible::before {
  opacity: 1;
}
.goverlay {
  background: rgba(20, 16, 11, 0.94) !important;
}
.glightbox-clean .gslide-description {
  background: var(--color-parchment) !important;
  font-family: var(--font-body);
  color: var(--color-ink);
  border-left: 1px solid rgba(139, 111, 71, 0.35);
}
.glightbox-clean .gdesc-inner {
  padding: 2rem 1.75rem;
}
.glightbox-clean .gslide-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 0.75rem;
}
.glightbox-clean .gslide-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
}
.glightbox-clean .gprev,
.glightbox-clean .gnext,
.glightbox-clean .gclose {
  background: rgba(243, 236, 220, 0.08);
  border: 1px solid rgba(243, 236, 220, 0.22);
}
.glightbox-clean .gprev svg,
.glightbox-clean .gnext svg,
.glightbox-clean .gclose svg {
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.4));
}
.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gclose:hover {
  background: rgba(243, 236, 220, 0.18);
}
@media (min-width: 900px) {
  .gdesc-open .gslide-description.description-right {
    width: 28rem !important;
    max-width: 35vw !important;
  }
}
.map-container {
  height: 480px;
  background: var(--color-parchment-deep);
  border: 1px solid var(--color-rule);
  box-shadow: inset 0 0 0 4px var(--color-parchment-deep),
    inset 0 0 0 5px rgba(139, 111, 71, 0.45),
    0 14px 36px -18px rgba(31, 26, 20, 0.2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.map-container .leaflet-container {
  background: var(--color-parchment-deep);
  font-family: var(--font-body);
}
.map-container .leaflet-tile-pane {
  filter: sepia(0.45) saturate(0.7) hue-rotate(-8deg) brightness(1.04) contrast(0.92);
}
.map-pin-icon {
  background: none;
  border: none;
}
.map-pin {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--color-burgundy);
  border: 2px solid var(--color-parchment);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(139, 111, 71, 0.6),
    0 2px 6px rgba(31, 26, 20, 0.4);
  transition: transform 180ms ease;
}
.map-pin-icon:hover .map-pin {
  transform: scale(1.25);
}
.map-container .leaflet-popup-content-wrapper {
  background: var(--color-parchment);
  color: var(--color-ink);
  border-radius: 2px;
  box-shadow: 0 6px 24px -8px rgba(31, 26, 20, 0.35);
  border: 1px solid rgba(139, 111, 71, 0.55);
}
.map-container .leaflet-popup-tip {
  background: var(--color-parchment);
  border: 1px solid rgba(139, 111, 71, 0.55);
}
.map-container .leaflet-popup-content {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.75rem 1rem;
  color: var(--color-ink-soft);
}
.map-container .leaflet-popup-content p:last-child {
  margin-bottom: 0;
}
.map-container .leaflet-control-attribution {
  background: rgba(243, 236, 220, 0.85);
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-ink-muted);
}
.map-container .leaflet-control-attribution a {
  color: var(--color-burgundy);
}
.map-container .leaflet-bar a {
  background: var(--color-parchment);
  color: var(--color-ink);
  border-color: rgba(139, 111, 71, 0.5);
}
.map-container .leaflet-bar a:hover {
  background: var(--color-parchment-deep);
  color: var(--color-burgundy);
}
.family-chart-container {
  background: radial-gradient(ellipse at center, var(--color-parchment) 0%, var(--color-parchment-deep) 100%);
  border: 1px solid var(--color-rule);
  box-shadow: inset 0 0 0 4px var(--color-parchment-deep),
    inset 0 0 0 5px rgba(139, 111, 71, 0.45),
    0 14px 36px -18px rgba(31, 26, 20, 0.2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.family-chart-container text {
  font-family: var(--font-body);
  fill: var(--color-ink);
}
.f3 path.link {
  stroke: var(--color-rule);
  stroke-width: 1.4;
  opacity: 0.85;
}
.f3 path.link.f3-path-to-main {
  stroke: var(--color-burgundy);
  stroke-width: 2.4;
  opacity: 1;
}
.f3.family-chart-container {
  position: relative;
}
.tree-details {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 22rem;
  max-width: 60%;
  background: linear-gradient(180deg, var(--color-parchment) 0%, var(--color-parchment-deep) 100%);
  border: 1px solid var(--color-rule);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 36px -14px rgba(31, 26, 20, 0.32);
  padding: 1.5rem 1.5rem 1.4rem;
  overflow-y: auto;
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.2, 0.6, 0.2, 1),
    opacity 220ms ease;
  z-index: 5;
}
.tree-details.tree-details-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.tree-details-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  color: var(--color-ink-muted);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: color 180ms ease;
}
.tree-details-close:hover {
  color: var(--color-burgundy);
}
.tree-details-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0.1rem 1.5rem 0.3rem 0;
  color: var(--color-ink);
}
.tree-details-dates {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-burgundy-deep);
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  margin: 0 0 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(139, 111, 71, 0.32);
}
.tree-details-row {
  margin-bottom: 0.95rem;
}
.tree-details-label {
  font-size: 0.7rem;
  color: var(--color-ink-muted);
  margin-bottom: 0.18rem;
}
.tree-details-value {
  font-family: var(--font-body);
  color: var(--color-ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}
.tree-details-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.4rem;
  padding: 0.45em 0.95em;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.85) 0%, rgba(232, 223, 203, 0.95) 100%),
    var(--color-parchment);
  border: 1px solid rgba(124, 45, 45, 0.4);
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-burgundy-deep);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 0 rgba(31, 26, 20, 0.06);
  transition: background 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}
.tree-details-link:hover,
.tree-details-link:focus-visible {
  color: var(--color-parchment);
  background: linear-gradient(180deg, var(--color-burgundy-soft) 0%, var(--color-burgundy) 100%);
  border-color: var(--color-burgundy-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 10px -3px rgba(124, 45, 45, 0.4);
  transform: translateY(-1px);
}
.tree-details-link span {
  transition: transform 220ms ease;
}
.tree-details-link:hover span {
  transform: translateX(3px);
}
@media (max-width: 600px) {
  .tree-details {
    left: 14px;
    width: auto;
    max-width: none;
  }
}
@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-rise > * {
  animation: page-rise 600ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.page-rise > *:nth-child(1) {
  animation-delay: 60ms;
}
.page-rise > *:nth-child(2) {
  animation-delay: 140ms;
}
.page-rise > *:nth-child(3) {
  animation-delay: 220ms;
}
.page-rise > *:nth-child(4) {
  animation-delay: 300ms;
}
.page-rise > *:nth-child(5) {
  animation-delay: 380ms;
}
.page-rise > *:nth-child(n+6) {
  animation-delay: 460ms;
}
@media (prefers-reduced-motion: reduce) {
  .page-rise > * {
    animation: none;
  }
}
