/* Melibee theme: colour tokens (used by UnoCSS via uno.config.ts) and the few rules utilities can't express.
   Loaded after uno.css, so these win over its reset; utilities (one class) still beat the element rules here. */
:root {
  --c-bg: #fffaf0;
  --c-panel: #ffffff;
  --c-fg: #2c2416;
  --c-muted: #6d604c;
  --c-line: #eadcc0;
  --c-honey: #f5b301;
  --c-honey-strong: #8a5d00;
  --c-honey-soft: #fff0c2;
  --c-ink: #2a1d05;
  --c-leaf: #2f7a37;
  --c-leaf-soft: #e3f3e1;
  --c-rose: #b8392a;
  --c-rose-soft: #fde6e2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #14110c;
    --c-panel: #1f1a12;
    --c-fg: #ede4d3;
    --c-muted: #a99c86;
    --c-line: #3a3123;
    --c-honey: #f5b301;
    --c-honey-strong: #ffcf4a;
    --c-honey-soft: #3a2c08;
    --c-leaf: #8ad08c;
    --c-leaf-soft: #1c2e1b;
    --c-rose: #ff8a7a;
    --c-rose-soft: #3a1915;
    color-scheme: dark;
  }
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--c-honey-strong); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-honey); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }
img { max-width: 100%; }

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

.site-header { background: color-mix(in srgb, var(--c-panel) 88%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--c-fg); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14px; }
.nav-link:hover { background: var(--c-honey-soft); }
.nav-on { background: var(--c-honey-soft); font-weight: 600; }
.count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--c-honey); color: var(--c-ink); font-size: 12px; font-weight: 700; }

.flash { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--c-leaf-soft); color: var(--c-fg); border: 1px solid color-mix(in srgb, var(--c-leaf) 40%, transparent); }
.banner { padding: 12px 14px; border-radius: 12px; margin: 0 0 20px; border: 1px solid; }
.banner-pending { background: var(--c-honey-soft); border-color: color-mix(in srgb, var(--c-honey) 60%, transparent); }
.banner-declined { background: var(--c-rose-soft); border-color: color-mix(in srgb, var(--c-rose) 45%, transparent); }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-honey-strong); }
.byline { margin: 10px 0 0; font-weight: 600; }
.hint { font-weight: 400; color: var(--c-muted); font-size: 13px; }
.field-error { color: var(--c-rose); font-size: 14px; margin: 6px 0 0; }
.field[aria-invalid="true"] { border-color: var(--c-rose); }
.photo-input { display: block; width: 100%; font-size: 14px; color: var(--c-muted); }
.photo-input::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-panel); color: var(--c-fg); cursor: pointer; }
.photo-input::file-selector-button:hover { border-color: var(--c-honey); }
.note { color: var(--c-fg); background: var(--c-rose-soft); padding: 6px 10px; border-radius: 8px; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.recipe-card { transition: transform .15s ease, border-color .15s ease; }
.recipe-card:hover { transform: translateY(-2px); border-color: var(--c-honey); }
.photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--c-honey-soft); }
.thumb { width: 72px; height: 72px; display: flex; }

.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.facts dd { margin: 0; font-weight: 700; }
.ingredients { padding-left: 1.2em; margin: 0; list-style: disc; }
.ingredients li { padding: 4px 0; border-bottom: 1px dashed var(--c-line); }
.ingredients li::marker { color: var(--c-honey); }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 16px 44px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--c-honey); color: var(--c-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.changes { border-color: var(--c-honey); }
.change-list { display: grid; gap: 6px; margin: 12px 0 0; }
.change-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.change-list dt { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.change-list dd { margin: 0; overflow-wrap: anywhere; }
del { color: var(--c-rose); text-decoration-thickness: 1px; }
ins { color: var(--c-leaf); text-decoration: none; font-weight: 600; }
.diff { list-style: none; margin: 0; padding: 0; font-size: 14px; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.diff li { padding: 4px 10px 4px 28px; position: relative; border-bottom: 1px solid var(--c-line); }
.diff li:last-child { border-bottom: 0; }
.diff li::before { position: absolute; left: 10px; font-weight: 700; }
.diff-add { background: var(--c-leaf-soft); }
.diff-add::before { content: "+"; color: var(--c-leaf); }
.diff-del { background: var(--c-rose-soft); text-decoration: line-through; color: var(--c-muted); }
.diff-del::before { content: "−"; color: var(--c-rose); }
.diff-same { color: var(--c-muted); }
.review-panel { border-color: var(--c-honey); border-width: 2px; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--c-line); }
.tab { padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--c-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.tab:hover { color: var(--c-fg); }
.tab-on { color: var(--c-fg); border-bottom-color: var(--c-honey); }
.tab-count { font-size: 12px; background: var(--c-honey-soft); color: var(--c-fg); padding: 1px 7px; border-radius: 999px; margin-left: 4px; }

.tbl { overflow-x: auto; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-panel); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.field-sm { min-height: 34px !important; padding: 4px 8px !important; font-size: 14px !important; width: auto !important; max-width: 220px; }

/* The honeybee: wings flutter unless the reader prefers reduced motion. */
.bee-hero { display: block; filter: drop-shadow(0 12px 24px rgb(245 179 1 / .25)); }
.bee-hero .wing { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .bee-hero { animation: bee-hover 3s ease-in-out infinite; }
  .bee-hero .wing { animation: bee-flap .18s ease-in-out infinite alternate; }
  .bee-hero .wing-2 { animation-delay: .09s; }
}
@keyframes bee-flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
@keyframes bee-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
