/* PEAU·RLA storefront. Sand, water, sun-warmed skin, slow light. Mobile first. */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --sage: #8da28c;
  --rust: #a4530c;
  --cream: #eee9c1;
  --brown: #3a230a;

  /* Derived neutrals */
  --paper: #f7f3ec; /* warm off-white page */
  --linen: #efe8dc; /* alternate band */
  --sand: #e3d6c2; /* deeper sand, decorative */
  --stone: #b8ad9f; /* wet stone: input borders */
  --skin: #d8b49c; /* sun-warmed skin: image placeholders */
  --sage-mist: #e3e8dc; /* care band */
  --white: #fffdf9;

  /* Text (all AA on --paper and --linen) */
  --ink: var(--brown); /* headings, buttons: 13:1 */
  --text: #4a3826; /* body: 10:1 */
  --muted: #75644f; /* secondary: 5.1:1 */
  --rust-text: #8e4609; /* rust for small text on light bands: 6.2:1 */
  --sage-text: #55684f; /* sage for small text: 5.4:1 */
  --on-dark: var(--cream); /* on --brown: 11.9:1 */
  --on-dark-muted: #cfc7a6; /* on --brown: 8.6:1 */
  --on-image: #fbf8f1;

  --line: rgb(58 35 10 / 0.14);
  --line-strong: rgb(58 35 10 / 0.3);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Jost", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --max: 1360px;
  --section: clamp(4.5rem, 11vw, 9.5rem);
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
  --slow: 1.4s;
}

@media (min-width: 900px) {
  :root {
    --header-h: 4.75rem;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* Cormorant defaults to old-style figures; !important because every `font:` shorthand resets this. */
  font-variant-numeric: lining-nums !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

/* Paper grain over everything; very faint. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .14 0 0 0 0 .04 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2.125rem, 4.4vw, 3.5rem);
  font-weight: 300;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

[role="list"] {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--cream);
  color: var(--ink);
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

/* Two plain sections in a row share one gap; tinted bands keep their own padding. */
.section + .section:not(.collections, .care),
.triptych {
  padding-top: 0;
}

.section.collections + .section,
.section.care + .section {
  padding-top: var(--section);
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section__head h2 {
  margin-bottom: 0.3em;
}

.section__head p {
  color: var(--muted);
  margin: 0;
}

.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.section__head--row h2 {
  margin: 0;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 1fr);
  }

  .split > .summary {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* ---------- Small typographic pieces ---------- */
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font: 500 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font: 500 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.6s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(0.35em);
}

.link-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.link-back::before {
  content: "← ";
}

.link-back:hover {
  color: var(--ink);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.link-button:hover {
  color: var(--rust-text);
}

/* A small freshwater pearl, the brand's recurring mark. */
.pearl {
  display: inline-block;
  width: 0.36em;
  height: 0.36em;
  margin-right: 0.3em; /* the preceding letter's tracking provides the left gap */
  border-radius: 50%;
  vertical-align: 0.24em;
  background: radial-gradient(circle at 34% 30%, #fff 0 14%, #f3ede2 32%, #d4c8b6 66%, #a89a86 100%);
  box-shadow:
    inset -1px -1px 2px rgb(58 35 10 / 0.2),
    0 0 0 0.5px rgb(58 35 10 / 0.18),
    0 1px 2px rgb(58 35 10 / 0.15);
}

.pearl--lg {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  margin: 0 auto 1.75rem;
}

/* ---------- Buttons, chips, badges, notices ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 0;
  font: 500 0.78rem/1.2 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

.button--primary {
  background: var(--ink);
  color: var(--paper);
}

.button--primary:hover {
  background: var(--rust);
}

.button--ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--light {
  background: var(--paper);
  color: var(--ink);
}

.button--light:hover {
  background: var(--cream);
}

.button--block {
  width: 100%;
}

.button:disabled {
  background: var(--sand);
  color: var(--muted);
  cursor: not-allowed;
}

.chip {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-current] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.65rem;
  background: rgb(247 243 236 / 0.92);
  font: 500 0.6875rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge--last_piece {
  color: var(--rust-text);
}

.badge--sold_out {
  color: var(--muted);
}

.notice {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid;
  font-size: 0.9375rem;
}

.notice p:last-child,
.notice ul:last-child {
  margin-bottom: 0;
}

.notice--success {
  border-color: var(--sage-text);
  background: var(--sage-mist);
}

.notice--warning {
  border-color: var(--rust);
  background: #f6f0d6;
}

.notice--error {
  border-color: var(--rust-text);
  background: #f6e6da;
}

.notice--error ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.notice a {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  /* No backdrop-filter: it would trap the fixed mobile menu panel inside the header. */
  background: rgb(247 243 236 / 0.97);
  color: var(--ink);
  transition:
    background-color 0.6s var(--ease),
    color 0.6s var(--ease),
    border-color 0.6s var(--ease);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  grid-column: 2;
  color: inherit;
  font: 500 1.3rem/1 var(--font-display);
  letter-spacing: 0.3em;
  margin-right: -0.3em; /* optically centre the tracked wordmark */
  text-decoration: none;
  white-space: nowrap;
}

.site-nav,
.cart-link,
.menu__toggle {
  font: 400 0.75rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: none;
  gap: 2.25rem;
}

.site-nav a,
.cart-link {
  padding-block: 0.5rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current],
.cart-link:hover {
  background-size: 100% 1px;
}

.site-header__end {
  grid-column: 3;
  justify-self: end;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-link__count:not(:empty) {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6875rem;
  letter-spacing: 0;
}

/* Home: the header floats over the hero until the page scrolls. */
.page-home .site-header {
  position: absolute;
  inset-inline: 0;
  border-color: transparent;
  background: transparent;
  color: var(--on-image);
}

.js .page-home .site-header {
  position: fixed;
}

.page-home .site-header.is-scrolled,
.menu-open .page-home .site-header {
  border-color: var(--line);
  background: rgb(247 243 236 / 0.97);
  color: var(--ink);
}

.page-home .site-header:not(.is-scrolled) .cart-link__count {
  background: var(--on-image);
  color: var(--ink);
}

/* Mobile menu: a <details>, so it works without JS. */
.menu {
  grid-column: 1;
  justify-self: start;
}

.menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.75rem;
  list-style: none;
  cursor: pointer;
}

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

.menu__icon {
  position: relative;
  width: 1.25rem;
  height: 0.5rem;
  border-block: 1px solid currentColor;
  transition: transform 0.5s var(--ease);
}

.menu[open] .menu__icon {
  height: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.menu[open] .menu__icon::after {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  border-top: 1px solid currentColor;
  transform: rotate(-90deg);
}

.menu__label--close,
.menu[open] .menu__label:not(.menu__label--close) {
  display: none;
}

.menu[open] .menu__label--close {
  display: inline;
}

.menu__panel {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem var(--gutter) 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  animation: menu-in 0.6s var(--ease);
}

.menu__list {
  list-style: none;
}

.menu__list > li {
  border-bottom: 1px solid var(--line);
}

.menu__list > li > a {
  display: block;
  padding-block: 0.9rem;
  font: 300 2.25rem/1.1 var(--font-display);
  text-decoration: none;
}

.menu__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0 0 1.1rem;
  list-style: none;
}

.menu__sub a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.menu-open body {
  overflow: hidden;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
}

@media (min-width: 900px) {
  .menu {
    display: none;
  }

  .site-nav {
    display: flex;
    grid-column: 1;
  }

  .logo {
    font-size: 1.55rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding-top: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  background: var(--brown);
  color: var(--on-dark);
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__top {
  display: grid;
  gap: 1rem 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgb(238 233 193 / 0.18);
}

.site-footer__tagline {
  margin: 0;
  font: italic 300 clamp(2.25rem, 5vw, 3.75rem)/1.05 var(--font-display);
}

.site-footer__about {
  max-width: 26rem;
  margin: 0;
  color: var(--on-dark-muted);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 15rem));
  gap: 2.5rem;
  padding-block: 3rem;
}

.site-footer h2 {
  margin: 0 0 1rem;
  color: var(--sage);
  font: 500 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  font-size: 0.9375rem;
}

/* The tracked wordmark is 5em wide: size it to the container width. */
.site-footer__mark {
  margin: 1rem -0.06em 0 0; /* cancels the trailing tracking so it centres */
  color: rgb(238 233 193 / 0.1);
  font: 300 min(17rem, (100vw - 2 * var(--gutter)) / 5.1)/0.8 var(--font-display);
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem 2rem;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 800px) {
  .site-footer__top {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(34rem, 100svh);
  overflow: hidden;
  background: var(--skin);
  color: var(--on-image);
}

/* Taller than the hero and top-anchored: crops the white garment edge at the bottom of the photo. */
.hero__image {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 0;
  filter: sepia(0.12) saturate(1.05);
  animation: settle 3.2s var(--ease) both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(40 24 8 / 0.42), rgb(40 24 8 / 0.08) 42%, transparent 55%),
    linear-gradient(to top, rgb(40 24 8 / 0.5), transparent 30%);
}

/* Mobile: statement above the pendant, text and button below it. */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  align-self: stretch;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem)) var(--gutter) clamp(2.5rem, 7vh, 6.5rem);
  animation: rise 1.8s 0.5s var(--ease) both;
}

@media (min-width: 900px) {
  .hero::after {
    background:
      linear-gradient(to bottom, rgb(40 24 8 / 0.3), transparent 18%),
      linear-gradient(to right, rgb(40 24 8 / 0.5), rgb(40 24 8 / 0.15) 45%, transparent 60%);
  }

  .hero__content {
    justify-content: flex-end;
    gap: 0;
  }
}

.hero .eyebrow {
  color: var(--on-image);
  opacity: 0.9;
}

.hero__title {
  margin-bottom: 0;
  color: var(--on-image);
  font-size: clamp(3.4rem, 10.5vw, 8.25rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  font-style: italic;
}

.hero__text {
  max-width: 27rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.0625rem;
  text-shadow: 0 1px 12px rgb(40 24 8 / 0.25);
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.07);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

/* ---------- Home ---------- */
.intro {
  max-width: 50rem;
  text-align: center;
}

.intro__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-style: italic;
}

.intro__text {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--text);
  font: 400 clamp(1.375rem, 2.4vw, 1.75rem)/1.45 var(--font-display);
}

.triptych__eyebrow {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.triptych__list {
  display: grid;
  gap: 3.5rem;
  counter-reset: pillar;
}

.pillar {
  counter-increment: pillar;
}

.pillar__media,
.collection-tile__media,
.duo__media,
.journal__grid li {
  overflow: hidden;
  background: var(--sand);
}

.pillar__media {
  aspect-ratio: 3 / 2;
  margin-bottom: 1.25rem;
}

@media (min-width: 800px) {
  .pillar__media {
    aspect-ratio: 4 / 5;
    margin-bottom: 1.5rem;
  }
}

.pillar__media img,
.collection-tile__media img,
.duo__media img,
.journal__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.4s var(--ease);
}

.pillar:hover img,
.collection-tile a:hover img {
  transform: scale(1.04);
}

.pillar__title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
}

.pillar__title::before {
  content: counter(pillar, upper-roman);
  color: var(--rust-text);
  font-size: 0.5em;
  font-style: normal;
  letter-spacing: 0.1em;
}

.pillar p {
  max-width: 24rem;
  color: var(--muted);
}

@media (min-width: 800px) {
  .triptych__list {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .pillar:nth-child(2) {
    margin-top: 6rem;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 0.875rem;
}

@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem 1.5rem;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.collections {
  background: var(--linen);
}

.collections__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 22rem);
  gap: 1rem;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.collections__list::-webkit-scrollbar {
  display: none;
}

.collection-tile {
  scroll-snap-align: start;
}

.collection-tile a {
  display: block;
  text-decoration: none;
}

.collection-tile__media {
  aspect-ratio: 3 / 4;
  margin-bottom: 1.25rem;
}

.collection-tile__name {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  font-weight: 300;
}

.collection-tile__text {
  min-height: 4.8em;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .collections__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    overflow: visible;
  }

  .collection-tile:nth-child(even) {
    margin-top: 4rem;
  }
}

.story {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-top: 0;
}

.story__media {
  aspect-ratio: 4 / 5;
  max-height: 88vh;
  overflow: hidden;
  background: var(--skin);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__body {
  max-width: 34rem;
  padding-inline: var(--gutter);
}

.story__body > p:not(.eyebrow, .story__links) {
  font-size: 1.125rem;
}

.story__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 7vw, 7rem);
    padding-top: var(--section);
  }

  .story__media {
    aspect-ratio: auto;
    height: min(88vh, 54rem);
  }

  .story__body {
    padding-inline: 0 var(--gutter);
  }

  .story--reverse .story__media {
    order: 2;
  }

  .story--reverse .story__body {
    justify-self: end;
    padding-inline: var(--gutter) 0;
  }
}

.journal {
  padding-top: 0;
}

.journal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.journal__grid li {
  aspect-ratio: 4 / 5;
}

@media (min-width: 900px) {
  .journal__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .journal__grid li:nth-child(even) {
    margin-top: 3rem;
  }
}

/* ---------- Page heads, catalog ---------- */
.page-head {
  max-width: 46rem;
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.page-head h1 {
  margin-bottom: 0.3em;
}

.page-head__lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.page-head--center {
  margin-inline: auto;
  text-align: center;
}

.page-head--center .page-head__lead {
  margin-inline: auto;
}

.filters {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.filters__group {
  display: grid;
  gap: 0.6rem;
}

.filters__label {
  color: var(--muted);
  font: 500 0.6875rem/1.4 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters__reset {
  justify-self: start;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 800px) {
  .filters__group {
    grid-template-columns: 7rem 1fr;
    align-items: center;
  }
}

.catalog {
  padding-bottom: var(--section);
}

.empty {
  max-width: 30rem;
  margin: 0 auto;
  padding-block: 3rem 5rem;
  text-align: center;
}

.empty p {
  font: 400 1.5rem/1.4 var(--font-display);
}

/* ---------- Product card ---------- */
.card__link {
  display: block;
  text-decoration: none;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--linen);
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 1.1s var(--ease),
    transform 2.4s var(--ease);
}

.card__alt {
  opacity: 0;
}

@media (hover: hover) {
  .card__link:hover .card__alt {
    opacity: 1;
  }

  .card__link:hover img {
    transform: scale(1.035);
  }
}

.card--sold-out .card__media img {
  filter: saturate(0.6);
  opacity: 0.75;
}

.card__body {
  display: grid;
  gap: 0.15rem;
  padding-top: 1rem;
}

.card__collection {
  margin: 0;
  color: var(--muted);
  font: 500 0.6875rem/1.4 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card__name {
  margin: 0;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.15;
}

.card__price {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
}

/* ---------- Product detail ---------- */
.product {
  display: grid;
  gap: 2rem;
  padding-top: 0;
}

.gallery {
  position: relative;
  margin-inline: calc(-1 * var(--gutter));
}

.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  background: var(--linen);
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__nav {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgb(247 243 236 / 0.9);
  font-size: 0.8125rem;
}

.gallery__button {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.gallery__counter {
  min-width: 3rem;
  text-align: center;
  font-feature-settings: "tnum";
}

.product__info {
  padding-top: 0.5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font: 500 0.6875rem/1.4 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.product__name {
  margin-bottom: 0.4rem;
  font-size: clamp(2.375rem, 4vw, 3.5rem);
}

.product__price {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 1.25rem;
}

.stock {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  color: var(--sage-text);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.stock::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.stock--last_piece {
  color: var(--rust-text);
}

.stock--sold_out {
  color: var(--muted);
}

.product__description {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.buy {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.buy__quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.buy--sold-out p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.detail {
  border-bottom: 1px solid var(--line);
}

.detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  color: var(--ink);
  font: 500 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.detail summary::-webkit-details-marker {
  display: none;
}

.detail summary::after {
  content: "+";
  font: 300 1.4rem/1 var(--font-body);
  transition: transform 0.5s var(--ease);
}

.detail[open] summary::after {
  transform: rotate(45deg);
}

.detail__body {
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.detail__body p:last-child {
  margin-bottom: 0;
}

.related {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    padding-top: 2.5rem;
  }

  .gallery {
    margin-inline: 0;
  }

  .gallery__track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    overflow: visible;
  }

  .gallery__slide:first-child,
  .gallery__slide:last-child:nth-child(even) {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 2;
  }

  .gallery__nav {
    display: none;
  }

  .product__sticky {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

/* ---------- About ---------- */
.banner {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 800px) {
  .banner {
    aspect-ratio: 21 / 8;
  }
}

.prose {
  max-width: 40rem;
  margin-inline: auto;
}

.prose h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.875rem;
  font-weight: 400;
}

.prose h3 {
  margin: 1.8em 0 0.4em;
}

.prose a {
  color: var(--rust-text);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.25rem;
}

.prose blockquote {
  margin: 0 0 1.5em;
  padding: 0.75rem 1.25rem;
  border-left: 2px solid var(--sage);
  background: var(--sage-mist);
}

.prose blockquote p:last-child {
  margin: 0;
}

.prose--story p {
  color: var(--text);
  font: 400 clamp(1.3125rem, 2.2vw, 1.625rem)/1.55 var(--font-display);
}

.prose--story p:first-child::first-letter {
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--rust);
  font-size: 4.1em;
  font-weight: 300;
  line-height: 0.8;
}

.duo {
  display: grid;
  gap: 4rem;
}

.duo__media {
  aspect-ratio: 3 / 2;
  margin-bottom: 1.5rem;
}

.duo h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-style: italic;
}

.duo p {
  max-width: 28rem;
  color: var(--muted);
}

@media (min-width: 800px) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
  }

  .duo__media {
    aspect-ratio: 4 / 5;
  }

  .duo__item--offset {
    margin-top: 9rem;
  }
}

.collection-index {
  border-top: 1px solid var(--line);
}

.collection-index li {
  border-bottom: 1px solid var(--line);
}

.collection-index a {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.75rem;
  text-decoration: none;
}

.collection-index__name {
  color: var(--ink);
  font: 300 clamp(2rem, 4.5vw, 3.25rem)/1 var(--font-display);
  transition:
    color 0.5s var(--ease),
    transform 0.8s var(--ease);
}

.collection-index__text {
  max-width: 34rem;
  color: var(--muted);
}

.collection-index a:hover .collection-index__name {
  color: var(--rust-text);
  font-style: italic;
  transform: translateX(0.5rem);
}

@media (min-width: 800px) {
  .collection-index a {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: baseline;
    gap: 2rem;
  }
}

.care {
  background: var(--sage-mist);
}

.care__inner {
  display: grid;
  gap: 2.5rem;
}

.care__intro .pearl--lg {
  margin-inline: 0;
}

.care__intro p {
  max-width: 28rem;
  font-size: 1.125rem;
}

.care__tips {
  counter-reset: tip;
  list-style: none;
  border-top: 1px solid var(--line);
}

.care__tips li {
  counter-increment: tip;
  display: grid;
  grid-template-columns: 3rem 1fr;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.care__tips li::before {
  content: counter(tip, decimal-leading-zero);
  color: var(--sage-text);
  font: italic 400 1.25rem/1.4 var(--font-display);
}

@media (min-width: 900px) {
  .care__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 6rem;
  }
}

.order-info {
  max-width: 44rem;
  text-align: center;
}

.order-info p {
  margin-bottom: 2.25rem;
  font-size: 1.125rem;
}

/* ---------- Cart ---------- */
.cart {
  padding-bottom: var(--section);
}

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

.cart-line {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  grid-template-areas:
    "media info total"
    "media qty qty"
    "media remove remove";
  gap: 0.4rem 1.1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cart-line__media {
  grid-area: media;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--linen);
}

.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__info {
  grid-area: info;
}

.cart-line__collection {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font: 500 0.6875rem/1.4 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cart-line__name {
  margin: 0 0 0.2rem;
  font-size: 1.375rem;
  font-weight: 500;
}

.cart-line__name a {
  text-decoration: none;
}

.cart-line__unit {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.cart-line__qty {
  grid-area: qty;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.8125rem;
}

.cart-line__qty label {
  color: var(--muted);
}

.cart-line__qty select,
.buy__quantity select {
  min-width: 4.25rem;
  min-height: 2.5rem;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  border: 1px solid var(--stone);
  border-radius: 0;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233a230a'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
}

.cart-line__single {
  font-size: 0.9375rem;
}

.cart-line__max {
  color: var(--muted);
}

.cart-line__total {
  grid-area: total;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  text-align: right;
}

.cart-line__remove {
  grid-area: remove;
  justify-self: start;
}

.cart__update {
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .cart-line {
    grid-template-columns: 8.5rem minmax(0, 1fr) auto 7rem;
    grid-template-areas:
      "media info qty total"
      "media remove qty total";
    align-items: start;
    gap: 0.5rem 1.75rem;
  }

  .cart-line__qty {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-line__remove {
    align-self: end;
  }
}

/* ---------- Summary ---------- */
.summary {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--linen);
}

.summary__title {
  font-size: 1.75rem;
  font-weight: 400;
}

.summary__items {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.summary__items li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.summary__items img {
  width: 3.25rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.summary__item-qty {
  color: var(--muted);
}

.summary__rows {
  margin: 0;
}

.summary__rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}

.summary__rows dt small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}

.summary__rows dd {
  margin: 0;
  white-space: nowrap;
}

.summary__total {
  margin-top: 0.5rem;
  padding-top: 1rem !important;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
  font: 400 1.75rem/1.2 var(--font-display);
}

.free-shipping {
  margin: 1rem 0 1.5rem;
  color: var(--sage-text);
  font-size: 0.875rem;
}

.free-shipping p {
  margin-bottom: 0.5rem;
}

.free-shipping__bar {
  height: 2px;
  background: var(--line);
}

.free-shipping__bar span {
  display: block;
  height: 100%;
  background: var(--sage-text);
}

.summary .button + .summary__continue {
  margin-top: 1.25rem;
}

.summary__continue {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

/* ---------- Checkout form ---------- */
.checkout {
  padding-bottom: var(--section);
}

.fieldset {
  margin: 0 0 2.75rem;
  padding: 0;
  border: 0;
}

.fieldset legend {
  margin-bottom: 1.25rem;
  padding: 0;
  color: var(--ink);
  font: 400 1.875rem/1.1 var(--font-display);
}

.field {
  margin-bottom: 1.4rem;
}

.field > label,
.field__label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}

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

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stone);
  border-radius: 0;
  background: var(--white);
  transition: border-color 0.3s var(--ease);
}

.field select {
  padding-right: 2.5rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233a230a'/%3E%3C/svg%3E") no-repeat right 1rem center;
  appearance: none;
}

.field textarea {
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field--invalid input:not([type="checkbox"]),
.field--invalid select,
.field--invalid textarea,
.field--invalid .pickup__chosen {
  border-color: var(--rust-text);
}

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

.field__error {
  margin: 0.45rem 0 0;
  color: var(--rust-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  align-items: start;
  margin-block: 2rem;
}

.field--check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--ink);
}

.field--check label {
  font-size: 0.9375rem;
  font-weight: 400;
}

.field--check label a {
  color: var(--rust-text);
}

.field--check .field__error {
  grid-column: 2;
}

.checkout__method {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 0.9375rem;
}

.checkout__method::before {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  margin: 0.3rem -0.25rem 0 0;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.checkout__method span:first-of-type {
  flex: 1;
}

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

.checkout__form {
  row-gap: 2rem;
}

.checkout__submit {
  min-height: 3.75rem;
}

@media (min-width: 960px) {
  .checkout__form > .summary {
    grid-area: 1 / 2 / 3;
  }
}

.pickup__chosen {
  padding: 1rem 1.25rem;
  border: 1px solid var(--stone);
  background: var(--white);
}

.pickup__name {
  margin: 0;
  color: var(--ink);
  font: 500 1.25rem/1.3 var(--font-display);
}

.pickup__address {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.pickup__address:empty {
  display: none;
}

.pickup__open {
  margin-top: 0.75rem;
}

/* ---------- Order confirmation ---------- */
.order {
  padding-bottom: var(--section);
}

.order-status {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

.steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font: 500 0.6875rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.steps li::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
}

.steps li:first-child::before {
  display: none;
}

.steps__dot {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}

.steps .is-done,
.steps .is-current {
  color: var(--ink);
}

.steps .is-done .steps__dot {
  border-color: var(--sage-text);
  background: var(--sage-text);
}

.steps .is-current .steps__dot {
  border: 3px solid var(--rust);
}

.order-status__text {
  color: var(--muted);
}

.payment {
  display: grid;
  gap: 2rem;
  max-width: 60rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.payment h2 {
  font-size: 2.25rem;
}

.payment__rows {
  display: grid;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.payment__rows div {
  display: grid;
  gap: 0.1rem 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.payment__rows dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.payment__rows dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
  font-feature-settings: "tnum";
}

.payment__due {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.payment__qr {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.75rem;
  margin: 0;
  text-align: center;
}

.payment__qr-code {
  width: min(15rem, 100%);
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
}

.payment__qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

.payment__qr figcaption {
  display: grid;
  gap: 0.15rem;
  max-width: 15rem;
  font-size: 0.875rem;
}

.payment__qr figcaption span {
  color: var(--muted);
}

@media (min-width: 560px) {
  .payment__rows div {
    grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 800px) {
  .payment {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3.5rem;
  }
}

.order__grid {
  display: grid;
  gap: 2.5rem;
  max-width: 60rem;
  margin-inline: auto;
}

.order__grid h2 {
  font-size: 1.75rem;
  font-weight: 400;
}

.order__items ul {
  border-top: 1px solid var(--line);
}

.order__items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.order__total {
  color: var(--ink);
  font: 400 1.5rem/1.3 var(--font-display);
}

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

/* Customer-entered e-mails and names can be one long unbreakable word. */
.order .page-head p,
.order__pickup p {
  overflow-wrap: anywhere;
}

.order__pickup strong {
  color: var(--ink);
  font-weight: 500;
}

.order__foot {
  max-width: 60rem;
  margin: 3rem auto 0;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 800px) {
  .order__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
  }
}

/* ---------- Info and error pages ---------- */
.info-page {
  padding-bottom: var(--section);
}

.info-page .page-head {
  max-width: 40rem;
  margin-inline: auto;
}

.error-page {
  max-width: 44rem;
  padding-block: clamp(4rem, 12vw, 9rem);
  text-align: center;
}

.error-page__code {
  margin: 0 0 0.5rem;
  color: var(--sand);
  font: italic 300 clamp(6rem, 18vw, 11rem)/0.9 var(--font-display);
}

.error-page .page-head__lead {
  margin-inline: auto;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}

/* ---------- Motion ---------- */
[data-reveal] {
  transition:
    opacity var(--slow) var(--ease),
    transform var(--slow) var(--ease);
}

.is-pending {
  opacity: 0;
  transform: translateY(1.75rem);
}

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

/* ---------- Demo mode ---------- */
.demo-banner {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem var(--gutter) 1rem;
  background: var(--rust);
  color: var(--white);
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.45;
  box-shadow: 0 -0.5rem 1.5rem rgb(58 35 10 / 0.2);
}

.demo-banner strong {
  font: 500 clamp(1.35rem, 3.5vw, 1.75rem) / 1.15 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment__demo {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--rust);
  color: var(--white);
  font-weight: 500;
  text-align: center;
}
