:root {
  --bg: #f4ecdf;
  --paper: rgba(255, 251, 245, 0.94);
  --paper-strong: #fffdf9;
  --ink: #231c14;
  --muted: #675d52;
  --border: #d7c7b3;
  --accent: #6f2e1d;
  --accent-strong: #8a3e29;
  --accent-soft: #efe1d1;
  --shadow: 0 18px 45px rgba(71, 48, 26, 0.09);
  --body-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --ui-font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max-width: 74rem;
  --hit-target: 3.5rem;
}

* { box-sizing: border-box; }

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #f8f2e8 0%, #efe3d3 100%);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.85;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(180deg, #f8f2e8 0%, #efe3d3 100%);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.site-title,
.section-title {
  font-family: var(--ui-font);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.site-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0;
}

.site-title-link {
  text-decoration: none;
}

.site-title-link:hover,
.site-title-link:focus-visible {
  text-decoration: underline;
}

.site-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-items: center;
}

.site-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-family: var(--ui-font);
  font-size: 0.94rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(111, 46, 29, 0.14);
  background: rgba(255, 255, 255, 0.68);
}

.site-menu-link-content {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-menu-link-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: currentColor;
}

.site-menu-link:hover,
.site-menu-link:focus-visible {
  border-color: rgba(111, 46, 29, 0.3);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
}

.site-menu-link.is-current {
  color: #fff8f0;
  border-color: transparent;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0;
}

.section-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.section-title-icon {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  color: var(--accent-strong);
  opacity: 0.88;
}

.hero,
.panel,
.story-card,
.article-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.hero h1,
.story-title,
.article-card h1,
.article-card h2,
.article-card h3 {
  font-family: var(--ui-font);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin: 0;
  max-width: 40rem;
}

.home-hero h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  max-width: 13ch;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(193, 131, 76, 0.16), transparent 26%),
    radial-gradient(circle at left 18%, rgba(111, 46, 29, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(247, 239, 229, 0.98));
}

.home-hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-copy .audio-kicker,
.home-hero-aside .audio-kicker {
  margin-bottom: 0.7rem;
}

.home-hero-summary {
  max-width: 38rem;
  margin: 1rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--ink);
}

.home-hero-aside {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(111, 46, 29, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(252, 246, 239, 0.98), rgba(243, 231, 214, 0.92));
}

.home-hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.home-hero-stat {
  padding: 0.75rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(111, 46, 29, 0.12);
}

.home-hero-stat-value {
  display: block;
  font-family: var(--ui-font);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.home-hero-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--ui-font);
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
}

.home-hero-note {
  margin: 0.9rem 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.home-feature-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-feature-grid > .section-panel {
  margin-bottom: 0;
}

.home-feature-grid > :only-child {
  grid-column: 1 / -1;
}

.audio-hero h1 {
  font-size: clamp(2.3rem, 4.1vw, 3.7rem);
  max-width: none;
}

.section-panel {
  padding: 1.3rem;
  margin-bottom: 1.5rem;
}

.section-header {
  margin-bottom: 1rem;
}

.audio-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--ui-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.kicker-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  color: var(--accent-strong);
  opacity: 0.88;
}

.audio-summary,
.audio-note,
.audio-runtime {
  max-width: 48rem;
  margin: 0 0 1rem;
}

.audio-note {
  color: var(--muted);
  font-size: 0.96rem;
}

.audio-attribution {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 42rem;
}

.audio-attribution-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.18rem;
  color: var(--accent-strong);
  opacity: 0.9;
}

.audio-attribution a {
  color: var(--accent);
  font-family: var(--ui-font);
  font-weight: 600;
}

.audio-runtime {
  margin: 0.3rem 0 0;
  font-family: var(--ui-font);
  font-size: 0.92rem;
  color: var(--muted);
}

.audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.audio-actions .nav-button,
.audio-actions .nav-placeholder {
  flex: 1 1 12rem;
}

.audio-player {
  width: 100%;
  margin-top: 0.55rem;
}

.entry-audio-panel,
.audio-track-card,
.source-card {
  padding: 1.3rem;
  margin-bottom: 1.2rem;
}

.entry-audio-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.entry-audio-grid.has-single {
  max-width: 34rem;
}

.entry-audio-panel {
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.entry-audio-summary {
  cursor: pointer;
  padding: 0.95rem 1rem;
  list-style-position: inside;
}

.entry-audio-summary-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.entry-audio-summary-label {
  font-family: var(--ui-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.entry-audio-summary-title {
  font-family: var(--ui-font);
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--ink);
}

.entry-audio-summary-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.entry-audio-panel[open] .entry-audio-summary {
  border-bottom: 1px solid rgba(111, 46, 29, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

.entry-audio-panel-body {
  padding: 0.95rem 1rem 1rem;
}

.audio-hero,
.audio-feature-card,
.audio-section,
.audiobook-overview,
.source-hero,
.source-overview,
.source-section {
  margin-bottom: 1.5rem;
}

.audiobook-overview,
.source-overview {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.audiobook-overview .audio-summary,
.source-overview .audio-summary {
  max-width: none;
}

.audiobook-overview .audio-actions,
.source-overview .audio-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.audio-track-grid,
.source-library-grid {
  display: grid;
  gap: 1rem;
}

.audio-track-card {
  margin-bottom: 0;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

.audio-track-copy {
  min-width: 0;
}

.audio-track-copy .audio-kicker {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.audio-track-copy .section-title {
  font-size: clamp(1.18rem, 2.1vw, 1.45rem);
  margin: 0;
}

.audio-track-copy .audio-runtime {
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.audio-track-copy .audio-note {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.audio-track-card .audio-player {
  margin-top: 0;
  min-width: 0;
}

.audio-track-card .audio-actions {
  gap: 0.45rem;
  margin-top: 0;
}

.audio-track-card .nav-button,
.audio-track-card .nav-placeholder {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
}

.audio-track-card .nav-button-content {
  gap: 0.35rem;
}

.audio-track-card .nav-button-icon {
  width: 1rem;
  height: 1rem;
}

.source-card.featured {
  border-color: rgba(111, 46, 29, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(180deg, rgba(252, 246, 239, 0.98), rgba(243, 231, 214, 0.92));
}

.source-meta {
  margin: 0.35rem 0 0;
  font-family: var(--ui-font);
  font-size: 0.96rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.source-meta code {
  font-size: 0.9em;
}

.source-hero .source-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.85rem;
}

.source-section-note {
  max-width: 48rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 0;
}

.story-card {
  display: block;
  text-decoration: none;
  padding: 1.15rem;
  min-height: 15rem;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.story-card.has-thumbnail {
  padding: 0.9rem;
}

.story-card:hover,
.story-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(71, 48, 26, 0.14);
  border-color: rgba(111, 46, 29, 0.38);
  outline: none;
}

.story-card .story-title {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.75rem;
}

.story-card.has-thumbnail .story-title {
  margin-top: 0;
}

.story-card p {
  margin: 0.7rem 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.story-card-media {
  margin: 0 0 0.9rem;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid rgba(111, 46, 29, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 237, 225, 0.92));
}

.story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.nav-button,
.nav-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit-target);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-family: var(--ui-font);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--paper-strong);
}

.nav-button,
.nav-placeholder {
  flex: 1 1 12rem;
}

.nav-button.primary {
  background: var(--accent);
  color: #fff8f0;
  border-color: transparent;
}

.nav-button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.nav-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
}

.nav-button-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.nav-button-label {
  min-width: 0;
}

.nav-button.icon-only {
  flex: 0 0 auto;
  width: var(--hit-target);
  padding: 0;
  aspect-ratio: 1 / 1;
}

.nav-button-content-icon-only {
  gap: 0;
}

.nav-button.icon-only .nav-button-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-placeholder {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
}

.home-button {
  flex: 0 0 auto;
  width: var(--hit-target);
  padding: 0;
}

.home-button svg {
  width: 1.35rem;
  height: 1.35rem;
}

.article-card {
  padding: 1.4rem;
}

.article-card::after {
  content: "";
  display: block;
  clear: both;
}

.article-card h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
}

.article-heading-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.article-heading-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  color: var(--accent-strong);
  opacity: 0.88;
  transform: translateY(0.14em);
}

.article-heading-text {
  min-width: 0;
}

.article-card h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 1.6rem 0 0.8rem;
}

.article-card h3 {
  font-size: 1.25rem;
  margin: 1.4rem 0 0.7rem;
}

.article-card p {
  margin: 0 0 1rem;
}

.article-card figure {
  width: min(100%, 46rem);
  margin: 1.5rem 0;
  padding: 0.9rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 237, 225, 0.92));
  border: 1px solid rgba(111, 46, 29, 0.14);
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  margin-inline: auto;
}

.article-card figure.figure-gallery {
  width: min(100%, 58rem);
}

.article-card figure.figure-emblem {
  width: min(100%, 16rem);
  padding: 0.7rem;
}

.article-card figure.figure-signature {
  width: min(100%, 24rem);
  padding: 0.7rem;
}

.article-card figure.figure-illustration {
  width: min(100%, 34rem);
}

.article-card .figure-image-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: inherit;
}

.article-card .figure-image-link img {
  max-width: 100%;
  width: auto;
  max-height: 34rem;
  margin: 0 auto;
  border-radius: 0.6rem;
  box-shadow: 0 12px 28px rgba(71, 48, 26, 0.1);
}

.article-card figure.figure-emblem .figure-image-link img {
  max-height: 13rem;
}

.article-card figure.figure-signature .figure-image-link img {
  max-height: 7rem;
  box-shadow: none;
}

.article-card .figure-image-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.article-card .figure-image-grid .figure-image-link {
  width: 100%;
}

.article-card .figure-image-grid .figure-image-link img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.article-card .figure-missing {
  width: 100%;
  padding: 1rem;
  border-radius: 0.7rem;
  border: 1px dashed rgba(111, 46, 29, 0.28);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--ui-font);
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.article-card .figure-orphaned-caption {
  margin: 0.25rem auto 1rem;
  max-width: 28rem;
  font-family: var(--ui-font);
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.article-card figcaption {
  width: 100%;
  margin-top: 0;
  font-family: var(--ui-font);
  font-size: 0.95rem;
  color: var(--muted);
}

.article-card figcaption > :last-child {
  margin-bottom: 0;
}

.article-card.entry-chapter-001 h1,
.article-card.entry-chapter-001 h2,
.article-card.entry-chapter-003 h1,
.article-card.entry-chapter-003 p {
  text-align: center;
}

.article-card.entry-chapter-024 h1 {
  text-align: center;
}

.article-card.entry-chapter-024 p {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.article-card.entry-page-004,
.article-card.entry-page-006,
.article-card.entry-page-008 {
  text-align: center;
}

.article-card.entry-page-004 p,
.article-card.entry-page-006 p {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.article-card.entry-page-008 .clean-index-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem auto;
  max-width: 36rem;
  display: grid;
  gap: 0.55rem;
}

.article-card.entry-page-008 .clean-index-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(111, 46, 29, 0.12);
  text-align: left;
  font-family: var(--ui-font);
}

.article-card.entry-page-008 table.summary-index-table {
  width: min(100%, 44rem);
  margin-left: auto;
  margin-right: auto;
  display: table;
  overflow: visible;
  table-layout: fixed;
}

.article-card.entry-page-008 table.summary-index-table td,
.article-card.entry-page-008 table.summary-index-table th {
  text-align: left;
}

@media (min-width: 62rem) {
  .article-card figure.figure-inline {
    float: right;
    width: min(42%, 24rem);
    margin: 0.35rem 0 1.25rem 1.25rem;
  }
}

.article-card.entry-chapter-001 table.ancestry-table {
  width: min(100%, 48rem);
  margin: 1.4rem auto 0;
  display: table;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.article-card.entry-chapter-001 tr:nth-child(even) td {
  background: transparent;
}

.article-card.entry-chapter-001 td,
.article-card.entry-chapter-001 th {
  border: none;
  padding: 0.28rem 0.7rem;
  text-align: center;
  vertical-align: bottom;
}

.article-card.entry-chapter-001 tr.ancestry-final-row td {
  text-align: center;
}

.article-card.entry-chapter-003 p {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.article-card.entry-chapter-003 figure.figure-emblem,
.article-card.entry-chapter-003 figure.figure-signature {
  background: transparent;
  border-color: rgba(111, 46, 29, 0.08);
  box-shadow: none;
}

.article-card .appendix-note {
  font-family: var(--ui-font);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.article-card .supplement-intro {
  margin-bottom: 1.8rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(111, 46, 29, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(252, 246, 239, 0.98), rgba(243, 231, 214, 0.92));
}

.article-card .supplement-kicker {
  font-family: var(--ui-font);
  color: var(--muted);
}

.article-card .supplement-kicker {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card .supplement-preamble {
  max-width: 40rem;
  font-size: 1.02rem;
}

.article-card .supplement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.1rem 0 0.6rem;
}

.article-card .supplement-source-title {
  margin-top: 0;
}

.article-card table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin: 1.4rem 0;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0.7rem;
}

.article-card table.genealogy-table {
  display: table;
  overflow: visible;
  table-layout: fixed;
}

.article-card table.genealogy-table th,
.article-card table.genealogy-table td {
  overflow-wrap: anywhere;
}

.article-card th,
.article-card td {
  border: 1px solid rgba(111, 46, 29, 0.14);
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.article-card th {
  background: rgba(111, 46, 29, 0.08);
  font-family: var(--ui-font);
}

.article-card table.genealogy-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 251, 245, 0.97);
  box-shadow: inset 0 -1px 0 rgba(111, 46, 29, 0.18);
}

.article-card table.genealogy-table tr.genealogy-subgroup-heading th {
  position: static;
  background: rgba(111, 46, 29, 0.12);
}

.article-card tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.35);
}

.recipe-callout {
  margin: 2rem 0;
  padding: 1.3rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(111, 46, 29, 0.18);
  border-left: 0.4rem solid var(--accent);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.44), transparent 30%),
    linear-gradient(180deg, rgba(253, 246, 236, 0.98), rgba(244, 228, 203, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.recipe-callout > p:first-child {
  font-family: var(--ui-font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.recipe-callout h3,
.recipe-callout p strong {
  color: var(--ink);
}

.recipe-callout h3 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

.recipe-callout p:last-child {
  margin-bottom: 0;
}

@media (max-width: 54rem) {
  html { font-size: 106.25%; }

  .site-shell {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .site-header {
    align-items: flex-start;
  }

  .site-menu {
    justify-content: flex-start;
  }

  .article-card table.genealogy-table th,
  .article-card table.genealogy-table td {
    padding: 0.65rem 0.55rem;
    font-size: 0.92rem;
  }

  .article-card figure {
    width: min(100%, 40rem);
  }

  .article-card .figure-image-link img {
    max-height: 24rem;
  }

  .article-card figure.figure-signature {
    width: min(100%, 20rem);
  }
}

@media (min-width: 56rem) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.95fr);
  }

  .home-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }

  .audio-track-grid {
    grid-template-columns: 1fr;
  }

  .audio-track-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1.1fr) auto;
  }

  .entry-audio-grid.has-multiple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audio-hero h1 {
    white-space: nowrap;
  }
}

@media (max-width: 38rem) {
  html { font-size: 100%; }

  .hero,
  .section-panel,
  .article-card,
  .story-card {
    padding: 1rem;
  }

  .nav-button,
  .nav-placeholder {
    flex-basis: 100%;
  }

  .site-menu-link {
    flex: 1 1 9rem;
  }

  .article-card figure,
  .article-card figure.figure-gallery,
  .article-card figure.figure-illustration {
    width: 100%;
  }

  .article-card .figure-image-grid {
    grid-template-columns: 1fr;
  }

  .article-card .figure-image-grid .figure-image-link img {
    height: auto;
    max-height: 20rem;
  }
}
