@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("./assets/fonts/playfair-display.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("./assets/fonts/playfair-display-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  --pine: #10281e;
  --forest: #193527;
  --cream: #faf5e9;
  --paper: #f1e5cf;
  --ink: #292921;
  --muted: #585449;
  --wine: #792d36;
  --gold: #f1cd8b;
  --line: #d9c8a8;
  --heading: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.125rem/1.65 "DM Sans", system-ui, sans-serif;
}

img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .24em; }
:focus-visible { outline: 3px solid #ce8f32; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font: 500 1em/1.08 var(--heading); }
h2 { font-size: clamp(2.3rem, 4.5vw, 3.85rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); letter-spacing: -.025em; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 112px); scroll-margin-top: 12px; }

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 9px 16px;
  color: var(--pine);
  background: var(--cream);
  transform: translateY(-160%);
}
.skip:focus { transform: translateY(0); }

.header { background: #0e2119; color: var(--cream); border-bottom: 1px solid #f0d09b2b; }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 500 1.28rem/1.2 var(--heading); text-decoration: none; }
.brand span { color: var(--gold); font: 1.22em/1 Georgia, serif; }
.nav-links { display: flex; gap: clamp(18px, 3.2vw, 48px); align-items: center; font-size: .9rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-buy { color: var(--gold); border: 1px solid #f1cd8b70; border-radius: 5px; padding: 7px 16px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background: var(--pine);
}

.hero-scene {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  overflow: hidden;
  container-type: size;
}

.scene-depth {
  position: absolute;
  top: 0;
  right: 0;
  width: max(100%, 150cqh);
  aspect-ratio: 3 / 2;
  transform: perspective(1200px) translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0) scale(1.018);
  transform-origin: 78% 14%;
  transition: transform 450ms ease-out;
}

.scene-photo { width: 100%; height: 100%; object-fit: cover; }

.hero-scene::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, var(--pine) 0%, #10281ef2 7%, #10281e90 24%, transparent 46%),
              linear-gradient(0deg, #101d15a6 0%, transparent 30%);
}

.scene-lights { position: absolute; inset: 0; pointer-events: none; }
.scene-lights span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.85%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fffacc 2%, #ffe6a8 9%, #ffba537c 24%, #ffb04f1a 48%, transparent 71%);
  transform: translate(-50%, -50%);
  opacity: .16;
}
.scene-lights .window-light { width: 1.68%; --period: 3s; }
.scene-lights .mirror-light { width: 1.25%; --period: 3s; }
.scene-lights .star-light {
  width: 5.1%;
  --period: 4.1s;
  background: radial-gradient(circle, #fffbde 3%, #ffe29a 13%, #ffbe5859 36%, transparent 69%);
}
.star-light::after {
  content: ""; position: absolute; inset: 9%;
  background: linear-gradient(38deg, #ffe6a733, #ffefb6aa, #fff8d4df);
  clip-path: polygon(50% 0%, 60% 34%, 97% 35%, 68% 57%, 79% 96%, 50% 72%, 21% 96%, 32% 57%, 3% 35%, 40% 34%);
}
.is-animated .scene-lights span { animation: twinkle var(--period, 3.6s) ease-in-out var(--delay, 0s) infinite; }
@keyframes twinkle {
  0%, 100% { opacity: .08; }
  48% { opacity: .96; }
  74% { opacity: .39; }
}

.hero-inner { min-height: min(640px, 75vw); display: flex; align-items: center; padding-block: 76px 84px; }
.hero-copy { max-width: min(57%, 650px); }
.hero-extras { margin-top: 12px; color: #f8edd4; font-size: 1rem; line-height: 1.4; }
.hero-extras a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--wine); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { font: 1.25em Georgia, serif; }
.hero .eyebrow, .offer .eyebrow { color: var(--gold); }
h1 { margin-top: 18px; font-size: clamp(3.25rem, 5.3vw, 5.5rem); letter-spacing: -.05em; }
h1 em { display: block; color: var(--gold); font-weight: 500; text-wrap: balance; }
.hero-intro { margin-top: 23px; max-width: 43ch; color: #f2ead9; font-size: 1.125rem; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 9px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms;
}
.button-gold { background: var(--gold); color: #18261b; }
.button-gold:hover { background: #ffe4ae; }
.text-link { color: var(--cream); font-size: .93rem; }
.text-link span { display: inline-block; margin-left: 4px; }
.purchase-note { color: #e7d8ba; font-size: .87rem; margin-top: 12px; }
.hero-price span, .purchase-note span { margin-inline: 3px; }

.motion-control {
  position: absolute;
  right: clamp(16px, 4vw, 58px);
  bottom: 19px;
  min-height: 38px;
  padding: 4px 12px;
  border: 1px solid #f1cd8b77;
  border-radius: 20px;
  background: #122017d9;
  color: var(--cream);
  font-size: .75rem;
  cursor: pointer;
}
.motion-control span { display: inline-block; width: 7px; aspect-ratio: 1; border-radius: 50%; margin-right: 4px; background: #a49882; }
.motion-control[aria-pressed="true"] span { background: #ffe2a4; box-shadow: 0 0 8px #ffcf77; }

.book-facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 18px 0; margin-block: 0; color: var(--forest); }
.facts li { text-align: center; }
.facts li + li { border-left: 1px solid #cbb792; }
.facts strong { font: 500 1.62rem/1 var(--heading); margin-right: 5px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 33px; }
.section-heading h2, .sample-copy h2, .offer h2 { margin-top: 12px; }
.section-heading > p { max-width: 34ch; color: var(--muted); }
.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.dish img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e3d3bc; border-radius: 6px; }
.country { margin-block: 13px 3px; color: var(--wine); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.image-note { font-size: .77rem; color: var(--muted); margin-top: 20px; }

.samples-section { background: #efe1ca; border-block: 1px solid var(--line); }
.sample-layout { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 7.5vw, 106px); align-items: center; }
.sample-copy > p:not(.eyebrow) { margin-top: 17px; color: var(--muted); max-width: 43ch; }
.samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 36px); }
.sample { display: block; color: var(--pine); font-size: .9rem; font-weight: 700; text-decoration: none; text-align: center; }
.sample img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 20px #6046272c; border: 1px solid #b5a482; margin-bottom: 12px; }
.sample:hover > span { text-decoration: underline; }
.sample > span > span { margin-left: 4px; }

.offer {
  background: radial-gradient(ellipse at 22% 49%, #36553a 0%, transparent 56%), var(--pine);
  color: var(--cream);
}
.offer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 9vw, 105px); align-items: center; max-width: 1060px; }
.book-stage { display: grid; place-items: center; min-height: 380px; position: relative; perspective: 980px; }
.book-stage::before {
  content: "";
  position: absolute;
  width: min(100%, 370px);
  height: 96%;
  border: 1px solid #f1cd8b63;
  border-radius: 49% 49% 4px 4px;
  box-shadow: 0 0 0 9px #f1cd8b13, inset 0 0 45px #eac47918;
}
.book {
  position: relative;
  width: min(60%, 246px);
  transform-style: preserve-3d;
  transform: rotateX(var(--book-x, 5deg)) rotateY(var(--book-y, -20deg)) rotateZ(-4deg);
  transition: transform 370ms ease-out;
}
.book img { width: 100%; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: -7px 11px 26px #08150f83; }
.book::before {
  content: "";
  position: absolute;
  inset: 2px 0 2px auto;
  width: 22px;
  transform: rotateY(90deg) translateX(100%);
  transform-origin: right center;
  background: repeating-linear-gradient(90deg, #d6bf8e 0 1px, #eee0b8 1px 4px);
}
.book::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22px;
  transform: rotateX(-90deg) translateY(100%);
  transform-origin: bottom center;
  background: repeating-linear-gradient(0deg, #ae976a 0 1px, #d2ba84 1px 4px);
}
.offer-copy > p:not(.eyebrow, .purchase-note, .price) { margin-top: 16px; max-width: 43ch; color: #f2ead9; }
.price { display: flex; align-items: baseline; gap: 10px; margin-block: 23px 16px; color: var(--gold); }
.price strong { font: 500 2.7rem/1 var(--heading); letter-spacing: -.035em; }
.price span { color: var(--cream); font-size: .92rem; }

.faq { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(30px, 7vw, 100px); }
.faq h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-child { border-top: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; }
summary::marker { color: var(--wine); }
details p { margin: 8px 0 0 17px; color: var(--muted); }
.support { margin-top: 19px; font-size: .94rem; }
.support a { color: var(--wine); font-weight: 700; }
footer { color: #ece4d1; background: #0e2119; padding-block: 23px; font-size: .83rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap; }

dialog { width: min(93vw, 670px); max-height: 94vh; padding: 13px 18px; border: 1px solid var(--line); border-radius: 8px; text-align: center; color: var(--pine); background: var(--cream); }
dialog::backdrop { background: #06150fe0; }
dialog button { display: block; margin: 0 0 10px auto; padding: 7px 15px; color: var(--pine); border: 1px solid #ae9b7a; border-radius: 4px; background: var(--paper); cursor: pointer; }
dialog img { margin: auto; max-height: 75vh; object-fit: contain; }
dialog p { margin-top: 7px; font-size: .88rem; }


.hero-purchase { display: flex; gap: 17px; align-items: center; margin-top: 23px; }
.hero-book { width: 66px; flex-shrink: 0; transform: rotate(-3deg); }
.hero-book img { width: 100%; height: auto; border-radius: 2px; box-shadow: 0 7px 14px #06130b66; }
.hero-price { color: #f8edd4; font-size: 1.125rem; }
.hero-price strong { color: var(--gold); font-size: 1.45em; font-weight: 700; }
.passport { padding-block: clamp(40px, 5.5vw, 76px); background: #efe5d6; border-block: 1px solid var(--line); }
.passport-inner, .addons { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: clamp(36px, 7vw, 100px); align-items: center; }
.passport h2, .addons h2 { font-size: clamp(2.05rem, 3.65vw, 3.15rem); margin: 8px 0 14px; }
.passport p:not(.eyebrow), .addons p:not(.eyebrow), .addons dd { color: var(--muted); }
.guide-link { margin-top: 18px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--wine); font-weight: 700; }
.guide-link small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.passport-list { padding: 17px 0; border-block: 1px solid #c7af8f; }
.passport-list summary { color: var(--pine); }
.samples-section { background: #faf4e7; }
.addons { padding-block: clamp(48px, 6vw, 84px); border-bottom: 1px solid var(--line); }
.addons dl { margin: 0; }
.addons dl div + div { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.addons dt { color: var(--pine); font-weight: 700; }
.addons dt strong { color: var(--wine); white-space: nowrap; }
.addons dd { margin: 4px 0 0; }
.closing-buy { justify-self: start; color: var(--cream); background: var(--wine); }
.closing-buy:hover { background: #5c232a; }
.mobile-buy { display: none; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero-inner { min-height: 565px; }
  .hero-copy { max-width: 59%; }
  .hero-scene { left: 29%; }
  .hero-scene::after { background: linear-gradient(90deg, var(--pine), #10281ee8 13%, #10281e57 39%, transparent 70%), linear-gradient(0deg, #101d1555, transparent 30%); }
  .book-stage { min-height: 330px; }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 40px); }
  .nav { min-height: 60px; gap: 14px; }
  .brand { font-size: clamp(.92rem, 3.6vw, 1.13rem); gap: 6px; }
  .nav-links { gap: 12px; font-size: .82rem; }
  .nav-menu { display: none; }
  .nav-buy { border: 0; padding: 7px 0; }
  .hero-scene { inset: 0 0 auto; height: clamp(240px, 67vw, 420px); }
  .hero-scene::after { background: linear-gradient(0deg, var(--pine), #10281e73 18%, transparent 47%); }
  .scene-depth { transform: none; }
  .hero-inner { min-height: 0; padding-block: clamp(205px, 63vw, 375px) 38px; }
  .hero-copy { max-width: min(100%, 530px); }
  h1 { font-size: clamp(2.62rem, 8.7vw, 4.55rem); margin-top: 12px; }
  .eyebrow { font-size: .7rem; }
  .hero-intro { font-size: 1rem; margin-top: 16px; }
  .hero-actions { margin-top: 23px; gap: 13px 20px; }
  .motion-control { top: 11px; right: auto; bottom: auto; left: 13px; }
  .section-heading, .sample-layout, .faq { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading > p { max-width: 48ch; }
  .dishes { gap: 14px; }
  .samples { width: min(100%, 520px); }
  .offer-layout { grid-template-columns: .85fr 1fr; gap: 25px; }
  .book-stage { min-height: 255px; }
}

@media (max-width: 510px) {
  .section { padding-block: 53px; }
  .dishes { grid-template-columns: 1fr; gap: 16px; }
  .dish { display: grid; grid-template-columns: minmax(105px, 38%) 1fr; grid-template-rows: 1fr 1fr; column-gap: 15px; align-items: start; }
  .dish img { grid-row: span 2; }
  .country { align-self: end; margin-block: 0 4px; }
  .facts li { font-size: .87rem; }
  .facts strong { display: block; margin: 0 0 4px; }
  .offer-layout { grid-template-columns: 1fr; }
  .book-stage { min-height: 275px; width: min(100%, 300px); margin-inline: auto; }
  .book { width: 54%; }
  .offer .button { width: 100%; }
}


@media(max-width:740px) {
  body { font-size: 1rem; }
  .hero-actions { margin-top: 6px; gap: 7px 14px; }
  .hero-purchase { gap: 11px; margin-top: 16px; }
  .hero-book { width: clamp(43px, 11vw, 60px); }
  .hero-price { font-size: 1rem; }
  .hero-inner { padding-bottom: 32px; }
  .passport-inner, .addons { grid-template-columns: 1fr; row-gap: 22px; }
  .mobile-buy:not([hidden]) { display: flex; justify-content: center; position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; background: #10281ef5; padding: 7px 14px max(7px, env(safe-area-inset-bottom)); }
  .mobile-buy .button { font-size: 1rem; width: min(100%, 430px); padding: 7px 14px; min-height: 43px; }
  body.has-mobile-buy { scroll-padding-bottom: 65px; }
  .brand { font-size: .8rem; max-width: 55vw; }
  .hero .text-link { min-height: 36px; display: inline-flex; align-items: center; }
  .offer-copy .price { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-control { display: none; }
  .scene-depth { transform: scale(1.018); }
  .book { transform: rotateX(5deg) rotateY(-20deg) rotateZ(-4deg); }
}
