/* Inter, served from our own site (fonts/OFL.txt has its license), so no request goes to a font service */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
}

:root {
  --bg: #f8f7f3;
  --surface: #ffffff;
  --surface-2: #ecefea;
  --text: #26302a;
  --muted: #66706a;
  --border: #dfe5dc;
  /* Dusty sage for actions, blush for highlights */
  --accent: #546e5e;
  --accent-text: #ffffff;
  --accent-soft: #e3e9e2;
  --pop: linear-gradient(135deg, #546e5e 0%, #6b8373 100%);
  --pop-solid: #546e5e;
  --pop-shadow: 0 6px 18px rgb(84 110 94 / 28%);
  --title-pop: var(--pop);   /* gradient text, e.g. "Welcome Home" */
  --blush: #d9826c;
  --header-bg: var(--bg);
  --header-text: var(--text);
  --header-muted: var(--muted);
  --header-chip: var(--surface-2);
  --header-link: var(--accent);
  --ok: #3f7a4f;
  --ok-soft: #e1eee2;
  --info: #8e3f30;
  --info-soft: #f8dcd2;
  --warn: #9a5a00;
  --warn-soft: #fbefd9;
  --danger: #c0392b;
  --danger-soft: #fbe1dd;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(38 48 42 / 4%), 0 8px 24px rgb(84 110 94 / 8%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141815;
    --surface: #1c211d;
    --surface-2: #262d28;
    --text: #e9ece7;
    --muted: #a3aca5;
    --border: #323b34;
    --accent: #a9c1ae;
    --accent-text: #141815;
    --accent-soft: #2a332c;
    --pop: linear-gradient(135deg, #4a6353 0%, #637a6b 100%);
    --pop-solid: #4a6353;
    --pop-shadow: 0 6px 18px rgb(0 0 0 / 30%);
    --title-pop: linear-gradient(135deg, #a9c1ae 0%, #c9d8cc 100%);
    --blush: #e59a86;
    --ok: #8fd19e;
    --ok-soft: #1f3324;
    --info: #f2b8a8;
    --info-soft: #3a2723;
    --warn: #f3c46b;
    --warn-soft: #3a2c10;
    --danger: #f28b7d;
    --danger-soft: #3b1a17;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.005em;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); }

button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

[hidden] { display: none !important; }

/* Header and tabs */

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { margin: 0; padding-top: 14px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.brand a { color: var(--header-text); text-decoration: none; }
.brand a::after { content: "."; color: var(--blush); }
.tagline { margin: 0 0 10px; color: var(--header-muted); font-size: 0.9rem; }

.tabs { display: flex; gap: 4px; padding-bottom: 12px; }
.tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.tab:hover { color: var(--header-text); }
.tab[aria-current="page"] { background: var(--pop); color: #fff; }
.count {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--header-chip);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}
.tab[aria-current="page"] .count { background: #fff; color: var(--pop-solid); }
/* Four tabs on a small phone: tighter, so nothing scrolls sideways */
@media (max-width: 400px) {
  .tabs { gap: 0; }
  .tab { flex: auto; padding-left: 3px; padding-right: 3px; font-size: 0.86rem; }
  .count { min-width: 1.3em; padding: 0 3px; font-size: 0.72rem; }
}
/* Five tabs on the narrowest phones (320px) */
@media (max-width: 359px) {
  .tab { font-size: 0.82rem; padding-left: 1px; padding-right: 1px; }
  .brand { font-size: 1.15rem; }
  .account-link { font-size: 0.9rem; }
  .count { min-width: 1.2em; padding: 0 3px; font-size: 0.7rem; }
}

/* main.wrap: .wrap sets padding too, and a class beats a bare element selector */
main.wrap { padding-top: 16px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
main:focus { outline: none; }
/* Every heading in the app shows each word with a capital first letter. */
main h2, main h3 { text-transform: capitalize; }
main h2 .meta, main h3 .meta { text-transform: none; }

.status { color: var(--muted); }
.status.error { color: var(--danger); font-weight: 600; }

/* Home */

.home { padding: 24px 0 8px; }
.home-title { margin: 0; font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.04em;
  background: var(--title-pop); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-lead { margin: 8px 0 24px; color: var(--muted); font-size: 1.05rem; }
.home-options { display: grid; gap: 12px; }
@media (min-width: 600px) { .home-options { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.home-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}
.home-option:hover { border-color: var(--accent); }
.home-option-title { font-size: 1.2rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.home-option-title::after { content: " ›"; color: var(--accent); }
/* The first choice gets the color pop */
.home-option:first-child { background: var(--pop); border-color: transparent; box-shadow: 0 10px 30px rgb(84 110 94 / 30%); }
.home-option:first-child .home-option-title, .home-option:first-child .home-option-title::after,
.home-option:first-child .home-option-text { color: #fff; }
.home-option-text { color: var(--muted); }

.home-signin { margin: 20px 0 0; color: var(--muted); }
.home-feedback { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }
.home-feedback .link-button { padding: 0; font: inherit; color: var(--accent); text-decoration: underline; }

/* Welcome tour */

.tour { width: min(400px, calc(100vw - 32px)); max-width: none; padding: 28px 24px 20px; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-align: center; box-shadow: 0 24px 60px rgb(0 0 0 / 25%);
  outline: 1px solid var(--border); }
.tour:focus, .tour:focus-visible { outline: 1px solid var(--border); outline-offset: 0; }
.tour::backdrop { background: rgb(20 24 21 / 55%); }
.tour-art { width: 88px; height: 88px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 2.6rem;
  border-radius: 50%; background: var(--accent-soft); }
.tour-step { margin: 0; color: var(--blush); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tour h2 { margin: 6px 0 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.tour-text { min-height: 6em; margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.tour-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.tour-dots span.on { width: 22px; border-radius: 999px; background: var(--pop-solid); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Plan */

.plan .plan-title { margin: 8px 0 4px; font-size: 1.6rem; letter-spacing: -0.01em; }
.plan .lead { color: var(--muted); margin: 0 0 20px; }
.plan-find h2, .plan-week > h2 { font-size: 1.15rem; margin: 20px 0 10px; }
.plan-find-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.plan-find-head h2 { margin: 0; }
.plan-find .chips { margin-bottom: 10px; }
.plan-find .search { margin-bottom: 6px; }
.plan-matches:empty { display: none; }
.plan-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 16px; }
.plan-meal { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.plan-meal select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.plan-ideas-head { justify-content: space-between; margin-bottom: 4px; }
.plan-ideas-head h3 { margin: 0; font-size: 1rem; }
.plan-card { display: flex; flex-direction: column; gap: 6px; }
.plan-card > .button, .plan-card > .remove { align-self: flex-start; }
.plan-list { padding-left: 0; }
.week-shopping { margin-top: 16px; }

/* Feedback */

.label { font-weight: 600; font-size: 0.9rem; }
.stars { display: flex; gap: 4px; margin-bottom: 8px; }
.star { border: 0; background: none; font-size: 2rem; line-height: 1; padding: 2px; cursor: pointer; color: var(--border); }
.star.on { color: #f59e0b; }
textarea.search { resize: vertical; font: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Account */

.brand-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.account-link { font-weight: 600; font-size: 0.95rem; white-space: nowrap; color: var(--header-link); }

.account { max-width: 560px; padding: 8px 0 24px; }
.account h2 { margin: 8px 0 4px; font-size: 1.6rem; letter-spacing: -0.01em; }
.account h3 { margin: 28px 0 8px; font-size: 1.1rem; }
.account .lead { color: var(--muted); margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.stack { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.stack label { font-weight: 600; font-size: 0.9rem; }
.stack .button { align-self: flex-start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.code-input { font-size: 1.4rem; letter-spacing: 0.25em; max-width: 14em; }
.note.error { background: var(--danger-soft); color: var(--text); }
.note.ok { background: var(--ok-soft); color: var(--text); }
.button:disabled { opacity: 0.5; cursor: default; }
.link-button:disabled { color: var(--muted); cursor: default; }

.profile-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px 16px 8px; margin: 0 0 16px; }
.profile-form legend { font-weight: 700; padding: 0 6px; }
.profile-form select, .profile-form input.search { max-width: 100%; }
.profile-form select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.choice input { margin-top: 4px; accent-color: var(--accent); }

.danger-zone { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.button.danger { background: #b91c1c; border-color: #b91c1c; color: #fff; box-shadow: none; }

.prose { max-width: 640px; }
.prose li { margin-bottom: 6px; }

/* Kitchen */

.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.toolbar-row .button:disabled { opacity: 0.45; cursor: default; }
.note.cleared { margin: 0; }

.search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.segmented button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] { background: var(--pop); color: #fff; }

.note {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.category { margin-bottom: 20px; }
.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.category h2 { font-size: 1rem; margin: 0; }
.link-button {
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  min-height: 40px;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--pop); border-color: transparent; color: #fff; font-weight: 600; }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chip.staple { background: var(--surface-2); border-style: dashed; color: var(--muted); cursor: default; }
.chip.staple::before { content: "✓ "; }
.chip.staple:hover { border-color: var(--border); }
.staple-note { font-size: 0.8em; }

.empty { color: var(--muted); padding: 24px 0; text-align: center; }

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.cta {
  display: block;
  max-width: 848px;
  margin: 0 auto;
  text-align: center;
  background: var(--pop);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px;
  border-radius: 999px;
  box-shadow: var(--pop-shadow);
}

/* Recipes */

.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.filters select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }

.near-miss { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 0.9rem; color: var(--muted); }

.results h2 { font-size: 1.05rem; margin: 20px 0 10px; }

.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 0; margin: 0; list-style: none; }
.card {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 4px; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.meta { color: var(--muted); font-size: 0.85rem; margin: 0; }
.missing { margin: 10px 0 0; font-size: 0.85rem; background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 6px 12px; }
.ready { display: inline-block; margin: 10px 0 0; font-size: 0.85rem; background: var(--info-soft); color: var(--info); font-weight: 600;
  border-radius: 999px; padding: 3px 10px; }

/* Recipe detail */

.back { display: inline-block; margin-bottom: 12px; font-weight: 600; text-decoration: none; }
.recipe h2 { font-size: 1.9rem; margin: 0 0 4px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 20px; padding: 0; list-style: none; }
.tags li { background: var(--info-soft); color: var(--info); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; }

.panels { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 10px; font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.mark { flex: none; width: 1.3em; text-align: center; font-weight: 700; }
.have .mark { color: var(--ok); }
.need .mark { color: var(--warn); }
.need .item-name { font-weight: 600; }
.tag { margin-left: auto; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

.steps { padding-left: 1.4em; margin: 0; }
.steps li { margin-bottom: 10px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.source {
  display: inline-block;
  background: var(--pop);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--pop-shadow);
}
.instructions { margin-top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip .mark, .skip .item-name { color: var(--muted); }
.amount { font-weight: 700; }
.amount-after { color: var(--muted); }
.family { margin-top: 12px; }
.family h3 { margin: 0 0 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* Shopping list */

.button {
  display: inline-block;
  border: 0;
  background: var(--pop);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--pop-shadow);
}
.button.small { padding: 6px 12px; font-size: 0.85rem; border-radius: 999px; white-space: nowrap; }
.button.secondary { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.button:disabled { background: var(--surface-2); border-color: var(--border); color: var(--muted); box-shadow: none; cursor: default; }
.add-missing { margin: 16px 0 0; }

.buy { margin-top: 20px; }
.buy-list, .shopping { list-style: none; padding: 0; margin: 0; }
.buy-list li, .shopping li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.buy-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.buy-text .item-name { font-weight: 600; }
.item-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.picker { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.list-head h2 { margin: 0; font-size: 1.3rem; }
.category h3 { font-size: 1rem; margin: 16px 0 4px; }
.shop { margin-left: 8px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.disclosure { color: var(--muted); font-size: 0.8rem; margin-top: 24px; }

/* Search and favorites */

.recipe-search { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.recipe-search .search { flex: 1; min-width: 0; }
.fav-filter[aria-pressed="true"], .fav[aria-pressed="true"] { background: var(--pop); color: #fff; border-color: transparent; }
.recipe-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.recipe-title .fav { margin-top: 6px; }
.fav-mark { color: var(--blush); }

/* Ratings (the star buttons share .stars/.star with the feedback form) */
.rating-summary { margin: -10px 0 16px; font-weight: 600; }
.rating-summary:empty { display: none; }
.stars-mark { color: var(--text); font-weight: 600; }
.rate { margin-top: 16px; }
.rate .star { min-width: 44px; min-height: 44px; border-radius: 8px; }
.rate .star:hover:not(:disabled), .rate .star:focus-visible { background: var(--surface-2); }
.rate .star:disabled { cursor: progress; }

/* Recipes: browse mode, near-miss note, show more */
.browse-mode { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; font-size: 0.9rem; color: var(--muted); }
.near-miss-note { flex-basis: 100%; margin: 0; color: var(--text); }
.near-miss-note:empty { display: none; }
.show-more { text-align: center; margin: 16px 0; }
#almost-there:focus { outline: none; }

/* Recipe page: tap a mark to add or remove the item from the kitchen */
.mark.toggle {
  min-width: 32px; min-height: 32px; margin: -6px 0; padding: 0; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; align-self: center;
}
.have .mark.toggle { color: var(--ok); }
.need .mark.toggle { color: var(--warn); }
.skip .mark.toggle { color: var(--muted); }
.mark.toggle:hover, .mark.toggle:focus-visible { background: var(--surface-2); }
.tick-hint { margin: -4px 0 8px; }
.checklist li:has(.mark.toggle) { align-items: center; }
.copy-box { width: 100%; min-height: 8em; margin: 0 0 12px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.ask-to-add { margin: 12px 0; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); }

/* Plan: use it up */
.use-up { margin: 24px 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.use-up h2 { margin-top: 0; }
.use-up-item h3 { margin: 16px 0 8px; font-size: 1.05rem; }
.use-up-item h3 .meta { font-weight: 400; font-size: 0.85rem; }
.use-up-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.also-uses { font-size: 0.85rem; font-weight: 600; color: var(--ok); }
.home-use-up { display: flex; flex-direction: column; gap: 4px; margin: 16px 0; padding: 14px 16px; border-radius: var(--radius);
  border: 1px dashed var(--accent); background: var(--surface); color: var(--text); text-decoration: none; }

/* Recipe photos: across the top of a card, and at the top of the recipe page */
.card-photo { display: block; width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  margin: -16px -16px 12px; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.recipe-photo { position: relative; margin: 0 0 16px; }
.recipe-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.recipe-photo figcaption { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.7rem; }
@media (max-width: 600px) { .recipe-photo { margin: 0 -16px 16px; } .recipe-photo img { border-radius: 0 0 28px 28px; } }
