/* Please Let Me Eat: landing page
   Tokens follow the 2026 refinement book (MMMM Studio). */

:root {
  --cherry: #85111a;
  --pink: #f2b9bc;
  --butter: #f2edd7;
  --green: #185133;
  --lime: #978e38;
  --azure: #008ad6;
  --orange: #c96827;
  --black: #000;
  --white: #fff;

  --script: "Pinyon Script", cursive;
  --titling: "Castoro Titling", "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 34rem;
  --paper: url("assets/img/paper.jpg");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--butter);
  color: var(--cherry);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--butter); color: var(--cherry); padding: .5rem 1rem;
}
.skip:focus { top: 12px; }

/* Headlines: Pinyon Script, tracking 0 */
.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

/* Paper grain shared by coloured fields */
.paper { position: relative; isolation: isolate; }
.hero__stage::after,
.menu::after,
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--paper) center / cover;
  mix-blend-mode: multiply; opacity: .35;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--titling);
  letter-spacing: -0.025em;
  text-decoration: none;
  background: var(--butter);
  color: var(--cherry);
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background-color .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--cherry); color: var(--butter); border-color: var(--butter); }
.btn:active { transform: scale(.97); }
.btn--small { padding: .45rem 1.1rem .4rem; font-size: .95rem; }
.btn--big { padding: 1rem 2rem .9rem; font-size: clamp(1rem, .9rem + .5vw, 1.3rem); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 12px var(--gutter);
  color: var(--butter);
  transition: background-color .35s, color .35s, padding .35s;
}
.nav.is-solid { background: color-mix(in srgb, var(--butter) 92%, transparent); color: var(--cherry); backdrop-filter: blur(6px); padding-block: 8px; }
.nav.is-solid .btn { background: var(--cherry); color: var(--butter); border-color: var(--cherry); }
.nav__brand img { width: 56px; height: auto; }
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav__links a {
  font-family: var(--titling); letter-spacing: -0.025em; font-size: .95rem;
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s;
}
.nav__links a:hover { background-size: 100% 1px; }
@media (max-width: 640px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh;
  background: var(--cherry);
  color: var(--butter);
  display: grid;
  place-items: center;
}

.hero__title {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: .9;
  font-size: clamp(4.2rem, 15vw, 15rem);
}
.hero__line { position: absolute; white-space: nowrap; padding: 0 .15em; }
.hero__line--1 { left: 6vw; top: 16svh; }
.hero__line--2 { right: 5vw; bottom: 14svh; }

.hero__zoom { position: relative; z-index: 2; transform-origin: 50% 32%; will-change: transform; }
.hero__window {
  position: relative;
  width: min(32vw, 46svh, 440px);
  aspect-ratio: 224 / 350;
  clip-path: url(#stand-clip);
}
.hero__window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.15); }

.hero__kicker, .hero__aside, .hero__cue { position: absolute; z-index: 4; }
.hero__kicker {
  top: 96px; right: var(--gutter);
  font-family: var(--titling); letter-spacing: -0.025em; font-size: .95rem;
}
.hero__aside {
  left: var(--gutter); bottom: 6svh; max-width: 15rem;
  font-size: 1.05rem; line-height: 1.45;
}
.hero__cue {
  right: var(--gutter); bottom: 6svh;
  font-family: var(--script); font-size: 1.6rem;
}
.hero__reveal {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; padding: var(--gutter);
  opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(70, 4, 10, .62), rgba(70, 4, 10, .28) 70%);
}
.hero__reveal p {
  max-width: 22ch; text-align: center;
  font-family: var(--script); font-size: clamp(2.2rem, 5.5vw, 5rem); line-height: 1.1;
  color: var(--butter); text-shadow: 0 2px 30px rgba(60, 0, 6, .55);
}

@media (max-width: 640px) {
  .hero__window { width: min(62vw, 40svh); }
  .hero__title { font-size: clamp(4.4rem, 22vw, 6rem); }
  .hero__line--1 { top: 15svh; left: 3vw; }
  .hero__line--2 { bottom: 17svh; right: 2vw; }
  .hero__kicker { top: 80px; }
  .hero__aside { bottom: 4svh; max-width: 11rem; font-size: .95rem; }
  .hero__cue { bottom: 4svh; font-size: 1.3rem; }
}

/* ---------- Story ---------- */
.story {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 7rem); align-items: center;
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  position: relative; background: var(--butter);
}
.story__photo {
  background: var(--pink); overflow: hidden; aspect-ratio: 947 / 1064;
}
.story__photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: contrast(1.1); }
.story__title { font-size: clamp(3.5rem, 8vw, 7rem); margin-bottom: 2rem; }
.story__lede {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.4; max-width: 30ch; margin-bottom: 2rem;
}
.story__lede .w { opacity: .18; transition: opacity .2s; }
.story__body { max-width: var(--measure); margin-bottom: 1rem; line-height: 1.65; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } .story__photo { max-width: 26rem; } }

/* ---------- Stripes ---------- */
.stripes {
  position: relative; overflow: hidden;
  min-height: clamp(26rem, 60vw, 40rem);
  display: grid; place-items: center;
}
.stripes__bg {
  position: absolute; inset: 0 -200px;
  background: repeating-linear-gradient(90deg,
    var(--green) 0 46px, var(--butter) 46px 60px, var(--azure) 60px 74px, var(--butter) 74px 88px);
}
.stripes__seal {
  position: relative; z-index: 2; width: clamp(180px, 26vw, 320px);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .25));
}
.stripes__values {
  position: absolute; z-index: 2; inset: auto 0 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem;
  padding: 0 var(--gutter);
}
.stripes__values li {
  font-family: var(--titling); letter-spacing: -0.025em;
  background: var(--butter); color: var(--cherry);
  padding: .35rem .9rem .25rem; font-size: clamp(.85rem, .8rem + .3vw, 1.05rem);
}

/* ---------- Moments ---------- */
.moments { background: var(--butter); }
.moments__pin {
  min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4svh, 3rem);
  padding: 90px 0 3rem;
}
.moments__head { padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 3rem; }
.moments__head h2 { font-size: clamp(3rem, 7vw, 6.5rem); }
.moments__head p { max-width: 24rem; padding-bottom: .8rem; }

.moments__track {
  display: flex; gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0 var(--gutter); width: max-content;
}
.stand {
  position: relative; flex: none;
  width: clamp(150px, min(19vw, 30svh), 250px);
  text-align: center;
}
.stand svg { width: 100%; height: auto; fill: var(--c); overflow: visible; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%; }
.stand:hover svg { transform: rotate(-3deg) translateY(-6px); }
.stand__name {
  position: absolute; left: 8%; right: 8%; top: 30%;
  font-family: var(--script); color: var(--ink); line-height: 1;
  font-size: clamp(1.5rem, min(2.4vw, 4svh), 2.5rem);
  pointer-events: none;
}
.stand__note { display: block; margin-top: 1rem; font-size: .95rem; line-height: 1.4; min-height: 2.8em; }
.stand[style*="--c:var(--butter)"] svg { stroke: var(--cherry); stroke-width: 1.5; }

/* ---------- Still life ---------- */
.still { position: relative; height: clamp(26rem, 70vw, 50rem); overflow: hidden; color: var(--butter); }
.still__img { position: absolute; inset: -12% 0; }
.still__img img { width: 100%; height: 100%; object-fit: cover; }
.still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(60, 4, 10, .72), rgba(60, 4, 10, .15) 60%), linear-gradient(transparent 50%, rgba(40, 0, 4, .45)); }
.still__quote {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(2rem, 6vw, 4.5rem);
}
.still__quote p { font-family: var(--script); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.1; max-width: 18ch; }

/* ---------- Menu / record ---------- */
.menu {
  position: relative; isolation: isolate;
  background: var(--green); color: var(--butter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
}
.record { position: relative; aspect-ratio: 1.45; max-width: 640px; width: 100%; justify-self: end; }
.record__sleeve {
  position: absolute; left: 0; top: 0; width: 69%; aspect-ratio: 1;
  background: #0e3a24; overflow: hidden; z-index: 2;
  box-shadow: 10px 0 30px rgba(0, 0, 0, .35);
}
.record__sleeve img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.record__disc {
  position: absolute; right: 0; top: 3%; width: 64%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.05) 31.5%, transparent 32%),
    repeating-radial-gradient(circle, #5a0a10 0 2px, #6e0d15 2px 4px),
    var(--cherry);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 6px #4d070d;
}
.record__disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 12%, rgba(255,255,255,.12) 16%, transparent 22% 62%, rgba(255,255,255,.08) 66%, transparent 72%);
}
.record__label {
  width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--pink);
  display: grid; place-items: center; padding: 6%;
}
.record__label img { width: 100%; }

.menu__card {
  background: var(--pink); color: var(--cherry);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  max-width: 34rem;
}
.menu__over { font-family: var(--script); font-size: 1.7rem; line-height: 1; }
.menu__title { font-size: clamp(4rem, 9vw, 7rem); line-height: .9; margin-bottom: 1.5rem; }
.menu__side {
  font-family: var(--titling); font-weight: 400; letter-spacing: -0.025em; font-size: 1.15rem;
  border-bottom: 1px solid var(--cherry); padding-bottom: .3rem; margin: 1.6rem 0 .6rem;
}
.menu__side small { font-family: var(--serif); font-size: .8rem; margin-left: .4rem; }
.menu__list li { display: flex; align-items: baseline; gap: .5rem; padding: .2rem 0; }
.menu__list li::after { content: none; }
.menu__list span { display: flex; flex: 1; align-items: baseline; gap: .5rem; }
.menu__list span::after { content: ""; flex: 1; border-bottom: 2px dotted currentColor; opacity: .55; transform: translateY(-.2em); }
.menu__list b { font-family: var(--titling); font-weight: 400; }
.menu__sauce { font-size: .92rem; margin-top: .6rem; font-style: italic; }
@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; }
  .record { justify-self: center; max-width: 460px; }
}

/* ---------- Pistachio poster ---------- */
.poster {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--black); color: var(--butter);
  min-height: 90svh;
}
.poster__img { position: relative; overflow: hidden; }
.poster__img img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.poster__text { align-self: center; padding: clamp(3rem, 8vw, 7rem) var(--gutter); }
.poster__text h2 { font-size: clamp(3.4rem, 7.5vw, 7rem); margin-bottom: 1.5rem; max-width: 9ch; }
.poster__text p { max-width: 26rem; }
@media (max-width: 760px) {
  .poster { grid-template-columns: 1fr; }
  .poster__img { min-height: 70svh; }
}

/* ---------- Order ---------- */
.order { padding: clamp(5rem, 10vw, 9rem) var(--gutter); }
.order__title { font-size: clamp(3.5rem, 8vw, 7rem); margin-bottom: 1rem; }
.order__note { max-width: 36rem; margin-bottom: 2.5rem; }
.tickets {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.ticket {
  --notch: 14px;
  position: relative;
  background: var(--t); color: var(--butter);
  padding: 1.5rem 1.4rem 1.6rem 2.4rem;
  /* punched notches on both ends, like the name tickets in the book */
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.ticket:nth-child(odd) { transform: rotate(-1.5deg); }
.ticket:nth-child(even) { transform: rotate(1.2deg) translateY(10px); }
.ticket:hover { transform: rotate(0) translateY(-8px); }
.ticket::before {
  content: ""; position: absolute; left: 1.2rem; top: 12px; bottom: 12px;
  border-left: 2px dashed color-mix(in srgb, var(--butter) 60%, transparent);
}
.ticket[style*="--pink"] { color: var(--cherry); }
.ticket[style*="--pink"]::before { border-color: rgba(133, 17, 26, .4); }
.ticket__no { font-family: var(--titling); letter-spacing: -0.025em; font-size: .95rem; }
.ticket h3 { font-family: var(--script); font-weight: 400; font-size: clamp(1.9rem, 2.4vw, 2.4rem); line-height: 1.05; margin: .4rem 0 .7rem; }
.ticket p { font-size: .98rem; line-height: 1.5; }
@media (max-width: 980px) { .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .tickets { grid-template-columns: 1fr; } }

.enjoy {
  margin: clamp(4rem, 9vw, 7rem) auto 0; max-width: 56rem;
  background: var(--butter); border: 1px solid var(--cherry);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.enjoy__title {
  font-family: var(--titling); font-weight: 400; letter-spacing: -0.025em; text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem); line-height: 1.05; margin-bottom: 2rem;
}
.enjoy__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
}
.tile {
  padding: 1.1rem 1.2rem; font-family: var(--titling); letter-spacing: -0.025em; line-height: 1.2;
  font-size: clamp(.95rem, .85rem + .4vw, 1.2rem);
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 7.5rem;
  transition: transform .4s cubic-bezier(.3, 1.5, .5, 1);
}
.tile .script { font-size: 2.2em; line-height: .9; margin-right: .2em; }
.tile:hover { transform: rotate(0) scale(1.03) !important; }
.tile--pink { grid-column: span 4; background: var(--pink); color: var(--cherry); transform: rotate(-1deg); }
.tile--green { grid-column: span 2; background: var(--green); color: var(--butter); transform: rotate(1.5deg); }
.tile--butter { grid-column: span 3; background: var(--butter); color: var(--cherry); border: 1px solid var(--cherry); transform: rotate(.8deg); }
.tile--blue { grid-column: span 3; background: var(--azure); color: var(--butter); transform: rotate(-1.2deg); }
.tile--cherry { grid-column: 2 / span 4; background: var(--cherry); color: var(--butter); transform: rotate(.6deg); }
@media (max-width: 600px) {
  .enjoy__grid { grid-template-columns: 1fr 1fr; }
  .tile--pink, .tile--butter, .tile--blue, .tile--cherry { grid-column: span 2; }
  .tile--green { grid-column: span 2; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--cherry); color: var(--butter); text-align: center;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  display: grid; justify-items: center; gap: 1.5rem;
}
.cta__seal { position: relative; width: clamp(220px, 28vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.cta__seal img { width: 60%; }
.cta__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--butter); font-family: var(--titling); font-size: 15.5px; letter-spacing: .02em; }
.cta__title { font-size: clamp(3.5rem, 10vw, 8.5rem); line-height: .95; }
.cta__title span { display: block; font-size: .55em; }
.cta__text { max-width: 28rem; }
.cta .btn--big:hover { background: var(--pink); color: var(--cherry); border-color: var(--pink); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--butter); padding: 3rem var(--gutter) 2rem; }
.footer__script { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 2rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; font-size: .9rem; line-height: 1.6; }
.footer a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Motion: initial states only applied when JS + motion are on ---------- */
.js-motion [data-write] { clip-path: inset(0 100% 0 0); }
.js-motion [data-intro] { opacity: 0; }
.js-motion [data-window] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .story__lede .w { opacity: 1; }
}
