@font-face {
  font-family: Recipe Serif;
  src: url("assets/heading.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: Recipe Serif;
  src: url("assets/heading-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Recipe Sans;
  src: url("assets/body.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf6ed;
  --cream: #fffaf0;
  --ink: #263a31;
  --dark: #23362e;
  --muted: #565e52;
  --wine: #8a3a31;
  --wine-hover: #713027;
  --gold: #eccb99;
  --stone: #e5d9c7;
  --line: #d8cdbc;
  --sans: "Recipe Sans", system-ui, sans-serif;
  --serif: "Recipe Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.56 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b96145; outline-offset: 4px; }
.skip {
  position: absolute;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .6rem 1rem;
  background: var(--cream);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.wrap { width: min(100% - 5rem, 78rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; }
h1, h2 { letter-spacing: -.048em; }
h1 { font-size: clamp(4.5rem, 7vw, 7.1rem); line-height: .99; }
h2 { font-size: clamp(2.8rem, 5.3vw, 5.2rem); line-height: 1.05; }
h3 { font-size: clamp(1.47rem, 2.4vw, 2.06rem); line-height: 1.16; letter-spacing: -.025em; }
h1 em, h2 em { color: var(--wine); font-weight: normal; }
.caption {
  color: var(--wine);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.small-note { color: var(--muted); font-size: .91rem; }
.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  min-height: 5.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.mark {
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  font: 1.73rem/1 var(--serif);
  letter-spacing: -.05em;
}
.mark i { font-weight: normal; }
.mark span { color: var(--wine); }
nav { display: flex; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
nav a { font-size: .98rem; text-decoration: none; }
nav a:hover, .underlink:hover { color: var(--wine); }
.button {
  display: inline-flex;
  min-height: 3.25rem;
  justify-content: center;
  align-items: center;
  padding: .82rem 1.22rem;
  border: 1px solid transparent;
  border-radius: .36rem;
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.button-primary { background: var(--wine); color: white; }
.button-primary:hover { background: var(--wine-hover); }
.button-outline { border-color: #818679; color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); background: var(--stone); }
.button-light { background: var(--cream); color: var(--dark); }
.button-light:hover { background: var(--gold); }
.header-cta { min-height: 2.75rem; font-size: .93rem; }
.underlink { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: #a88470; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(2rem, 5.5vw, 5.6rem);
  align-items: center;
  min-height: 37rem;
  padding-block: clamp(3.1rem, 6vw, 5.4rem);
}
.hero h1 { margin-block: .92rem 1.5rem; }
.hero-lead { max-width: 29rem; color: var(--muted); font-size: clamp(1.08rem, 1.62vw, 1.27rem); line-height: 1.53; }
.hero-lead strong { color: var(--ink); }
.hero-actions, .sample-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; margin-block: 1.65rem .65rem; }
.hero-art { position: relative; min-width: 0; }
.hero-photo {
  overflow: hidden;
  aspect-ratio: 1.12;
  border-radius: 5.5rem .45rem .45rem .45rem;
  background: #b89370;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 51%; }
.cover {
  position: absolute;
  width: clamp(8.4rem, 34%, 13.7rem);
  height: auto;
  left: -1.7rem;
  bottom: 1.8rem;
  transform: rotate(-6deg);
  border-radius: .22rem;
  box-shadow: 0 1.05rem 2.55rem #20180e63, 0 .2rem .5rem #1e1b1240;
}
.hero-art figcaption { color: var(--muted); text-align: right; font-size: .85rem; padding: .65rem 0 0 5.2rem; }
.hero-art figcaption span { margin-inline: .18em; color: var(--wine); }
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}
.facts li { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 6.25rem; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { font: 3.4rem/.9 var(--serif); color: var(--wine); letter-spacing: -.05em; }
.facts span { font-size: .98rem; line-height: 1.33; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.1rem; }
.section-head p { max-width: 18rem; color: var(--muted); padding-bottom: .3rem; }
.meal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 2.25vw, 1.75rem); }
.meal { min-width: 0; }
.meal > a { display: block; height: 100%; text-decoration: none; border-bottom: 1px solid var(--line); }
.meal img { width: 100%; height: auto; aspect-ratio: 1.21; object-fit: cover; border-radius: .4rem; }
.meal-body { padding: 1.06rem 0 1.5rem; }
.meal-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--wine); font-size: .87rem; font-weight: 700; margin-bottom: .55rem; }
.meal h3 { margin-bottom: .55rem; }
.meal a:hover h3 { color: var(--wine); }
.meal-body p { color: var(--muted); }

.inside { background: var(--dark); color: var(--cream); }
.inside-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2.5rem, 7vw, 7.25rem); }
.inside .caption, .inside h2 em { color: var(--gold); }
.inside h2 { margin: .6rem 0 1.1rem; }
.inside-copy > p:not(.caption, .current-recipe, .small-note) { max-width: 30rem; color: #e5ddce; font-size: 1.1rem; }
.tabs { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1.6rem; }
.tabs button {
  min-height: 2.88rem;
  padding: .55rem .97rem;
  border: 1px solid #a9b1a2;
  border-radius: .28rem;
  color: inherit;
  background: transparent;
  font-size: .96rem;
}
.tabs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.tabs button:hover:not([aria-pressed="true"]) { background: #405247; }
.current-recipe { font-size: 1.11rem; margin-top: .82rem; }
.inside .small-note { color: #ddd2bf; }
.inside .underlink { text-decoration-color: var(--gold); }
.inside .underlink:hover { color: var(--gold); }
.sample-visual { display: grid; justify-content: center; align-items: center; }
.page-open {
  display: block;
  width: min(100%, 24rem);
  margin-inline: auto;
  padding: .52rem;
  border-radius: .38rem;
  background: #ebdeca;
  box-shadow: 0 1rem 2rem #0c201878;
}
.page-open img { height: auto; width: 100%; border: 1px solid #c7b9a1; }

.offer h2 { margin: 0 0 1.05rem; }
.book-band { background: #ede2d1; }
.book-band-inner { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.2fr); align-items: center; gap: clamp(1.65rem, 8vw, 8rem); padding-block: clamp(3rem, 6.5vw, 6rem); }
.author-photo { width: min(100%, 27rem); aspect-ratio: 1; height: auto; object-fit: cover; object-position: center 25%; border-radius: 48% 48% .4rem .4rem; }
.offer > p:not(.small-note) { max-width: 31rem; color: var(--muted); font-size: 1.1rem; }
.price { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin: 1.45rem 0 1.2rem; }
.price span { color: var(--wine); font: 2.9rem/1 var(--serif); letter-spacing: -.04em; }
.price small { color: var(--muted); font-size: .91rem; }
.offer .small-note { margin-top: .68rem; }
.faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: 2rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; }
.faq-list summary { padding-block: .95rem; font-weight: 700; }
.faq-list details p { margin-bottom: 1rem; max-width: 35rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); }

dialog {
  width: min(100% - 1.4rem, 42rem);
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 1.2rem 3rem #19241d50;
}
dialog::backdrop { background: #142219a8; }
.dialog-toolbar {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: .7rem 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.dialog-toolbar .button { min-height: 2.6rem; padding: .53rem .85rem; }
#dialog-recipe { padding: 1.35rem clamp(1rem, 4.5vw, 2.3rem) 2.2rem; }
#dialog-recipe h2 { font-size: clamp(2.04rem, 5vw, 3.1rem); }
#dialog-meta { margin-block: .65rem 1.35rem; color: var(--wine); }
#dialog-recipe h3 { margin-top: 1.15rem; }
#dialog-recipe ul, #dialog-recipe ol { padding-left: 1.35rem; }
#dialog-recipe li + li { margin-top: .4rem; }
.dialog-tip { color: var(--wine); }
#dialog-equipment { margin-top: .9rem; color: var(--muted); }

@media (max-width: 67rem) {
  .wrap { width: calc(100% - 3.4rem); }
  .hero { gap: 2.3rem; min-height: auto; }
  .hero h1 { font-size: clamp(3.8rem, 8.1vw, 5.9rem); }
  .cover { left: -.85rem; }
}

@media (max-width: 49rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner, .footer-inner { gap: 1rem; min-height: 4.3rem; }
  .header nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.25rem 2.1rem; }
  .hero h1 { font-size: clamp(3.72rem, 10.8vw, 5.25rem); margin-bottom: 1.1rem; }
  .hero-photo { aspect-ratio: 1.24; border-top-left-radius: 4rem; }
  .hero-lead { font-size: 1.13rem; }
  .cover { width: 31%; left: .15rem; bottom: 1.5rem; max-width: 12rem; }
  .facts li { flex-direction: column; align-items: flex-start; padding: .8rem .55rem 1rem; gap: .39rem; text-align: left; min-height: auto; }
  .facts strong { font-size: 2.7rem; }
  .facts span { font-size: .87rem; }
  .facts span br { display: none; }
  .section { padding-block: 3.7rem; }
  .section-head { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .section-head p { max-width: 21rem; }
  .inside-inner, .book-band-inner, .faq { grid-template-columns: minmax(0, 1fr); }
  .inside-inner { gap: 1.95rem; }
  .meal-grid { gap: .8rem; }
  .meal h3 { font-size: 1.45rem; }
  .meal-meta { display: block; }
  .meal-meta span { display: block; }
  .book-band-inner { gap: 1.6rem; }
  .author-photo { width: min(70%, 16rem); }
}
@media (max-width: 33rem) {
  .header-cta { padding-inline: .56rem; font-size: .87rem; }
  .mark { font-size: 1.43rem; }
  .meal-grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .meal > a { display: grid; grid-template-columns: 6.9rem minmax(0, 1fr); align-items: center; gap: 1rem; padding-bottom: 1.05rem; }
  .meal img { aspect-ratio: 1; }
  .meal-body { padding: 0; }
  .meal h3 { margin-bottom: .32rem; }
  .meal-body p { font-size: .94rem; }
  .meal-meta { display: flex; flex-wrap: wrap; gap: .16rem .5rem; margin-bottom: .35rem; }
  .hero-actions, .sample-actions { gap: .65rem 1rem; }
  .hero-art figcaption { font-size: .81rem; }
  .footer-inner nav { gap: .8rem; }
  .footer-inner nav a { font-size: .87rem; }
}
@media (max-width: 24rem) {
  .header-inner { gap: .45rem; }
  .mark { font-size: 1.23rem; }
  .header-cta { font-size: .8rem; }
  .facts span { font-size: .81rem; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 3.7rem); }
  .meal > a { grid-template-columns: 5.4rem minmax(0, 1fr); gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.shop-footer .footer-inner { flex-wrap: wrap; }
.shop-footer nav { flex-wrap: wrap; gap: .7rem 1.55rem; }
.seller-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1.5rem;
  padding-block: .8rem 1.45rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.1rem; }
@media (max-width: 49rem) {
  .shop-footer .footer-inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-block: 1.1rem; }
}

.hero h1 { font-size: clamp(3.45rem, 6.65vw, 6.4rem); }
.contents {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 7rem);
}
.contents-lead { max-width: 36rem; margin-top: 1.1rem; color: var(--muted); }
.dinner-list { margin: 1.4rem 0 1rem; padding: 0; list-style: none; }
.dinner-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .65rem 1rem;
  border-top: 1px solid var(--line);
  padding: .72rem 0;
}
.dinner-list li:last-child { border-bottom: 1px solid var(--line); }
.dinner-list li span:last-child { color: var(--wine); white-space: nowrap; }
.chapter-details summary { cursor: pointer; padding-block: .45rem; color: var(--wine); font-weight: 700; }
.chapter-details dl { margin: .4rem 0 0; }
.chapter-details dl div { padding: .47rem 0; }
.chapter-details dt { font-weight: 700; }
.chapter-details dd { margin: 0; color: var(--muted); }
.dinner-visual { max-width: 23rem; justify-self: center; align-self: center; }
.dinner-visual img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: .25rem; }
.dinner-visual figcaption { margin-top: .55rem; color: var(--muted); text-align: center; font-size: .9rem; }
.offer-cover { width: min(100%, 19rem); height: auto; justify-self: center; border-radius: .26rem; box-shadow: 0 .9rem 2rem #282c2636; }
.offer-list { padding-left: 1.17rem; margin-block: 1rem; max-width: 38rem; }
.offer-list li + li { margin-top: .35rem; }
.offer-status { margin: .85rem 0 .65rem; }
.hero-bonus-link {
  display: inline-block;
  margin-top: .45rem;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  text-underline-offset: .26em;
}
.hero-bonus-link span { margin-inline-start: .3em; }
.bonus { background: #e9e9dd; }
.bonus .section-head p { max-width: 21rem; }
.bonus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.bonus-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fffcf5;
}
.bonus-card img { width: 100%; height: auto; aspect-ratio: 680 / 426; object-fit: cover; }
.bonus-card-copy { padding: clamp(1.25rem, 3vw, 2.1rem); }
.bonus-card h3 { font: clamp(1.7rem, 3vw, 2.4rem)/1.08 var(--serif); color: var(--ink); }
.bonus-card ul { margin: .8rem 0 0; padding-inline-start: 1.15rem; color: var(--muted); }
.bonus-card li + li { margin-top: .38rem; }
.bonus-cta { margin-top: 1.45rem; }
@media (max-width: 40rem) {
  .bonus-grid { grid-template-columns: minmax(0, 1fr); }
}
#dialog-meta { margin-bottom: .25rem; }
#dialog-nutrition { margin-bottom: 1.2rem; }
.dialog-book { display: inline-block; margin-top: 1.2rem; }
@media (max-width: 49rem) {
  .hero h1 { font-size: clamp(3.25rem, 10.5vw, 5.25rem); }
  .hero-art { max-width: 35rem; }
  .contents { grid-template-columns: minmax(0, 1fr); }
  .dinner-visual { width: min(100%, 19rem); }
  .offer-cover { width: min(58%, 14.5rem); justify-self: start; }
}
@media (max-width: 24rem) {
  .hero h1 { font-size: clamp(2.72rem, 12vw, 3.55rem); }
  .hero-actions .button { padding-inline: .72rem; }
}

.checkout-form { max-width: 28rem; display: grid; gap: .65rem; margin-block: 1rem; }
.checkout-form label { font-weight: 700; }
.checkout-form input {
  min-height: 3.05rem;
  inline-size: 100%;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: .36rem;
  background: var(--cream);
  color: inherit;
}
.checkout-form button:disabled { opacity: .67; cursor: wait; }
.checkout-error { color: var(--wine); font-weight: 700; }
.delivery h1 { margin-block: .8rem 1.35rem; }
.delivery .offer-actions { margin-block: 1.25rem; }
