/* A quiet, book-like reading experience, scoped to the family story. */
.heritage-page {
  --story-ink: #302920;
  --story-soft: #675842;
  --story-paper: #f1e9d9;
  --story-line: #c9b99a;
  color: var(--story-ink);
  background:
    radial-gradient(ellipse at 0 10%, #d4bb8724, transparent 55%),
    repeating-linear-gradient(5deg, #ffffff06 0 1px, transparent 1px 4px),
    var(--story-paper);
  font-family: Georgia, "Times New Roman", serif;
  overflow: clip;
}
.heritage-page :where(h1, h2, h3, p, figure) {
  margin: 0;
}
.heritage-page :where(h1, h2, h3) {
  font-weight: 400;
  text-wrap: balance;
}
.heritage-page a {
  text-underline-offset: 5px;
}
.heritage-page a:focus-visible,
.heritage-page button:focus-visible {
  outline: 2px solid #8b5c2e;
  outline-offset: 5px;
}
.story-reading-track {
  height: 3px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  pointer-events: none;
}
.story-reading-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: #ac8b53;
  transform: scaleX(0);
  transform-origin: left;
}
.story-cover {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  max-width: 1800px;
  margin: auto;
  min-height: 660px;
}
.story-cover-copy {
  position: relative;
  padding: 58px clamp(28px, 5vw, 90px) 38px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.heritage-page .story-kicker {
  font:
    10px/1.6 Arial,
    sans-serif;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--story-soft);
  text-transform: uppercase;
}
.story-ornament {
  color: #997740;
  font-size: 22px;
  display: block;
  margin: 27px 0;
}
.story-cover h1,
.story-cover h2 {
  font-size: clamp(46px, 5.25vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.065em;
  max-width: 9ch;
  margin: 0 0 28px;
}
.story-cover-intro {
  max-width: 370px;
  font-size: 17px;
  line-height: 1.8;
  color: #514737;
}
.story-read-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font:
    12px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.05em;
  min-height: 48px;
  margin: 24px 0;
  border-bottom: 1px solid #867353;
}
.story-read-link span {
  font-size: 20px;
}
.story-cover-period {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px !important;
  font:
    9px/1.6 Arial,
    sans-serif;
  letter-spacing: 0.15em;
  color: #675842;
}
.story-cover-period span {
  font:
    italic 14px/1 Georgia,
    serif;
  letter-spacing: 0.02em;
}
.story-cover-art {
  min-width: 0;
  position: relative;
  background: #382a1d;
}
.story-cover-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 50%;
  position: absolute;
  inset: 0;
}
.story-cover-art figcaption {
  position: absolute;
  bottom: 23px;
  left: 25px;
  right: 25px;
  color: #fff5df;
  font:
    italic 11px/1.6 Georgia,
    serif;
  text-shadow: 0 1px 5px #000;
  z-index: 1;
}
.story-cover-art::after {
  content: "";
  position: absolute;
  inset: 70% 0 0;
  background: linear-gradient(transparent, #20190bb8);
  pointer-events: none;
}
.story-cover-seal {
  position: absolute;
  left: -52px;
  bottom: 76px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  align-items: center;
  color: #55472f;
  background: #e7d9bb;
  border: 1px solid #9f875b;
  outline: 5px solid #e7d9bb;
  box-shadow: 0 7px 18px #2e251533;
  z-index: 2;
  transform: rotate(-10deg);
}
.story-cover-seal span {
  font:
    7px/1 Arial,
    sans-serif;
  letter-spacing: 0.13em;
}
.story-cover-seal em {
  font:
    italic 28px/1 Georgia,
    serif;
}
.story-chapters {
  max-width: 1800px;
  margin: auto;
  padding: 19px 5%;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--story-line);
  border-top: 1px solid var(--story-line);
  background: #e9dfcd80;
  font:
    9px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.08em;
}
.story-chapters-label {
  flex: 0 0 auto;
  color: #71614c;
}
.story-chapters > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.story-chapters a {
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
}
.story-chapters a span {
  color: #8a6c40;
  font:
    italic 13px Georgia,
    serif;
}
.story-chapter {
  scroll-margin-top: 125px;
}
.story-essay {
  max-width: 1100px;
  padding: 95px 60px 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 140px minmax(0, 670px);
  justify-content: center;
  gap: 45px;
}
.story-margin {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 38px;
  gap: 24px;
}
.story-margin-number {
  font:
    italic 64px/1 Georgia,
    serif;
  color: #b6a17b;
}
.story-margin-rule {
  width: 1px;
  height: 100px;
  background: linear-gradient(var(--story-line), transparent);
}
.story-margin-mark {
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 0.2em;
  color: #897754;
}
.story-essay-copy {
  min-width: 0;
}
.heritage-page h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.story-essay h2 {
  margin: 22px 0 30px;
}
.story-prose {
  font-size: 17px;
  line-height: 1.95;
  color: #514838;
}
.story-prose p + p {
  margin-top: 22px;
}
.story-prose strong {
  color: #302920;
  font-weight: 600;
}
.story-prose em {
  color: #806138;
}
.story-opening-essay .story-prose > p:first-child::first-letter {
  float: left;
  font-size: 76px;
  line-height: 0.85;
  padding: 10px 9px 0 0;
  color: #7f5e34;
}
.story-friendship {
  max-width: 1480px;
  padding: 100px 6%;
  margin: 95px auto 0;
  background: #e1d3b869;
  border-block: 1px solid #c9b99a80;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 6%;
  align-items: center;
}
.story-plate {
  min-width: 0;
  padding: 13px 13px 18px;
  background: #f7efdf;
  border: 1px solid #c4b291;
  box-shadow: 0 10px 25px #513d1712;
  transform: rotate(-1.2deg);
}
.story-plate img {
  display: block;
  width: 100%;
  height: auto;
}
.story-plate figcaption {
  padding: 13px 7px 0;
  font:
    italic 11px/1.7 Georgia,
    serif;
  color: #675842;
}
.story-friendship-copy {
  min-width: 0;
}
.story-friendship-copy h2 {
  margin: 22px 0 26px;
}
.story-friendship .story-prose {
  font-size: 16px;
  line-height: 1.9;
}
.story-reverse .story-plate {
  order: 2;
}
.story-notebook-section {
  max-width: 1250px;
  margin: auto;
  padding: 100px 5% 0;
}
.story-notebook-heading {
  max-width: 600px;
  margin: 0 auto 44px;
  text-align: center;
}
.story-notebook-heading h2 {
  margin: 20px 0;
}
.story-notebook-heading > p:last-child {
  color: #675842;
  font-size: 15px;
  line-height: 1.8;
}
.story-notebook {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border: 1px solid #b3a180;
  box-shadow:
    0 8px 0 -3px #ded0b4,
    0 9px 0 -3px #baaa8c,
    0 14px 0 -6px #ded0b4,
    0 15px 0 -6px #baaa8c,
    0 24px 48px #49371718;
  background: #f9f2e4;
}
.story-notebook-index {
  padding: 44px 42px 28px;
  background:
    radial-gradient(ellipse at right, #bba47212, transparent 70%), #e9dec8;
  border-right: 1px solid #b8a784;
  position: relative;
}
.story-notebook-index::after {
  content: "";
  position: absolute;
  width: 10px;
  inset: 0 0 0 auto;
  background: linear-gradient(90deg, transparent, #6e512515);
}
.story-notebook-script {
  font:
    italic 35px/1.25 "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  color: #806138;
  margin: 32px 0 20px !important;
  letter-spacing: -0.035em;
}
.story-notebook-label {
  font:
    11px/1.7 Arial,
    sans-serif;
  color: #675842;
  max-width: 220px;
}
.story-folio-tabs {
  margin-top: 28px;
  display: grid;
}
.story-folio-tabs a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 3px;
  border-top: 1px solid #c6b796;
  font-size: 15px;
  line-height: 1.4;
  min-height: 48px;
  text-decoration: none;
}
.story-folio-tabs a span:first-child {
  color: #8c734c;
  font-style: italic;
  font-size: 12px;
}
.story-folio-tabs a span:last-child {
  margin-left: auto;
  font-family: Arial, sans-serif;
  font-size: 17px;
}
.story-folio-tabs a[aria-selected="true"] {
  font-style: italic;
  color: #623d1a;
  background: #dac8a65c;
}
.story-notebook-flourish {
  display: block;
  text-align: center;
  color: #967647;
  margin: 26px 0 0;
}
.story-notebook-pages {
  min-width: 0;
  padding: 43px 45px 23px;
  background:
    linear-gradient(90deg, #84693915, transparent 30px),
    repeating-linear-gradient(0deg, transparent 0 31px, #b8996525 31px 32px);
  display: flex;
  flex-direction: column;
}
.story-folio {
  padding-bottom: 12px;
  scroll-margin-top: 120px;
}
.story-folio + .story-folio {
  padding-top: 40px;
  border-top: 1px solid #c6b796;
}
.story-notebook.is-interactive .story-folio {
  border: 0;
  padding-top: 0;
}
.story-folio-number {
  font:
    9px/1.6 Arial,
    sans-serif;
  letter-spacing: 0.15em;
  color: #806c4e;
  margin-bottom: 28px !important;
}
.story-folio h3 {
  font-size: 35px;
  color: #503b25;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 20px;
}
.story-folio p {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 20px;
}
.story-folio .story-folio-lead {
  font-size: 20px;
  font-style: italic;
  color: #7d5f36;
  margin-bottom: 25px;
}
.story-folio .story-folio-number {
  font-size: 9px;
  line-height: 1.6;
}
.story-folio-rule {
  display: block;
  width: 70px;
  border-bottom: 1px solid #a08c63;
  margin: 26px 0;
}
.story-folio-controls {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font:
    10px/1.6 Arial,
    sans-serif;
  color: #675842;
}
.story-folio-controls button {
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #554023;
  font:
    11px/1.5 Arial,
    sans-serif;
  min-height: 44px;
}
.story-folio-controls button:disabled {
  opacity: 0.4;
}
.story-folio-controls [data-folio-status] {
  text-align: center;
}
.story-dedication {
  margin-top: 95px;
  padding: 76px 7%;
  color: #efe5cf;
  background:
    radial-gradient(ellipse at top, #314058, transparent 80%), #101d30;
  text-align: center;
  position: relative;
}
.story-dedication::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid #9c89513b;
  pointer-events: none;
}
.story-dedication-inner {
  max-width: 740px;
  margin: auto;
}
.story-dedication .story-ornament {
  color: #c2ab74;
  margin: 0 0 24px;
}
.story-dedication .story-kicker {
  color: #cbbd9e;
}
.story-dedication h2 {
  margin: 30px 0;
  white-space: pre-line;
  font-size: clamp(37px, 4.5vw, 65px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.story-dedication-inner > p {
  max-width: 540px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.9;
  color: #d3cbb8;
}
.story-dedication-rule {
  width: 45px;
  margin: 35px auto 28px;
  border-top: 1px solid #ab9767;
}
.story-dedication-inner .story-dedication-name {
  font:
    italic 25px/1.5 Georgia,
    serif;
  color: #eddfbe;
}
.story-dedication-inner .story-dedication-detail {
  font:
    10px/1.8 Arial,
    sans-serif;
  margin-top: 10px;
  letter-spacing: 0.06em;
}
.story-invitation {
  text-align: center;
  max-width: 790px;
  padding: 95px 7% 55px;
  margin: auto;
}
.story-invitation h2 {
  margin: 23px 0;
}
.story-invitation > p:not(.story-kicker, .story-wordmark, .story-tagline) {
  font-size: 17px;
  line-height: 1.9;
  color: #675842;
}
.story-collection-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font:
    12px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.02em;
  min-height: 52px;
  margin: 32px 0 48px;
  padding: 16px 25px;
  background: #203047;
  color: #faf3e4;
}
.story-collection-link:hover {
  background: #354963;
}
.story-invitation .story-wordmark {
  font-size: 29px;
  letter-spacing: -0.06em;
}
.story-invitation .story-tagline {
  margin-top: 9px;
  color: #736148;
  font:
    8px/1.8 Arial,
    sans-serif;
  letter-spacing: 0.21em;
}
.story-art-note {
  max-width: 700px;
  padding: 0 24px 34px;
  margin: auto !important;
  text-align: center;
  font:
    10px/1.8 Arial,
    sans-serif;
  color: #766a57;
}
.story-standalone-plate {
  max-width: 1100px;
  margin: 70px auto !important;
  padding: 0 6%;
}
.story-standalone-plate img {
  width: 100%;
  height: auto;
}
.story-standalone-plate figcaption {
  padding-top: 12px;
  font-size: 12px;
  font-style: italic;
}
.story-extra {
  padding: 18px 0;
  border-bottom: 1px solid var(--story-line);
}
.story-extra summary {
  cursor: pointer;
}
.story-extra p {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 18px;
}
@media (max-width: 1000px) {
  .story-cover {
    min-height: 590px;
  }
  .story-cover-copy {
    padding: 42px 30px;
  }
  .story-cover h1 {
    font-size: 61px;
  }
  .story-cover-seal {
    width: 90px;
    height: 90px;
    left: -35px;
    bottom: 60px;
  }
  .story-cover-seal em {
    font-size: 23px;
  }
  .story-cover-seal span {
    font-size: 6px;
  }
  .story-essay {
    padding-inline: 6%;
    grid-template-columns: 85px minmax(0, 660px);
    gap: 25px;
  }
  .story-notebook-index,
  .story-notebook-pages {
    padding-inline: 28px;
  }
  .story-friendship {
    gap: 5%;
    padding-inline: 5%;
  }
}
@media (max-width: 720px) {
  .story-cover {
    display: flex;
    flex-direction: column;
  }
  .story-cover-copy {
    padding: 42px 7% 37px;
    align-items: center;
    text-align: center;
  }
  .story-cover .story-kicker {
    font-size: 9px;
  }
  .story-cover .story-ornament {
    margin: 20px 0;
  }
  .story-cover h1 {
    font-size: clamp(46px, 12vw, 66px);
    max-width: 11ch;
    margin-bottom: 22px;
  }
  .story-cover-intro {
    font-size: 16px;
    max-width: 380px;
  }
  .story-read-link {
    margin: 17px 0 11px;
  }
  .story-cover-period {
    margin-top: 22px !important;
    justify-content: center;
  }
  .story-cover-art {
    aspect-ratio: 1.35;
    width: 100%;
  }
  .story-cover-art > img {
    object-position: center;
  }
  .story-cover-seal {
    width: 86px;
    height: 86px;
    bottom: auto;
    top: -24px;
    right: 7%;
    left: auto;
  }
  .story-cover-art figcaption {
    left: 20px;
    bottom: 15px;
    font-size: 10px;
  }
  .story-chapters {
    padding: 16px 7%;
    display: block;
  }
  .story-chapters-label {
    display: block;
    margin-bottom: 7px;
    font-size: 8px;
  }
  .story-chapters > div {
    gap: 0 18px;
  }
  .story-chapters a {
    min-height: 44px;
    font-size: 10px;
  }
  .story-essay {
    display: block;
    padding: 62px 7% 0;
  }
  .story-margin {
    display: none;
  }
  .story-essay h2 {
    font-size: 34px;
    margin: 18px 0 26px;
  }
  .story-prose {
    font-size: 16px;
    line-height: 1.95;
  }
  .story-prose p + p {
    margin-top: 20px;
  }
  .story-friendship {
    display: flex;
    flex-direction: column;
    padding: 53px 7%;
    margin-top: 62px;
    gap: 40px;
  }
  .story-plate {
    transform: rotate(-0.8deg);
    padding: 9px 9px 13px;
  }
  .story-plate figcaption {
    font-size: 10px;
  }
  .story-friendship-copy h2 {
    max-width: 12ch;
  }
  .story-reverse .story-plate {
    order: initial;
  }
  .story-notebook-section {
    padding: 63px 5% 0;
  }
  .story-notebook-heading {
    padding-inline: 3%;
    margin-bottom: 28px;
  }
  .story-notebook-heading h2 {
    font-size: 35px;
  }
  .story-notebook {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-notebook-index {
    padding: 28px 25px 22px;
    border-right: 0;
    border-bottom: 1px solid #b8a784;
  }
  .story-notebook-index::after,
  .story-notebook-flourish {
    display: none;
  }
  .story-notebook-script {
    font-size: 30px;
    margin: 20px 0 15px !important;
  }
  .story-notebook-script br {
    display: none;
  }
  .story-notebook-label {
    max-width: none;
  }
  .story-folio-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    margin-top: 18px;
  }
  .story-folio-tabs a {
    font-size: 12px;
    gap: 6px;
    padding-block: 13px;
  }
  .story-folio-tabs a span:last-child {
    display: none;
  }
  .story-notebook-pages {
    padding: 30px 26px 18px;
  }
  .story-folio h3 {
    font-size: 32px;
  }
  .story-folio p {
    font-size: 16px;
  }
  .story-folio .story-folio-lead {
    font-size: 20px;
  }
  .story-dedication {
    margin-top: 65px;
    padding: 60px 9%;
  }
  .story-dedication::before {
    inset: 12px;
  }
  .story-dedication h2 {
    font-size: 39px;
  }
  .story-dedication-inner > p {
    font-size: 15px;
  }
  .story-invitation {
    padding-top: 65px;
  }
  .story-invitation h2 {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.heritage-page) {
    scroll-behavior: auto;
  }
}
@media print {
  .heritage-page {
    background: white;
    color: #000;
    overflow: visible;
  }
  .story-reading-track,
  .story-chapters,
  .story-read-link,
  .story-cover-seal,
  .story-folio-tabs,
  .story-folio-controls,
  .story-collection-link {
    display: none !important;
  }
  .story-cover {
    display: block;
    min-height: 0;
  }
  .story-cover-copy {
    padding: 20px 0;
  }
  .story-cover h1 {
    font-size: 36pt;
    max-width: none;
  }
  .story-cover-art {
    height: 260px;
  }
  .story-essay {
    display: block;
    padding: 35px 0 0;
  }
  .story-margin {
    display: none;
  }
  .story-friendship {
    display: block;
    padding: 25px 0;
    margin-top: 30px;
  }
  .story-plate {
    max-width: 420px;
    margin: 0 auto 25px;
    transform: none;
  }
  .story-notebook-section {
    padding: 30px 0;
  }
  .story-notebook {
    display: block;
    box-shadow: none;
  }
  .story-notebook-index {
    display: none;
  }
  .heritage-page [data-folio-panel][hidden] {
    display: block !important;
  }
  .story-folio {
    padding-top: 20px !important;
  }
  .story-dedication {
    background: #fff;
    color: #000;
    border-block: 1px solid #888;
    margin-top: 35px;
    padding: 35px 0;
  }
  .story-dedication-inner > p,
  .story-dedication-inner .story-dedication-name,
  .story-dedication .story-kicker {
    color: #333;
  }
  .story-dedication::before {
    display: none;
  }
  .story-invitation {
    padding: 35px 0;
  }
  .heritage-page h2,
  .heritage-page h3 {
    break-after: avoid;
  }
  .story-prose p,
  .story-folio p {
    orphans: 3;
    widows: 3;
  }
}
.story-chapters a[aria-current="location"] {
  color: #4b3518;
  text-decoration: underline;
}
.story-notebook.is-interactive .story-notebook-pages {
  min-height: 590px;
}
@media (max-width: 720px) {
  .story-notebook.is-interactive .story-notebook-pages {
    min-height: 530px;
  }
}
@media print {
  .story-notebook.is-interactive .story-notebook-pages {
    min-height: 0;
  }
}
