:root {
  --plum: #164539;
  --deep-plum: #0e332a;
  --gold: #f4c36e;
  --paper: #f6f0e5;
  --line: #e1d6c5;
  --muted: #675f54;
}
.masthead { background: #fffaf0; }
.masthead-inner { min-height: 74px; }
.masthead nav .book-link { background: var(--plum); color: white; border: 0; }
.legacy-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  align-items: center;
  gap: clamp(24px,5vw,84px);
  isolation: isolate;
  overflow: hidden;
  margin-top: 28px;
  padding: clamp(30px,5.3vw,80px);
  border-radius: 30px;
  color: #fff7e6;
  background: radial-gradient(ellipse at 0 100%,#2b6250 0%,transparent 70%),#113a30;
}
.legacy-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -140px;
  top: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 16px, #f4c36e23 17px 18px, transparent 19px 29px);
  pointer-events: none;
}
.legacy-hero .eyebrow { color: #f8d792; }
.legacy-hero h1 { margin: 0; font-size: clamp(60px,9vw,127px); font-weight: 400; line-height: .88; letter-spacing: -.065em; }
.legacy-hero h1 em { font-weight: 400; color: var(--gold); }
.legacy-hero-copy > p:not(.eyebrow) { max-width: 410px; margin: 24px 0; font-size: clamp(16px,2vw,20px); line-height: 1.5; color: #e8ebdb; }
.legacy-hero .button { border-radius: 30px; padding: 11px 22px; }
.janet-portrait { position: relative; align-self: center; margin: 0 auto; width: min(100%,340px); padding: 12px 12px 0; background: #fae7bd; color: #483123; transform: rotate(3deg); border-radius: 160px 160px 15px 15px; box-shadow: 0 17px 50px #09271e7a; }
.janet-portrait img { width: 100%; height: auto; aspect-ratio: .84; object-fit: cover; object-position: center 34%; border-radius: 155px 155px 5px 5px; }
.janet-portrait figcaption { padding: 12px 6px 15px; text-align: center; }
.janet-portrait figcaption span { display: block; font-size: 9px; font-weight: 800; letter-spacing: .13em; color: #855e41; }
.janet-portrait figcaption strong { display: block; margin-top: 4px; font: italic 26px var(--serif); }
.heritage-ribbon { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 21px; border-radius: 14px; background: #edddbf; color: #4b3b29; }
.heritage-ribbon div { display: flex; align-items: center; gap: 10px; font: italic clamp(16px,2.5vw,24px) var(--serif); }
.ribbon-mark { color: #ab512f; font-size: 27px; }
.heritage-ribbon a, .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 800; color: #214b3d; text-underline-offset: 4px; }
.home-recipes, .heritage-stories { margin-top: 45px; }
.home-recipes .recipe-grid, .family-tiles { margin-top: 20px; }
.invite-panel, .original-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-block: 42px; padding: clamp(24px,4vw,44px); border-radius: 21px; background: #e7dac4; }
.invite-panel h2,.original-panel h2,.heritage-stories h2 { font-size: clamp(33px,5vw,56px); margin: 0; font-weight: 400; letter-spacing: -.045em; }
.invite-panel p:not(.eyebrow),.original-panel p:not(.eyebrow) { line-height: 1.6; margin: 10px 0; }
.invite-panel .button { flex-shrink: 0; }
.collection { margin-top: 32px; margin-bottom: 48px; }
.collection h1 { font-size: clamp(36px,5vw,64px); font-weight: 400; letter-spacing: -.046em; line-height: 1.02; margin: 0; }
.heritage-hero h1 { font-size: clamp(52px,7.8vw,105px); }
.family-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.family-tile { overflow: hidden; background: #fffaf1; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; }
.family-tile img { width: 100%; aspect-ratio: 1.35; object-fit: cover; object-position: center 18%; }
.family-tile div { padding: 16px; }
.family-tile h3 { margin: 0 0 9px; font-size: 22px; font-weight: 400; }
.family-tile span { font-size: 13px; color: #315a48; font-weight: 750; }
.original-panel { justify-content: flex-start; }
.original-panel > img { width: clamp(78px,16vw,155px); height: auto; border-radius: 5px; box-shadow: 5px 7px 0 #b18f65; }
.contribution-intro { margin-block: 30px 22px; padding: clamp(24px,5vw,48px); border-radius: 22px; background: #e7eddb; }
.contribution-intro h1 { margin: 0; color: var(--deep-plum); font-size: clamp(47px,7vw,88px); letter-spacing: -.06em; font-weight: 400; line-height: .95; }
.contribution-intro p:not(.eyebrow) { max-width: 615px; color: #3b5343; line-height: 1.6; margin-bottom: 0; }
.contribution-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 22px; align-items: start; margin-bottom: 45px; }
.form-panel { padding: clamp(20px,3vw,32px); border: 1px solid var(--line); border-radius: 18px; background: #fffaf1; }
.form-panel + .form-panel { margin-top: 18px; }
.form-panel h2 { font-weight: 400; font-size: 29px; margin: 0 0 15px; }
.form-panel label { display: block; font-size: 14px; font-weight: 750; margin-bottom: 14px; }
.form-panel label small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 5px; }
.form-panel input, .form-panel select, .form-panel textarea { width: 100%; padding: 12px; border: 1px solid #cbbda9; border-radius: 8px; background: #fffefa; color: #342a22; margin-top: 6px; font: 16px var(--sans); }
.form-panel textarea { resize: vertical; }
.form-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#submitStatus, #submissionStatus, #reviewStatus { color: #536454; font-size: 14px; line-height: 1.5; }
.review-card { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
.review-card h3 { font-size: 22px; font-weight: 400; margin: 0; }
.review-card p { font-size: 14px; line-height: 1.5; margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-card summary { cursor: pointer; font-weight: 700; padding: 9px 0; }
.review-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.status-badge { display: inline-block; padding: 5px 9px; border-radius: 20px; color: #6e4b20; background: #f9e6b9; font-size: 12px; font-weight: 750; }
.status-badge[data-status='approved'] { background: #e0ebd9; color: #31583a; }
.status-badge[data-status='declined'] { background: #f0dedb; color: #803e3d; }
.recipe-story { margin-top: 18px; background: #e9edda; border-radius: 14px; padding: 22px; }
.recipe-story p:last-child { white-space: pre-wrap; margin: 0; line-height: 1.6; }
.app-tabs { display: none; }
.site-footer { background: #173c32; }
@media(max-width: 800px) {
  .masthead nav { display: none; }
  .masthead-inner { min-height: 62px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .app-tabs { position: fixed; z-index: 5; inset: auto 0 0; display: flex; justify-content: space-around; padding: 5px 8px max(5px,env(safe-area-inset-bottom)); background: #fffaf0; border-top: 1px solid #ded2bf; box-shadow: 0 -4px 24px #2f493319; }
  .app-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 53px; border-radius: 12px; text-decoration: none; font-size: 11px; font-weight: 750; color: #554d3f; }
  .app-tabs a[aria-current='page'] { color: #154736; background: #e4ecd9; }
  .app-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
  .cook-dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .legacy-hero { gap: 12px; padding: 24px 19px; border-radius: 20px; margin-top: 14px; grid-template-columns: 1.15fr .85fr; }
  .legacy-hero h1 { font-size: clamp(40px,9.8vw,75px); }
  .legacy-hero .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .legacy-hero-copy > p:not(.eyebrow) { font-size: 14px; margin: 14px 0; }
  .legacy-hero .button { font-size: 12px; padding-inline: 11px; }
  .janet-portrait { padding: 6px 6px 0; border-radius: 110px 110px 10px 10px; }
  .janet-portrait figcaption { padding: 8px 1px 10px; }
  .janet-portrait figcaption span { font-size: 7px; }
  .janet-portrait figcaption strong { font-size: 17px; }
  .heritage-ribbon { flex-wrap: wrap; padding: 10px 13px; gap: 0; }
  .heritage-ribbon a { min-height: 40px; }
  .home-recipes,.heritage-stories { margin-top: 29px; }
  .home-recipes .section-head { display: flex; align-items: flex-end; gap: 8px; }
  .home-recipes .text-link { font-size: 12px; white-space: nowrap; }
  .family-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .family-tile h3 { font-size: 18px; }
  .contribution-layout { grid-template-columns: 1fr; }
}
@media(max-width: 460px) {
  .invite-panel { align-items: flex-start; flex-direction: column; }
  .form-pair { grid-template-columns: 1fr; gap: 0; }
  .heritage-hero { grid-template-columns: 1fr; }
  .heritage-hero .janet-portrait { width: 135px; margin: 5px auto; }
}
@media print { .app-tabs { display: none !important; } }
.recipe-photo-form { margin-top: 20px; }
.recipe-photo-form p { margin: 10px 0 0; }
@media print { .recipe-photo-form { display: none !important; } }
