:root {
  --paper: #f7f3e9;
  --ink: #203e35;
  --red: #9c3e32;
  --line: #d8d9cc;
  --muted: #626b60;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
.preview {
  text-align: center;
  background: #e9e3d5;
  color: #5b604e;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 1.6px;
}
.preview span {
  letter-spacing: 0.3px;
  margin-left: 16px;
}
header,
main,
footer {
  max-width: 1240px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-weight: 800;
  font-size: 26px;
  text-decoration: none;
  letter-spacing: -1px;
}
.wordmark i {
  font-family: Georgia, serif;
  font-weight: normal;
  color: var(--red);
}
.wordmark small {
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
  margin-top: 5px;
}
.back {
  font-size: 14px;
  text-decoration: none;
}
.back span {
  margin-left: 16px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 65px 30px 55px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1.7;
}
.hero h1 {
  font:
    normal clamp(56px, 6.6vw, 87px)/0.98 Georgia,
    serif;
  letter-spacing: -3px;
  margin: 26px 0;
}
.hero h1 em {
  color: var(--red);
  font-weight: normal;
}
.hero h1 span {
  display: block;
  font-size: 25px;
  letter-spacing: -0.5px;
  margin-top: 22px;
}
.intro {
  max-width: 380px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}
.button {
  display: inline-flex;
  gap: 35px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 17px 23px;
  font-size: 14px;
  margin-top: 20px;
}
.button:hover {
  background: #35594b;
}
.handwritten {
  font:
    italic 21px Georgia,
    serif;
  color: var(--red);
  margin-top: 25px;
}
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  display: block;
  border-radius: 48% 48% 4px 4px;
}
.art-caption {
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 16px;
}
.collection {
  padding: 35px 30px 70px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2 {
  font:
    normal 36px Georgia,
    serif;
  letter-spacing: -1px;
  margin: 10px 0;
}
.section-heading > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 28px;
}
.card {
  border: 1px solid var(--line);
  background: #fffdf7;
  display: flex;
  flex-direction: column;
}
.card-visual {
  height: 205px;
  overflow: hidden;
  background: #e3e7db;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-visual svg {
  width: 100%;
  height: 100%;
}
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card:nth-child(2) .card-visual {
  background: #eddfcd;
}
.card:nth-child(3) .card-visual {
  background: #8e3e32;
}
.card:nth-child(4) .card-visual {
  background: #d8dfd5;
}
.card:nth-child(5) .card-visual {
  background: #e9d9b8;
}
.card:nth-child(6) .card-visual {
  background: #b9c5b6;
}
.placeholder {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 10px;
  letter-spacing: 1.4px;
  background: #fffcf0e8;
  color: #425044;
  padding: 7px 9px;
}
.card-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category {
  font-size: 11px;
  letter-spacing: 1.7px;
  color: var(--red);
  font-weight: 700;
  margin: 0 0 13px;
}
.card h3 {
  font:
    normal 27px/1.13 Georgia,
    serif;
  letter-spacing: -0.5px;
  margin: 0 0 13px;
}
.summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 18px;
}
.byline {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 19px;
  font-style: italic;
}
.card button {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 15px 0 0;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  background: none;
  text-align: left;
  font-size: 13px;
  margin-top: auto;
}
.card button:hover {
  color: var(--red);
}
.closing {
  text-align: center;
  padding: 48px 20px 65px;
  background: #e7eadd;
  border-top: 1px solid #d1d9c7;
}
.closing > span {
  font-size: 42px;
  color: var(--red);
}
.closing h2 {
  font:
    normal 39px/1.14 Georgia,
    serif;
  margin: 18px 0;
}
.closing > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.closing a {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  text-underline-offset: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 35px 30px;
}
footer p {
  font-size: 13px;
  line-height: 1.8;
}
footer p span {
  color: var(--muted);
}
footer > a:last-child {
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: min(680px, 92vw);
  max-height: 85vh;
  padding: 45px;
}
dialog::backdrop {
  background: #182e27aa;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font:
    normal 38px/1.1 Georgia,
    serif;
}
dialog h3 {
  font:
    normal 25px Georgia,
    serif;
}
dialog p,
dialog li {
  font-size: 17px;
  line-height: 1.8;
  white-space: pre-line;
}
dialog audio {
  width: 100%;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: 0;
  font-size: 32px;
  color: var(--ink);
}
.notice {
  padding: 13px 17px;
  background: #e8dfcc;
  font-size: 14px !important;
}
.detail-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}
.print {
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  border: 0;
}
.skip {
  position: absolute;
  left: 15px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Recipe collections retain the original page's color and type palette. */
body.detail-open {
  overflow: hidden;
}
.recipe-count {
  background: var(--ink);
  color: var(--paper);
}
dialog.collection-view,
dialog.recipe-view,
dialog.tradition-view,
dialog.audio-collection-view {
  width: min(760px, 92vw);
}

/* The static title receives focus for screen-reader orientation on opening. */
#detail-title[tabindex="-1"]:focus {
  outline: none;
}
.collection-intro {
  color: var(--muted);
}
.audio-story-list {
  margin-top: 30px;
}
.audio-story {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.audio-story h3 {
  margin: 0 0 14px;
}
.audio-story > p {
  margin: 0 0 20px;
}
.memory-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 124px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.4;
}
.memory-toggle:hover {
  background: #35594b;
}
.memory-icon {
  display: flex;
}
dialog .memory-status {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--red);
}
.memory-status:empty {
  display: none;
}
.recipe-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.recipe-list > li {
  border-top: 1px solid var(--line);
}
.recipe-list > li:last-child {
  border-bottom: 1px solid var(--line);
}
.recipe-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 22px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
}
.recipe-choice:hover,
.recipe-choice:focus-visible {
  background: #e7eadd;
}
.recipe-choice-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.recipe-choice-name {
  font:
    normal 23px/1.3 Georgia,
    serif;
}
.recipe-choice-credit {
  font-size: 14px;
  color: var(--red);
}
.recipe-choice-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.recipe-choice-arrow {
  font-size: 22px;
  flex-shrink: 0;
}
.recipe-back {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  padding: 0 0 8px;
  margin: 0 20px 25px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.recipe-contributor {
  color: var(--red);
  font-style: italic;
}
.recipe-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 20px 0;
  margin: 24px 0;
  border-block: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.recipe-metadata dt {
  font-weight: bold;
}
.recipe-metadata dd {
  margin: 3px 0 0;
}
.recipe-subheading {
  font-size: 17px;
  margin: 24px 0 12px;
}
.recipe-view li + li {
  margin-top: 8px;
}
.recipe-ingredients {
  background: #e7eadd;
  padding: 2px 22px 15px;
  margin-block: 30px;
}
.recipe-view ul,
.recipe-view ol {
  padding-left: 24px;
}
.recipe-attribution {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 30px 0;
}
.recipe-attribution p,
.recipe-attribution a {
  font-size: 15px;
}
.recipe-view a {
  text-underline-offset: 4px;
}
.tradition-name {
  color: var(--red);
  font-style: italic;
}
.tradition-sources {
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.tradition-sources ul {
  padding-left: 22px;
}
.tradition-sources li {
  margin-bottom: 12px;
  font-size: 15px;
}
.tradition-sources a {
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
@media (min-width: 1500px) {
  header,
  main,
  footer {
    max-width: 1320px;
  }
  .hero {
    padding-top: 80px;
    padding-bottom: 70px;
  }
}
@media (max-width: 800px) {
  .hero {
    padding-top: 40px;
    gap: 15px;
  }
  .hero h1 {
    font-size: 59px;
  }
  .hero h1 span {
    font-size: 21px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading > p {
    display: none;
  }
  .hero-art img {
    min-height: 340px;
    object-fit: cover;
  }
}
@media (max-width: 560px) {
  header {
    padding: 21px;
  }
  .wordmark {
    font-size: 22px;
  }
  .back {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 22px;
  }
  .hero h1 {
    font-size: 66px;
  }
  .hero-art {
    margin-top: 15px;
  }
  .hero-art img {
    min-height: 0;
    max-height: 370px;
    object-fit: cover;
  }
  .hero-copy .intro {
    max-width: 100%;
  }
  .collection {
    padding: 30px 22px 45px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-visual {
    height: 220px;
  }
  .preview {
    font-size: 11px;
  }
  .preview span {
    display: block;
    margin: 5px 0 0;
  }
  .closing h2 {
    font-size: 33px;
  }
  footer {
    flex-wrap: wrap;
    padding: 28px 22px;
  }
  dialog {
    padding: 35px 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > dialog[open] {
    display: block !important;
    position: static;
    width: 100%;
    max-height: none;
    border: 0;
  }
  dialog .close,
  dialog .print,
  dialog .recipe-back {
    display: none;
  }
  body.detail-open {
    overflow: visible;
  }
  body > dialog.recipe-view[open] {
    width: 100%;
    padding: 0;
    overflow: visible;
  }
  .recipe-view h2,
  .recipe-view h3,
  .recipe-view h4 {
    break-after: avoid;
  }
  .recipe-view li {
    break-inside: avoid;
  }
}

/* Official supplied station artwork; retain intrinsic proportions. */
.station-logo {
  display: block;
  width: 124px;
  height: auto;
}
header .wordmark,
footer .wordmark {
  display: inline-block;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .station-logo {
    width: 100px;
  }
}

/* Compact station masthead, following WHRO.org's approximate desktop proportions. */
header {
  padding: 14px 20px;
  min-height: 105px;
}
header .station-logo {
  width: 108px;
  height: auto;
}
@media (max-width: 560px) {
  header {
    padding: 12px 20px;
    min-height: 86px;
  }
  header .station-logo {
    width: 86px;
  }
}

/* Preserve the complete supplied group portrait at every screen size. */
.hero-art img {
  border-radius: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}

/* Blend the poster's paper into the page and feather its outer border. */
.hero-art img {
  mix-blend-mode: darken;
  mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
}
