/* Wafa's Kitchen — public site styles.
 *
 * One system for every page: the tokens below set colour, type, space and
 * shape, and nothing further down introduces values of its own. Colour is
 * used sparingly on purpose — ivory and espresso carry almost everything, olive
 * marks what can be acted on, terracotta appears only for things on offer.
 */

:root {
  --ivory: #FAF7F0;
  --cream: #F0E9DC;
  --cream-deep: #E6DCCB;
  --olive: #394333;
  --olive-ink: #2C3427;
  --espresso: #302820;
  --espresso-soft: #5E5248;   /* secondary text: 7.0:1 on ivory */
  --sage: #A5AC96;
  --terracotta: #B86D50;
  --terracotta-ink: #9A5238;  /* terracotta for text: 4.9:1 on ivory */
  --white: #FFFFFF;
  --line: #E2D9CA;
  --line-strong: #CFC3AF;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.7rem + 3.8vw, 4.6rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --radius: 3px;
  --radius-lg: 6px;
  --wrap: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgb(48 40 32 / 0.06), 0 8px 24px -12px rgb(48 40 32 / 0.18);
}

/* ---- base ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* clip, where supported: unlike hidden it does not turn the page into a
   * scrolling box, which on iPhone can stop the header from sticking. */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--terracotta); }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary, label { -webkit-tap-highlight-color: rgb(57 67 51 / 0.12); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--espresso-soft); }
.pre { white-space: pre-line; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--olive); color: var(--ivory); padding: var(--space-2) var(--space-4); border-radius: var(--radius); }
.skip:focus { top: var(--space-4); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--espresso-soft); margin-bottom: var(--space-3); }
.lede { font-size: var(--step-1); color: var(--espresso-soft); max-width: 60ch; }
.display { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.02em; }

/* ---- buttons and links --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  border: 1px solid var(--olive); border-radius: var(--radius);
  background: var(--olive); color: var(--ivory);
  font-size: var(--step-0); font-weight: 500; letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { background: var(--olive-ink); border-color: var(--olive-ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--olive); }
.btn--ghost:hover { background: var(--olive); color: var(--ivory); }
.btn--small { min-height: 40px; padding: 0 var(--space-4); font-size: var(--step--1); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 500; text-decoration: none; color: var(--olive); }
.link-arrow .icon { transition: transform 200ms var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-quiet { font-size: var(--step--1); color: var(--espresso-soft); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--espresso); position: relative;
}
.icon-btn:hover { background: var(--cream); }

/* ---- announcement and header --------------------------------------------- */

.announce { background: var(--olive); color: var(--ivory); font-size: var(--step--1); text-align: center; }
.announce p { padding-block: var(--space-2); }
.announce a { text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-2); }
.announce a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgb(250 247 240 / 0.96); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgb(250 247 240 / 0.88); backdrop-filter: blur(8px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: var(--space-4); }
.header__menu { justify-self: start; }
.header__nav { display: none; }
.header__tools { justify-self: end; display: flex; align-items: center; gap: var(--space-1); }
.header__saved { display: none; }
.bag-count {
  position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--terracotta-ink); color: var(--white);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.bag-count.is-bumped { animation: bump 380ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

.wordmark { text-decoration: none; display: inline-flex; color: var(--espresso); }
.wordmark__set { display: inline-flex; align-items: baseline; gap: 0.45em; white-space: nowrap; }
.wordmark__name { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; letter-spacing: -0.01em; }
.wordmark__sub { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--olive); transform: translateY(-0.2em); }

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .header__menu { display: none; }
  .header__nav { display: block; justify-self: center; }
  .header__nav ul { display: flex; gap: var(--space-6); }
  .header__nav a { text-decoration: none; font-size: 0.95rem; padding-block: var(--space-2); border-bottom: 1px solid transparent; }
  .header__nav a:hover { border-bottom-color: var(--line-strong); }
  .header__nav a[aria-current='page'] { border-bottom-color: var(--olive); }
  .header__saved { display: inline-grid; }
  .wordmark__name { font-size: 1.85rem; }
}

.search-panel { border-top: 1px solid var(--line); background: var(--ivory); }
.search-panel__form { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 64px; }
.search-panel__form > .icon { color: var(--espresso-soft); flex: none; }
.search-panel input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: var(--step-1); padding: var(--space-3) 0; }
.search-panel input:focus { outline: none; }
.search-panel__form:focus-within { box-shadow: inset 0 -2px 0 var(--olive); }
.suggest { position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; z-index: 5; margin: 0; padding: var(--space-2) 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.suggest a { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); text-decoration: none; }
.suggest a span { color: var(--espresso-soft); font-size: var(--step--1); }
.suggest [aria-selected='true'] a, .suggest a:hover { background: var(--cream); }

/* ---- drawer (mobile menu) --------------------------------------------------- */

.drawer {
  margin: 0; padding: 0; border: 0; width: min(88vw, 380px); max-width: none; height: 100%; height: 100dvh; max-height: none;
  background: var(--ivory); color: var(--espresso); display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: drawer-in 260ms var(--ease); }
.drawer::backdrop { background: rgb(48 40 32 / 0.35); }
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--space-4) 0 var(--space-5); border-bottom: 1px solid var(--line); }
.drawer nav { padding: var(--space-5); }
.drawer__nav a { display: block; padding: var(--space-3) 0; font-family: var(--serif); font-size: var(--step-2); text-decoration: none; }
.drawer__nav a[aria-current='page'] { color: var(--olive); font-style: italic; }
.drawer__section { padding: 0 var(--space-5) var(--space-5); }
.drawer__list a { display: block; padding: var(--space-2) 0; text-decoration: none; }
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: var(--space-3) var(--space-5) var(--space-5); }
.drawer__foot a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; text-decoration: none; min-height: 48px; }

/* ---- placeholders for missing photographs ------------------------------- */

/* A dish without a photo yet gets a quiet panel with its name, in the
 * manner of a printed menu card — never a stock photo of somebody else's
 * food. It holds the same shape as the photo will, so nothing moves later. */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    linear-gradient(var(--cream), var(--cream)) padding-box,
    repeating-linear-gradient(135deg, var(--cream-deep) 0 1px, transparent 1px 9px);
  border: 10px solid transparent;
  outline: 1px solid var(--line); outline-offset: -10px;
  color: var(--espresso-soft); text-align: center;
}
.ph__mark { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 0.8rem + 1vw, 1.6rem); line-height: 1.2; padding: var(--space-4); max-width: 18ch; }

/* ---- hero ---------------------------------------------------------------- */

.hero { padding-block: var(--space-6) var(--space-7); }
.hero__grid { display: grid; gap: var(--space-6); }
.hero__text { display: flex; flex-direction: column; gap: var(--space-4); align-self: center; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-3); }
.hero__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--cream); }
/* On a phone the photograph leads, then the words: the food is what tells a
 * visitor where they are, and the menu link stays within the first screen. */
@media (max-width: 767px) {
  .hero { padding-block: var(--space-4) var(--space-6); }
  .hero__media { order: -1; aspect-ratio: 5 / 4; }
  .hero__grid { gap: var(--space-5); }
}
.hero__media img, .hero__media .ph { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .hero { padding-block: var(--space-7) var(--space-8); }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--space-6), 4vw, var(--space-8)); align-items: stretch; }
  .hero__text { padding-block: var(--space-6); }
  .hero__media { aspect-ratio: auto; min-height: clamp(360px, 48vw, 460px); max-height: min(72vh, 680px); }
}

/* ---- sections ----------------------------------------------------------- */

.section { padding-block: var(--space-7); }
@media (min-width: 900px) { .section { padding-block: var(--space-8); } }
.section--tint { background: var(--cream); }
.section--olive { background: var(--olive); color: var(--ivory); }
.section--olive a { color: var(--ivory); }
.section--flush { padding-block: 0 var(--space-6); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.section-head__text { color: var(--espresso-soft); margin-top: var(--space-2); max-width: 56ch; }

.page-head { padding-block: var(--space-6) var(--space-5); display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .page-head { padding-block: var(--space-7) var(--space-6); } }

/* ---- product cards and grid -------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) { .card:hover .card__media img { transform: scale(1.03); } }
.card__tags { position: absolute; top: var(--space-3); left: var(--space-3); display: flex; gap: var(--space-2); }
.card__body { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-4); flex: 1; }
.card__meta { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--espresso-soft); }
.card__title { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.2; }
.card__link { text-decoration: none; }
/* The whole card is one link; the Add button sits above it. */
.card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--olive); outline-offset: 6px; border-radius: var(--radius-lg); }
.card__desc { color: var(--espresso-soft); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); }
.card__add { position: relative; z-index: 2; flex: none; }
@media (max-width: 520px) {
  .card__desc { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__add { width: 100%; }
}

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.price--ask { font-weight: 400; font-style: italic; font-family: var(--serif); font-size: 1.05em; color: var(--espresso-soft); }
.price__from { font-weight: 400; color: var(--espresso-soft); font-size: 0.9em; }
.price__was { color: var(--espresso-soft); font-weight: 400; font-size: 0.9em; }
.price:has(.price__was) .price__now { color: var(--terracotta-ink); }

.tag { display: inline-block; padding: 3px 8px; border-radius: 2px; background: var(--ivory); color: var(--espresso); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tag--accent { background: var(--terracotta-ink); color: var(--white); }
.tag--muted { background: var(--espresso); color: var(--ivory); }

/* ---- category tiles ------------------------------------------------------ */

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
.tiles--large { padding-bottom: var(--space-8); }
@media (min-width: 760px) { .tiles--large { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: block; text-decoration: none; }
.tile__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--cream-deep); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) { .tile:hover img { transform: scale(1.04); } }
.tile__label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); padding-top: var(--space-3); }
.tile__name { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.tile__count { font-size: var(--step--1); color: var(--espresso-soft); white-space: nowrap; }
.section--tint .ph { background: linear-gradient(var(--ivory), var(--ivory)) padding-box, repeating-linear-gradient(135deg, var(--cream-deep) 0 1px, transparent 1px 9px); }

/* ---- story and steps ------------------------------------------------------ */

.story { display: grid; gap: var(--space-6); align-items: center; }
.story__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); max-height: 640px; }
.story__media img, .story__media .ph { width: 100%; height: 100%; object-fit: cover; }
.story__text { display: grid; gap: var(--space-4); max-width: 54ch; }
@media (min-width: 768px) { .story { grid-template-columns: 5fr 6fr; gap: var(--space-8); } }

.steps { display: grid; gap: var(--space-6); margin-top: var(--space-6); counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); } }
.steps li { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid rgb(250 247 240 / 0.25); }
.steps__n { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--sage); }
.steps h3 { font-size: var(--step-2); }
.steps p { opacity: 0.86; }
.steps__more { margin-top: var(--space-6); }
.steps__more a { display: inline-flex; gap: var(--space-2); align-items: center; text-decoration: none; }
.steps--plain li { border-top-color: var(--line); }
.steps--plain .steps__n { color: var(--olive); }
.steps--plain { grid-template-columns: 1fr; margin-bottom: var(--space-6); }

/* ---- catalogue -------------------------------------------------------------- */

.catalog { padding-bottom: var(--space-8); }
.crumbs { padding-top: var(--space-5); font-size: var(--step--1); color: var(--espresso-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crumbs li + li::before { content: '/'; margin-right: var(--space-2); color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs + .page-head { padding-top: var(--space-4); }

.chips { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips ul { display: flex; gap: var(--space-2); padding-bottom: var(--space-1); }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius); white-space: nowrap; text-decoration: none; font-size: 0.92rem; }
.chips a:hover { border-color: var(--olive); }
.chips a[aria-current='page'] { background: var(--olive); border-color: var(--olive); color: var(--ivory); }

.catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }
.catalog__count { color: var(--espresso-soft); }

/* Sorting: one small select beside the count. */
.sort { display: flex; align-items: center; gap: var(--space-3); }
.sort label { font-size: var(--step--1); color: var(--espresso-soft); white-space: nowrap; }
.sort select { width: auto; min-height: 44px; padding-block: var(--space-2); font-size: 1rem; }
.catalog__search { margin-bottom: var(--space-5); }

/* ---- forms ------------------------------------------------------------------- */

.field { display: grid; gap: var(--space-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.field + .field { margin-top: var(--space-4); }
.field label, .field legend { font-weight: 500; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: var(--space-2); }
.field-row { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row .field + .field { margin-top: 0; } }
input[type='text'], input[type='email'], input[type='tel'], input[type='search'], input[type='number'], input[type='datetime-local'], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
  font-size: 1rem; /* 16px stops iOS zooming into the field */
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23302820' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgb(57 67 51 / 0.18); }
[aria-invalid='true'] { border-color: #A3402A !important; }
.hint { font-size: var(--step--1); color: var(--espresso-soft); font-weight: 400; }
.field-error { color: #A3402A; font-size: var(--step--1); font-weight: 500; }
.form-error { padding: var(--space-4); border-left: 3px solid #A3402A; background: #F7E7E0; color: #7A2E1D; border-radius: var(--radius); margin-bottom: var(--space-5); }
.success { padding: var(--space-5); border-left: 3px solid var(--olive); background: var(--cream); border-radius: var(--radius); display: grid; gap: var(--space-2); }
.check { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--olive); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: var(--space-4); background: var(--cream); border-radius: var(--radius); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
@media (min-width: 640px) { .panel { padding: var(--space-6); } }
.panel--plain { background: transparent; border: 0; padding: 0; }
.panel__title { font-size: var(--step-2); margin-bottom: var(--space-4); padding: 0; }
.panel + .panel, fieldset.panel + .panel { margin-top: var(--space-5); }

/* ---- options (product choices, checkout) ------------------------------------ */

.options { display: grid; gap: var(--space-2); }
.options--row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.option {
  position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 52px;
  padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); cursor: pointer; transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.option input { width: 18px; height: 18px; accent-color: var(--olive); flex: none; margin: 0; }
.option__name { flex: 1; }
.option__price { font-variant-numeric: tabular-nums; color: var(--espresso-soft); }
.option:has(input:checked) { border-color: var(--olive); background: rgb(57 67 51 / 0.05); box-shadow: inset 0 0 0 1px var(--olive); }
.option:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 2px; }
.option.is-off { opacity: 0.55; cursor: not-allowed; }
.option--card { flex-wrap: wrap; align-items: flex-start; }
.option--card .option__name { font-weight: 500; }
.option--card .option__hint { flex-basis: 100%; padding-left: calc(18px + var(--space-3)); font-size: var(--step--1); color: var(--espresso-soft); }

/* ---- product page ------------------------------------------------------------- */

.product { display: grid; gap: var(--space-6); padding-block: var(--space-5) var(--space-7); }
@media (min-width: 768px) { .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: start; } }
.gallery { display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .gallery { position: sticky; top: calc(var(--header-h) + var(--space-4)); } }
.gallery__stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); }
@media (min-width: 900px) { .gallery__stage { aspect-ratio: 1; } }
.gallery__slide { margin: 0; width: 100%; height: 100%; }
.gallery__slide img, .gallery__slide .ph { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__slide.is-entering { animation: fade 280ms var(--ease); }
@keyframes fade { from { opacity: 0.2; } }
.gallery__zoom { position: absolute; right: var(--space-3); bottom: var(--space-3); background: rgb(250 247 240 / 0.92); }
.gallery__thumbs { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: thin; padding: 3px; }
.gallery__thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); opacity: 0.7; transition: opacity 150ms var(--ease); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-pressed='true'] { opacity: 1; box-shadow: 0 0 0 2px var(--olive); border-color: transparent; }
.gallery__thumb:hover { opacity: 1; }

.product__info { display: grid; gap: var(--space-4); align-content: start; }
.product__title { font-size: var(--step-4); }
@media (min-width: 768px) and (max-width: 1099px) { .product__title { font-size: clamp(2rem, 1.2rem + 2vw, 2.6rem); } .product { gap: var(--space-6); } }
.product__price { display: flex; align-items: center; gap: var(--space-3); font-size: var(--step-1); }
.buy { display: grid; gap: var(--space-5); padding-top: var(--space-2); }
.buy__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.buy__group legend { font-weight: 500; margin-bottom: var(--space-3); padding: 0; }
.buy__row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.buy__row .btn { flex: 1 1 220px; }
.buy__total { font-variant-numeric: tabular-nums; opacity: 0.85; }
.buy__total:not(:empty)::before { content: '·'; margin-right: var(--space-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); height: 48px; }
.qty__btn { width: 44px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; }
.qty__btn:hover { background: var(--cream); }
.qty input { width: 3rem; min-height: 0; height: 100%; border: 0; text-align: center; padding: 0; -moz-appearance: textfield; background: transparent; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty input:focus { box-shadow: none; }
.qty:focus-within { border-color: var(--olive); }
.qty--small { height: 40px; }
.qty--small .qty__btn { width: 36px; }
.qty--small input { width: 2.2rem; }
.enquire { display: grid; gap: var(--space-4); padding: var(--space-5); background: var(--cream); border-radius: var(--radius-lg); }
.enquire__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.enquire__actions .btn { flex: 1 1 180px; }
.save-btn { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0; border: 0; background: none; color: var(--espresso-soft); }
.save-btn[aria-pressed='true'] { color: var(--terracotta-ink); }
.save-btn[aria-pressed='true'] .icon { fill: currentColor; }
.product__facts { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 0.95rem; }
.product__more { display: grid; gap: var(--space-6); padding-block: var(--space-7); border-top: 1px solid var(--line); }
@media (min-width: 768px) { .product__more { grid-template-columns: 7fr 5fr; gap: var(--space-8); } }
.product__desc { display: grid; gap: var(--space-4); }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; }
.facts dt { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--espresso-soft); }
.facts dd { margin: 0; }
.recent { border-top: 1px solid var(--line); }
.grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .grid--compact { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.prose { display: grid; gap: var(--space-4); max-width: 66ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-4); }
.prose h3 { font-size: var(--step-1); font-family: var(--sans); font-weight: 600; margin-top: var(--space-3); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(28 24 19 / 0.96); color: var(--ivory); }
.lightbox[open] { display: grid; place-items: center; animation: fade 200ms var(--ease); }
.lightbox::backdrop { background: rgb(28 24 19 / 0.96); }
.lightbox__stage { width: 100%; height: 100%; display: grid; place-items: center; padding: var(--space-8) var(--space-4); }
.lightbox__stage figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.lightbox__stage img { max-width: min(100%, 1400px); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; }
.lightbox .icon-btn { color: var(--ivory); position: absolute; }
.lightbox .icon-btn:hover { background: rgb(250 247 240 / 0.12); }
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: var(--space-5); left: 0; right: 0; text-align: center; font-size: var(--step--1); opacity: 0.8; }

.preview-bar { background: var(--terracotta-ink); color: var(--white); padding: var(--space-3) var(--gutter); text-align: center; font-size: var(--step--1); }

/* ---- bag and checkout ----------------------------------------------------------- */

.bag { padding-bottom: var(--space-8); }
.lines { display: grid; }
.line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.line:first-child { border-top: 1px solid var(--line); }
.confirm .line { grid-template-columns: minmax(0, 1fr) auto; }
.line__img { display: block; text-decoration: none; width: 84px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.line__img img, .line__img .ph { width: 100%; height: 100%; object-fit: cover; }
.line__img .ph { border-width: 4px; outline-offset: -4px; }
.line__img .ph__mark { font-size: 0.7rem; padding: 2px; }
.line__text { display: grid; gap: var(--space-1); min-width: 0; }
.line__name { font-family: var(--serif); font-size: var(--step-1); line-height: 1.25; }
.line__name a { text-decoration: none; }
.line__opts, .line__note { font-size: var(--step--1); color: var(--espresso-soft); }
.line__note { color: var(--terracotta-ink); }
.line__price { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.line__actions { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-2); flex-wrap: wrap; }
.line__remove { border: 0; background: none; padding: var(--space-2) 0; font-size: var(--step--1); color: var(--espresso-soft); text-decoration: underline; min-height: 40px; }
.removed { padding: var(--space-4); background: var(--cream); border-radius: var(--radius); margin-bottom: var(--space-5); display: grid; gap: var(--space-2); }
.totals { margin: var(--space-5) 0 0; display: grid; gap: var(--space-2); font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: var(--space-4); }
.totals dd { margin: 0; }
.totals__total { font-size: var(--step-1); font-weight: 600; padding-top: var(--space-3); border-top: 1px solid var(--line); margin-top: var(--space-2); }
.bag__foot { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
@media (min-width: 640px) { .bag__foot { grid-template-columns: 1fr auto; align-items: center; } }
.bag__note { font-size: var(--step--1); color: var(--espresso-soft); }

.checkout { padding-bottom: var(--space-8); }
.checkout__layout { display: grid; gap: var(--space-6); }
@media (min-width: 960px) {
  .checkout__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: start; }
  .checkout__summary { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}
@media (max-width: 959px) { .checkout__summary { order: -1; } }
.checkout__form fieldset { min-width: 0; }
.checkout__form .panel__title { float: left; width: 100%; }
.checkout__form .panel__title + * { clear: both; }
.checkout__payment { margin-bottom: var(--space-3); }
.checkout__form fieldset.panel > .field { margin-top: var(--space-5); }
.checkout__summary .lines .line { grid-template-columns: 56px minmax(0, 1fr) auto; padding-block: var(--space-3); gap: var(--space-3); }
.checkout__summary .line__img { width: 56px; }
.checkout__summary .line__name { font-size: 1rem; font-family: var(--sans); }
.checkout__summary .link-quiet { display: inline-block; margin-top: var(--space-4); }
.panel--plain .btn { margin-top: var(--space-4); }

.summary-list { margin: 0 0 var(--space-6); display: grid; }
.summary-list > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--espresso-soft); }
.summary-list dd { margin: 0; }
.confirm { padding-bottom: var(--space-8); }
.confirm__next { display: grid; gap: var(--space-5); margin-top: var(--space-7); justify-items: start; }

/* ---- information pages ------------------------------------------------------------ */

.about { padding-bottom: var(--space-8); }
.about__grid { display: grid; gap: var(--space-6); }
.about__media { border-radius: var(--radius-lg); overflow: hidden; align-self: start; }
@media (min-width: 768px) { .about__grid { grid-template-columns: 5fr 6fr; gap: var(--space-8); } }
.contact { padding-bottom: var(--space-8); }
.contact__grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .contact__grid { grid-template-columns: 4fr 6fr; gap: var(--space-8); align-items: start; } }
.contact form { display: grid; gap: var(--space-2); }
.contact form .btn { justify-self: start; margin-top: var(--space-4); }
.faq { display: grid; border-top: 1px solid var(--line); margin-top: var(--space-4); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; font-weight: 500; list-style: none; min-height: 48px; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--olive); transition: transform 200ms var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item .prose { padding-bottom: var(--space-5); color: var(--espresso-soft); }
.faq__more { margin-block: var(--space-6) var(--space-8); }
.narrow > section + section { margin-top: var(--space-6); }
.narrow .prose { padding-bottom: var(--space-8); }
.lost { padding-block: var(--space-8); display: grid; gap: var(--space-5); justify-items: start; }
.lost__search { display: flex; gap: var(--space-3); width: 100%; max-width: 480px; }
.lost__search input { flex: 1; }

.empty { padding: var(--space-7) var(--space-5); text-align: center; display: grid; gap: var(--space-3); justify-items: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty h2 { font-size: var(--step-2); }
.loading { color: var(--espresso-soft); padding-block: var(--space-6); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3); margin-top: var(--space-7); }
.pager ol { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.pager a, .pager span[aria-current] { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--space-3); border-radius: var(--radius); text-decoration: none; }
.pager a:hover { background: var(--cream); }
.pager span[aria-current] { background: var(--olive); color: var(--ivory); }
.pager__step { font-weight: 500; }

/* ---- footer ----------------------------------------------------------------------- */

.site-footer { background: var(--espresso); color: #E9E1D3; padding-block: var(--space-8) var(--space-5); font-size: 0.95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--sage); }
.footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: var(--space-7); } }
.footer__brand { display: grid; gap: var(--space-4); align-content: start; max-width: 36ch; }
.wordmark--footer { color: var(--ivory); }
.wordmark--footer .wordmark__sub { color: var(--sage); }
.footer__brand p { color: #CFC5B5; }
.footer__social { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer__title { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--space-3); }
.footer__col ul { display: grid; gap: var(--space-2); }
.footer__facts li { color: #CFC5B5; }
.footer__base { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid rgb(233 225 211 / 0.15); font-size: var(--step--1); color: #B9AE9C; }

/* ---- toast -------------------------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: max(var(--space-5), env(safe-area-inset-bottom)); z-index: 80;
  transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem);
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); border-radius: var(--radius-lg);
  background: var(--espresso); color: var(--ivory); box-shadow: var(--shadow); animation: toast-in 240ms var(--ease);
}
.toast a { color: var(--ivory); font-weight: 600; white-space: nowrap; padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: rgb(250 247 240 / 0.12); text-decoration: none; }
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ---- focal points ------------------------------------------------------------------------
 * Which part of a photo stays in view when it is cropped to fit, chosen per
 * photo in the visual editor. Classes rather than inline styles, because the
 * site's content security policy does not allow inline styles. */
.focus-tl { object-position: 0% 0%; } .focus-t { object-position: 50% 0%; } .focus-tr { object-position: 100% 0%; }
.focus-l { object-position: 0% 50%; } .focus-r { object-position: 100% 50%; }
.focus-bl { object-position: 0% 100%; } .focus-b { object-position: 50% 100%; } .focus-br { object-position: 100% 100%; }

.about__text { display: grid; gap: var(--space-5); align-content: start; }

/* ---- motion preferences --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .announce, .drawer, .toast { display: none !important; }
  body { background: white; }
}

/* ---- touch screens ----------------------------------------------------------------------
 * A finger needs about 44px. Links that are only as tall as their text get
 * extra height on touch screens, without changing how they look. */
@media (pointer: coarse) {
  .wordmark { min-height: 44px; align-items: center; }
  .footer__col ul { gap: 0; }
  .footer__col a, .footer__social a, .crumbs a, .link-arrow, .link-quiet, .faq__more a, .contact a[href^='tel'], .contact a[href^='mailto'] {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer__social { gap: 0 var(--space-5); }
  .crumbs ol { gap: 0 var(--space-2); align-items: center; }
  .chips a { min-height: 44px; }
  .pager a, .pager span[aria-current] { min-width: 48px; height: 48px; }
}
