/* ------------------------------------------------------------------
   Salt Tooth — tokens
   ------------------------------------------------------------------ */
:root {
  --white: #ffffff;
  --black: #000000;
  --grey: #8a8a8a;        /* inactive nav — 3.5:1 on white, used at UI size only */
  --grey-light: #ececec;  /* quantity field */
  --rule: #000000;
  --rabbit: #ff4f2e;      /* logo orange — focus rings only */

  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;

  --pad: 16px;
  --header-h: 72px;
}
@media (min-width: 48rem) {
  :root { --pad: 32px; --header-h: 92px; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  touch-action: manipulation;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
@media (min-width: 48rem) { body { font-size: 14px; } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------------
   Header — logo left, CHEFS / INFO right
   ------------------------------------------------------------------ */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding-inline: var(--pad);
  position: relative;
  z-index: 10;
}
.logo { justify-self: start; display: block; padding: 4px 0; }
.logo img { height: 42px; width: auto; }
@media (min-width: 48rem) { .logo img { height: 54px; } }

.nav { justify-self: end; display: flex; gap: 4px; }
.nav a,
.filter button {
  display: inline-flex; align-items: center;
  min-height: 44px; padding-inline: 8px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.nav a:last-child { margin-right: -8px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------
   Front page — category filter + product blocks
   ------------------------------------------------------------------ */
.filter { justify-self: center; display: flex; }
.filter button { color: var(--grey); }
.filter button[aria-pressed="true"] { color: var(--black); }
.filter button:hover { color: var(--black); }

/* On phones the filter drops under the header so the logo + nav keep their corners */
@media (max-width: 47.99rem) {
  .site-header--home { grid-template-columns: auto 1fr; grid-template-rows: var(--header-h) auto; height: auto; }
  .site-header--home .filter { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-left: -8px; }
}

.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 36px;
  padding: 12px var(--pad) 64px;
}
@media (min-width: 48rem)  { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 56px; padding-top: 24px; } }
@media (min-width: 64rem)  { .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 110rem) { .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.block { display: block; }
.block[hidden] { display: none; }
.block__colour {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  overflow: hidden;
}
.block__colour img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.block__name {
  margin-top: 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.block:hover .block__name { text-decoration: underline; text-underline-offset: 4px; }
.block:focus-visible { outline-offset: 6px; }

/* ------------------------------------------------------------------
   Product page — colour block left, buying column right
   ------------------------------------------------------------------ */
.page-product { font-family: var(--sans); }

.page-product .site-header {
  position: absolute; inset: 0 0 auto 0;
  color: var(--on-photo);
}
.page-product .site-header .nav { font-family: var(--mono); }
.page-product .logo img { filter: var(--logo-filter); }
@media (min-width: 64rem) {
  .page-product .site-header .nav { color: var(--black); }
}

.product {
  display: grid;
  grid-template-columns: 100%;
}
@media (min-width: 64rem) {
  .product { grid-template-columns: 1fr 1fr; min-height: 100svh; }
}

.product__photo {
  background: var(--bg);
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product__photo img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 64rem) {
  .product__photo { aspect-ratio: auto; position: sticky; top: 0; height: 100svh; }
}

.product__buy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px var(--pad) 72px;
}
@media (min-width: 64rem) { .product__buy { padding: calc(var(--header-h) + 24px) 48px 72px; } }

.buy-col { width: 100%; max-width: 30rem; margin-inline: auto; }

.product__title {
  font-weight: 400;
  font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.01em;
  text-align: center;
}
@media (min-width: 48rem) { .product__title { font-size: 2.75rem; } }

.product__sub {
  margin-top: 8px; text-align: center;
  font-size: 1.125rem; line-height: 1.3; font-style: italic;
}

.product__desc {
  margin-top: 28px;
  font-size: 1.1875rem; line-height: 1.45;
  max-width: 34ch; margin-inline: auto;
}

.product__price { margin-top: 28px; text-align: center; font-size: 1.75rem; line-height: 1.1; }

.qty-label { display: block; margin-top: 32px; text-align: center; font-size: 1.0625rem; }
.qty {
  margin-top: 8px;
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center;
  background: var(--grey-light);
  height: 48px;
}
.qty button { height: 100%; display: grid; place-items: center; }
.qty button:hover { background: #dedede; }
.qty button svg { width: 18px; height: 18px; }
.qty input {
  width: 100%; height: 100%; text-align: center; background: none;
  font: inherit; font-size: 1.125rem; color: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.order-btn {
  margin-top: 12px; width: 100%; height: 52px;
  display: grid; place-items: center;
  background: var(--black); color: var(--white);
  font-size: 1.125rem;
}
.order-btn:hover { background: #2a2a2a; }

.facts { list-style: none; margin-top: 48px; border-top: 1px solid var(--rule); }
.facts li {
  border-bottom: 1px solid var(--rule);
  padding: 11px 0;
  text-align: center; font-size: 1.0625rem;
}

.product-step {
  display: flex; justify-content: space-between;
  margin-top: 40px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em;
}
.product-step a { min-height: 44px; display: inline-flex; align-items: center; }
.product-step a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------
   Info / Chefs — one big statement at a time, index along the bottom
   ------------------------------------------------------------------ */
.page-statement {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}
.statement {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding-inline: calc(var(--pad) - 12px);
}
.statement__arrow {
  width: 44px; height: 44px; display: grid; place-items: center;
}
.statement__arrow svg { width: 16px; height: 16px; }
.statement__arrow:hover svg { transform: translateX(var(--nudge)); }
.statement__arrow svg { transition: transform .2s ease; }
.statement__arrow--prev { --nudge: -3px; }
.statement__arrow--next { --nudge: 3px; }

.statement__slides { display: grid; }
.statement__slide {
  grid-area: 1 / 1;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 17em;
  text-wrap: balance;
  margin-inline: auto;
  padding: 48px 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.statement__slide.is-current { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.statement__slide p + p { margin-top: 0.9em; }
.statement__slide a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }

.index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  padding: 24px var(--pad) 28px;
  text-transform: uppercase; letter-spacing: 0.01em;
  font-size: 12px; line-height: 1.3;
}
@media (min-width: 48rem) { .index { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 13px; } }
.index__num { text-align: center; margin-bottom: 6px; }
.index__title { min-height: 2.6em; }
.index__links { display: flex; gap: 2px; margin-top: 8px; margin-left: -6px; flex-wrap: wrap; }
.index__links a,
.index__links span { min-width: 32px; min-height: 44px; display: inline-grid; place-items: center; padding-inline: 6px; }
.index__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.index__links span { color: var(--grey); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Longer statements (Chefs) and the Wholesale list sit a size down */
.statement__slide--long {
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.25rem);
  line-height: 1.2;
  max-width: 24em;
}
.statement__list {
  list-style: none;
  margin-top: 1.1em;
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: 0;
}
.statement__list li + li { margin-top: 0.2em; }
.statement__contact {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.statement__slide .statement__contact a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.statement__slide p + .statement__contact,
.statement__list + .statement__contact { margin-top: 2.2em; }
.statement__arrow[hidden] { display: grid; visibility: hidden; }
.statement__list { display: inline-block; text-align: left; text-wrap: pretty; }
.statement__list li { padding-left: 1.3em; text-indent: -1.3em; }
.product-step { gap: 16px; }
.product-step a:last-child { text-align: right; justify-content: flex-end; }
.statement__small {
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 28em;
  margin-inline: auto;
}
.statement__slide--long p + p { margin-top: 0.6em; }
.statement__q { font-style: italic; font-size: 0.75em; line-height: 1.3; }
.statement__slide--long p + .statement__q { margin-top: 0.5em; }
.statement__slide--long p:first-child + .statement__q { margin-top: 1.4em; }
/* Chefs questions: a wider, more open italic than Alegreya's calligraphic one */
.statement__q { font-family: "Newsreader", Georgia, serif; font-optical-sizing: auto; letter-spacing: 0; }
.product__desc + .product__desc { margin-top: 0.8em; }

/* Front-page announcement bar */
.announcement {
  background: var(--black);
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12px;
  line-height: 1.3;
  padding: 9px var(--pad);
}
@media (min-width: 48rem) { .announcement { font-size: 14px; padding-block: 10px; } }
