@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/EBGaramond-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400 600; font-display: swap; src: url(fonts/EBGaramond-italic.woff2) format('woff2'); }
@font-face { font-family: 'Mansalva'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Mansalva-normal.woff2) format('woff2'); }

:root {
  --paper: #faf8f1;
  --paper-2: #eeecdf;
  --ink: #2a2c1e;
  --ink-soft: #56584a;
  --olive: #8a9a5b; /* Berta's colour, as she asked */
  --sage: #8a9a5b; /* Berta's brand colour */
  --olive-deep: #4a5530;
  --olive-wash: #ecefdc;
  --tomato: #c4673f;
  --line: rgba(138, 154, 91, .3);
  --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --brush: 'Mansalva', 'Segoe Print', 'Comic Sans MS', cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.05rem + .25vw, 21px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--olive); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.brush { font-family: var(--brush); font-weight: 400; letter-spacing: .005em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* paper grain */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* gingham tablecloth band */
.mantel {
  height: 38px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(138,154,91,.45) 50%, transparent 50%),
    linear-gradient(rgba(138,154,91,.45) 50%, transparent 50%);
  background-size: 38px 38px;
  border-block: 2px solid var(--olive);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav img { height: 42px; width: auto; }
.nav ul { display: flex; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-size: 1.02rem; position: relative; }
.nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav ul a:hover::after, .nav ul a.on::after { transform: scaleX(1); }
@media (max-width: 640px) { .nav ul li.hide-sm { display: none; } .nav img { height: 34px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 90px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero h1 {
  margin: 0; color: var(--olive);
  font-family: var(--brush); font-weight: 400;
  font-size: clamp(4.2rem, 11.5vw, 10.5rem); line-height: .82; letter-spacing: -.01em;
}
.hero h1 span { display: block; clip-path: inset(0 100% 0 0); animation: paint 1.1s cubic-bezier(.7,0,.2,1) forwards; }
.hero h1 span:nth-child(2) { animation-delay: .45s; padding-left: .5em; }
@keyframes paint { to { clip-path: inset(0 -5% 0 0); } }
.hero .tag { font-style: italic; font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); line-height: 1.25; margin: 28px 0 14px; max-width: 22ch; }
.hero .intro { color: var(--ink-soft); max-width: 44ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--olive);
  background: var(--olive); color: #fff; text-decoration: none; font-size: 1.02rem;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 3px 0 var(--olive-deep);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--olive-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--olive-deep); }
.btn.ghost { background: transparent; color: var(--olive); box-shadow: none; }
.btn.ghost:hover { background: var(--olive-wash); }

/* draggable table of polaroids */
.table { position: relative; height: clamp(420px, 44vw, 580px); }
.table .hint { position: absolute; right: 4%; bottom: -6px; font-family: var(--brush); color: var(--olive); font-size: 1.25rem; transform: rotate(-4deg); display: flex; align-items: center; gap: 6px; pointer-events: none; }
.pola {
  position: absolute; background: #fff; padding: 10px 10px 0; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(42,44,30,.12), 0 14px 30px -12px rgba(42,44,30,.35);
  touch-action: none; user-select: none; cursor: grab;
  transition: box-shadow .2s, scale .2s;
  opacity: 0; animation: drop .7s cubic-bezier(.2,.9,.3,1.2) forwards;
}
.pola.grab { cursor: grabbing; box-shadow: 0 2px 4px rgba(42,44,30,.12), 0 30px 50px -16px rgba(42,44,30,.45); scale: 1.04; }
.pola img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; }
.pola figcaption { font-family: var(--brush); color: var(--ink); text-align: center; padding: 8px 4px 10px; font-size: 1.12rem; line-height: 1.1; }
@keyframes drop { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
.sticker { position: absolute; width: clamp(130px, 15vw, 190px); pointer-events: none; animation: spin-in 1s .9s cubic-bezier(.2,.9,.3,1.3) both; filter: drop-shadow(0 6px 10px rgba(42,44,30,.15)); }
@keyframes spin-in { from { opacity: 0; transform: rotate(-30deg) scale(.6); } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .table { height: 440px; margin-top: 10px; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--olive); color: #fff; overflow: hidden; padding-block: 14px; transform: rotate(-1.2deg); margin: 10px -20px; }
.marquee div { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--brush); font-size: clamp(1.4rem, 1rem + 1.5vw, 2.3rem); white-space: nowrap; padding-right: 1.6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
section { scroll-margin-top: 70px; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.head h2 { margin: 0; font-family: var(--brush); font-weight: 400; color: var(--olive); font-size: clamp(2.8rem, 1.6rem + 4.5vw, 5.6rem); line-height: .9; }
.head p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } }

/* ---------- recipes ---------- */
.recetas { padding-block: clamp(70px, 9vw, 130px) clamp(60px, 8vw, 110px); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tab { border: 2px solid var(--olive); background: transparent; color: var(--olive); border-radius: 999px; padding: 9px 20px; font-size: 1rem; transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--olive); color: #fff; }
.card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(74,85,48,.45);
  border: 1px solid var(--line);
}
.card .photo { position: relative; min-height: 420px; background: var(--paper-2) center / cover no-repeat; }
.card .photo .badge { position: absolute; left: 18px; top: 18px; background: var(--paper); color: var(--olive); font-family: var(--brush); font-size: 1.2rem; padding: 4px 14px; border-radius: 999px; transform: rotate(-3deg); }
.card .body { padding: clamp(22px, 3.4vw, 46px); }
.card h3 { margin: 0 0 10px; font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); line-height: 1.05; letter-spacing: -.01em; }
.card .lede { color: var(--ink-soft); margin: 0 0 22px; font-style: italic; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 26px; align-items: center; }
.meta div { display: flex; flex-direction: column; line-height: 1.2; }
.meta small { color: var(--ink-soft); font-size: .8rem; }
.meta b { font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--olive); background: #fff; color: var(--olive); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; }
.stepper button:hover { background: var(--olive-wash); }
.stepper output { min-width: 1.4ch; text-align: center; font-weight: 600; font-size: 1.15rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 40px); }
.cols h4 { font-family: var(--brush); font-weight: 400; color: var(--olive); font-size: 1.7rem; margin: 0 0 10px; }
.ings { list-style: none; padding: 0; margin: 0; }
.ings li label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 6px 0; cursor: pointer; line-height: 1.35; border-bottom: 1px dashed var(--line); }
.ings input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--olive); border-radius: 5px; margin-top: 4px; display: grid; place-items: center; transition: background .15s; }
.ings input:checked { background: var(--olive); }
.ings input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ings input:checked + span { text-decoration: line-through; text-decoration-color: var(--tomato); color: var(--ink-soft); }
.ings .q { font-weight: 600; color: var(--olive-deep); transition: color .3s; }
.ings .q.bump { color: var(--tomato); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--olive); color: var(--olive); display: grid; place-items: center; font-size: .95rem; background: #fff; transition: background .2s, color .2s; }
.steps li.done::before { content: '✓'; background: var(--olive); color: #fff; }
.steps li.done p { color: var(--ink-soft); }
.steps strong { display: block; font-weight: 600; cursor: pointer; }
.steps p { margin: 2px 0 6px; line-height: 1.5; }
.steps .note { font-style: italic; color: var(--ink-soft); font-size: .92em; }
.timer-btn { border: 0; background: var(--olive-wash); color: var(--olive-deep); border-radius: 999px; padding: 3px 12px; font-size: .9rem; }
.timer-btn:hover { background: #e3e7d2; }
.tip { margin-top: 18px; padding: 14px 18px; background: var(--paper); border-left: 3px solid var(--tomato); border-radius: 0 12px 12px 0; font-size: .95em; }
.tip b { font-family: var(--brush); font-weight: 400; color: var(--tomato); font-size: 1.25rem; margin-right: 6px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 900px) { .card { grid-template-columns: 1fr; } .card .photo { min-height: 300px; } }
@media (max-width: 620px) { .cols { grid-template-columns: 1fr; } }

/* floating timers */
.timers { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.timer { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); animation: drop .4s ease-out forwards; }
.timer b { font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 600; }
.timer span { font-size: .9rem; opacity: .8; }
.timer button { border: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; }
.timer.ring { background: var(--tomato); animation: shake .5s infinite; }
@keyframes shake { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* cooking mode */
.cook { position: fixed; inset: 0; z-index: 80; background: var(--olive); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(16px, 4vw, 48px); }
.cook[hidden] { display: none; }
.cook header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cook header .brush { font-size: 1.6rem; }
.cook .x { border: 2px solid #fff; background: transparent; color: #fff; border-radius: 999px; padding: 6px 18px; }
.cook main { display: grid; align-content: center; max-width: 900px; margin: 0 auto; width: 100%; }
.cook .n { font-family: var(--brush); font-size: clamp(5rem, 16vw, 11rem); line-height: .8; opacity: .35; }
.cook h3 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); margin: 10px 0; font-weight: 500; line-height: 1.05; }
.cook p { font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); line-height: 1.4; margin: 0 0 18px; max-width: 34ch; }
.cook .timer-btn { font-size: 1.1rem; padding: 8px 18px; }
.cook footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cook footer button { border: 2px solid #fff; background: transparent; color: #fff; border-radius: 999px; padding: 12px 26px; font-size: 1.1rem; }
.cook footer button:disabled { opacity: .3; cursor: default; }
.cook .dots { display: flex; gap: 8px; }
.cook .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.cook .dots i.on { background: #fff; }

/* ---------- la cena (film strip) ---------- */
.cena { background: var(--paper-2); padding-block: clamp(70px, 9vw, 130px); position: relative; }
.cena .date { font-family: var(--brush); color: var(--tomato); font-size: 1.5rem; transform: rotate(-2deg); display: inline-block; margin-bottom: 6px; }
.strip {
  display: flex; gap: clamp(14px, 2vw, 26px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 30px; scrollbar-width: none; cursor: grab;
  scroll-padding-inline: var(--gutter);
}
.strip::-webkit-scrollbar { display: none; }
.strip.drag { cursor: grabbing; scroll-snap-type: none; }
.shot { flex: 0 0 auto; width: clamp(250px, 30vw, 380px); scroll-snap-align: start; margin: 0; }
.shot.wide { width: clamp(300px, 52vw, 680px); }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 14px; overflow: hidden; position: relative; }
.shot img { width: 100%; height: clamp(320px, 38vw, 480px); object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.shot button:hover img { transform: scale(1.04); }
.shot .num { position: absolute; left: 14px; top: 10px; font-family: var(--brush); color: #fff; font-size: 2.4rem; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.shot figcaption { padding: 12px 4px 0; line-height: 1.35; }
.shot figcaption b { font-weight: 600; display: block; }
.shot figcaption span { color: var(--ink-soft); font-style: italic; }
.strip-ui { display: flex; align-items: center; gap: 16px; }
.progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 20%; background: var(--olive); border-radius: 3px; transform-origin: left; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--olive); background: transparent; color: var(--olive); font-size: 1.2rem; display: grid; place-items: center; transition: background .2s, color .2s; }
.round:hover { background: var(--olive); color: #fff; }
.quote { margin: clamp(40px, 6vw, 80px) auto 0; max-width: 30ch; text-align: center; font-style: italic; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); line-height: 1.25; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 1rem; color: var(--ink-soft); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(30,32,20,.94); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 20px 16px; }
.lb[hidden] { display: none; }
.lb img { max-height: 78vh; max-width: min(92vw, 1100px); width: auto; border-radius: 10px; }
.lb p { color: #fff; text-align: center; margin: 14px 0 0; max-width: 50ch; }
.lb p b { font-family: var(--brush); font-weight: 400; font-size: 1.5rem; display: block; }
.lb .close, .lb .prev, .lb .next { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; }
.lb .close { top: 16px; right: 16px; }
.lb .prev { left: 16px; top: 45%; }
.lb .next { right: 16px; top: 45%; }

/* ---------- manifiesto ---------- */
.manifiesto { background: var(--olive); color: #fff; padding-block: clamp(80px, 11vw, 160px); position: relative; overflow: hidden; }
.manifiesto::before { content: 'manifiesto'; position: absolute; font-family: var(--brush); font-size: clamp(8rem, 26vw, 24rem); line-height: 1; color: rgba(255,255,255,.06); left: -2vw; top: -3vw; white-space: nowrap; pointer-events: none; }
.manifiesto .wrap { position: relative; max-width: 980px; }
.manifiesto .kicker { font-family: var(--brush); font-size: 1.6rem; opacity: .85; margin: 0 0 30px; }
.manifiesto p.l { font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem); line-height: 1.18; margin: 0 0 .6em; opacity: .12; transform: translateY(18px); transition: opacity .9s, transform .9s; }
.manifiesto p.l.in { opacity: 1; transform: none; }
.manifiesto p.l em { font-style: italic; }
.manifiesto p.fin { font-family: var(--brush); font-size: clamp(2.4rem, 1.2rem + 5vw, 5.4rem); line-height: 1; margin-top: .9em; }
.manifiesto .src { margin-top: 40px; opacity: .7; font-size: .95rem; }

/* ---------- libro ---------- */
.libro { padding-block: clamp(70px, 9vw, 130px); }
.libro .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.viewer { perspective: 2200px; }
.pages { position: relative; aspect-ratio: 1536 / 1131; border-radius: 12px; }
.pages img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; transform-origin: left center; transition: transform .8s cubic-bezier(.6,.05,.3,1), opacity .8s; border-radius: 12px; }
.pages img.cover { object-fit: contain; background: transparent; }
.pages img.out { transform: rotateY(-100deg); opacity: 0; }
.pages img.wait { opacity: 0; transform: translateX(3%); }
.viewer-ui { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.viewer-ui .cap { text-align: center; flex: 1; }
.viewer-ui .cap b { font-weight: 600; display: block; line-height: 1.2; }
.viewer-ui .cap small { color: var(--ink-soft); }
.libro h2 { font-family: var(--brush); font-weight: 400; color: var(--olive); font-size: clamp(3rem, 1.6rem + 4.6vw, 5.8rem); line-height: .88; margin: 0 0 8px; }
.libro .sub { font-style: italic; font-size: 1.35rem; color: var(--tomato); margin: 0 0 22px; }
.libro .txt { color: var(--ink-soft); margin: 0 0 28px; }
.libro .facts { list-style: none; padding: 0; margin: 0 0 30px; border-top: 1px solid var(--line); }
.libro .facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.libro .facts li span { color: var(--ink-soft); }
@media (max-width: 900px) { .libro .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer.foot { background: var(--ink); color: #e9e6df; padding-block: clamp(50px, 7vw, 90px) 30px; }
footer.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
footer.foot .big { font-family: var(--brush); font-size: clamp(3rem, 1.5rem + 5vw, 6rem); line-height: .85; color: #fff; margin: 0; }
footer.foot .big a { color: inherit; text-decoration: none; }
footer.foot p { margin: 0 0 8px; }
footer.foot a { color: #c5cf9f; }
footer.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: .9rem; opacity: .6; }
@media (max-width: 760px) { footer.foot .wrap { grid-template-columns: 1fr; } }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .marquee div { animation: none; }
}

/* late additions */
.pola { rotate: var(--r, 0deg); }
.card .photo.framed { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); background: var(--olive-wash); }
.card .photo .crop { width: min(100%, 360px); aspect-ratio: 345 / 405; border-radius: 22px; background-repeat: no-repeat; background-size: 445.2% auto; background-position: 17.21% 68.18%; box-shadow: 0 20px 40px -24px rgba(74,85,48,.6); rotate: -2deg; }
.pages img.cover { filter: drop-shadow(0 18px 24px rgba(42,44,30,.28)); }

/* fixes after first visual pass */
html { overflow-x: clip; }
.hero h1 { font-size: clamp(4rem, 10.2vw, 9.4rem); }
.hero h1 span { clip-path: inset(-15% 100% -15% 0); }
@keyframes paint { to { clip-path: inset(-15% -25% -15% 0); } }
.card { align-items: start; }
@media (min-width: 901px) {
  .card .photo { position: sticky; top: 84px; height: min(calc(100vh - 110px), 760px); min-height: 0; }
}
.round:disabled { opacity: .3; cursor: default; }
.round:disabled:hover { background: transparent; color: var(--olive); }
@media (max-width: 860px) {
  .table { margin-top: 44px; }
  .table .hint { bottom: auto; top: -38px; left: 0; right: auto; }
  .sticker { right: 0 !important; top: -4% !important; width: 120px; }
}

/* ---------- optional sections (proposal 2026-10-25) ---------- */
[hidden] { display: none !important; }
.btn.wide { width: 100%; justify-content: center; }

/* chef por un día */
.chef { padding-block: clamp(30px, 5vw, 60px) clamp(70px, 9vw, 120px); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.svc { display: grid; gap: 14px; }
.svc-card { display: grid; grid-template-columns: 150px 1fr; text-align: left; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-2px); }
.svc-card[aria-checked="true"] { border-color: var(--olive); box-shadow: 0 3px 0 var(--olive-deep); }
.svc-card .ph { background: center / cover no-repeat; min-height: 130px; }
.svc-card .tx { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; line-height: 1.35; }
.svc-card b { font-size: 1.3rem; font-weight: 600; }
.svc-card .tx > span { color: var(--ink-soft); font-size: .95rem; }
.svc-card i { font-style: normal; font-family: var(--brush); color: var(--olive); font-size: 1.3rem; margin-top: 4px; }
.booker { position: sticky; top: 84px; background: var(--olive); color: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.booker h3 { margin: 0 0 12px; font-size: 2.2rem; line-height: 1; }
.booker .lbl { margin: 10px 0 8px; font-size: .95rem; opacity: .85; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: 0 0 auto; width: 62px; padding: 8px 0; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.day b { font-size: 1.4rem; font-weight: 600; }
.day small { font-size: .72rem; opacity: .8; text-transform: lowercase; }
.day.on { background: #fff; color: var(--olive); border-color: #fff; }
.day:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.booker .stepper button { background: transparent; border-color: #fff; color: #fff; }
.booker .stepper button:hover { background: rgba(255,255,255,.15); }
.sum { margin: 18px 0; border-top: 1px solid rgba(255,255,255,.3); }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.sum dt { opacity: .85; }
.sum dd { margin: 0; font-weight: 600; text-align: right; }
.sum div:first-child dd { font-weight: 400; }
.sum .tot { font-size: 1.25rem; border-bottom: 0; }
.booker .btn { background: #fff; color: var(--olive); border-color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.booker .fine { font-size: .85rem; opacity: .75; margin: 12px 0 0; text-align: center; }
@media (max-width: 900px) { .book-grid { grid-template-columns: minmax(0, 1fr); } .booker { position: static; } }
@media (max-width: 520px) { .svc-card { grid-template-columns: 96px 1fr; } .svc-card .tx { padding: 12px 14px; } }

/* tienda */
.tienda { padding-block: clamp(40px, 6vw, 90px) clamp(70px, 9vw, 120px); background: var(--paper-2); }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.prod { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 14px 14px 20px; display: flex; flex-direction: column; }
.prod .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--olive-wash) center / cover no-repeat; margin-bottom: 14px; }
.prod.book .ph { background-size: contain; }
.prod .pdf { position: absolute; right: 10px; top: 10px; background: var(--tomato); color: #fff; font-family: var(--brush); padding: 2px 12px; border-radius: 999px; transform: rotate(4deg); }
.prod h3 { margin: 0; font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.prod p { margin: 4px 0 16px; color: var(--ink-soft); font-size: .95rem; }
.prod .row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prod .row b { font-size: 1.4rem; font-weight: 600; }
@media (max-width: 860px) { .shelf { grid-template-columns: 1fr; max-width: 460px; } }

/* vales */
.vales { padding-block: clamp(70px, 9vw, 130px); }
.vales .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.vales h2 { color: var(--olive); font-size: clamp(3rem, 1.6rem + 4.6vw, 5.6rem); line-height: .88; margin: 0 0 8px; }
.vales .sub { font-style: italic; font-size: 1.35rem; color: var(--tomato); margin: 0 0 16px; }
.vales .txt { color: var(--ink-soft); margin: 0 0 22px; }
.amounts { display: flex; gap: 10px; margin-bottom: 18px; }
.amt { border: 2px solid var(--olive); background: transparent; color: var(--olive); border-radius: 999px; padding: 8px 20px; font-size: 1.05rem; }
.amt[aria-checked="true"] { background: var(--olive); color: #fff; }
.fld { display: block; margin-bottom: 12px; }
.fld span { display: block; font-size: .85rem; color: var(--ink-soft); }
.fld input { width: 100%; font: inherit; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.fld input:focus { outline: none; border-color: var(--olive); }
.vales .btn { margin-top: 8px; }
.voucher { padding: 20px; border-radius: 8px; rotate: 2deg; background-color: #fff;
  background-image: linear-gradient(90deg, rgba(138,154,91,.45) 50%, transparent 50%), linear-gradient(rgba(138,154,91,.45) 50%, transparent 50%);
  background-size: 30px 30px; box-shadow: 0 30px 50px -28px rgba(74,85,48,.6); }
.v-in { background: var(--paper); border-radius: 4px; padding: clamp(24px, 4vw, 44px); text-align: center; }
.v-k { margin: 0; text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; color: var(--ink-soft); }
.v-a { margin: 4px 0 10px; color: var(--olive); font-size: clamp(3.6rem, 2rem + 5vw, 6rem); line-height: 1; }
.v-to { margin: 0; font-size: 1.3rem; }
.v-to b { font-weight: 600; }
.v-msg { margin: 14px auto 6px; font-style: italic; font-size: 1.25rem; max-width: 26ch; line-height: 1.3; overflow-wrap: anywhere; }
.v-from { margin: 0 0 18px; color: var(--ink-soft); }
.v-logo { height: 46px; width: auto; margin: 0 auto; }
@media (max-width: 900px) { .vales .wrap { grid-template-columns: 1fr; } .voucher { rotate: 0deg; } }

/* descuentos */
.desc { padding-block: clamp(40px, 6vw, 90px) clamp(70px, 9vw, 110px); background: var(--olive-wash); }
.codes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.code { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: start; }
.code .brand { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.code .brand small { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.code .off { margin: 0; font-family: var(--brush); color: var(--tomato); font-size: 1.8rem; line-height: 1; }
.code button { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border: 2px dashed var(--olive); background: var(--paper); color: var(--olive-deep); border-radius: 12px; padding: 10px 14px; font-weight: 600; letter-spacing: .06em; }
.code button span { font-weight: 400; font-size: .85rem; letter-spacing: 0; color: var(--ink-soft); }
.code button:hover { background: var(--olive-wash); }
@media (max-width: 860px) { .codes { grid-template-columns: 1fr; max-width: 460px; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 95; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; width: max-content; max-width: min(92vw, 460px); text-align: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); font-size: .98rem; line-height: 1.35; }

/* picker */
.picker-btn { position: fixed; left: 16px; bottom: 16px; z-index: 70; border: 0; background: var(--tomato); color: #fff; font-family: var(--brush); font-size: 1.3rem; padding: 10px 20px; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(196,103,63,.7); }
.picker { position: fixed; left: 16px; bottom: 76px; z-index: 75; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; border-radius: 20px; border: 2px solid var(--olive); box-shadow: 0 30px 60px -20px rgba(74,85,48,.5); padding: 18px; }
.picker header { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 10px; }
.picker header b { display: block; color: var(--olive); font-size: 1.7rem; line-height: 1.05; }
.picker header small { color: var(--ink-soft); font-size: .85rem; }
.picker .x { border: 0; background: var(--olive-wash); color: var(--olive); width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.picker ul { list-style: none; margin: 0; padding: 0; }
.picker li { border-top: 1px dashed var(--line); }
.picker li label, .picker li.fixed { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; cursor: pointer; line-height: 1.25; }
.picker li.fixed { cursor: default; opacity: .75; }
.picker li b { font-weight: 600; font-size: 1rem; }
.picker li small { display: block; color: var(--ink-soft); font-size: .82rem; }
.picker li em { font-style: normal; font-size: .75rem; color: var(--olive-deep); background: var(--olive-wash); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 38px; height: 22px; border-radius: 999px; background: #d9dccb; position: relative; transition: background .2s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
input:checked + .sw, .sw.on { background: var(--olive); }
input:checked + .sw::after, .sw.on::after { transform: translateX(16px); }
input:focus-visible + .sw { outline: 3px solid var(--tomato); outline-offset: 2px; }
.pick-foot { margin: 10px 0 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.4; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 520px) { .picker-btn { font-size: 1.05rem; padding: 8px 16px; left: 10px; bottom: 10px; } .picker { left: 8px; width: calc(100vw - 16px); bottom: 70px; } }

/* ---------- layout fixes after the full-page review (2026-10-25) ---------- */
/* Hero table: the original pile. On one-column layouts it keeps the phone's
   proportions (358 x 440) at any width, so the polaroids never spill onto the marquee. */
@media (max-width: 860px) {
  .table { height: auto; aspect-ratio: 358 / 440; width: 100%; max-width: 520px; margin-inline: auto; }
}

/* the wordmark PNG has a white background: let it sit on paper colours */
.nav img, .v-logo { mix-blend-mode: multiply; }

/* tablet: cards in two columns instead of one narrow column */
@media (max-width: 860px) {
  .shelf, .codes { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); max-width: none; }
  .libro .viewer { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- tighter page (2026-10-25): less vertical space, recipe photo on top ---------- */
.recetas { padding-block: clamp(48px, 6vw, 84px) clamp(40px, 5vw, 70px); }
.chef { padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 80px); }
.libro { padding-block: clamp(48px, 6vw, 84px); }
.tienda, .desc { padding-block: clamp(44px, 5.5vw, 76px); }
.vales { padding-block: clamp(48px, 6vw, 84px); }
.cena { padding-block: clamp(48px, 6vw, 84px); }
.manifiesto { padding-block: clamp(56px, 7vw, 100px); }
.head { margin-bottom: clamp(20px, 3vw, 36px); }

/* the quote uses the width it has instead of a narrow column */
.quote { max-width: 52ch; margin-top: clamp(24px, 3vw, 40px); font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem); }

/* recipe card: photo as a banner, so ingredients and steps get the full width */
@media (min-width: 901px) {
  .card { grid-template-columns: 1fr; }
  .card .photo { position: relative; top: auto; height: 340px; min-height: 0; }
  .card .photo.framed { height: auto; padding: 28px; }
  .card .photo .crop { width: min(100%, 250px); }
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; }
  .steps li { padding-bottom: 12px; }
}

/* the book viewer does not need to be taller than the text next to it */
@media (min-width: 901px) { .libro .viewer { max-width: 560px; justify-self: center; width: 100%; } }

/* manifesto: same lines, less height */
.manifiesto .kicker { margin-bottom: 18px; }
.manifiesto p.l { font-size: clamp(1.35rem, 1rem + 1.6vw, 2.3rem); margin-bottom: .5em; }
.manifiesto p.fin { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.8rem); margin-top: .6em; }
.manifiesto .src { margin-top: 24px; }

/* phones: ingredients and steps as two tabs instead of one long column */
.seg { display: none; }
@media (max-width: 620px) {
  .seg { display: flex; gap: 6px; padding: 4px; background: var(--olive-wash); border-radius: 999px; margin-bottom: 18px; }
  .seg button { flex: 1; border: 0; background: transparent; color: var(--olive-deep); border-radius: 999px; padding: 8px 10px; font-size: 1rem; }
  .seg button[aria-selected="true"] { background: var(--olive); color: #fff; }
  .cols[data-show="ings"] > div:last-child, .cols[data-show="steps"] > div:first-child { display: none; }
  .cols h4 { display: none; }
}
