/* SOUL BOX + the Soul Catering page (DIRECTION.md §3.7, 5 Nov 2026). The group system (tokens, header, sheet,
   controls, forms, hero frame and its board, footer) is group.css, the kit's file verbatim; this file is the site.
   SOUL BOX pages: Gopher only, #00352d, the tan tile in the header. Catering page: #00554b, Gopher reads,
   Courier Prime writes. White page, radius 0, no shadows, no gradients, no grain; nothing moves on load or scroll.
   The signature is the kraft lid over each box of the menu, turned back when the guest opens it. */

:root {
  color-scheme: light;
  /* the lid only: the photographed box's own kraft (median of the lid in 05-breakfast.png), its edge 20 % darker,
     and the client's sage paper band (median of the lit band on the closed box, soul box.png); never brand colour */
  --kraft: #b68f70;
  --kraft-edge: #92725a;
  --paper-band: #868369;
  /* ribbon height is measured by soulbox.js */
  --top: calc(var(--header-h) + var(--ribbon-h, 0px));
}
body[data-brand="catering"] {
  --brand: #00554b; --brand-lift: #007d6f; --brand-hover: color-mix(in srgb, #00554b 90%, #000); --accent: #00554b; --board: #00554b;
  --font-write: "Courier Prime", "Courier New", monospace; --label-weight: 700;
}

body { font-kerning: normal; }

/* ---------- ribbon (the sample notice) + header ---------- */
.ribbon { background: var(--brand); color: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--hairline-on-brand); font: 400 .8125rem/1.4 var(--font-read); }
.ribbon__in { display: block; width: min(100%, var(--container)); margin-inline: auto; padding: .5rem var(--gutter); }
/* Reserve the ribbon before the module measures it, including when the early .js hook is present. */
html:has(.ribbon) { --ribbon-lines: 2; --ribbon-h: calc(var(--ribbon-lines) * .8125rem * 1.4 + 1rem + 1px); }
@media (max-width: 23.4375rem) { html:has(.ribbon) { --ribbon-lines: 3; } }
@media (min-width: 48rem) { html:has(.ribbon) { --ribbon-lines: 1; } }
.head__slogan { flex: 0 1 auto; min-width: 0; margin-left: -.5rem; font: 500 .75rem/1.3 var(--font-read); letter-spacing: .1em; }
/* the identity sets the slogan in three lines (GOOD FOOD / FOR GOOD MOOD / by Soul); wide headers join the first two */
.head__slogan span { display: block; }
.head__slogan span:last-child { letter-spacing: .02em; }
@media (min-width: 64rem) { .head__slogan span:first-child, .head__slogan span:nth-child(2) { display: inline; } }
body[data-brand="catering"] .head__slogan { max-width: 18ch; font: 400 .75rem/1.35 var(--font-write); letter-spacing: 0; }
.head__count { min-width: 1.25rem; height: 1.25rem; margin-right: -.5rem; padding: 0 .3125rem; background: var(--brand); color: var(--on-brand);
  font: 700 .75rem/1.25rem var(--font-read); text-align: center; font-variant-numeric: tabular-nums; }
/* A non-empty basket keeps its order action on hero pages, at every size. */
.sg-head--hero .sg-head__actions > .sg-btn:not(.head__order) { display: none; }

/* below 64rem the header is mark + burger; a basket that holds something keeps its one button there */
@media (max-width: 63.99rem) {
  .sg-head__actions--keep > .sg-btn:not(.head__order) { display: none; }
}
@media (max-width: 47.99rem) {
  .sg-head__in:has(.sg-head__actions--keep) .head__slogan { display: none; }
}

/* ---------- 1. hero: the box card at that place (operator, 6 Nov; VENUE-HERO-2) ----------
   The kit owns the viewport frame and stand; this flat card belongs to SOUL BOX. */
.sg-hero__photo { background: #b9ab8c; }
body[data-brand="catering"] .sg-hero__photo { background: #d9cfc0; }
/* Keep GOOD whole on short desktops at the approved 70% 35% focal; the hero frame stays one viewport. */
@media (min-width: 64rem) and (max-height: 48rem) {
  body[data-brand="catering"] { --hero-photo-bottom: -2rem; }
}
.card-soulbox { --hero-object-padding: .875rem 1rem; display: grid; gap: .375rem; background: #00352d; color: #fff; }
.card-soulbox__head { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.card-soulbox__mark { display: block; height: 4.5rem; }
.card-soulbox__mark svg { display: block; width: auto; height: 100%; }
.card-soulbox__line { font: 700 clamp(1.25rem, 1.85vw, 1.75rem)/1.12 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.card-soulbox__facts, .card-soulbox__date { font: 400 .9375rem/1.4 var(--font-read); }
.card-soulbox__facts > span:not([aria-hidden]) { display: inline-block; }
.card-soulbox__date { font-variant-numeric: tabular-nums; }
.card-soulbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.card-soulbox .sg-btn { --btn-fill: #fff; --btn-on-fill: var(--brand); --btn-fill-hover: #f1f5f3; --btn-line: #fff; --btn-on-line: var(--brand); padding-inline: 1.25rem; }
.card-soulbox__actions .sg-link { display: inline-flex; align-items: center; min-height: 2.75rem; font: 500 .9375rem/1.2 var(--font-read); }
.card-soulbox--catering { background: #00554b; }
.card-soulbox--catering .card-soulbox__head { grid-template-columns: 1fr; gap: .75rem; }
.card-soulbox--catering .card-soulbox__mark { height: 3rem; }
@media (min-width: 48rem) {
  .card-soulbox { --hero-object-padding: 1.25rem; gap: .75rem; }
}
@media (min-width: 64rem) and (max-height: 47.5rem) { .card-soulbox { --hero-object-padding: 1rem 1.25rem; gap: .5rem; } }

/* ---------- 2. the order in one sentence ---------- */
.how__sentence { grid-column: 1 / -1; max-width: none; }
@media (min-width: 64rem) { .how__sentence { grid-column: 1 / 9; } }

/* ---------- 3. Nabídka: the shelf of boxes ---------- */
.menu__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; }
.menu__sample { color: var(--ink-60); }
.cats { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 1.25rem; }
@media (min-width: 48rem) { .cats { column-gap: 1.75rem; } }
.cats__b { min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink-60);
  font: var(--label-weight) var(--label)/1 var(--font-write); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: underline 2px transparent; text-underline-offset: .7em; }
.cats__b:hover { color: var(--ink); }
.cats__b[aria-pressed="true"] { color: var(--ink); text-decoration-color: currentColor; }
.boxes { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; align-items: start; }
.boxes__cell { min-width: 0; }
@media (min-width: 64rem) { .boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 1.5rem; } }

/* a box: the photograph of what is inside at 4:5, a kraft lid half up over it; open it to see inside */
.box { position: relative; }
.box__media { position: relative; aspect-ratio: 4 / 5; min-height: 0; perspective: 90rem; perspective-origin: 50% 0; }
.box__clip { position: absolute; inset: 0; overflow: hidden; background: var(--kraft); }
.box__photo, .box__photo img { width: 100%; height: 100%; }
.box__photo img { object-fit: cover; object-position: 66% 50%; }
.box__lid { position: absolute; z-index: 2; top: 0; left: 6%; right: 6%; height: 36%; transform-origin: 50% 0; transform: rotateX(54deg);
  background: var(--kraft); border-bottom: 2px solid var(--kraft-edge); backface-visibility: hidden; }
/* the paper band that wraps the closed box, running over the lid right of centre as on the client's boards */
.box__band { position: absolute; top: 0; bottom: -2px; left: 62%; width: 16%; background: var(--paper-band); }
.box__label { display: grid; gap: .375rem; padding-top: 1.25rem; }
.box__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.box__size { font-size: var(--small); line-height: 1.45; color: var(--ink-60); }
.box__price { font: var(--facts-weight) var(--facts)/1.45 var(--font-write); font-variant-numeric: tabular-nums; white-space: nowrap; }
.box__open, .box__close, .line__remove, .cart__close { min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer;
  font: var(--button-weight) .9375rem/1 var(--font-read); text-decoration: underline 1px; text-underline-offset: .3em; }
.box__open { justify-self: start; letter-spacing: .02em; }
.box__open:hover { color: var(--brand); text-decoration-thickness: 2px; }
/* the whole closed box is the button's hit area: its photograph opens it too */
.box__open::after { content: ""; position: absolute; z-index: 3; top: 0; left: 0; right: 0; aspect-ratio: 4 / 5; cursor: pointer; }
.box__inside { display: none; margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); }
.box__kicker { display: block; margin-bottom: .375rem; color: var(--ink-60);
  font: var(--label-weight) var(--label)/1.3 var(--font-write); letter-spacing: .12em; text-transform: uppercase; }
.box__contents { font-size: var(--small); line-height: 1.45; }
.box__allergens { margin-top: 1.25rem; }
.allergens { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.allergens-none { font-size: var(--small); line-height: 1.45; color: var(--ink-60); }
.allergens__n { min-width: 2.75rem; height: 2.75rem; padding: 0 .5rem; border: 1px solid var(--field-line); border-radius: 0; background: #fff; color: var(--ink); cursor: pointer;
  font: 500 .9375rem/1 var(--font-read); font-variant-numeric: tabular-nums; }
.allergens__n:hover { border-color: var(--ink); }
.allergens__n[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.allergens__name { min-height: 1.45em; margin-top: .5rem; font-size: var(--small); line-height: 1.45; color: var(--ink-60); }
.box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.box__close { color: var(--ink-60); }
.box__close:hover { color: var(--ink); }
.box__add.is-added { background: var(--brand-lift); border-color: var(--brand-lift); }
.box[data-open="true"] .box__open { display: none; }
.box[data-open="true"] .box__inside { display: block; }
.box[data-open="true"] .box__lid { transform: rotateX(120deg); visibility: hidden; }
html:not(.js) .box__lid { display: none; }
html:not(.js) .box__inside { display: block; }
html:not(.js) .box__open, html:not(.js) .box__actions, html:not(.js) .extra__add { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .box__lid { transition: transform 240ms var(--ease), visibility 0s; }
  .box[data-open="true"] .box__lid { transition: transform 240ms var(--ease), visibility 0s linear 240ms; }
}
@media (prefers-reduced-motion: reduce) { .box__lid { display: none; } }
@media (max-width: 47.99rem) {
  .box__label { padding-top: 1rem; }
  .box__meta { display: grid; justify-content: start; gap: .125rem; }
  .box__actions { gap: .5rem 1rem; }
  .box__add { width: 100%; padding-inline: .75rem; }
}

/* add-ons and drinks: two lists on hairlines */
.extras { margin-top: 5rem; row-gap: 3rem; }
.extras__col { grid-column: 1 / -1; min-width: 0; }
.extras__list { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.extra { display: grid; grid-template-columns: minmax(0, 1fr) auto 2.75rem; align-items: center; column-gap: 1rem; padding: .625rem 0; border-bottom: 1px solid var(--hairline); }
.extra__text { display: grid; gap: .125rem; min-width: 0; }
.extra__name { font: 500 var(--body)/1.35 var(--font-read); }
.extra__allergens { font-size: var(--small); line-height: 1.45; color: var(--ink-60); }
.extra__price { font: var(--facts-weight) var(--facts)/1.45 var(--font-write); font-variant-numeric: tabular-nums; white-space: nowrap; }
.extra__add { width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; font: 400 1.375rem/1 var(--font-read); }
.extra__add:hover { background: var(--ink); color: #fff; }
.extra__add.is-added { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (min-width: 64rem) {
  .extras { margin-top: 8rem; }
  .extras__col--addon { grid-column: 1 / 6; }
  .extras__col--drink { grid-column: 7 / 12; }
}
@media (prefers-reduced-motion: no-preference) {
  .cats__b, .allergens__n, .extra__add, .box__open, .box__close { transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), text-decoration-color 160ms var(--ease); }
}

/* ---------- 4. Kde si vyzvednete krabici ---------- */
.pickup__row, .business__row, .enquiry__row { row-gap: 2.5rem; align-items: start; }
.pickup__text, .business__text, .enquiry__text { grid-column: 1 / -1; min-width: 0; }
.pickup__lead { margin-top: 1.5rem; }
.pickup__list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.pickup__venue a { display: grid; gap: .125rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.pickup__name { font: 500 var(--body)/1.35 var(--font-read); }
.pickup__address { font-size: var(--small); line-height: 1.45; color: var(--ink-60); }
.pickup__soon { font-size: var(--small); color: var(--ink-60); }
.pickup__venue a:hover .pickup__name { text-decoration: underline 1px; text-underline-offset: .2em; }
.pickup__photo, .business__photo, .enquiry__photo { position: relative; grid-column: 1 / -1; min-width: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #e7e2d8; }
:is(.pickup__photo, .business__photo, .enquiry__photo) :is(picture, img) { width: 100%; height: 100%; }
:is(.pickup__photo, .business__photo, .enquiry__photo) img { object-fit: cover; }
.pickup__photo .sg-chip { left: 1rem; }
@media (min-width: 48rem) {
  .pickup__venue a { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); column-gap: 1.5rem; align-items: baseline; }
}
@media (min-width: 64rem) {
  .pickup__text { grid-column: 1 / 6; }
  .pickup__photo { grid-column: 7 / 13; }
}

/* ---------- 5. Pro firmy a akce (home) and the enquiry (catering page) ---------- */
.business__text .sg-body, .enquiry__text .sg-body { margin-top: 1.5rem; }
.business__text .sg-btn { margin-top: 2rem; }
.enquiry__photo img { object-position: 50% 50%; }
@media (min-width: 64rem) {
  .business__text, .enquiry__text { grid-column: 1 / 7; }
  .business__photo, .enquiry__photo { grid-column: 8 / 13; }
}

/* ---------- forms: the enquiry and the order (§2.1) ---------- */
.form { display: grid; gap: 1.25rem; }
.inquiry { margin-top: 2.5rem; max-width: 36rem; }
.form__pair { display: grid; gap: 1.25rem; }
@media (min-width: 30rem) { .form__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.form__hint { font-size: var(--small); color: var(--ink-60); }
.form__send { margin-top: .5rem; }
.form__status { font-size: var(--small); line-height: 1.45; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--red); }
.form__status a { text-decoration: underline; }
/* a sent enquiry: the receipt, with its reference, takes the form's place (no second submit) */
.inquiry:has([data-status][data-inquiry-state="success"]) > :not([data-status]) { display: none; }
.inquiry [data-status][data-inquiry-state="success"] { font: 400 var(--lead)/1.4 var(--font-read); color: var(--accent); max-width: var(--measure); }
.hp { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

/* ---------- the order page ---------- */
.order__form { gap: 3rem; align-items: start; }
@media (max-width: 63.999rem) { .order__form { grid-template-columns: minmax(0, 1fr); } }
.order__block { display: grid; gap: 1.25rem; min-width: 0; }
.order__block > legend { float: left; width: 100%; margin: 0 0 .25rem; padding: 0; }
.order__block > legend + * { clear: both; }
.order__form .sg-fieldset + .sg-fieldset { margin-top: 0; }   /* the grid's gaps space the blocks */
.order__delivery, .order__company { display: grid; gap: 1.25rem; }
.order__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.toggle { display: grid; gap: .75rem; }
.toggle__opt { align-items: center; min-height: 3rem; padding: .625rem 1rem; border: 1px solid var(--field-line); }
.toggle__opt input { margin: 0; }
.toggle__opt:has(input:checked) { border-color: var(--brand); outline: 1px solid var(--brand); outline-offset: -2px; }
.venues { display: grid; gap: .75rem; }
.venue { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; column-gap: .75rem; row-gap: .125rem; align-items: baseline;
  padding: .875rem 1rem; border: 1px solid var(--field-line); cursor: pointer; }
.venue input { grid-row: 1 / span 3; align-self: start; margin: .125rem 0 0; }
.venue input:disabled { border-color: var(--field-line); cursor: not-allowed; }
.venue:has(input:disabled) { cursor: not-allowed; }
.venue:has(input:disabled) .venue__name { color: var(--ink-60); }
.venue:has(input:checked) { border-color: var(--brand); outline: 1px solid var(--brand); outline-offset: -2px; }
.venue__name { font: 500 var(--body)/1.35 var(--font-read); }
.venue__address { grid-column: 2 / -1; font-size: var(--small); line-height: 1.45; color: var(--ink-60); }
.venue__soon { grid-row: 1; grid-column: 3; font-size: var(--small); color: var(--ink-60); }
.venue.is-soon { opacity: .55; }
.order__pickup .sg-error { margin-top: .5rem; }
.order__summary { padding: 1.5rem; border: 1px solid var(--hairline); }
.order__binding { margin-top: .5rem; }
@media (min-width: 64rem) {
  .order__form { column-gap: var(--grid-gap); row-gap: 4rem; }
  .order__block { grid-column: 1 / 8; }
  .order__summary { grid-column: 9 / 13; grid-row: 1 / span 2; position: sticky; top: 2rem; padding: 2rem; }
}
@media (max-width: 29.99rem) { .order__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- lines: the basket, the order summary and the thank-you list ---------- */
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding: .875rem 0; border-bottom: 1px solid var(--hairline); }
.line__name { font: 500 var(--body)/1.35 var(--font-read); }
.line__meta { grid-column: 1; font-size: var(--small); line-height: 1.45; color: var(--ink-60); }
.line__price { grid-row: 1; grid-column: 2; font: var(--facts-weight) var(--facts)/1.35 var(--font-write); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__qty { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin-top: .375rem; }
.line__step { width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--field-line); border-radius: 0; background: #fff; color: var(--ink); cursor: pointer; font: 500 1.125rem/1 var(--font-read); }
.line__step:hover { border-color: var(--ink); }
.line__n { min-width: 2rem; text-align: center; font: 500 1rem/1 var(--font-read); font-variant-numeric: tabular-nums; }
.line__remove { margin-left: auto; color: var(--ink-60); font: 400 var(--small)/1 var(--font-read); text-underline-offset: .25em; }
.lines__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; }
.lines__total strong { font: var(--heading-weight) var(--h3)/1.2 var(--font-read); font-variant-numeric: tabular-nums; }

/* the basket: a white panel from the right edge, the page dimmed behind it */
.cart { box-sizing: border-box; width: min(28rem, 100vw); height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0 0 0 auto; padding: 0 var(--gutter) 2rem;
  border: 0; border-radius: 0; background: var(--page); color: var(--ink); flex-direction: column; gap: 1rem; overflow-y: auto; overscroll-behavior: contain; }
.cart[open] { display: flex; }
.cart::backdrop { background: rgba(16, 32, 27, .62); }
.cart__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--header-h); border-bottom: 1px solid var(--hairline); }
.cart__empty { color: var(--ink-60); }
.cart__go { width: 100%; margin-top: auto; }
@media (prefers-reduced-motion: no-preference) { .cart[open] { animation: sg-sheet-in 240ms var(--ease); } }

/* ---------- the thank-you page ---------- */
.done .sg-wrap > * { max-width: 40rem; }
.done__ref { margin-bottom: 1.5rem; font: var(--heading-weight) var(--h3)/1.2 var(--font-read); }
.done__ref:empty { display: none; }
.done__refno { white-space: nowrap; }
.done__sample { margin-top: 1rem; color: var(--ink-60); }
.done .lines { margin-top: 2rem; }
.done__back { margin-top: 2.5rem; }
