@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --cream: #f5ead4;
  --terracotta: #be4b19;
  --chocolate: #653219;
  --olive: #60663b;
  --ochre: #d5a050;
  --display: "Instrument Serif", "Times New Roman", serif;
  color: var(--chocolate);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.masthead {
  position: absolute; z-index: 2; inset: 0 5.3% auto; min-height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid #65321933;
}
.brand { display: grid; gap: .08rem; }
.brand-name { font: 2.8rem/.82 var(--display); letter-spacing: -.05em; }
.brand-name span { color: var(--terracotta); }
.brand-line, .nav-link, .hero-footer, .section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.nav-link { padding: .75rem 0; }
.nav-link:hover, .back:hover { color: var(--terracotta); }
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: max(760px, 100svh); display: grid; align-items: center;
  padding: 110px 5.3% 105px;
}
.hero::after, .menu::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .09;
  background-image: url("./paper.png"); mix-blend-mode: multiply;
}
.hero-copy { z-index: 1; width: max-content; max-width: 100%; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
h1, h2 { font: 400 clamp(5rem, 9.3vw, 11rem)/.81 var(--display); letter-spacing: -.045em; margin: 0; }
h1 em, h2 em { color: var(--terracotta); font-weight: inherit; }
.hero-copy p { font-size: 1.125rem; line-height: 1.45; margin: 1.65rem 0; }
.button {
  display: inline-flex; min-height: 54px; align-items: center; padding: .75rem 1.35rem;
  background: var(--terracotta); color: #fff8ec; font-weight: 700; font-size: .94rem;
  border-radius: 2px; transition: background .2s, transform .2s;
}
.button:hover { background: var(--chocolate); transform: translateY(-3px); }
.stage { position: absolute; z-index: -2; inset: 4% -4% 3% 27%; pointer-events: none; }
.stage-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 55% 58%, #ddad7966, #edd4a933 36%, transparent 67%);
}
canvas { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.still { position: absolute; left: 52%; top: 53%; width: min(42%, 440px); aspect-ratio: 1.25; transform: translate(-50%, -25%); }
.stage.ready .still { visibility: hidden; }
.still img { width: 100%; clip-path: circle(45%); }
.hero-footer {
  z-index: 1; position: absolute; bottom: 0; left: 5.3%; right: 5.3%;
  min-height: 65px; border-top: 1px solid #65321933; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem;
}
.hero-footer a { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; }
.scroll-mark { display: block; width: 1px; height: 18px; background: currentColor; }
.menu { position: relative; isolation: isolate; min-height: 67svh; display: grid; align-items: center; padding: 6rem 8%; background: #eddbc0; }
.menu h2 { font-size: clamp(3.5rem, 8vw, 8rem); margin: 1rem 0; }
.menu p:not(.section-label) { max-width: 37ch; font-size: 1.125rem; line-height: 1.55; }
.section-label { color: var(--olive); }
.back { display: inline-block; margin-top: .75rem; text-decoration: underline; text-underline-offset: .26em; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .95s cubic-bezier(.2,.7,.25,1) both; }
  @keyframes enter { from { opacity: 0; transform: translateY(24px); } }
}
@media (max-width: 760px) {
  .masthead { min-height: 72px; }
  .brand-name { font-size: 2.45rem; }
  .brand-line { font-size: .64rem; letter-spacing: .065em; }
  .nav-link { font-size: .66rem; letter-spacing: .075em; }
  .hero { min-height: max(740px, 100svh); display: block; padding: 105px 5.3% 340px; }
  h1 { font-size: clamp(4rem, 12vw, 6.4rem); }
  .hero-copy p { margin: 1.1rem 0; font-size: 1rem; }
  .button { min-height: 46px; }
  .stage { inset: auto -22% 45px -16%; height: 360px; }
  .hero-footer { min-height: 49px; font-size: .62rem; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
.journey { position: relative; height: calc(100svh + 85svh); }
.hero { position: sticky; top: 0; min-height: 100svh; background: var(--cream); }
.hero-copy { max-width: 47%; }
.hero-copy p { max-width: 32ch; }
.hero-copy h1 { font-size: clamp(4rem, 7.8vw, 9.2rem); line-height: .94; }
.button { border: 0; font-family: inherit; cursor: pointer; pointer-events: auto; }
button:focus-visible { outline: 3px solid var(--chocolate); outline-offset: 4px; }

@media (max-width: 760px) {
  .hero { min-height: max(660px, 100svh); }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: clamp(3.7rem, 12vw, 6rem); }
  .stage { height: clamp(305px, 44svh, 460px); }
}
@media (max-height: 690px) {
  .hero { top: min(0px, calc(100svh - 660px)); }
  .journey { height: calc(660px + 85svh); }
}
@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; }
  .hero { position: relative; top: auto; }
}

.signature { width: 116px; height: auto; }
.still { aspect-ratio: 1; width: min(58%, 520px); top: 50%; transform: translate(-50%, -50%); }
@media(max-width:760px){.signature{width:92px}}
.menu { padding: clamp(3.5rem,8vw,8rem) 0 clamp(3.5rem,8vw,8rem) 6%; grid-template-columns: 41% 1fr; overflow: hidden; }
.menu h2,.invitation h2 { font-size: clamp(3.3rem,6.4vw,7rem); line-height: .94; }
.tasting-copy { z-index: 1; }
.tasting-copy h3 { font: 2rem/1.06 var(--display); margin: 2.5rem 0 .5rem; }
.menu #dish-note { margin: 0; min-height: 3.2em; max-width: 32ch; }
.plate-controls { display:flex; align-items:center; gap:1rem; margin-top:1.3rem; }
.plate-controls button { background:transparent; border:1px solid #65321966; color:inherit; cursor:pointer; font:inherit; padding:.65rem 1rem; border-radius:2rem; }
.plate-controls button:hover { background:var(--cream); }
#count { font-variant-numeric: tabular-nums; }
.menu { display:block; padding:4rem 0; }
.tasting-copy { padding:0 6%; }
.tasting-copy h2 br { display:none; }
.tasting-copy h2 em::before { content:' '; }
.tabletop { position:relative; display:flex; gap:1.5rem; overflow:hidden; margin-top:2rem; }
.food-photo { margin:0; flex:0 0 clamp(210px,28vw,365px); }
.food-photo img { width:100%; aspect-ratio:1.35; object-fit:cover; display:block; }
.food-photo figcaption { padding:.7rem .75rem 0; }
.food-photo strong { display:block; font:1.8rem/1.1 var(--display); }
.food-photo span { display:block; margin-top:.3rem; font-size:1rem; line-height:1.4; }
.plate-controls { flex-wrap:wrap; }
.invitation { display:flex; align-items:center; justify-content:center; gap:clamp(2rem,8vw,9rem); padding:6rem 6%; min-height:65svh; }
.invitation p { max-width:36ch; line-height:1.5; }
.parcel { width:210px; height:180px; display:grid; place-items:center; perspective:800px; }
.carton { position:relative; width:155px; height:84px; transform-style:preserve-3d; transform:rotateX(-18deg) rotateY(-26deg); }
.carton i { position:absolute; display:block; background:#c99358; border:1px solid #ac7742; }
.carton-front { inset:0; transform:translateZ(50px); display:grid!important; place-items:center; }
.carton-front img { display:block; width:82px; height:82px; clip-path:circle(45%); }
.carton-side { width:100px;height:84px;right:0;transform:translateX(50%) rotateY(90deg); background:#b07840!important; }
.carton-lid { width:100%; height:100px; top:0; transform-origin:top; transform:translateZ(-50px) rotateX(var(--fold,140deg)); background:#e1b57f!important; }
@media(max-width:760px){
.menu { grid-template-columns:100%; padding:3rem 0; }
.tasting-copy { padding:0 6%; }
.tabletop { margin-top:2rem; }

.tasting-copy h3 { margin-top:1.4rem; }
.invitation { flex-direction:column; text-align:center; padding:3rem 6% 4rem; gap:1rem; }
}
@media(prefers-reduced-motion:reduce){.food-photo{transition:none}.carton-lid{transform:translateZ(-50px) rotateX(90deg)}}

.kitchen-nav { display:flex; gap:clamp(.65rem,2.4vw,2rem); align-items:center; }
.fixed-menu { padding:clamp(3.5rem,7vw,7rem) 6%; background:#63331e; color:#f5ead4; }
.fixed-menu h2 { font-size:clamp(3.6rem,7vw,7rem); line-height:1; }
.fixed-menu h2 em { color:#efbe82; }
.snack-note { font-size:1.125rem; line-height:1.5; margin:1.2rem 0 2rem; }
.menu-courses { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1.5rem,3vw,3rem); }
.menu-courses figure { margin:0; }
.menu-courses img { width:100%; aspect-ratio:1.35; height:auto; object-fit:cover; display:block; }
.menu-courses figcaption { font:clamp(1.65rem,2.7vw,2.5rem)/1.15 var(--display); padding-top:.65rem; }
@media(max-width:900px){.menu-courses{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.menu-courses{grid-template-columns:1fr}.kitchen-nav{gap:.65rem}.masthead{gap:.4rem}.kitchen-nav a{white-space:nowrap}}
@media (prefers-reduced-motion: no-preference) {
  .menu-courses { perspective:1000px; }
  .menu-courses figure { transform-origin:left center; transform:rotateY(calc(var(--unfold,0) * 27deg)) translateY(calc(var(--unfold,0) * 38px)); }
  .menu-courses figure:nth-child(even) { transform-origin:right center; transform:rotateY(calc(var(--unfold,0) * -27deg)) translateY(calc(var(--unfold,0) * 62px)); }
}
