/* Lemonade Mimosas — mobile-first, app-style layout */
:root {
  --cream: #FFFBF2;
  --ink: #3A2A1E;
  --ink-soft: #5C4636;
  --muted: #6B5646;
  --line: #F1E3CF;
  --coral: #D9653F;
  --coral-ink: #B4432D;
  --yellow: #FFE7A3;
  --yellow-soft: #FFF6D8;
  --peach: #FFD9C7;
  --pink: #FBD3DC;
  --mint: #CFEFDF;
  --mint-soft: #E9F6EF;
  --lilac: #E4DEFA;
  --white: #FFFFFF;
  --radius: 20px;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-ink); }
a:hover { color: #8E3220; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.fine { font-size: .78rem; color: var(--muted); }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7A4E0C; margin: 0 0 6px; display: block; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.05rem; color: var(--ink-soft); }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 960px; margin: 0 auto; padding: 16px 20px 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.logo em { font-style: normal; color: var(--coral); }
.topnav { display: none; gap: 6px; }
.topnav a { text-decoration: none; color: var(--ink); font-weight: 800; padding: 10px 14px; border-radius: 999px; }
.topnav a[aria-current="page"], .topnav a:hover { background: var(--yellow); color: var(--ink); }

/* Bottom tab bar (phones) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 60px; min-height: 52px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--coral-ink); font-weight: 800; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
}

main { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; padding-bottom: 32px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: .95rem; text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #22180F; color: var(--cream); }
.btn-soft { background: var(--yellow); color: var(--ink); }
.btn-soft:hover { background: #FFDC7A; color: var(--ink); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--yellow); border-radius: 24px; padding: 24px 22px; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 34ch; }
.hero-slice { position: absolute; right: -24px; top: -20px; width: 120px; height: 120px; }
.hero .btn { margin-top: 4px; }

/* Cards and grids */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
a.card:hover { border-color: #E6CFA8; color: var(--ink); }
.card.empty { color: var(--muted); }
p.card { display: block; margin: 0; }
.block { display: flex; flex-direction: column; gap: 12px; }
.block h2 { margin: 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; }
.block-head a { font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { border-radius: 18px; padding: 16px; min-height: 104px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-decoration: none; color: var(--ink); }
.tile span { font-size: .8rem; color: var(--ink-soft); }
.tile:hover { color: var(--ink); filter: brightness(.97); }
.tile.is-soon { opacity: .75; }
.tile-peach { background: var(--peach); }
.tile-mint { background: var(--mint); }
.tile-pink { background: var(--pink); }
.tile-lilac { background: var(--lilac); }
.tile-yellow { background: var(--yellow); }
.scroller { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.mini { flex: 0 0 140px; min-height: 120px; justify-content: flex-end; font-weight: 700; }

.pour { flex-direction: row; align-items: center; gap: 14px; }
.pour-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: #FFE2B8; display: grid; place-items: center; }
.pour-icon svg { width: 36px; height: 36px; fill: none; stroke: #C26A1E; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pour > span:last-child { display: flex; flex-direction: column; }
.pour-title { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.community { background: var(--mint-soft); border-color: transparent; }
.promo { background: var(--pink); border-color: transparent; }
.promo strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.promo .btn { align-self: flex-start; margin-top: 6px; }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #FFF0D6; }
.soon { font-weight: 800; color: var(--muted); }
.product .btn { align-self: flex-start; margin-top: 6px; }

/* Page heads, recipes, prose */
.page-head { padding-top: 6px; }
.page-head h1 { margin-bottom: 4px; }
.meta { display: flex; gap: 14px; font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.recipe { display: flex; flex-direction: column; gap: 16px; }
.recipe-img { border-radius: var(--radius); }
.ingredients, .steps { margin: 0 0 8px; padding-left: 1.2em; }
.ingredients li, .steps li { margin-bottom: 6px; }
.zero { background: var(--mint-soft); border-color: transparent; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }

/* Mimosa calculator */
.calc { gap: 4px; padding: 6px 16px 16px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F5EADB; }
.stepper-row label { display: flex; flex-direction: column; }
.stepper-row label .muted { font-size: .8rem; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 22px; border: 0; background: #FFF0D6; font-size: 1.35rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.stepper input { width: 56px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.4rem; border: 0; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mix { border: 0; padding: 12px 0 4px; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mix legend { padding: 0 0 8px; }
.mix label { position: relative; }
.mix input { position: absolute; opacity: 0; inset: 0; }
.mix span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 60px; padding: 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--white); cursor: pointer; }
.mix small { font-size: .7rem; color: var(--ink-soft); }
.mix input:checked + span { border-color: var(--coral); background: var(--peach); }
.mix input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 800; padding-top: 8px; }
.switch input { width: 22px; height: 22px; accent-color: #3E8E66; }
.results { background: var(--yellow); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.results p { margin: 0; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.result-grid div { background: var(--yellow-soft); border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.result-grid b { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.result-grid span { font-size: .75rem; font-weight: 700; }

/* Footer */
.footer { padding-top: 12px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.footer nav a { font-weight: 700; display: inline-block; padding: 6px 0; }
.footer-tag { margin: 12px 0; }
