/* Pouté catalogue website styles.
   Order: fonts, custom properties, reset, base, layout, components, page sections, utilities, media queries.
   Tokens come from Figma design v1 (17 Nov 2026). Mobile first: base styles are for phones. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-baskerville-400-italic.woff2") format("woff2");
}

:root {
  --color-rose: #cf446d;
  --color-rose-deep: #af4462;
  --color-rose-dark: #9a3555; /* text on blush: 5.5:1 contrast */
  --color-blush: #ffdbdf;
  --color-cream: #f9f8f5;
  --color-white: #fff;
  --color-placeholder: #efeeec;
  --color-line: #d9d6d2;
  --color-text: #1f1f1f;
  --color-muted: #62605e;
  --font-body: inter, system-ui, -apple-system, "Segoe UI", roboto, arial, sans-serif;
  --font-display: "Libre Baskerville", georgia, "Times New Roman", serif;
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-80: 80px;
  --space-120: 120px;
  --page-pad: 16px;
  --max-width: 1440px;
  --header-height: 84px;
  --tap: 44px;
  --focus: 3px solid var(--color-text);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-height) + var(--space-16));

  /* iOS Safari still needs the prefix to stop text growing on rotate. */
  /* stylelint-disable-next-line property-no-vendor-prefix */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-white);
}

/* Keeps the hidden attribute working on elements whose class sets display. */
[hidden][class] {
  display: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

/* ---------- Layout ---------- */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-48) var(--page-pad) var(--space-80);
}

.page--narrow {
  max-width: calc(720px + 2 * var(--page-pad));
}

.page__title,
.hero__title,
.statement__title,
.category__title,
.feature__title,
.promo-tile__title,
.flavour-card__name,
.order-list__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.page__title {
  font-size: 2rem;
  margin-bottom: var(--space-16);
}

.page__intro {
  color: var(--color-muted);
  margin-bottom: var(--space-24);
}

/* ---------- Header ---------- */

.skip-link {
  position: absolute;
  left: var(--space-16);
  top: -100px;
  z-index: 100;
  padding: var(--space-8) var(--space-16);
  background: var(--color-text);
  color: var(--color-white);
}

.skip-link:focus {
  top: var(--space-8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo chat"
    "nav nav";
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--page-pad) 0;
}

.logo {
  grid-area: logo;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-rose);
  text-decoration: none;
}

.site-header__chat {
  grid-area: chat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  color: var(--color-rose-deep);
}

.nav {
  grid-area: nav;
  overflow-x: auto;
}

.nav__list {
  display: flex;
  gap: var(--space-16);
  white-space: nowrap;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--color-rose-deep);
}

.nav__link:hover {
  color: var(--color-rose-deep);
}

.icon {
  display: block;
}

/* ---------- Shared components ---------- */

.eyebrow {
  margin-bottom: var(--space-16);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-rose-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--tap);
  font-size: 0.875rem;
  color: var(--color-rose-deep);
  text-decoration: none;
}

.text-link::after {
  content: "▸";
  font-size: 0.6em;
}

.text-link:hover {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-24);
  border: 1px solid var(--color-rose-deep);
  background: var(--color-rose-deep);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--color-text);
  border-color: var(--color-text);
}

.button--outline {
  width: 100%;
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

.button--outline:hover {
  background: var(--color-text);
  color: var(--color-white);
}

.to-confirm {
  text-decoration: underline dashed var(--color-rose);
  text-underline-offset: 3px;
}

.notice {
  grid-column: 1 / -1;
  padding: var(--space-24);
  background: var(--color-cream);
  border: 1px solid var(--color-line);
}

.notice__title {
  font-weight: 500;
  margin-bottom: var(--space-8);
}

.whatsapp-float {
  position: fixed;
  right: var(--space-16);
  bottom: var(--space-16);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-rose-deep);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

/* On the Shop page the order list has its own Send button, so the round button steps aside. */
.order-list-on-screen .whatsapp-float {
  display: none;
}

.has-order-bar .whatsapp-float {
  bottom: calc(var(--space-16) + 64px);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-cream);
  padding: var(--space-48) var(--page-pad) var(--space-32);
}

.site-footer__columns {
  display: grid;
  gap: var(--space-32);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__list {
  display: grid;
  gap: var(--space-8);
  font-size: 0.875rem;
}

.site-footer__list a {
  text-decoration: none;
}

.site-footer__list a:hover {
  color: var(--color-rose-deep);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-24);
  max-width: var(--max-width);
  margin: var(--space-48) auto 0;
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-rose);
}

/* ---------- Home ---------- */

.hero {
  position: relative;
  background: var(--color-placeholder);
}

.hero__photo {
  width: 100%;
  object-fit: cover;
}

.hero__card {
  padding: var(--space-24) var(--page-pad) var(--space-32);
  background: var(--color-white);
}

.hero__title {
  font-size: 2rem;
  margin-bottom: var(--space-16);
}

.hero__text {
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}

.statement {
  padding: var(--space-80) var(--page-pad);
  text-align: center;
}

.statement__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-8);
}

.statement__text {
  color: var(--color-muted);
}

.category {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad) var(--space-80);
}

.category__photo {
  width: 100%;
  margin-bottom: var(--space-24);
  background: var(--color-placeholder);
}

.product-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24) var(--space-16);
  margin-bottom: var(--space-32);
}

.product-row__fallback {
  grid-column: 1 / -1;
}

.product-card__photo {
  margin-bottom: var(--space-16);
}

.product-card__name {
  font-size: 0.9375rem;
  font-weight: 400;
}

.product-card__note {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.product-card__price {
  font-size: 0.875rem;
  font-weight: 500;
}

.category__title {
  font-size: 1.75rem;
  margin-bottom: var(--space-8);
}

.category__text p {
  color: var(--color-muted);
}

.standards {
  padding: var(--space-48) var(--page-pad);
  background: var(--color-blush);
  text-align: center;
}

.standards__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-32) var(--space-48);
}

.standards__item {
  display: grid;
  justify-items: center;
  gap: var(--space-8);
  font-size: 0.875rem;
}

.standards .eyebrow,
.promo-tile .text-link {
  color: var(--color-rose-dark);
}

.standards__icon {
  width: 64px;
  height: 64px;
  padding: 12px;
  border: 1px solid var(--color-rose-deep);
  border-radius: 50%;
  color: var(--color-rose-deep);
}

.feature__photo {
  width: 100%;
  background: var(--color-placeholder);
}

.feature__text {
  padding: var(--space-48) var(--page-pad) var(--space-80);
}

.feature__title {
  font-size: 1.75rem;
  margin-bottom: var(--space-16);
}

.feature__text p:not(.eyebrow) {
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}

/* ---------- Shop ---------- */

.breadcrumbs {
  margin-bottom: var(--space-24);
  font-size: 0.875rem;
}

.breadcrumbs__list {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  color: var(--color-muted);
}

.breadcrumbs__list li + li::before {
  content: "/";
  margin-right: var(--space-8);
}

.breadcrumbs__list a {
  text-decoration: none;
}

.breadcrumbs__list a[aria-current="page"] {
  color: var(--color-text);
}

.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.shop-head .page__title {
  margin-bottom: 0;
}

.shop-head__count {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.shop {
  display: grid;
  gap: var(--space-48);
}

.shop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-48) var(--space-24);
  align-items: start;
}

/* Holds the space while products.json loads, so the order list does not jump (layout shift). */
.shop__grid--loading {
  min-height: 100vh;
}

/* Photo with the flavour name centred over it (kept when real photos replace the placeholders). */
.photo-name {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--color-placeholder);
}

.photo-name__img {
  grid-area: 1 / 1;
  width: 100%;
}

.photo-name__label {
  grid-area: 1 / 1;
  z-index: 1;
  max-width: 85%;
  padding: var(--space-8) var(--space-16);
  background: var(--color-cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.2;
  text-align: center;
  color: var(--color-text);
}

.product-card .photo-name__label {
  font-size: 1.25rem;
}

.flavour-card {
  scroll-margin-top: calc(var(--header-height) + var(--space-16));
}

.flavour-card__photo {
  margin-bottom: var(--space-16);
}

.flavour-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-8);
}

.flavour-card__thumb {
  width: 56px;
  height: 56px;
  flex: none;
  background: var(--color-placeholder);
}

.flavour-card__name {
  font-size: 1.5rem;
}

.flavour-card__taste {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: var(--space-8);
}

.option {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-16);
  min-height: 56px;
  border-top: 1px solid var(--color-line);
  font-size: 0.9375rem;
}

.option:last-child {
  border-bottom: 1px solid var(--color-line);
}

.option__price {
  font-weight: 500;
}

.option__add {
  min-width: 72px;
  min-height: var(--tap);
  padding: 0 var(--space-16);
  border: 1px solid var(--color-rose-deep);
  background: var(--color-white);
  color: var(--color-rose-deep);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.option__add:hover {
  background: var(--color-rose-deep);
  color: var(--color-white);
}

.option--sold-out .option__label,
.option--sold-out .option__price {
  color: var(--color-muted);
  text-decoration: line-through;
}

.option__sold-out {
  min-width: 72px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-muted);
}

.promo-tile {
  display: grid;
  align-content: center;
  gap: var(--space-16);
  min-height: 280px;
  padding: var(--space-32) var(--space-24);
  background: var(--color-blush);
}

.promo-tile__title {
  font-size: 1.5rem;
}

.order-list {
  align-self: start;
  padding: var(--space-24);
  background: var(--color-cream);
  border: 1px solid var(--color-line);
}

.order-list__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-16);
}

.order-list__empty {
  color: var(--color-muted);
  margin-bottom: var(--space-16);
}

.order-line {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "info total"
    "qty qty";
  gap: var(--space-8);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-line);
}

.order-line__info {
  grid-area: info;
  display: grid;
}

.order-line__name {
  font-weight: 500;
}

.order-line__unit {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.order-line__total {
  grid-area: total;
  font-weight: 500;
}

.qty {
  grid-area: qty;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-line);
  justify-self: start;
  background: var(--color-white);
}

.qty__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
}

.qty__button:disabled {
  color: var(--color-line);
  cursor: not-allowed;
}

.qty__value {
  min-width: 32px;
  text-align: center;
  font-weight: 500;
}

.order-list__total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-16) 0 var(--space-8);
  font-size: 1.125rem;
  font-weight: 500;
}

.order-list__note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-16);
}

.order-form {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.field__label {
  margin-top: var(--space-8);
  font-size: 0.875rem;
  font-weight: 500;
}

.field__optional {
  font-weight: 400;
  color: var(--color-muted);
}

.field__input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 var(--space-16);
  border: 1px solid var(--color-muted);
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem; /* 16px stops iPhone Safari zooming in on focus */
}

.field__input[aria-invalid="true"] {
  border: 2px solid var(--color-rose-dark);
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.field__error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-rose-dark);
}

.order-list .button {
  width: 100%;
}

.order-list__clear {
  display: block;
  min-height: var(--tap);
  margin: var(--space-8) auto 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
}

.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 64px;
  padding: var(--space-8) var(--page-pad);
  background: var(--color-text);
  color: var(--color-white);
}

.order-bar[hidden] {
  display: none;
}

.order-bar__text {
  font-weight: 500;
}

.order-bar__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.875rem;
}

.has-order-bar .site-footer {
  padding-bottom: calc(var(--space-32) + 64px);
}

/* ---------- About, How to order, Contact ---------- */

.prose {
  display: grid;
  gap: var(--space-16);
  max-width: 640px;
}

.prose__lead {
  font-size: 1.125rem;
}

.prose__heading {
  margin-top: var(--space-16);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.prose__quote {
  margin: var(--space-8) 0;
  padding-left: var(--space-24);
  border-left: 3px solid var(--color-rose);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--color-rose-dark);
}

.prose__figure {
  margin: 0;
}

.prose__photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-top: var(--space-16);
  background: var(--color-placeholder);
}

.prose__caption {
  margin-top: var(--space-8);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.quick-actions {
  display: grid;
  gap: var(--space-16);
  margin-bottom: var(--space-48);
}

.faq__item {
  border-top: 1px solid var(--color-line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--color-line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-muted);
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__answer {
  padding-bottom: var(--space-24);
  color: var(--color-muted);
}

.faq__answer ol {
  display: grid;
  gap: var(--space-8);
  padding-left: var(--space-24);
}

.details {
  margin-top: var(--space-48);
}

.details__row {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-16) 0;
  border-top: 1px solid var(--color-line);
}

.details__row:last-child {
  border-bottom: 1px solid var(--color-line);
}

.details dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Larger screens ---------- */

@media (width >= 480px) {
  .shop__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 768px) {
  :root {
    --page-pad: 24px;
    --header-height: 64px;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav chat";
    gap: var(--space-32);
    padding-top: 0;
    min-height: 64px;
  }

  .nav {
    justify-self: end;
  }

  .nav__list {
    gap: var(--space-24);
  }

  .nav__link {
    font-size: 0.8125rem;
  }

  .page__title {
    font-size: 2.25rem;
  }

  .hero__card {
    position: absolute;
    right: 9%;
    bottom: 8%;
    width: 400px;
    padding: var(--space-32);
  }

  .hero__title {
    font-size: 2rem;
  }

  .product-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__columns {
    grid-template-columns: 1fr 1.6fr 1.4fr;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .wordmark {
    font-size: 7rem;
  }

  .feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .feature__text {
    padding: var(--space-48) 12%;
  }

  .page--two-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-48);
  }

  .details__row {
    grid-template-columns: 1fr 2fr;
    align-items: baseline;
  }

  .details dd {
    text-align: right;
  }
}

@media (width >= 1024px) {
  .shop {
    grid-template-columns: 1fr 340px;
    gap: var(--space-32);
  }

  .shop__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-list {
    position: sticky;
    top: calc(var(--header-height) + var(--space-16));
  }

  .order-bar,
  .has-order-bar .whatsapp-float {
    bottom: var(--space-16);
  }

  .order-bar {
    display: none;
  }

  .has-order-bar .site-footer {
    padding-bottom: var(--space-32);
  }
}

@media (width >= 1280px) {
  .shop__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The one allowed use of !important (technical plan 7.3). */
/* stylelint-disable declaration-no-important */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* stylelint-enable declaration-no-important */
