:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-900: #1c1917;
  --emerald-800: #065f46;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--stone-50);
  color: var(--stone-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--emerald-800); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
main { flex: 1; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--stone-200); }
.site-header .wrap { height: 4rem; display: flex; align-items: center; }
.logo { display: inline-flex; transition: opacity .15s; }
.logo:hover { opacity: .7; }
.logo img, .logo-img { height: 1.375rem; width: auto; display: block; }
.logo-img { height: 1.125rem; }

/* shared type */
.label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone-400);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500);
}
h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }

/* home */
.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 3.75rem); }
.hero p { font-size: 1.125rem; font-weight: 500; line-height: 1.5; color: var(--stone-700); max-width: 40rem; }

.cards { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--stone-200); border: 1px solid var(--stone-200); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background .15s; }
.card:hover { background: var(--stone-50); }
.card h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 0.25rem; }
.card p { font-size: 0.875rem; color: var(--stone-500); flex: 1; }
.card .go { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.75rem; transition: color .15s; }
.card:hover .go { color: var(--emerald-800); }

.notice { margin: 2.5rem 0 4rem; padding-top: 1.25rem; border-top: 1px solid var(--stone-200); font-size: 0.875rem; color: var(--stone-500); font-style: italic; }

/* sub-pages */
.page { padding-top: 3rem; padding-bottom: 4rem; }
.page .back { display: inline-block; margin-bottom: 2rem; transition: color .15s; }
.page .back:hover { color: var(--stone-900); }
.page h1 { font-size: clamp(2.25rem, 7vw, 3rem); margin-top: 0.75rem; }
.page .lead { margin-top: 1rem; color: var(--stone-500); max-width: 36rem; }
.section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--stone-200); }
.section > .label { display: block; margin-bottom: 1rem; }
.flavors { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .flavors { grid-template-columns: 1fr 1fr; } }
.flavor h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.flavor p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--stone-700); }
.flavor .small { color: var(--stone-500); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0.75rem; max-width: 36rem; }
.steps li { counter-increment: s; font-size: 0.9375rem; color: var(--stone-700); display: flex; gap: 1rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem; color: var(--emerald-800); padding-top: 0.2rem; }

.btn {
  display: inline-block; margin-top: 1.25rem; padding: 0.75rem 1.5rem; background: var(--emerald-800); color: #fff;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px; transition: background .15s;
}
.btn:hover { background: #064e3b; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--stone-200); margin-top: auto; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding: 2.5rem 0; }
.site-footer .tagline { margin-top: 0.5rem; font-size: 0.875rem; font-style: italic; color: var(--stone-500); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: flex-start; }
.site-footer nav a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); transition: color .15s; }
.site-footer nav a:hover { color: var(--stone-900); }
.site-footer .copy { border-top: 1px solid var(--stone-100); padding: 1rem 0; font-size: 0.75rem; color: var(--stone-500); }

/* chai page */
.product { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .product { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.product-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; border: 1px solid var(--stone-200); }
.product h1 { margin-top: 0.75rem; }
.chai-features { list-style: none; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .chai-features { grid-template-columns: repeat(6, 1fr); } .chai-features li { grid-column: span 2; } .chai-features li:nth-child(n+4) { grid-column: span 3; } }
.chai-features li { background: #fff; border: 1px solid var(--stone-200); border-radius: 0.625rem; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.chai-features li::before { content: ""; width: 1.5rem; height: 2px; background: var(--emerald-800); }
.chai-features strong { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--stone-900); }
.chai-features span { font-size: 0.875rem; line-height: 1.55; color: var(--stone-500); }
.chai-origin { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .chai-origin { grid-template-columns: 5fr 6fr; gap: 3rem; } }
.chai-origin-lead { font-size: 1.25rem; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; color: var(--stone-900); padding-left: 1.25rem; border-left: 2px solid var(--emerald-800); }
.chai-origin-text { display: grid; gap: 1.25rem; max-width: 36rem; }
.chai-origin-text p { font-size: 0.9375rem; line-height: 1.7; color: var(--stone-700); }
.chai-origin-text .chai-origin-ours { background: #fff; border: 1px solid var(--stone-200); border-radius: 0.625rem; padding: 1.25rem; color: var(--stone-900); }
.body { font-size: 0.9375rem; color: var(--stone-700); max-width: 40rem; }
.photo-wide { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 45%; display: block; margin-top: 2.5rem; border: 1px solid var(--stone-200); }
@media (min-width: 768px) { .photo-wide { aspect-ratio: 2 / 1; } }
.quotes { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .quotes { grid-template-columns: 1fr 1fr; } }
blockquote { background: #fff; border: 1px solid var(--stone-200); padding: 1.25rem; }
blockquote .stars { color: var(--emerald-800); font-size: 0.875rem; letter-spacing: 0.15em; }
blockquote p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--stone-700); }
blockquote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-500); }

/* legal pages */
.legal { max-width: 42rem; }
.legal h1 { font-weight: 300; letter-spacing: 0.01em; font-size: 1.5rem; }
.prose { margin-top: 1.5rem; font-size: 1rem; line-height: 1.7; color: var(--stone-500); }
.prose p { margin-top: 1rem; }
.prose h2 { margin-top: 2rem; font-size: 1.125rem; font-weight: 500; color: var(--stone-900); }
.prose ul { margin-top: 0.75rem; padding-left: 1.25rem; }
.prose li { margin-top: 0.25rem; }

/* rounded corners, as in the shop */
.cards { border-radius: 0.625rem; overflow: hidden; }
.product-photo, .photo-wide, blockquote { border-radius: 0.625rem; }
.btn { border-radius: 0.375rem; }

/* raviolis */
.brand-panel { background: #fff; border: 1px solid var(--stone-200); border-radius: 0.625rem; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.brand-logo { display: block; height: 10rem; width: auto; }
@media (min-width: 768px) { .brand-panel { aspect-ratio: 4 / 3; padding: 2rem; } .brand-logo { height: 82%; } }
.flavors .flavor { background: #fff; border: 1px solid var(--stone-200); border-radius: 0.625rem; padding: 1.5rem; }
.steps-row { max-width: none; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.steps-row li { flex-direction: column; gap: 0.5rem; background: #fff; border: 1px solid var(--stone-200); border-radius: 0.625rem; padding: 1.25rem; }
.frozen { display: inline-block; margin-top: 1rem; padding: 0.25rem 0.75rem; border: 1px solid var(--stone-200); border-radius: 999px; background: #fff; }
.sauces { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .sauces { grid-template-columns: 1fr 1fr; } }
.sauce { background: #fff; border: 1px solid var(--stone-200); border-radius: 0.625rem; padding: 1.5rem; }
.sauce-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.sauce-title + .body { margin-top: 0.5rem; }
.sauce .steps { max-width: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--stone-200); }
.ingredients { list-style: none; margin-top: 1.25rem; display: grid; grid-template-columns: 1fr; }
.ingredients li { font-size: 0.875rem; color: var(--stone-700); padding: 0.375rem 0; border-bottom: 1px solid var(--stone-100); }
.ingredients li:last-child { border-bottom: 0; }
.contact { background: #fff; border: 1px solid var(--stone-200); border-radius: 0.625rem; padding: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.contact .lead { margin: 0; color: var(--stone-700); }
.contact .btn { margin-top: 0; }

/* vento in poppa (raviolis) */
body.vip-page { background: #fff; color: #000; font-family: 'Jost', 'Futura', system-ui, sans-serif; font-weight: 300; }
.vip { padding-top: 2rem; padding-bottom: 4.5rem; font-size: 1.0625rem; line-height: 1.6; }
.vip .back { display: inline-block; margin-bottom: 1.5rem; color: #000; }
.vip .back:hover { text-decoration: underline; text-underline-offset: 4px; }
.vip a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.vip strong { font-weight: 500; }
.vip-hero { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; padding-bottom: 1rem; }
.vip-logo { display: block; width: auto; height: 17rem; max-width: 100%; margin: 0 auto; order: -1; }
.vip-title, .vip-h, .vip-name { font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: 0; color: #000; }
.vip .vip-title { font-size: clamp(3.5rem, 14vw, 6rem); line-height: 0.95; margin: 0; }
.vip-lead { margin-top: 1.25rem; max-width: 30rem; font-size: 1.1875rem; line-height: 1.55; }
.vip-btn { display: inline-block; margin-top: 1.75rem; padding: 0.875rem 1.75rem; background: #000; color: #fff; border: 1px solid #000; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 0; transition: background .15s, color .15s; }
.vip-btn:hover { background: #fff; color: #000; }
.vip-section { padding-top: 2.5rem; margin-top: 3rem; border-top: 1px solid #000; }
.vip-h { font-size: 2.5rem; line-height: 1.05; margin-bottom: 1.5rem; }
.vip-name { font-size: 1.875rem; line-height: 1.1; margin-bottom: 0.75rem; }
.vip-flavors { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.vip-flavor p + p, .vip-sauce-intro p + .vip-list { margin-top: 0.75rem; }
.vip-steps { list-style: none; counter-reset: vip; display: grid; gap: 1.25rem; }
.vip-steps li { counter-increment: vip; display: grid; align-content: start; grid-template-columns: 2rem 1fr; gap: 0.5rem; }
.vip-steps li::before { content: counter(vip); font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif; font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1; }
.vip-steps-row li { grid-template-columns: 1fr; gap: 0.5rem; }
.vip-steps-row li::before { font-size: 3rem; }
.vip-frozen { margin-top: 2rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.vip-sauce { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.vip-list { list-style: none; margin-top: 1.5rem; font-size: 0.9375rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem 1.5rem; }
.vip-list li { padding-bottom: 0.375rem; border-bottom: 1px solid #d6d3d1; }
.vip-note { margin-top: 1.5rem; font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.0625rem; }
.vip-contact { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.vip-contact .vip-h { margin-bottom: 0.75rem; }
.vip-contact .vip-btn { margin-top: 0; }
@media (min-width: 768px) {
  .vip { padding-top: 3rem; }
  .vip-hero { grid-template-columns: 1.15fr 1fr; gap: 4rem; padding-bottom: 1.5rem; }
  .vip-logo { order: 0; height: 22rem; margin: 0 auto; }
  .vip-flavors { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .vip-steps-row { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .vip-sauce { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* floating whatsapp */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.site-footer .copy { padding-bottom: 4.5rem; }
.small-note { margin-top: 1.25rem; font-size: 0.75rem; color: var(--stone-500); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vip-btn-flavor { margin-top: 1.25rem; }
