/* MocktailParty.com — shared styles */
:root {
  --ink: #1d2a33;
  --ink-soft: #4a5a66;
  --paper: #f6f8f7;
  --white: #ffffff;
  --grapefruit: #e8524f;
  --grapefruit-dark: #c23c3a;
  --lime: #b9d26b;
  --ice: #d4e9ec;
  --line: #d9e1e0;
  --radius-lg: 28px;
  --radius-sm: 10px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--grapefruit-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--grapefruit); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.logo span { color: var(--grapefruit); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--grapefruit-dark); }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero p.lede { font-size: 1.2rem; color: var(--ink-soft); }

/* Party calculator: the signature element */
.calc {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.calc::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--grapefruit); opacity: .9;
}
.calc > * { position: relative; z-index: 1; }
.calc h2 { font-size: 1.6rem; margin-bottom: 18px; max-width: 14ch; }
.calc label { display: block; font-weight: 600; margin-bottom: 4px; }
.calc .row { margin-bottom: 18px; }
.calc .slider-line { display: flex; align-items: center; gap: 14px; }
.calc input[type=range] { flex: 1; accent-color: var(--lime); height: 28px; }
.calc output.big { font-family: var(--display); font-weight: 800; font-size: 1.6rem; min-width: 3ch; text-align: right; }
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 18px; padding: 0; list-style: none; }
.results li { background: rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 12px 14px; }
.results strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--lime); line-height: 1.1; }
.results span { font-size: .9rem; color: #c9d3d8; }
.calc .fine { font-size: .85rem; color: #aebbc2; margin: 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--grapefruit); color: var(--white);
  font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px;
  border: 0; font-size: 1rem; cursor: pointer; font-family: var(--body);
}
.btn:hover { background: var(--grapefruit-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* Sections */
section.block { padding: 64px 0; }
section.block.tint { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--ink-soft); }

/* Occasion strip: varied tile sizes, not identical cards */
.occasions { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .occasions { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 170px; } .occasions .feature { grid-row: span 2; } }
.occasion {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
  min-height: 150px; position: relative; overflow: hidden;
}
.occasion h3 { margin: 0 0 4px; }
.occasion p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.occasion.feature { background: var(--lime); }
.occasion.feature h3 { font-size: 2rem; }
.occasion.ice { background: var(--ice); }
.occasion.pink { background: #f9d6d2; }
.occasion.plain { background: var(--white); box-shadow: inset 0 0 0 2px var(--line); }
.occasion:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* Recipe list */
.recipe-list { display: grid; gap: 28px; }
@media (min-width: 720px) { .recipe-list { grid-template-columns: repeat(3, 1fr); } }
.recipe-card { text-decoration: none; color: var(--ink); display: block; }
.recipe-card .art { aspect-ratio: 4/5; border-radius: var(--radius-lg); margin-bottom: 14px; display: grid; place-items: center; }
.recipe-card .meta { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.recipe-card:hover h3 { color: var(--grapefruit-dark); }

/* Signup band */
.signup { background: var(--grapefruit); color: var(--white); border-radius: var(--radius-lg); padding: 36px 28px; display: grid; gap: 24px; }
@media (min-width: 860px) { .signup { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 48px; } }
.signup h2 { color: var(--white); }
.signup p { color: #ffe7e5; }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type=email] {
  flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; border: 0; font-size: 1rem; font-family: var(--body);
}
.signup .btn { background: var(--ink); }
.signup .btn:hover { background: #000; }
.signup .note { font-size: .85rem; margin: 10px 0 0; }

/* Footer */
.site-footer { padding: 48px 0; font-size: .92rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* Recipe page */
.recipe-hero { padding: 24px 0 40px; }
.crumbs { font-size: .9rem; margin-bottom: 18px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.recipe-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .recipe-top { grid-template-columns: 1fr 1fr; align-items: center; } }
.recipe-top .photo { aspect-ratio: 1; border-radius: var(--radius-lg); background: #f9d6d2; display: grid; place-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 18px 0 24px; }
.facts li { background: var(--white); border-radius: 999px; padding: 8px 16px; font-size: .95rem; box-shadow: inset 0 0 0 1px var(--line); }
.recipe-body { display: grid; gap: 40px; padding-bottom: 64px; }
@media (min-width: 900px) { .recipe-body { grid-template-columns: 380px 1fr; align-items: start; } }
.ingredients-box { background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: inset 0 0 0 2px var(--line); }
@media (min-width: 900px) { .ingredients-box { position: sticky; top: 20px; } }
.serves { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.serves label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); border-radius: 999px; }
.stepper input { width: 3.2ch; border: 0; text-align: center; font: 700 1.1rem var(--body); background: none; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ing-list { list-style: none; padding: 0; margin: 0 0 18px; }
.ing-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ing-list li:last-child { border-bottom: 0; }
.ing-list .qty { font-weight: 700; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 14px; padding-left: 6px; max-width: 64ch; }
.tip { background: var(--ice); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; }
.tip p { margin: 0; }
.disclosure { font-size: .88rem; color: var(--ink-soft); font-style: italic; }

@media print {
  .site-header, .site-footer, .signup, .no-print, X
  body { background: #fff; }
  .recipe-body { display: block; }
  .ingredients-box { box-shadow: none; padding: 0; position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- v2 additions ---------- */

/* Photo slots: illustration shows until a real photo is added */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); display: grid; place-items: center; }
.photo > svg { width: 42%; height: auto; max-height: 70%; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero: hand-drawn underline + bar photo */
.hero h1 .squiggle { display: block; width: min(320px, 70%); height: 18px; margin-top: 10px; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: .95rem; color: var(--ink-soft); }
.hero-trust .avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: #f9d6d2; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--grapefruit-dark); overflow: hidden; position: relative; }
.hero-trust .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Calculator: fizz instead of a flat circle */
.calc::after { display: none; }
.calc .fizz { position: absolute; right: -36px; top: -36px; width: 170px; height: 170px; z-index: 0; pointer-events: none; }
.calc h2 { padding-right: 90px; }
.calc .shop-link { color: var(--lime); font-weight: 700; }
.calc .shop-link:hover { color: var(--white); }

/* Occasion tiles with photos */
.occasion { justify-content: flex-end; }
.occasion .photo { position: absolute; inset: 0; border-radius: 0; }
.occasion .photo > svg { width: 30%; position: absolute; top: 18px; right: 18px; }
.occasion .label { position: relative; z-index: 1; }
.occasion.has-photo .label { background: rgba(255,255,255,.92); border-radius: 16px; padding: 12px 14px; }

/* Bar setup steps (a real sequence, so numbered) */
.setup { display: grid; gap: 36px; }
@media (min-width: 900px) { .setup { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; } }
.setup .photo { aspect-ratio: 4/3; background: var(--ice); }
.setup ol { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; }
.setup ol li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setup ol li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--grapefruit); line-height: 1.2; }
.setup ol li p { margin: 0; color: var(--ink-soft); }
.setup ol li strong { display: block; color: var(--ink); }

/* About Joy */
.about { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .about { grid-template-columns: 300px 1fr; gap: 48px; } }
.about .photo { aspect-ratio: 1; border-radius: 50%; background: #f9d6d2; max-width: 300px; }
.about .photo .initial { font-family: var(--display); font-weight: 800; font-size: 6rem; color: var(--grapefruit); }
.about .sig { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin: 0; }

/* Recipe page extras */
.byline { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-soft); margin: 0 0 6px; }
.recipe-top .photo { aspect-ratio: 4/5; background: #f9d6d2; }
.gear { display: grid; gap: 12px; padding: 0; list-style: none; margin: 0 0 8px; }
@media (min-width: 600px) { .gear { grid-template-columns: 1fr 1fr; } }
.gear li a { display: block; background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.gear li a span { display: block; font-size: .9rem; color: var(--ink-soft); }
.gear li a:hover { box-shadow: inset 0 0 0 2px var(--grapefruit); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; }
.related { padding: 56px 0 72px; background: var(--white); }
.related .recipe-card .photo { aspect-ratio: 4/5; margin-bottom: 14px; }
.recipe-card .photo { aspect-ratio: 4/5; margin-bottom: 14px; }
@media (max-width: 719px) {
  .occasion.feature { min-height: 250px; }
  .recipe-card .photo { aspect-ratio: 4/3; }
  .recipe-card .photo > svg { width: 28%; }
}

/* ---------- v3: content pages ---------- */
.page-hero { padding: 40px 0 48px; }
.page-hero .band { border-radius: var(--radius-lg); padding: 40px 28px; }
@media (min-width: 720px) { .page-hero .band { padding: 56px 48px; } }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero p { font-size: 1.15rem; color: var(--ink); margin: 0; max-width: 60ch; }
.band.lime { background: var(--lime); }
.band.pink { background: #f9d6d2; }
.band.ice { background: var(--ice); }
.band.white { background: var(--white); box-shadow: inset 0 0 0 2px var(--line); }
.article { max-width: 760px; padding-bottom: 64px; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.3em; max-width: 68ch; }
.article li { margin-bottom: 8px; }
.article .tip { margin: 28px 0; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--grapefruit); }
.inline-recipes { display: grid; gap: 16px; margin: 20px 0 8px; }
@media (min-width: 640px) { .inline-recipes { grid-template-columns: repeat(3, 1fr); } }
.inline-recipes a { display: block; background: var(--white); border-radius: var(--radius-sm); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.inline-recipes a span { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.inline-recipes a:hover { box-shadow: inset 0 0 0 2px var(--grapefruit); }
.timeline { list-style: none; padding: 0 !important; border-left: 3px solid var(--lime); margin-left: 6px; }
.timeline li { padding: 0 0 18px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--grapefruit); }
.timeline strong { display: block; }
.legal { max-width: 760px; padding-bottom: 64px; font-size: 1rem; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.notfound { text-align: center; padding: 80px 0 100px; }
.notfound h1 { margin: 0 auto .4em; }
.notfound p { margin-left: auto; margin-right: auto; }
