/* Nosh (2026-10-26). A simple page: his sentence, plain filter pills, every meal a soft colour-tinted card that
   lights up under the hand and zooms open into its own page in that colour. One typeface (Gabarito), white, nothing
   decorative. Motion answers an action: cards glide on a re-sort, the open card grows into its sheet, the shop
   figure rolls. */
:root {
  --ink: #0f0f0f; --bg: #fff; --mute: #6e6e6b; --rule: #e8e8e5; --pill: #f1f1ee;
  --poultry: #FFD23F; --fish: #62BDF2; --red: #FF7A6B; --plant: #7FD15F; --eggs: #F7A6D3;
  --poultry-t: #FFF1B8; --fish-t: #DAEEFB; --red-t: #FFE1DB; --plant-t: #DFF5D3; --eggs-t: #FCE1EF;
}
* { box-sizing: border-box; }
html { font-family: 'Gabarito', system-ui, sans-serif; font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
body.onmeal { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; letter-spacing: inherit; text-align: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
mark { background: rgba(0, 0, 0, .1); color: inherit; padding: 0 .2em; border-radius: 4px; }
b, strong { font-weight: 700; }
.tn { font-variant-numeric: tabular-nums; }

/* top */
.top, .main { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.shoplink { font-weight: 600; }
.shoplink b { display: inline-block; background: var(--ink); color: var(--bg); padding: 6px 12px; border-radius: 999px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.main { padding-bottom: 80px; }
.head { font-size: 48px; font-weight: 800; line-height: 1.06; letter-spacing: -.03em; max-width: 19ch; margin: 36px 0 20px; }
.dates { color: var(--mute); margin: 0 0 24px; font-size: 17px; line-height: 1.4; }
.dates .err { color: #b00020; }

/* the filter bar: pills, the chosen one black; it sticks to the top while you scroll */
.bar { background: var(--bg); display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 12px 0 14px; margin: 0 0 18px; border-bottom: 1px solid var(--rule); }
.grp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gl { color: var(--mute); margin-right: 4px; font-size: 15px; }
.o { padding: 7px 13px; border-radius: 999px; background: var(--pill); font-size: 15px; line-height: 1.2; font-weight: 500; transition: background .15s, color .15s, transform .15s; }
.o:hover { background: #e6e6e2; }
.o:active { transform: scale(.96); }
.o.on { background: var(--ink); color: var(--bg); }

/* the cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.card { position: relative; display: flex; flex-direction: column; min-height: 212px; padding: 22px 22px 20px; border-radius: 22px; background: var(--t); color: var(--ink);
  transition: background .22s, transform .22s cubic-bezier(.2, .9, .25, 1), box-shadow .22s; will-change: transform; }
.card.poultry { --t: var(--poultry-t); --c: var(--poultry); } .card.fish { --t: var(--fish-t); --c: var(--fish); } .card.red { --t: var(--red-t); --c: var(--red); } .card.plant { --t: var(--plant-t); --c: var(--plant); } .card.eggs { --t: var(--eggs-t); --c: var(--eggs); }
.card:hover { background: var(--c); transform: translateY(-3px); }
.card:active { transform: translateY(-1px) scale(.99); }
.card h2 { font-size: 22px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 8px; }
.card .ing { margin: 0 0 auto; color: rgba(0, 0, 0, .62); font-size: 15px; line-height: 1.35; padding-bottom: 18px; }
.card .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-variant-numeric: tabular-nums; }
.card .row b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.card .row b small { font-size: 14px; font-weight: 500; letter-spacing: 0; margin-left: 5px; }
.card .row span { font-size: 15px; }
.card .meta { margin: 10px 0 0; color: rgba(0, 0, 0, .62); font-size: 14px; }
.card.picked::after { content: 'In your shop'; position: absolute; top: 16px; right: 16px; font-size: 13px; font-weight: 600; background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 999px; }
.card.in { animation: rise .5s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.none { color: var(--mute); margin: 24px 0 0; max-width: 60ch; }
.foot { color: var(--mute); font-size: 14px; line-height: 1.5; margin: 40px 0 0; max-width: 84ch; }

/* a meal's sheet: the card grows to fill the window in its full colour */
.sheet { position: fixed; z-index: 10; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: var(--poultry); border-radius: 0;
  transition: left .5s cubic-bezier(.2, .9, .25, 1), top .5s cubic-bezier(.2, .9, .25, 1), width .5s cubic-bezier(.2, .9, .25, 1), height .5s cubic-bezier(.2, .9, .25, 1), border-radius .5s; }
.sheet.poultry { background: var(--poultry); } .sheet.fish { background: var(--fish); } .sheet.red { background: var(--red); } .sheet.plant { background: var(--plant); } .sheet.eggs { background: var(--eggs); }
.sheet.zooming { overflow: hidden; border-radius: 22px; }
.sheet.zooming .sheetbody, .sheet.zooming .sheetbar { opacity: 0; }
.sheetbody, .sheetbar { transition: opacity .25s .1s; }
.sheetbar { position: sticky; top: 0; z-index: 2; padding: 18px 24px; }
.close { font-weight: 600; background: rgba(255, 255, 255, .55); padding: 8px 14px; border-radius: 999px; }
.close:hover { background: rgba(255, 255, 255, .8); }
.sheetbody { padding: 0 24px 80px; max-width: 1240px; margin: 0 auto; }
.mspec { margin: 16px 0 8px; opacity: .75; }
.mname { font-size: clamp(36px, 6vw, 68px); font-weight: 800; line-height: .98; letter-spacing: -.035em; margin: 0 0 18px; max-width: 16ch; }
.mfigs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 6px; font-size: 19px; font-variant-numeric: tabular-nums; }
.mfigs b { font-weight: 800; }
.msave { margin: 0 0 18px; opacity: .75; font-size: 15px; }
.why { max-width: 60ch; margin: 0 0 20px; line-height: 1.5; font-size: 17px; }
.acts { display: flex; align-items: center; gap: 16px; margin: 0 0 36px; }
.btn { font-weight: 700; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); line-height: 1.2; transition: transform .15s; }
.btn:active { transform: scale(.97); }
.btn.on { background: var(--bg); color: var(--ink); }
.lnk { text-decoration: underline; text-underline-offset: 3px; }
.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0 56px; }
.part { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.1; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.part span { font-weight: 500; font-size: 15px; letter-spacing: 0; margin-left: 10px; opacity: .75; }
.store { font-weight: 700; margin: 14px 0 6px; font-size: 16px; }
.bl { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 0 0 12px; }
.bn { font-weight: 600; grid-column: 1; }
.bn a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(0, 0, 0, .4); }
.ba { grid-column: 1; margin-top: 2px; line-height: 1.4; font-size: 14px; opacity: .8; }
.bp { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.pantry { margin: 8px 0 14px; line-height: 1.5; opacity: .8; max-width: 70ch; }
.tots { margin: 8px 0 24px; }
.tot { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .22); font-variant-numeric: tabular-nums; }
.tot.main { font-weight: 800; font-size: 20px; border-bottom: 2px solid var(--ink); }
.steps { padding-left: 1.3em; margin: 0 0 16px; line-height: 1.55; font-size: 17px; }
.steps li { padding-left: .3em; margin: 0 0 8px; }
.nut { margin: 0; line-height: 1.5; opacity: .75; }

/* the shop */
.shophead { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 48px 0 14px; }
.shopline { margin: 0 0 26px; max-width: 70ch; line-height: 1.5; font-size: 17px; }
.shopline b { background: var(--ink); color: var(--bg); padding: 4px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 999px; font-weight: 600; line-height: 1.15; }
.chip.poultry { background: var(--poultry-t); } .chip.fish { background: var(--fish-t); } .chip.red { background: var(--red-t); } .chip.plant { background: var(--plant-t); } .chip.eggs { background: var(--eggs-t); }
.chip small { font-weight: 400; opacity: .75; }
.chip .x { width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .12); font-weight: 700; line-height: 24px; text-align: center; flex: none; }
.chip .x:hover { background: var(--ink); color: var(--bg); }
.run { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.run .c { min-width: 0; }
.run .st { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.run .st span { font-size: 16px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.run .st.nil { color: var(--mute); border-bottom-color: var(--rule); }
.sl { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 0 0 12px; }
.sl .sln { font-weight: 600; }
.sl .sln a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(0, 0, 0, .35); }
.sl .slq { display: block; font-size: 14px; }
.sl .slm { display: block; color: var(--mute); font-size: 14px; margin-top: 1px; }
.sl .slp { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.shoppan { color: var(--mute); margin: 24px 0 0; max-width: 80ch; line-height: 1.5; }

@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .top, .main { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 16px; }
  .head { font-size: 34px; margin: 26px 0 14px; }
  .dates { font-size: 15px; margin-bottom: 18px; }
  .bar { gap: 6px 18px; padding: 10px 0 12px; }
  .o { padding: 6px 11px; font-size: 14px; }
  .gl { font-size: 14px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 0; padding: 18px 18px 16px; border-radius: 18px; }
  .card h2 { font-size: 20px; }
  .card .ing { padding-bottom: 14px; }
  .sheetbar { padding: 12px 16px; }
  .sheetbody { padding: 0 16px 60px; }
  .cols { display: block; }
  .cols > div + div { margin-top: 28px; }
  .run { display: block; }
  .run .c + .c { margin-top: 24px; }
}
@media (hover: none) { .card:hover { background: var(--t); transform: none; } }
@media (prefers-reduced-motion: reduce) { .card, .sheet, .sheetbody, .sheetbar, .o, .btn { transition: none; } .card.in { animation: none; } }
