/* Fratelli concept, v2: a bright Italian cafe. White, basil green, tomato red, a little sunshine yellow. */
:root {
  --white: #fffdf8;
  --cream: #fff4e3;
  --ink: #18241d;
  --ink-soft: #4d5a52;
  --green: #1d7a48;
  --green-2: #e6f3ea;
  --red: #d8342a;
  --red-2: #fde7e2;
  --sun: #f7c548;
  --display: "Fraunces", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --round: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.02em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Green, white and red stripe */
.flag { height: 8px; background: linear-gradient(90deg, var(--green) 0 33.3%, #ece6da 33.3% 66.6%, var(--red) 66.6%); }

/* ---- Concept notice ---- */
.concept { margin: 0; background: var(--ink); color: #d7ddd9; font-size: 0.8rem; text-align: center; padding: 0.45rem 1rem; position: relative; z-index: 70; }
.concept a { color: #fff; }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--white) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-in { display: flex; align-items: center; gap: 1rem; padding: 0.75rem var(--gutter); }
.mark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font: 800 clamp(1.4rem, 3vw, 1.75rem)/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.02em; color: var(--green); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.dots i:nth-child(2) { background: #e9e4da; }
.dots i:nth-child(3) { background: var(--red); }
.nav { margin-left: auto; display: flex; gap: 0.35rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.55rem 0.9rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--green-2); color: var(--green); }
.nav .pill { display: none; }

/* ---- Buttons: big, round, a little bouncy ---- */
.btn { --bg: var(--red); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; background: var(--bg); color: var(--fg); text-decoration: none; font: 800 1.05rem/1 var(--body); padding: 1.1rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer; box-shadow: 0 6px 0 color-mix(in srgb, var(--bg) 60%, #000); transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1), box-shadow 0.18s; }
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 9px 0 color-mix(in srgb, var(--bg) 60%, #000); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--bg) 60%, #000); }
.btn.green { --bg: var(--green); }
.btn.white { --bg: #fff; --fg: var(--ink); box-shadow: 0 6px 0 #d9d2c4; }
.btn.white:hover { box-shadow: 0 9px 0 #d9d2c4; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.ico { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Scene 1: hero. A round window onto their cakes that opens to full screen as you scroll ---- */
.hero { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; background: var(--white); }
.hero-text { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; gap: 0.8rem; padding: 0 var(--gutter); z-index: 3; pointer-events: none; }
.hero-text > * { pointer-events: auto; }
.chip-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--green-2); color: var(--green); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; padding: 0.5rem 0.9rem; border-radius: 999px; }
.hero h1 { font-size: clamp(4.6rem, 17vw, 13rem); line-height: 0.85; color: var(--green); }
.hero h1 .r { color: var(--red); }
.hero .lead { font: 600 clamp(1.1rem, 2.4vw, 1.4rem)/1.4 var(--body); color: var(--ink-soft); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 0.8rem; }
.window { position: absolute; inset: 0; z-index: 1; clip-path: circle(0% at 50% 50%); }
.window img { width: 100%; height: 100%; object-fit: cover; will-change: transform, filter; }
.window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 36, 29, 0.05), rgba(24, 36, 29, 0.55)); }
.window-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(2rem, 7vw, 4rem); z-index: 2; color: #fff; display: grid; gap: 0.4rem; opacity: 0; }
.window-text strong { font: 700 clamp(3rem, 10vw, 8rem)/0.9 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.window-text span { font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob.g { width: 34vmax; height: 34vmax; background: var(--green-2); left: -12vmax; top: -10vmax; }
.blob.r { width: 26vmax; height: 26vmax; background: var(--red-2); right: -9vmax; bottom: -8vmax; }
.blob.y { width: 7vmax; height: 7vmax; background: var(--sun); right: 16%; top: 18%; }

/* ---- Scene 2: pies ---- */
.pies { padding: clamp(5rem, 11vw, 9rem) var(--gutter); background: var(--cream); display: grid; gap: 2.5rem; justify-items: center; text-align: center; position: relative; overflow: hidden; }
.pies h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; max-width: 14ch; }
.pie-plate { width: min(78vw, 26rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 10px solid #fff; box-shadow: 0 30px 60px -30px rgba(24, 36, 29, 0.45); }
.pie-plate img { width: 100%; height: 100%; object-fit: cover; }
.pie-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; max-width: 52rem; }
.pie-pick { text-decoration: none; font: 700 clamp(1.1rem, 2.4vw, 1.45rem)/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; padding: 0.9rem 1.3rem; border-radius: 999px; background: #fff; box-shadow: 0 5px 0 #eadfcb; transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1), background 0.2s, color 0.2s; }
.pie-pick:hover { transform: translateY(-4px) rotate(-2deg); background: var(--green); color: #fff; box-shadow: 0 7px 0 #0f4a2b; }
.pie-pick.star { background: var(--red); color: #fff; box-shadow: 0 5px 0 #8f1e18; font-style: italic; }
.pie-pick.star:hover { background: var(--ink); box-shadow: 0 7px 0 #000; }

/* ---- Scene 3: full-screen colour scenes that stack up as you scroll, each with one framed photo ---- */
.story { position: relative; background: var(--ink); }
.slide { --bg: var(--green); --fg: #fff; position: relative; height: 100svh; margin: 0; overflow: hidden; background: var(--bg); color: var(--fg); display: grid; align-content: center; justify-items: center; gap: 1.4rem; padding: 5.5rem var(--gutter) 2.5rem; }
.slide.red { --bg: var(--red); }
.slide.sun { --bg: var(--sun); --fg: var(--ink); }
.slide.cream { --bg: var(--cream); --fg: var(--ink); }
.slide .frame { height: min(62svh, 34rem); max-width: 100%; border-radius: var(--round); overflow: hidden; border: 10px solid #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); background: #fff; }
.slide .frame img { height: 100%; width: auto; max-width: 100%; object-fit: cover; }
.slide .tag { font: 700 clamp(2.2rem, 6vw, 4.5rem)/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; text-align: center; }
.slide .num { position: absolute; right: var(--gutter); top: 5.5rem; font-weight: 800; letter-spacing: 0.1em; font-size: 0.9rem; opacity: 0.8; }
.slide .bubble { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.14); pointer-events: none; }
.slide .bubble.a { width: 40vmax; height: 40vmax; left: -14vmax; bottom: -16vmax; }
.slide .bubble.b { width: 16vmax; height: 16vmax; right: -4vmax; top: 12%; }

/* ---- Scene 4: thank-you note ---- */
.thanks { padding: clamp(5rem, 12vw, 9rem) var(--gutter); text-align: center; display: grid; gap: 1.6rem; justify-items: center; background: var(--white); }
.thanks blockquote { margin: 0; font: 600 clamp(2rem, 5.2vw, 4rem)/1.12 var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; max-width: 22ch; }
.thanks p { font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--green); max-width: 32ch; }
.heart { width: 3rem; height: 3rem; color: var(--red); }

/* ---- Scene 5: visit ---- */
.visit { padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: var(--green); color: #fff; display: grid; gap: 1.6rem; }
.visit h2 { font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: 0.9; }
.card { background: #fff; color: var(--ink); border-radius: var(--round); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; align-content: start; box-shadow: 0 10px 0 #0f4a2b; }
.hours strong { display: block; font: 700 clamp(1.6rem, 4vw, 2.4rem)/1.15 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hours span { font-weight: 800; color: var(--red); }
.now { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--red-2); color: var(--red); width: fit-content; }
.now i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.now.open { background: var(--green-2); color: var(--green); }
.now.open i { animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(29, 122, 72, 0.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(29, 122, 72, 0); } }
.where { font-size: 1.1rem; line-height: 1.6; font-weight: 600; }
.where a { text-decoration-color: var(--green); text-underline-offset: 4px; }
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.map { position: relative; border-radius: var(--round); overflow: hidden; min-height: 20rem; background: #cfe3d6; box-shadow: 0 10px 0 #0f4a2b; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Footer ---- */
.foot { padding: 3rem var(--gutter) 6.5rem; display: grid; gap: 1rem; background: var(--white); }
.foot .mark { font-size: clamp(2.6rem, 9vw, 5rem); }
.foot .dots i { width: 0.35em; height: 0.35em; }
.foot-note { font-size: 0.85rem; color: var(--ink-soft); max-width: 62ch; }

/* ---- Phone dock ---- */
.dock { position: fixed; z-index: 55; left: 0.75rem; right: 0.75rem; bottom: 0.9rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.dock .btn { padding: 1rem; }

/* ---- Order-ahead page ---- */
.order-hero { padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) 2rem; display: grid; gap: 0.8rem; justify-items: center; text-align: center; background: var(--cream); position: relative; overflow: hidden; }
.order-hero h1 { font-size: clamp(3.4rem, 11vw, 8rem); line-height: 0.9; color: var(--green); position: relative; }
.order-hero p { font: 600 italic clamp(1.3rem, 3.2vw, 2rem)/1.2 var(--display); color: var(--red); max-width: 24ch; position: relative; }
.order { padding: 2rem var(--gutter) 6rem; display: grid; gap: 1.6rem; align-items: start; background: var(--cream); }
.step { background: #fff; border-radius: var(--round); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 8px 0 #eadfcb; display: grid; gap: 1.2rem; }
.step-head { display: flex; align-items: center; gap: 0.9rem; }
.step-head b { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 800 1.2rem var(--body); flex: none; }
.step:nth-of-type(2) .step-head b { background: var(--ink); }
.step:nth-of-type(3) .step-head b { background: var(--red); }
.step-head h2 { font-size: 1.6rem; }
.tabs { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 0.35rem; gap: 0.2rem; width: fit-content; }
.tabs button { border: 0; background: transparent; font: 800 0.98rem var(--body); padding: 0.7rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.pie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.8rem; }
.pie { border: 3px solid transparent; background: var(--cream); border-radius: 22px; padding: 1rem; display: grid; gap: 0.8rem; transition: border-color 0.2s, background 0.2s; }
.pie.picked { border-color: var(--green); background: var(--green-2); }
.pie h3 { font-size: 1.45rem; line-height: 1.1; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.qty button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 3px 0 #d9d2c4; font: 800 1.3rem/1 var(--body); cursor: pointer; color: var(--ink); transition: transform 0.15s cubic-bezier(.3, 1.6, .5, 1); }
.qty button:hover { transform: scale(1.12); background: var(--green); color: #fff; box-shadow: 0 3px 0 #0f4a2b; }
.qty output { font: 800 1.3rem var(--body); min-width: 2ch; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { border: 0; background: var(--cream); border-radius: 16px; padding: 0.65rem 0.9rem; font: 800 0.95rem/1.2 var(--body); cursor: pointer; color: var(--ink); text-align: center; box-shadow: 0 3px 0 #eadfcb; transition: transform 0.15s cubic-bezier(.3, 1.6, .5, 1); }
.chip:hover { transform: translateY(-2px); }
.chip small { display: block; font-weight: 600; font-size: 0.75rem; color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; box-shadow: 0 3px 0 #0f4a2b; }
.chip[aria-pressed="true"] small { color: #d3ecdd; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 800; font-size: 0.92rem; }
.field input, .field textarea { font: 600 1rem var(--body); padding: 0.9rem 1rem; border-radius: 16px; border: 2px solid #ece4d6; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field textarea { min-height: 6rem; resize: vertical; }
.fields { display: grid; gap: 0.9rem; }
.hours-note { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
.summary { background: var(--green); color: #fff; border-radius: var(--round); padding: 1.6rem; display: grid; gap: 1rem; box-shadow: 0 10px 0 #0f4a2b; }
.summary h2 { font-size: 2rem; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; min-height: 1.5rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px dotted rgba(255, 255, 255, 0.3); padding-bottom: 0.4rem; font-weight: 700; }
.summary .when { font-weight: 800; color: var(--sun); }
.summary .empty { color: rgba(255, 255, 255, 0.6); }
.pay { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.12); border-radius: 14px; padding: 0.7rem 0.9rem; }
.summary .btn { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 6.5rem; translate: -50% 0; background: var(--ink); color: #fff; padding: 0.95rem 1.3rem; border-radius: 16px; font-weight: 800; z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s, translate 0.3s cubic-bezier(.3, 1.6, .5, 1); max-width: calc(100% - 2rem); text-align: center; }
.toast.show { opacity: 1; translate: -50% -0.6rem; }
[hidden] { display: none !important; }

/* ---- Wider screens ---- */
@media (min-width: 48rem) {
  .nav .pill { display: inline-flex; padding: 0.8rem 1.15rem; font-size: 0.95rem; }
  .visit { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .visit h2 { grid-column: 1 / -1; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .dock { display: none; }
  .foot { padding-bottom: 3rem; }
}
@media (min-width: 64rem) {
  .order { grid-template-columns: 1fr 22rem; }
  .summary { position: sticky; top: 6rem; grid-row: 1 / span 3; grid-column: 2; }
}
@media (max-width: 47.99rem) {
  body { padding-bottom: 5.2rem; }
}
/* Without motion (or if the script does not run) everything is simply visible */
.no-motion .hero { height: auto; min-height: 0; overflow: visible; }
.no-motion .hero-text { position: relative; padding: 4rem var(--gutter) 3rem; }
.no-motion .window { position: relative; clip-path: none; height: 70svh; }
.no-motion .window-text { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .pie-pick, .qty button { transition: none; }
  .now.open i { animation: none; }
}

/* Hero layout while the round window is small: words on one side, the cake photo in a circle on the other */
@media (min-width: 48rem) {
  .hero-text { justify-items: start; text-align: left; right: 46%; padding-left: var(--gutter); }
  .hero .cta { justify-content: flex-start; }
}
@media (max-width: 47.99rem) {
  .hero-text { align-content: start; padding-top: clamp(2.5rem, 9vh, 4.5rem); }
  .hero h1 { font-size: clamp(4.2rem, 22vw, 7rem); }
}
.no-motion .hero-text { right: auto; }
@media (max-width: 47.99rem) {
  .blob.y { top: auto; bottom: 34%; right: 4%; width: 5vmax; height: 5vmax; }
  .hero .cta { flex-direction: column; align-items: center; }
}
