:root {
  color-scheme: light;
  --background: #fbfaf7;
  --foreground: #0a0a0a;
  --muted: #74706a;
  --muted-panel: #f2f0eb;
  --border: #dedad2;
  --paper: #ffffff;
  --accent: #8c4d3f;
  --archive: #5d6f56;
  --amber: #9a6a34;
  --shadow: rgba(10, 10, 10, 0.08) 0 24px 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(96vw, 980px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateX(-50%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background: rgb(10 10 10 / 74%);
  padding: 9px 10px 9px 22px;
  color: white;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-header nav a,
.nav-menu summary {
  border-radius: 999px;
  padding: 9px 14px;
  color: rgb(255 255 255 / 68%);
  font-size: 0.88rem;
}

.site-header nav a:hover,
.nav-menu summary:hover,
.nav-menu[open] summary {
  background: rgb(255 255 255 / 12%);
  color: white;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 170px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(10 10 10 / 92%);
  padding: 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nav-menu-panel a {
  border-radius: 6px;
  padding: 10px 12px;
  white-space: nowrap;
}

main {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px 16px 0;
}

.family-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px 16px 0;
}

.research-hero {
  min-height: 86vh;
  padding: 16px 16px 0;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: calc(100vh - 16px);
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgb(10 10 10 / 18%), rgb(10 10 10 / 78%)),
    url("/record/marriage-page") center / cover;
  color: white;
  padding: clamp(92px, 9vw, 118px) clamp(34px, 5vw, 70px) clamp(34px, 5vw, 62px);
}

.family-hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: calc(100vh - 16px);
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgb(10 10 10 / 10%), rgb(10 10 10 / 76%)),
    url("/record/anna-twins-page") center / cover;
  color: white;
  padding: clamp(34px, 6vw, 78px);
}

.research-hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: calc(86vh - 16px);
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgb(10 10 10 / 8%), rgb(10 10 10 / 78%)),
    url("/record/jakub-death") center / cover;
  color: white;
  padding: clamp(34px, 6vw, 78px);
}

.document-hero .research-hero-copy {
  background:
    linear-gradient(180deg, rgb(10 10 10 / 8%), rgb(10 10 10 / 78%)),
    url("/record/ship-manifest") center / cover;
}

.letters-hero {
  min-height: 86vh;
  padding: 16px 16px 0;
}

.letters-hero .research-hero-copy {
  background:
    linear-gradient(180deg, rgb(10 10 10 / 8%), rgb(10 10 10 / 78%)),
    url("/record/family-tree-note-web") center / cover;
}

.maps-hero .research-hero-copy {
  background:
    linear-gradient(180deg, rgb(10 10 10 / 8%), rgb(10 10 10 / 78%)),
    url("/record/brest-church-map-1939") center / cover;
}

.churches-hero .research-hero-copy {
  background:
    linear-gradient(180deg, rgb(10 10 10 / 10%), rgb(10 10 10 / 80%)),
    url("/record/brest-holy-cross-old") center / cover;
}

.archive-requests-hero .research-hero-copy {
  background:
    linear-gradient(180deg, rgb(10 10 10 / 8%), rgb(10 10 10 / 78%)),
    url("/record/dobrynka-piszczac-map-1933") center / cover;
}

.letters-hero h1 {
  max-width: 860px;
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.86;
}

.lineage-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px 16px 0;
}

.lineage-hero h1 {
  max-width: 720px;
  font-size: clamp(3.6rem, 7.6vw, 7.6rem);
  line-height: 0.88;
}

.login-body {
  min-height: 100vh;
  background: #16130f;
}

.login-main {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

.login-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  overflow: hidden;
  padding: clamp(104px, 11vw, 132px) clamp(18px, 6vw, 88px) clamp(28px, 5vw, 72px);
  color: white;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(12 10 8 / 92%) 0%, rgb(12 10 8 / 62%) 46%, rgb(12 10 8 / 28%) 100%),
    url("/record/anna-twins-page") center / cover;
}

.login-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 0%, rgb(12 10 8 / 48%) 100%),
    radial-gradient(circle at 78% 18%, rgb(255 255 255 / 16%), transparent 34%);
}

.login-copy {
  max-width: 680px;
  align-self: end;
  padding-bottom: clamp(12px, 5vw, 84px);
}

.login-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(4.2rem, 9vw, 9rem);
  line-height: 0.86;
}

.login-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 26px 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.55;
}

.login-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  align-self: center;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 8px;
  background: rgb(255 255 255 / 92%);
  color: var(--foreground);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: rgb(0 0 0 / 24%) 0 24px 90px;
  backdrop-filter: blur(16px);
}

.login-panel-heading {
  margin-bottom: 10px;
}

.login-panel-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
}

.login-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1;
}

.field-label {
  margin-top: 4px;
  color: #433d36;
  font-size: 0.82rem;
  font-weight: 800;
}

.login-panel input[type="text"],
.login-panel input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d0c9bd;
  border-radius: 6px;
  background: #fffdf8;
  padding: 0 13px;
  color: var(--foreground);
  font: inherit;
}

.login-panel input[type="text"]:focus,
.login-panel input[type="password"]:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(140 77 63 / 18%);
}

.login-error {
  margin: 0;
  border: 1px solid rgb(140 77 63 / 28%);
  border-radius: 6px;
  background: rgb(140 77 63 / 10%);
  padding: 10px 12px;
  color: #74372c;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 8px;
  color: #5d574f;
  font-size: 0.88rem;
}

.remember-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.remember-control input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.login-row a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.login-panel button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: #0f0d0b;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-panel button:hover {
  background: #31251f;
}

.login-footnote {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 10 10 / 18%), transparent 55%);
  pointer-events: none;
}

.hero-copy > *,
.family-hero-copy > *,
.research-hero-copy > * {
  position: relative;
  z-index: 1;
}

.grain-overlay::before {
  content: "";
  position: absolute;
  inset: -100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.055;
  pointer-events: none;
}

.eyebrow,
.kind,
.years,
.place,
.fact-strip p,
footer {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eyebrow {
  margin: 0 0 18px;
  color: color-mix(in srgb, var(--accent) 64%, white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
span,
strong {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.25rem, 16vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.76;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.6rem, 10.5vw, 10.6rem);
  line-height: 0.82;
}

.family-hero h1 {
  max-width: 820px;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.82;
}

.research-hero h1 {
  max-width: 900px;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.82;
}

.lede {
  max-width: 700px;
  margin: 30px 0 0;
  color: rgb(255 255 255 / 78%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.16rem, 2vw, 1.8rem);
  line-height: 1.28;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: calc(100vh - 16px);
}

figure {
  margin: 0;
}

.hero-images figure {
  position: relative;
  overflow: hidden;
  background: #151515;
}

.hero-images img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero-images figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 88%);
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.family-hero-image {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 16px);
  min-height: calc(100vh - 16px);
  background: var(--muted-panel);
}

.family-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.family-hero-image figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 88%);
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fact-strip div {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
  padding: 28px clamp(18px, 3vw, 42px);
}

.fact-strip div:last-child {
  border-right: 0;
}

.fact-strip p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.person {
  min-height: 430px;
  padding: clamp(28px, 5vw, 74px);
  border-right: 1px solid var(--border);
  background: var(--background);
}

.person:last-child {
  border-right: 0;
}

.person h2,
.section-heading h2,
.notes h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.years {
  margin: 18px 0 24px;
  color: var(--archive);
  font-weight: 800;
}

.person p:not(.years) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.62;
}

.person ul {
  max-width: 660px;
  margin: 28px 0 0;
  padding-left: 20px;
  color: var(--foreground);
  line-height: 1.62;
}

.interest-callout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #f5f1ea;
  padding: clamp(42px, 7vw, 86px) clamp(16px, 5vw, 80px);
}

.interest-callout figure {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
}

.interest-callout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  object-position: center;
}

.interest-callout h2 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6.8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.interest-callout p:not(.eyebrow) {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  color: var(--accent);
  font-weight: 850;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.22em;
}

.timeline-section,
.records,
.notes,
.family-section,
.letter-section,
.document-index,
.sibling-section,
.lineage-spotlight,
.letter-queue,
.church-section,
.church-intro {
  padding: clamp(50px, 8vw, 110px) clamp(16px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.section-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
}

.family-heading {
  align-items: start;
}

.family-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.65rem);
  line-height: 1.32;
}

.kin-grid,
.letter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kin-card,
.letter-grid article {
  min-height: 360px;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 24px;
}

.kin-card h3,
.letter-grid h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.kin-card p:not(.kind),
.letter-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--archive);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.letter-grid article {
  min-height: 260px;
}

.letter-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(42px, 7vw, 90px) clamp(16px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}

.letter-feature figure {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  background: var(--paper);
}

.letter-feature img {
  width: 100%;
  display: block;
}

.letter-feature article {
  min-width: 0;
}

.letter-feature h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.letter-feature article > p:not(.kind) {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.letters-pair {
  margin-top: 28px;
}

.letters-pair h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.letter-queue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.letter-queue-card {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  min-height: 560px;
  border: 1px solid var(--border);
  background: var(--paper);
}

.letter-queue-card img {
  width: 100%;
  height: 280px;
  display: block;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
  object-position: center;
}

.letter-queue-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.letter-queue-card > .letter-page-stack {
  flex: none;
  padding: 0;
}

.letter-page-stack {
  display: grid;
  max-height: 980px;
  overflow: auto;
  border-right: 1px solid var(--border);
  background: #eee9df;
}

.letter-page-stack a {
  display: block;
}

.letter-page-stack img {
  height: auto;
  border-right: 0;
  object-fit: contain;
}

.letter-meta {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.letter-meta div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
}

.letter-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.letter-meta dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

.letter-queue-card .translation-pair {
  margin-top: 18px;
}

.letter-queue-card .translation-pair > section {
  min-height: 0;
}

.letter-queue-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.letter-queue-card p:not(.kind) {
  color: var(--muted);
  line-height: 1.55;
}

.letter-queue-card strong {
  margin-top: 8px;
  color: var(--archive);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

.sibling-ledger {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sibling-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 20px;
}

.sibling-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.7vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.sibling-card p:not(.kind):not(.years) {
  color: var(--muted);
  line-height: 1.55;
}

.sibling-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.sibling-meta span,
.sibling-meta a,
.document-rail a,
.related-documents a {
  border: 1px solid var(--border);
  background: var(--muted-panel);
  padding: 10px 12px;
  color: var(--foreground);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.sibling-meta a:hover,
.document-rail a:hover,
.related-documents a:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
}

.lineage-spotlight {
  background: #f0f2ec;
}

.lineage-spotlight-grid {
  display: grid;
  gap: 16px;
}

.lineage-spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
  min-height: 520px;
  border: 1px solid var(--border);
  background: var(--paper);
}

.lineage-spotlight-card > a {
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
  overflow: auto;
  border-right: 1px solid var(--border);
  background: #171717;
}

.lineage-spotlight-card img {
  width: 100%;
  display: block;
}

.lineage-spotlight-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 46px);
}

.lineage-spotlight-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 0.92;
}

.lineage-spotlight-card p:not(.kind) {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 1.35;
}

.spotlight-link {
  width: max-content;
  margin-top: 18px;
  border: 1px solid var(--border);
  background: var(--muted-panel);
  padding: 10px 12px;
  color: var(--foreground);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.spotlight-link:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(118px, 0.2fr) minmax(0, 1fr);
  min-height: 176px;
  border-bottom: 1px solid var(--border);
}

.timeline li::before {
  content: none;
}

.date {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  border-right: 1px solid var(--border);
  padding: 28px 22px;
  color: var(--foreground);
  font-size: clamp(1.45rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.event {
  padding: 28px clamp(22px, 4vw, 58px);
}

.event h3,
.record-body h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.place {
  margin: 10px 0 16px;
  color: var(--archive);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event p:last-child,
.record-body p:last-child,
.notes p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.family-record-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-card {
  overflow: hidden;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--paper);
}

.record-card a {
  display: block;
  height: 330px;
  background: var(--muted-panel);
  border-bottom: 1px solid var(--border);
}

.record-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.record-card a:hover img {
  transform: scale(1.035);
}

.record-body {
  padding: 20px;
}

.map-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(42px, 7vw, 90px) clamp(16px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}

.map-feature figure,
.map-card a {
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f5f1e7;
}

.map-feature a {
  display: block;
}

.map-feature img {
  width: 100%;
  display: block;
}

.map-feature h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.map-feature article > p:not(.kind) {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  line-height: 1.38;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.map-card {
  display: flex;
  min-height: 540px;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--paper);
}

.map-card a {
  display: flex;
  height: 360px;
  align-items: center;
  justify-content: center;
  border-width: 0 0 1px;
}

.map-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.map-card a:hover img {
  transform: scale(1.025);
}

.church-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #f0f2ec;
}

.church-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.church-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 3vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
}

.church-intro p:not(.eyebrow) {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.52rem);
  line-height: 1.38;
}

.church-intro p + p {
  margin-top: 20px;
}

.church-stack {
  display: grid;
  gap: 22px;
}

.church-card {
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: start;
  border: 1px solid var(--border);
  background: var(--paper);
}

.church-card-copy {
  position: sticky;
  top: 88px;
  padding: clamp(22px, 4vw, 46px);
}

.church-card-copy > p:not(.kind) {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.7vw, 1.35rem);
  line-height: 1.4;
}

.church-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-left: 1px solid var(--border);
}

.church-image-grid figure {
  min-width: 0;
  background: #171717;
}

.church-image-grid figure:first-child {
  grid-column: 1 / -1;
}

.church-image-grid a {
  display: flex;
  height: 420px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.church-image-grid figure:first-child a {
  height: 520px;
}

.church-image-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.church-image-grid a:hover img {
  transform: scale(1.025);
}

.church-image-grid figcaption {
  min-height: 126px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  background: #171717;
  padding: 13px 14px 15px;
  color: rgb(255 255 255 / 72%);
  font-size: 0.84rem;
  line-height: 1.45;
}

.church-image-grid figcaption strong {
  display: block;
  margin-bottom: 5px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.church-image-grid figcaption span {
  display: block;
  margin-bottom: 8px;
  color: rgb(255 255 255 / 50%);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.church-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.church-facts div {
  min-width: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px;
}

.church-facts dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.church-facts dd {
  margin: 0;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.35;
}

.church-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.church-links a,
footer a {
  color: var(--accent);
  font-weight: 850;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

.property-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px 16px 0;
}

.property-hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: calc(100vh - 16px);
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgb(10 10 10 / 6%), rgb(10 10 10 / 78%)),
    url("/record/dobrynka-liquidation-table") center / cover;
  color: white;
  padding: clamp(34px, 6vw, 78px);
}

.property-hero h1 {
  max-width: 980px;
  font-size: clamp(4rem, 9vw, 9.6rem);
  line-height: 0.84;
}

.property-hero-image {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 16px);
  background: #eee9df;
}

.property-hero-image a,
.property-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.property-hero-image img {
  object-fit: cover;
  object-position: center;
}

.property-hero-image figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 88%);
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.property-story-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 16px 16px 0;
  border: 1px solid #45352f;
  background: #45352f;
  padding: clamp(22px, 3vw, 38px);
  color: white;
  text-decoration: none;
}

.property-story-link span {
  display: grid;
  gap: 8px;
}

.property-story-link small {
  color: #d9aa91;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.property-story-link strong {
  max-width: 830px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.property-story-link em {
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 850;
}

.property-story-link:hover em {
  background: white;
  color: #45352f;
}

.property-answer,
.property-plan,
.property-system,
.property-gallery,
.property-columns,
.property-sources {
  padding: clamp(50px, 8vw, 110px) clamp(16px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}

.property-answer {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.property-answer.muted {
  background: #f0f2ec;
}

.property-answer h2,
.property-column h2,
.property-system h2,
.property-gallery h2,
.property-sources h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.property-answer > p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.1vw, 1.78rem);
  line-height: 1.38;
}

.property-plan {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  background: #2a2925;
  color: white;
}

.property-plan-visual {
  position: sticky;
  top: 94px;
  margin: 0;
}

.property-plan-visual a {
  overflow: hidden;
  display: block;
  max-height: 980px;
  border: 1px solid rgb(255 255 255 / 24%);
  background: #ded6c5;
}

.property-plan-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.08) contrast(1.03);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.property-plan-visual a:hover img {
  transform: scale(1.012);
  filter: sepia(0) contrast(1.04);
}

.property-plan-visual > p {
  margin: 12px 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.78rem;
}

.property-plan-copy h2 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.property-plan-lede {
  max-width: 860px;
  margin: 28px 0 0;
  color: rgb(255 255 255 / 72%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.68rem);
  line-height: 1.45;
}

.property-plan-detail {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 0.55fr);
  gap: 18px;
  align-items: end;
  margin: 38px 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  padding: 20px 0;
}

.property-plan-detail a,
.property-plan-detail img {
  width: 100%;
  display: block;
}

.property-plan-detail img {
  max-height: 360px;
  object-fit: cover;
  object-position: center 48%;
}

.property-plan-detail figcaption {
  color: rgb(255 255 255 / 62%);
  font-size: 0.86rem;
  line-height: 1.55;
}

.property-plan-reading {
  display: grid;
  gap: 1px;
  border: 1px solid rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 18%);
}

.property-plan-reading article {
  background: #2a2925;
  padding: 22px;
}

.property-plan-reading span {
  color: #d5a46e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-plan-reading p {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 68%);
  line-height: 1.6;
}

.property-plan-source {
  margin: 22px 0 0;
  color: rgb(255 255 255 / 48%);
  font-size: 0.78rem;
  line-height: 1.55;
}

.property-plan-source code {
  color: rgb(255 255 255 / 76%);
}

.property-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  background: var(--paper);
}

.property-flow li {
  min-height: 360px;
  padding: 24px;
  border-right: 1px solid var(--border);
}

.property-flow li:last-child {
  border-right: 0;
}

.property-flow span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 900;
}

.property-flow h3,
.property-card h3,
.property-decoder h3 {
  margin: 22px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.property-flow p,
.property-card p:last-child,
.property-decoder p {
  color: var(--muted);
  line-height: 1.6;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.property-card {
  overflow: hidden;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--paper);
}

.property-card.wide {
  grid-column: span 2;
}

.property-card a {
  display: flex;
  height: 330px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: #eee9df;
}

.property-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.property-card.wide img,
.property-card:nth-child(2) img,
.property-card:nth-child(3) img,
.property-card:nth-child(5) img {
  object-fit: contain;
}

.property-card a:hover img {
  transform: scale(1.025);
}

.property-card > div {
  padding: 20px;
}

.property-card h3 {
  margin-top: 0;
}

.property-columns {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.property-decoder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.property-decoder article {
  min-height: 250px;
  background: var(--paper);
  padding: 24px;
}

.property-decoder h3 {
  margin-top: 0;
}

.property-sources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-sources li {
  display: grid;
  gap: 12px;
  min-height: 122px;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 18px;
}

.property-sources span {
  color: var(--foreground);
  font-weight: 900;
}

.property-sources code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
}

.estate-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  gap: 16px;
  padding: 16px 16px 0;
}

.estate-hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: calc(100vh - 16px);
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgb(10 10 10 / 12%), rgb(10 10 10 / 86%)),
    url("/record/dobrynka-1801-map") center / cover;
  color: white;
  padding: clamp(98px, 9vw, 132px) clamp(34px, 6vw, 82px) clamp(40px, 6vw, 78px);
}

.estate-hero h1 {
  max-width: 940px;
  font-size: clamp(4.1rem, 8.7vw, 9.2rem);
  line-height: 0.82;
}

.estate-hero-evidence {
  min-height: calc(100vh - 16px);
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.estate-hero-evidence figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  background: #ebe6dc;
}

.estate-hero-evidence a,
.estate-hero-evidence img {
  width: 100%;
  height: 100%;
  display: block;
}

.estate-hero-evidence img {
  object-fit: cover;
}

.estate-hero-evidence figure:first-child img {
  object-fit: contain;
}

.estate-hero-evidence figcaption,
.estate-family figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 90%);
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.estate-opening,
.estate-newsstand,
.estate-layers,
.estate-timeline,
.estate-family,
.estate-theory,
.estate-verdict,
.estate-closing {
  padding: clamp(62px, 9vw, 126px) clamp(16px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}

.estate-opening {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
  background: #f0f2ec;
}

.estate-opening .eyebrow {
  margin-top: 10px;
}

.estate-opening h2,
.estate-layers h2,
.estate-timeline h2,
.estate-family h2,
.estate-theory h2,
.estate-verdict h2,
.estate-closing h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.estate-opening > p:last-child {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  line-height: 1.46;
}

.estate-newsstand {
  background: #272520;
  color: white;
}

.estate-newsstand-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
}

.estate-newsstand h2 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.estate-newsstand-heading > p {
  margin: 0;
  color: rgb(255 255 255 / 65%);
  line-height: 1.6;
}

.estate-newspaper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(38px, 6vw, 78px);
}

.estate-newspaper-card {
  overflow: hidden;
  display: flex;
  min-height: 690px;
  flex-direction: column;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  background: #f1ede3;
  color: var(--foreground);
}

.estate-newspaper-card > a {
  overflow: hidden;
  display: block;
  height: 470px;
  background: #d9d3c8;
}

.estate-newspaper-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: sepia(0.12);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.estate-newspaper-card > a:hover img {
  transform: scale(1.025);
  filter: sepia(0);
}

.estate-newspaper-card figcaption {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.estate-paper-date {
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.estate-newspaper-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.05;
}

.estate-newspaper-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.estate-paper-link {
  width: fit-content;
  margin-top: auto;
  border-bottom: 1px solid rgb(140 77 63 / 38%);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-decoration: none;
}

.estate-paper-link:hover,
.estate-paper-link:focus-visible {
  border-color: currentColor;
}

.estate-newsstand-note {
  max-width: 1000px;
  margin: 28px 0 0 auto;
  border-left: 3px solid #d5a46e;
  padding: 8px 0 8px 18px;
  color: rgb(255 255 255 / 65%);
  line-height: 1.6;
}

.estate-newsstand-note strong {
  color: white;
}

.estate-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 72px);
  border: 1px solid var(--border);
  background: var(--paper);
}

.estate-layer-grid article {
  min-height: 390px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--border);
}

.estate-layer-grid article:last-child {
  border-right: 0;
}

.estate-layer-grid article > span {
  display: block;
  margin-bottom: 68px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
}

.estate-layer-grid h3,
.estate-event h3,
.estate-verdict-grid h3 {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.estate-layer-grid article > p:last-child,
.estate-event-copy > p,
.estate-verdict-grid p,
.estate-family-copy > p,
.estate-closing > p {
  color: var(--muted);
  line-height: 1.65;
}

.estate-caution {
  max-width: 1000px;
  margin: 20px 0 0 auto;
  border-left: 4px solid var(--amber);
  padding: 16px 0 16px 22px;
  color: var(--muted);
  line-height: 1.55;
}

.estate-timeline {
  background: #f4f0e8;
}

.estate-event {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 86px);
  margin-top: 22px;
  border-top: 1px solid #cfc8ba;
  padding: clamp(34px, 5vw, 70px) 0;
}

.estate-event.featured,
.estate-event.bank-event {
  margin-right: calc(clamp(16px, 5vw, 80px) * -1);
  margin-left: calc(clamp(16px, 5vw, 80px) * -1);
  padding-right: clamp(16px, 5vw, 80px);
  padding-left: clamp(16px, 5vw, 80px);
}

.estate-event.featured {
  background: #252724;
  color: white;
}

.estate-event.bank-event {
  background: #e3e8de;
}

.estate-year {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.estate-year strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.78;
}

.estate-year span {
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.estate-event-copy {
  max-width: 900px;
}

.estate-event-copy > p {
  font-size: 1.03rem;
}

.estate-event.featured .estate-event-copy > p,
.estate-event.featured .estate-note {
  color: rgb(255 255 255 / 72%);
}

.estate-event.featured .estate-year span,
.estate-event.featured .proof-tag {
  color: #e0a98f;
}

.proof-tag {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--archive);
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1 !important;
  text-transform: uppercase;
}

.proof-tag.reported {
  color: var(--amber);
}

.proof-tag.context {
  color: var(--archive);
}

.estate-note {
  margin-top: 24px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
}

.estate-inline-evidence {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 14px;
}

.estate-inline-evidence img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.estate-inline-evidence p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.estate-bank-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.estate-bank-proof a {
  display: flex;
  height: 260px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: 10px;
}

.estate-bank-proof img {
  width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.estate-family {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.7fr);
  gap: clamp(26px, 6vw, 90px);
  align-items: stretch;
  background: #2e3b33;
  color: white;
}

.estate-family-copy {
  align-self: center;
}

.estate-family-copy > p {
  max-width: 800px;
  color: rgb(255 255 255 / 72%);
  font-size: 1.04rem;
}

.estate-family figure {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  margin: 0;
  background: #ece8de;
}

.estate-family figure a,
.estate-family figure img {
  width: 100%;
  height: 100%;
  display: block;
}

.estate-family figure img {
  object-fit: contain;
}

.estate-theory {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 110px);
  background: #f5d9bd;
}

.estate-theory-label {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.estate-theory-label > p:last-child {
  margin: 0;
  color: #725b49;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.55;
  text-transform: uppercase;
}

.proof-tag.hypothesis {
  border-color: #7a4530;
  color: #7a4530;
}

.estate-theory-copy {
  max-width: 970px;
}

.estate-theory-copy > p:not(.eyebrow, .estate-theory-limit) {
  color: #5f5045;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  line-height: 1.5;
}

.estate-theory-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0;
  border: 1px solid rgb(82 54 39 / 24%);
  background: rgb(82 54 39 / 24%);
}

.estate-theory-steps article {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  gap: 30px;
  background: #fae6d2;
  padding: 22px;
}

.estate-theory-steps span {
  color: #8c4d3f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.estate-theory-steps strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
}

.estate-theory-limit {
  margin: 0;
  border-top: 1px solid rgb(82 54 39 / 28%);
  padding-top: 24px;
  color: #725b49;
  font-size: 0.92rem;
  line-height: 1.6;
}

.estate-verdict {
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
}

.estate-verdict-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.estate-verdict-grid article {
  background: var(--paper);
  padding: clamp(24px, 4vw, 44px);
}

.estate-verdict-grid .proved {
  border-left: 5px solid var(--archive);
}

.estate-verdict-grid .possible {
  border-left: 5px solid var(--amber);
}

.estate-verdict-grid .missing {
  border-left: 5px solid var(--accent);
}

.estate-verdict-grid h3 {
  max-width: 820px;
}

.estate-closing {
  background: #8c4d3f;
  color: white;
}

.estate-closing h2 {
  max-width: 1200px;
  font-size: clamp(3rem, 7.2vw, 7.5rem);
}

.estate-closing > p {
  max-width: 820px;
  color: rgb(255 255 255 / 74%);
  font-size: 1.08rem;
}

.estate-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
  padding: 14px 18px;
  color: white;
  font-weight: 850;
  text-decoration: none;
}

.estate-link:hover {
  background: white;
  color: var(--accent);
}

.estate-sources {
  background: #f4f0e8;
}

.kind {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notes {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.markdown-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 16px clamp(64px, 9vw, 120px);
}

.markdown-page h1 {
  margin: 0 0 28px;
  color: var(--foreground);
  font-size: clamp(3rem, 8vw, 7rem);
}

.markdown-page h2 {
  margin: 64px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.markdown-page h3 {
  margin: 34px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.markdown-page p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.markdown-page ul {
  margin: 14px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.markdown-page li {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  line-height: 1.58;
}

.markdown-page li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--archive);
}

.markdown-page code {
  border: 1px solid var(--border);
  background: var(--muted-panel);
  padding: 2px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.document-main {
  width: min(100%, 1440px);
}

.document-title-block {
  padding: clamp(96px, 13vw, 170px) clamp(16px, 5vw, 80px) clamp(34px, 5vw, 70px);
  border-bottom: 1px solid var(--border);
}

.document-title-block h1 {
  max-width: 1100px;
  color: var(--foreground);
  font-size: clamp(3.4rem, 9vw, 9rem);
  line-height: 0.88;
}

.dark-lede {
  color: var(--muted);
}

.document-reader {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 4vw, 60px) clamp(16px, 5vw, 80px) clamp(60px, 8vw, 120px);
}

.document-scan {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  background: var(--paper);
}

.document-scan a {
  display: block;
  max-height: calc(100vh - 150px);
  overflow: auto;
  background: #171717;
}

.document-scan img {
  width: 100%;
  display: block;
}

.document-scan p {
  margin: 0;
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.document-text {
  display: grid;
  gap: 20px;
}

.document-text section,
.document-status,
.translation-pair > section,
.related-documents {
  border: 1px solid var(--border);
  background: var(--paper);
  padding: clamp(18px, 3vw, 30px);
}

.document-status {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  background: var(--muted-panel);
}

.document-status span {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.document-status strong {
  color: var(--archive);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.document-text h2,
.related-documents h2,
.document-rail h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.translation-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.translation-pair > section {
  min-height: 360px;
}

.subrecords-section {
  border: 0;
  background: transparent;
  padding: 0;
}

.subrecords-section > h2 {
  margin: 0 0 16px;
}

.subrecord-stack {
  display: grid;
  gap: 22px;
}

.subrecord-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--border);
  background: var(--paper);
  padding: clamp(18px, 3vw, 30px);
}

.subrecord-heading {
  display: grid;
  gap: 10px;
}

.subrecord-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.subrecord-heading p {
  margin: 0;
}

.subrecord-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subrecord-images figure {
  margin: 0;
  border: 1px solid var(--border);
  background: #171717;
}

.subrecord-images a {
  display: block;
  max-height: 560px;
  overflow: auto;
}

.subrecord-images img {
  display: block;
  width: 100%;
}

.subrecord-images figcaption {
  border-top: 1px solid rgb(255 255 255 / 12%);
  background: #171717;
  color: rgb(255 255 255 / 76%);
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.subrecord-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.subrecord-facts div {
  min-width: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px;
}

.subrecord-facts dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subrecord-facts dd {
  margin: 0;
  color: var(--foreground);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.subrecord-translation > section {
  min-height: 0;
}

.subrecord-translation h4 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.original-block {
  background:
    linear-gradient(180deg, rgb(242 240 235 / 88%), rgb(255 255 255 / 96%)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgb(10 10 10 / 4%) 31px 32px);
}

.original-block li {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
}

.english-block {
  background: var(--paper);
}

.document-text p,
.document-text li {
  color: var(--muted);
  line-height: 1.65;
}

.transcript-block ul {
  margin: 0;
  padding-left: 20px;
}

.transcript-block li + li {
  margin-top: 10px;
}

.related-documents div,
.document-rail div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-group + .document-group {
  margin-top: clamp(54px, 7vw, 94px);
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}

.document-row:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
}

.document-row > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px 16px 0;
}

.document-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.document-row em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.document-row small {
  margin-top: 10px;
  color: var(--archive);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-thumb {
  min-height: 150px;
  border-right: 1px solid var(--border);
  background: var(--muted-panel);
}

.document-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.document-rail {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: clamp(50px, 8vw, 110px) clamp(16px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
}

footer {
  padding: 34px clamp(16px, 5vw, 80px) 52px;
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0 0 12px;
  color: var(--foreground);
  font-weight: 800;
}

footer ul {
  columns: 2;
  column-gap: 42px;
  margin: 0;
  padding-left: 18px;
}

footer li {
  break-inside: avoid;
  margin: 8px 0;
}

footer span {
  color: #8c887f;
}

@media (max-width: 980px) {
  .hero,
  .family-hero,
  .lineage-hero,
  .property-hero,
  .estate-hero {
    grid-template-columns: 1fr;
  }

  .letter-feature {
    grid-template-columns: 1fr;
  }

  .letter-feature figure {
    position: static;
  }

  .map-feature,
  .map-grid,
  .church-card,
  .church-intro {
    grid-template-columns: 1fr;
  }

  .church-card-copy {
    position: static;
  }

  .church-image-grid {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .hero-copy,
  .family-hero-copy,
  .research-hero-copy {
    min-height: 72vh;
  }

  .property-hero-copy,
  .property-hero-image {
    min-height: 560px;
  }

  .estate-hero-copy,
  .estate-hero-evidence {
    min-height: 680px;
  }

  .estate-hero-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }

  .family-hero-image {
    height: 540px;
    min-height: 0;
  }

  .hero-images {
    min-height: 420px;
  }

  .fact-strip,
  .profiles,
  .interest-callout,
  .notes {
    grid-template-columns: 1fr 1fr;
  }

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

  .property-flow,
  .property-grid,
  .property-columns,
  .property-decoder,
  .property-sources ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-answer,
  .property-plan {
    grid-template-columns: 1fr;
  }

  .property-plan-visual {
    position: static;
  }

  .property-plan-visual a {
    max-height: 760px;
  }

  .estate-opening,
  .estate-newsstand-heading,
  .estate-family,
  .estate-theory,
  .estate-verdict {
    grid-template-columns: 1fr;
  }

  .estate-opening > p:last-child {
    grid-column: 1;
  }

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

  .estate-family figure {
    min-height: 540px;
  }

  .property-flow li {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .property-flow li:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .property-flow li:last-child {
    grid-column: span 2;
    border-right: 0;
    border-bottom: 0;
  }

  .property-card.wide {
    grid-column: span 2;
  }

  .kin-grid,
  .letter-grid,
  .family-record-grid,
  .sibling-ledger,
  .letter-queue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-reader,
  .document-rail,
  .translation-pair,
  .subrecord-images,
  .subrecord-facts,
  .lineage-spotlight-card,
  .church-facts {
    grid-template-columns: 1fr;
  }

  .lineage-spotlight-card > a {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .document-scan {
    position: static;
  }

  .person:nth-child(2n),
  .fact-strip div:nth-child(2n) {
    border-right: 0;
  }

  .fact-strip div {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    left: 10px;
    right: auto;
    width: calc(100dvw - 20px);
    gap: 8px;
    transform: none;
    padding: 8px 8px 8px 14px;
    overflow: visible;
    scrollbar-width: none;
  }

  .site-header::-webkit-scrollbar {
    display: none;
  }

  .brand {
    flex: 0 0 auto;
    max-width: 82px;
    font-size: 0.8rem;
  }

  .site-header nav {
    min-width: max-content;
    gap: 0;
  }

  .site-header nav a,
  .nav-menu summary {
    padding: 8px 5px;
    font-size: 0.66rem;
  }

  .nav-menu-panel {
    left: 0;
    right: auto;
    min-width: 138px;
  }

  .nav-menu-panel a {
    padding: 9px 10px;
    font-size: 0.72rem;
  }

  .hero,
  .family-hero,
  .property-hero,
  .estate-hero {
    gap: 10px;
    padding: 10px 10px 0;
  }

  .estate-hero-copy {
    min-height: 84vh;
    padding: 102px 20px 30px;
  }

  .estate-hero h1 {
    font-size: clamp(3.6rem, 18vw, 5.8rem);
  }

  .estate-hero-evidence {
    min-height: 780px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .estate-layer-grid,
  .estate-bank-proof,
  .estate-theory-steps {
    grid-template-columns: 1fr;
  }

  .estate-newspaper-grid {
    grid-template-columns: 1fr;
  }

  .estate-newspaper-card {
    min-height: 0;
  }

  .estate-newspaper-card > a {
    height: min(118vw, 570px);
  }

  .estate-theory-steps article {
    min-height: 140px;
  }

  .estate-layer-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .estate-layer-grid article:last-child {
    border-bottom: 0;
  }

  .estate-layer-grid article > span {
    margin-bottom: 36px;
  }

  .estate-event {
    grid-template-columns: 1fr;
  }

  .estate-year strong {
    font-size: 4.7rem;
  }

  .estate-inline-evidence {
    grid-template-columns: 1fr;
  }

  .estate-bank-proof a {
    height: 220px;
  }

  .estate-family figure {
    min-height: 470px;
  }

  .property-story-link {
    align-items: flex-start;
    flex-direction: column;
    margin: 10px 10px 0;
  }

  .hero-copy,
  .family-hero-copy,
  .research-hero-copy {
    min-height: 76vh;
    padding: 88px 20px 26px;
  }

  .login-shell {
    min-height: 100dvh;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 22px;
    padding: 96px 14px 18px;
  }

  .login-backdrop {
    background:
      linear-gradient(180deg, rgb(12 10 8 / 58%) 0%, rgb(12 10 8 / 92%) 58%, rgb(12 10 8 / 96%) 100%),
      url("/record/anna-twins-page") center / cover;
  }

  .login-copy {
    align-self: end;
    padding: 0;
  }

  .login-copy h1 {
    max-width: 360px;
    font-size: clamp(3.45rem, 17vw, 5.4rem);
  }

  .login-copy p:not(.eyebrow) {
    max-width: 340px;
    margin-top: 16px;
    font-size: 0.98rem;
  }

  .login-panel {
    padding: 20px;
  }

  .login-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  h1 {
    font-size: clamp(4.55rem, 24vw, 7.2rem);
  }

  .hero h1 {
    font-size: clamp(4rem, 19vw, 6.4rem);
    line-height: 0.86;
  }

  .family-hero h1 {
    font-size: clamp(3.45rem, 17vw, 5.4rem);
    line-height: 0.86;
  }

  .research-hero h1 {
    font-size: clamp(3.45rem, 17vw, 5.4rem);
    line-height: 0.86;
  }

  .property-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
    line-height: 0.88;
  }

  .letters-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.4rem);
    line-height: 0.88;
  }

  .lineage-hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.9rem);
    line-height: 0.9;
  }

  .lede {
    font-size: 1.22rem;
  }

  .hero-images {
    min-height: 360px;
    gap: 10px;
  }

  .family-hero-image {
    height: 480px;
    min-height: 0;
  }

  .fact-strip,
  .profiles,
  .interest-callout,
  .notes,
  .record-grid,
  .map-grid,
  .church-image-grid,
  .kin-grid,
  .letter-grid,
  .family-record-grid,
  .sibling-ledger,
  .document-status {
    grid-template-columns: 1fr;
  }

  .church-image-grid figure:first-child {
    grid-column: auto;
  }

  .fact-strip div,
  .person {
    border-right: 0;
  }

  .fact-strip div {
    min-height: 120px;
  }

  .person {
    min-height: 0;
    border-bottom: 1px solid var(--border);
    padding: 34px 22px;
  }

  .section-heading {
    display: block;
  }

  .timeline-section,
  .records,
  .notes,
  .family-section,
  .letter-section,
  .document-index,
  .sibling-section,
  .lineage-spotlight,
  .document-rail,
  .letter-queue,
  .letter-feature,
  .map-feature,
  .church-section,
  .church-intro,
  .property-answer,
  .property-plan,
  .property-system,
  .property-gallery,
  .property-columns,
  .property-sources {
    padding: 42px 16px;
  }

  .property-hero-copy {
    min-height: 560px;
    padding: 96px 24px 30px;
  }

  .property-hero-image {
    min-height: 360px;
  }

  .property-flow,
  .property-grid,
  .property-columns,
  .property-decoder,
  .property-sources ul {
    grid-template-columns: 1fr;
  }

  .property-flow li,
  .property-flow li:nth-child(odd),
  .property-flow li:last-child {
    min-height: 0;
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .property-flow li:last-child {
    border-bottom: 0;
  }

  .property-card,
  .property-decoder article {
    min-height: 0;
  }

  .property-card.wide {
    grid-column: auto;
  }

  .property-card a {
    height: 300px;
  }

  .property-plan-detail {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .property-plan-detail img {
    max-height: 440px;
    object-position: center;
  }

  .family-heading > p {
    margin-top: 22px;
  }

  .kin-card,
  .letter-grid article,
  .letter-queue-card {
    min-height: 0;
    padding: 20px;
  }

  .letter-queue-card {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .letter-page-stack {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .date {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 22px 0 12px;
  }

  .event {
    padding: 20px 0 28px;
  }

  .record-card {
    min-height: 0;
  }

  .record-card a {
    height: 340px;
  }

  .lineage-spotlight-card,
  .lineage-spotlight-card > a {
    min-height: 0;
  }

  .lineage-spotlight-card > a {
    height: 300px;
  }

  .map-card {
    min-height: 0;
  }

  .map-card a {
    height: 300px;
  }

  .church-image-grid a,
  .church-image-grid figure:first-child a {
    height: 320px;
  }

  .church-image-grid figcaption {
    min-height: 0;
  }

  .document-title-block {
    padding: 100px 16px 34px;
  }

  .document-title-block h1 {
    font-size: clamp(3.2rem, 16vw, 5.8rem);
  }

  .document-reader {
    padding: 18px 16px 54px;
  }

  .document-row {
    grid-template-columns: 1fr;
  }

  .document-row > span:last-child {
    padding: 0 16px 18px;
  }

  .document-thumb {
    height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .letter-feature h2 {
    font-size: clamp(2.6rem, 13vw, 5rem);
  }

  .letter-queue-grid {
    grid-template-columns: 1fr;
  }

  footer ul {
    columns: 1;
  }
}
