:root {
  --green: #033a2c;
  --green-2: #0b4d3b;
  --green-3: #14634c;
  --cream: #fdf4cf;
  --cream-2: #f7ecc0;
  --paper: #fbf8ef;
  --line: #e7e1cc;
  --ink: #12201b;
  --muted: #5d6b64;
  --pink: #ff3b5c;
  --radius: 20px;
  --serif: "Fraunces", Georgia, serif;
  --bold: "Archivo Black", "Arial Black", Impact, sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
/* iPhone Safari ignores overflow on body alone, so clip the page itself too */
html { overflow-x: hidden; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.bold { font-family: var(--bold); letter-spacing: -0.04em; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); opacity: .8; margin: 0 0 1rem; }
.eyebrow.dark { color: var(--green-3); opacity: 1; }
h1 em, h2 em, h3 em, .hero-sub em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

/* Scalloped trim, like a restaurant awning. Paper colored bumps cut into the bottom edge. */
.awning::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, var(--paper) 21px, transparent 22px) 0 0 / 44px 22px repeat-x;
}

/* ---------- PAGE TRANSITIONS (between pages, where supported) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s ease both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease-out); }
html.vt-filter::view-transition-old(root), html.vt-filter::view-transition-new(root) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-16px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(28px); } }
.nav { view-transition-name: site-nav; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) clamp(16px, 4vw, 48px) 18px;
  color: var(--cream);
  transition: padding .35s var(--ease);
}
/* Blur lives on a pseudo-element so the fixed mobile menu isn't trapped inside the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(3, 58, 44, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); padding-bottom: 12px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; position: relative; z-index: 2; }
.logo span { color: var(--pink); }
.nav-links { display: flex; gap: 30px; align-items: center; font-weight: 600; font-size: .92rem; }
.nav-links a { position: relative; opacity: .9; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 40px; height: 40px; position: relative; z-index: 2; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--cream); transition: transform .3s var(--ease), top .3s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.nav.open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- ENTRANCE ---------- */
.hero-in { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.loaded .hero-in { opacity: 1; transform: none; }
.loaded .hero-in:nth-child(1) { transition-delay: .05s; }
.loaded .hero-in:nth-child(2) { transition-delay: .15s; }
.loaded .hero-in:nth-child(3) { transition-delay: .55s; }
.loaded .hero-in:nth-child(4) { transition-delay: .65s; }
.loaded .hero-in:nth-child(5) { transition-delay: .75s; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(253,244,207,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(20,99,76,.7), transparent 60%),
    var(--green);
  color: var(--cream);
  padding: 110px 16px 110px;
  overflow: hidden;
}
/* Film grain so the green feels printed, not flat */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* A faint plate rim that draws itself around the title */
.plate {
  position: absolute; left: 50%; top: 50%; width: min(92vmin, 760px); height: auto; translate: -50% -52%;
  color: var(--cream); opacity: .14; stroke-width: .5; pointer-events: none;
}
.plate circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-out) .3s; }
.plate circle + circle { stroke-dasharray: .006 .012; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.6s ease 1.4s; }
.loaded .plate circle { stroke-dashoffset: 0; }
.loaded .plate circle + circle { opacity: 1; }

.hero-inner { position: relative; z-index: 2; will-change: transform, opacity; display: flex; flex-direction: column; align-items: center; }
.handle { display: block; width: min(440px, 82vw); margin-bottom: -.4rem; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), color .25s; }
.handle svg { width: 100%; height: auto; overflow: visible; }
.handle text { font-family: var(--sans); font-weight: 700; font-size: 25px; letter-spacing: .32em; fill: currentColor; }
.handle:hover { color: #fff; }
.hero-title {
  font-family: var(--bold); font-weight: 400;
  font-size: clamp(3.6rem, 14vw, 11.5rem);
  line-height: .86; letter-spacing: -0.055em; margin: 0;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.loaded .hero-title .line > span { transform: none; }
.loaded .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
/* Second line sits off center, like it was set by hand */
.hero-title .line:nth-child(2) { translate: .9em 0; }
.hero-sub { position: relative; font-size: clamp(1.9rem, 5vw, 3.6rem); margin: .2rem 0 0; rotate: -4deg; translate: -1.2em 0; }
.hero-sub em { color: var(--cream); }
.squiggle { position: absolute; left: 4%; right: 0; bottom: -.32em; width: 96%; height: .32em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--pink); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-out) 1.2s; }
.loaded .squiggle path { stroke-dashoffset: 0; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin: 2.4rem 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.loaded .hero-meta.hero-in { opacity: .75; }
.hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }

.floaters { position: absolute; inset: 0; transition: transform .2s linear; }
.floaters img {
  position: absolute; width: clamp(84px, 10vw, 150px); aspect-ratio: 9 / 13; object-fit: cover;
  border-radius: 14px; border: 3px solid var(--cream);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  opacity: 0; scale: .6;
  transition: translate .7s var(--ease), opacity .8s var(--ease-out), scale 1s var(--ease-out);
  transition-delay: 0s, calc(var(--i) * 90ms + .45s), calc(var(--i) * 90ms + .45s);
  animation: bob 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.2s);
}
.loaded .floaters img { opacity: 1; scale: 1; }
/* Mixed shapes: arched windows (Porto, Lisbon), plates, pills */
.floaters img:nth-child(1) { top: 15%; left: 6%; rotate: -6deg; border-radius: 999px 999px 14px 14px; }
.floaters img:nth-child(2) { top: 14%; right: 8%; rotate: 6deg; aspect-ratio: 1; border-radius: 50%; width: clamp(80px, 9vw, 136px); }
.floaters img:nth-child(3) { bottom: 14%; left: 13%; rotate: 4deg; aspect-ratio: 1; border-radius: 50%; width: clamp(70px, 8vw, 118px); }
.floaters img:nth-child(4) { bottom: 12%; right: 12%; rotate: -5deg; border-radius: 999px 999px 14px 14px; }
.floaters img:nth-child(5) { top: 44%; left: -1%; rotate: 9deg; border-radius: 999px; aspect-ratio: 9 / 16; }
.floaters img:nth-child(6) { top: 46%; right: -1%; rotate: -9deg; border-radius: 999px; aspect-ratio: 9 / 16; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-hint { position: absolute; bottom: 44px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(253,244,207,.5); border-radius: 20px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cream); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- MARQUEE ---------- */
/* A tilted ribbon tied across the bottom of the awning. The wrapper trims its tilted ends. */
.ribbon { overflow: hidden; overflow: clip; padding-block: 24px; margin-top: 6px; position: relative; z-index: 4; }
.marquee {
  background: var(--cream); color: var(--green); overflow: hidden; border-block: 2px solid var(--green);
  position: relative; width: 106%; margin: 0 -3%; rotate: -1.6deg;
  box-shadow: 0 12px 24px rgba(3,58,44,.12);
}
.marquee-track { display: flex; gap: 32px; width: max-content; padding: 18px 0; animation: marquee 30s linear infinite; align-items: center; white-space: nowrap; }
.marquee-track span { font-size: 1.8rem; }
.marquee-track .bold { font-weight: 400; }
.marquee-track i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FOOD LINE ART ---------- */
.deco { position: absolute; color: var(--green); opacity: .28; pointer-events: none; z-index: 0; }
.deco-cream { color: var(--cream); opacity: .3; }
.deco svg { width: 100%; height: auto; display: block; }
[data-shape] path, [data-shape] circle {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease-out);
}
[data-shape].visible path, [data-shape].visible circle { stroke-dashoffset: 0; }
[data-shape] :nth-child(2) { transition-delay: .15s; }
[data-shape] :nth-child(3) { transition-delay: .3s; }
[data-shape] :nth-child(4) { transition-delay: .45s; }
[data-shape] :nth-child(5) { transition-delay: .6s; }
[data-shape] :nth-child(n+6) { transition-delay: .75s; }

/* ---------- HEADINGS THAT SLIDE UP WORD BY WORD ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
[data-split].visible .w > span { transform: none; }

/* ---------- SECTIONS ---------- */
.section { position: relative; overflow-x: clip; padding: clamp(72px, 10vw, 130px) clamp(16px, 4vw, 48px) 0; max-width: 1240px; margin: 0 auto; }
.section > *:not(.deco) { position: relative; z-index: 1; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); margin: 0; color: var(--green); line-height: 1; }
.section-head p { margin: 0; color: var(--muted); font-weight: 500; }

/* City filter: a quiet line of text, the chosen city gets a hand drawn underline */
.filters { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 0; font-size: .95rem; color: var(--muted); padding-bottom: .4rem; }
.filters-label { font-family: var(--serif); font-style: italic; margin-right: 10px; }
.filter { padding: 4px 0; font-weight: 500; color: var(--muted); transition: color .2s; text-decoration: underline wavy transparent; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.filter + .filter::before { content: "/"; margin: 0 10px; color: var(--line); text-decoration: none; display: inline-block; }
.filter:hover { color: var(--green); }
.filter.active { color: var(--green); font-weight: 700; text-decoration-color: var(--pink); }

/* ---------- VIDEO CARDS ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card {
  position: relative; aspect-ratio: 9 / 15; border-radius: var(--radius); overflow: hidden;
  color: #fff; cursor: pointer; outline: none; background: var(--green);
  box-shadow: 0 10px 30px rgba(3,58,44,.12);
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: transform .35s var(--ease), box-shadow .35s, clip-path 1s var(--ease-out) var(--d, 0s);
}
.card.visible { clip-path: inset(0 0 0 0 round var(--radius)); }
.card.hide { display: none; }
.card:hover, .card.open, .card:focus-visible { box-shadow: 0 24px 50px rgba(3,58,44,.28); }
.card .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.15; transition: scale 1.2s var(--ease-out) var(--d, 0s), transform .6s var(--ease), filter .4s; }
.card.visible .thumb { scale: 1; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.8)); pointer-events: none; }
.card .tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--pink); padding: 5px 9px; border-radius: 999px; }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; transition: opacity .3s; }
.card-info h3 { margin: 0 0 3px; font-size: .98rem; line-height: 1.2; }
.card-info p { margin: 0; font-size: .78rem; font-weight: 500; opacity: .85; }

.watch {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(3,58,44,.15), rgba(3,58,44,.92) 55%);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.watch p { margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; color: var(--cream); transform: translateY(10px); transition: transform .4s var(--ease); }
.watch-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); opacity: .75; }
.watch-links { display: grid; gap: 8px; }
.watch-links a {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--green);
  padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .88rem;
  transform: translateY(14px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s, background .2s;
}
.watch-links a:nth-child(2) { transition-delay: .05s; }
.watch-links a:nth-child(3) { transition-delay: .1s; }
.watch-links a:hover { background: #fff; }
.watch-links svg { font-size: 1.15rem; }

.card.open .watch, .card:focus-within .watch { opacity: 1; pointer-events: auto; }
.card.open .watch p, .card:focus-within .watch p,
.card.open .watch-links a, .card:focus-within .watch-links a { transform: none; opacity: 1; }
.card.open .card-info, .card:focus-within .card-info { opacity: 0; }
.card.open .thumb, .card:focus-within .thumb { transform: scale(1.06); filter: blur(2px); }
@media (hover: hover) {
  .card:hover .watch { opacity: 1; pointer-events: auto; }
  .card:hover .watch p, .card:hover .watch-links a { transform: none; opacity: 1; }
  .card:hover .card-info { opacity: 0; }
  .card:hover .thumb { transform: scale(1.06); filter: blur(2px); }
}

/* ---------- RECIPES ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.recipe-card:nth-child(3) .recipe-media { transition-delay: .24s; }
.recipe-card { display: block; }
/* Arched like the windows in Porto and Lisbon */
.recipe-media {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--cream);
  border-radius: 50% 50% 22px 22px / 42% 42% 22px 22px;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease-out);
}
.recipe-card.visible .recipe-media { clip-path: inset(0); }
.recipe-card:nth-child(2) .recipe-media { transition-delay: .12s; }
.recipe-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.recipe-card:hover .recipe-media img { transform: scale(1.05); }
.soon { position: absolute; bottom: 14px; left: 14px; background: var(--green); color: var(--cream); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.recipe-info { padding: 18px 4px 0; }
.recipe-meta { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-3); }
.recipe-info h3 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--green); line-height: 1.05; }
.recipe-info h3::after { content: ""; display: block; width: 0; height: 2px; background: var(--green); margin-top: 8px; transition: width .5s var(--ease-out); }
.recipe-card:hover .recipe-info h3::after { width: 64px; }
.recipe-info p:last-child { margin: 0; color: var(--muted); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-photo { position: relative; aspect-ratio: 1; width: 100%; overflow: clip; }
/* Photo served on a fluted plate */
.plate-fluted { position: absolute; inset: 6%; width: 88%; height: 88%; fill: var(--cream); filter: drop-shadow(0 8px 12px rgba(3,58,44,.14)); }
.about-photo img {
  position: absolute; inset: 20%; width: 60%; height: 60%; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(3,58,44,.12);
}
.about-deco { width: 26%; right: 0; bottom: 2%; opacity: .5; }
.about-copy h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 18px; color: var(--green); line-height: 1; }
.about-copy > p { font-size: 1.1rem; line-height: 1.7; color: var(--green-2); max-width: 52ch; margin: 0 0 30px; }
.about-copy h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-3); margin: 0 0 6px; }
.favs { list-style: none; margin: 0; padding: 0; }
.favs li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1.5px solid var(--line);
  transition: padding .4s var(--ease-out), opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.favs li:hover { padding-left: 10px; }
.favs li:nth-child(2) { transition-delay: 0s, .08s, .08s; }
.favs li:nth-child(3) { transition-delay: 0s, .16s, .16s; }
.favs li:nth-child(4) { transition-delay: 0s, .24s, .24s; }
.favs li:nth-child(5) { transition-delay: 0s, .32s, .32s; }
.favs li:nth-child(6) { transition-delay: 0s, .4s, .4s; }
.favs a {
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--green);
  background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 2px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.favs a::after { content: "\2197"; font-family: var(--sans); font-size: .7em; margin-left: 6px; opacity: .35; transition: opacity .25s; }
.favs a:hover { background-size: 100% 2px; }
.favs a:hover::after { opacity: 1; }
.favs small { color: var(--muted); font-weight: 500; font-size: .92rem; }

/* ---------- CONTACT ---------- */
.contact-card {
  position: relative; overflow: hidden;
  background: var(--green); color: var(--cream); border-radius: 30px;
  padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px);
}
.contact-card > *:not(.deco) { position: relative; z-index: 1; }
.contact-copy h2 { margin: 0 0 16px; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.contact-copy p { opacity: .85; line-height: 1.6; margin: 0 0 24px; font-size: 1.05rem; }
.contact-copy p a { border-bottom: 1px solid currentColor; font-weight: 600; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem;
  border: 1.5px solid rgba(253,244,207,.45); transition: background .25s, color .25s, transform .3s var(--ease);
}
.socials a:hover { background: var(--cream); color: var(--green); transform: translateY(-3px); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 500;
  background: var(--cream); color: var(--ink); border: 2px solid transparent; border-radius: 14px;
  padding: 13px 15px; resize: vertical; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--pink); }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.contact-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.error { color: #ffb3c0; }
.form-status a { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  transition: transform .25s var(--ease), background .25s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-cream { background: var(--cream); color: var(--green); }

/* ---------- FOOTER ---------- */
/* Cream footer with a pie crust edge */
.footer { position: relative; text-align: center; margin-top: 120px; background: var(--cream); padding: 70px 16px calc(env(safe-area-inset-bottom, 0px) + 40px); color: var(--green); }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 22px;
  background: radial-gradient(circle at 50% 100%, var(--cream) 21px, transparent 22px) 0 0 / 44px 22px repeat-x;
}
.footer .serif em { font-weight: 400; }
.footer p { margin: 0; font-size: 1.6rem; }
.footer small { display: block; margin-top: 14px; color: var(--muted); }

/* ---------- SCROLL REVEAL ---------- */
.reveal:not(.card):not(.recipe-card) { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.visible:not(.card):not(.recipe-card) { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .floaters img:nth-child(3) { left: 4%; bottom: 8%; }
  .floaters img:nth-child(4) { right: 4%; bottom: 6%; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--green); flex-direction: column; justify-content: center;
    font-size: 1.9rem; font-family: var(--serif); gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transition: opacity .3s; }
  .contact-card, .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; margin: 0 auto; }
  .floaters img:nth-child(n+5) { display: none; }
}
@media (max-width: 960px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .recipe-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { border-radius: 14px; --radius: 14px; }
  .card-info { padding: 10px; }
  .card-info h3 { font-size: .82rem; }
  .card-info p { font-size: .68rem; }
  .watch { padding: 10px; gap: 6px; }
  .watch p { display: none; }
  .watch-links a { padding: 9px 10px; font-size: .78rem; gap: 7px; }
  .floaters img { width: 74px; }
  .loaded .floaters img { opacity: .55; }
  .deco { max-width: 70px; }
  .favs a { font-size: 1.3rem; }
  .hero-sub { translate: -.4em 0; }
  .hero-title .line:nth-child(2) { translate: .5em 0; }
  .filters { font-size: .88rem; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: .6rem; }
  .filters::-webkit-scrollbar { display: none; }
  .filters { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 28px; }
  .hero-meta { font-size: .68rem; letter-spacing: .12em; flex-direction: column; gap: 6px; }
  .hero-meta i { display: none; }
  .filter + .filter::before { margin: 0 7px; }
  .awning::after, .footer::before { background-size: 30px 15px; height: 15px; }
  .awning::after { background-image: radial-gradient(circle at 50% 100%, var(--paper) 14px, transparent 15px); }
  .footer::before { top: -14px; background-image: radial-gradient(circle at 50% 100%, var(--cream) 14px, transparent 15px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { animation: marquee 60s linear infinite !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero-in, .card, .recipe-media, .floaters img { opacity: 1 !important; transform: none !important; clip-path: none !important; scale: 1 !important; }
  .hero-title .line > span, [data-split] .w > span { transform: none !important; }
  [data-shape] path, [data-shape] circle, .plate circle, .squiggle path { stroke-dashoffset: 0 !important; }
  .plate circle { opacity: 1 !important; }
}
.about-copy > p + p { margin-top: -14px; }
.footer-socials { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.footer-socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem;
  border: 1.5px solid rgba(3,58,44,.35); color: var(--green); transition: background .25s, color .25s, transform .3s var(--ease);
}
.footer-socials a:hover { background: var(--green); color: var(--cream); transform: translateY(-3px); }
