:root {
  --paper: #fbf8f2;
  --cream: #f3eadc;
  --ink: #271a16;
  --muted: #685449;
  --wine: #682b3b;
  --line: #d7c6b7;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid #9a425a; outline-offset: 4px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.masthead, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem var(--gutter);
}
.masthead {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 4.65rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.wordmark { font: bold 2.45rem/1 var(--serif); letter-spacing: -.08em; text-decoration: none; white-space: nowrap; }
.wordmark span { font-weight: normal; font-style: italic; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2.5rem); align-items: center; }
nav a { font-size: .92rem; font-weight: 550; text-decoration: none; }
nav a:hover, .text-link:hover { color: var(--wine); text-decoration: underline; }
.cart-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .25rem .25rem .25rem .75rem;
  background: transparent;
  border: 1px solid var(--line);
  font-weight: 650;
  cursor: pointer;
}
.cart-toggle:hover { border-color: var(--wine); }
.cart-count {
  min-width: 1.8rem;
  padding: .17rem .35rem;
  background: var(--wine);
  color: #fff;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: #000; color: var(--paper); }
.hero-copy { align-self: center; padding: clamp(2.5rem, 7vw, 7rem) var(--gutter); }
.eyebrow { color: var(--wine); text-transform: uppercase; letter-spacing: .11em; font-weight: 700; font-size: .875rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; margin: 0; }
h1, h2 { letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 6.2vw, 7.5rem); line-height: .96; }
h2 { font-size: clamp(2.65rem, 4.8vw, 5.25rem); line-height: 1.02; }
h3 { font-size: clamp(2rem, 2.8vw, 2.7rem); line-height: 1.03; letter-spacing: -.04em; }
p { max-width: 56ch; }
.hero-copy .eyebrow { color: var(--paper); }
.hero-copy > p:not(.eyebrow) { color: #e4d8cb; font-size: 1.08rem; margin-block: 1.35rem 1.7rem; }
.hero-photo { margin: 0; position: relative; min-height: clamp(23rem, 43vw, 42rem); background: #232422; }
.hero-photo img { display: block; position: absolute; width: 100%; height: 100%; object-fit: contain; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.15rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .68rem 1rem;
  border: 1px solid #211716;
  background: #211716;
  color: #fff;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.text-link { background: transparent; border: 0; padding: 0; font-weight: 650; color: var(--ink); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.hero-actions .button { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero-actions .button:hover { background: var(--cream); border-color: var(--cream); }
.hero-actions .text-link { color: var(--paper); }
.hero-actions .text-link:hover { color: #e4d8cb; }
.hero-actions a:focus-visible { outline-color: var(--paper); }

.shop, .catalogue, .story, .orders { padding: clamp(3.1rem, 6.3vw, 6.5rem) var(--gutter); }
.shop-heading { display: flex; align-items: end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 2rem; }
.shop-heading p { color: var(--muted); margin: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.15vw, 2.4rem); }
.shop-card { display: flex; flex-direction: column; border: 1px solid var(--line); min-width: 0; }
.shop-card-photo { aspect-ratio: 1.53; background: #482b25; overflow: hidden; }
.shop-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 230ms ease; }
.shop-card:hover .shop-card-photo img { transform: scale(1.035); }
.shop-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(.9rem, 2vw, 1.6rem); }
.shop-card p { color: var(--muted); margin: .55rem 0 1.1rem; white-space: pre-line; }
.product-options { margin-top: auto; }
.product-options fieldset { border: 0; margin: 0 0 .65rem; padding: 0; min-inline-size: 0; }
.product-options .button { width: 100%; }
.size-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.size-options label { position: relative; cursor: pointer; }
.size-options input { position: absolute; inset: .5rem auto auto .6rem; width: 1rem; height: 1rem; opacity: 0; }
.size-options label > span {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 .4rem;
  min-height: 44px;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  font-size: .875rem;
}
.size-options .size-label, .size-options strong { white-space: nowrap; }
.size-options input:checked + span { background: #f1e4dc; border-color: var(--wine); color: #532130; }
.size-options input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

.story { display: grid; grid-template-columns: .55fr 1.45fr; gap: 1rem 2rem; background: var(--cream); }
.story p:last-child { margin-bottom: 0; }
.product { display: grid; grid-template-columns: 1fr 1fr; color: var(--paper); background: #000; }
.product-image { min-height: 25rem; position: relative; }
.product-image img { position: absolute; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.product-copy { align-self: center; padding: clamp(2.5rem, 6vw, 6rem) var(--gutter); }
.product .eyebrow { color: #e6b5b1; }
.product .button { background: var(--paper); color: var(--ink); }
.product .button:hover { background: #ede0cf; }
.weight { font-weight: 650; }
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.catalogue-grid a { display: block; text-underline-offset: .2em; }
.catalogue-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1086 / 1536; object-fit: contain; background: #191314; }
.catalogue-grid span { display: block; padding-block: .4rem; }
.product-details { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.product-details summary { cursor: pointer; font-weight: 650; }
.catalogue table { width: 100%; max-width: 36rem; border-collapse: collapse; margin-block: 1.5rem; }
.catalogue caption { text-align: left; font: 1.55rem/1.2 var(--serif); padding-bottom: .6rem; }
.catalogue th, .catalogue td { text-align: left; border-bottom: 1px solid var(--line); padding: .45rem .45rem .45rem 0; }
.catalogue td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.orders { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; background: var(--cream); }
.delivery-options { padding-left: 1.2rem; margin-top: 0; }
.delivery-options li + li { margin-top: .6rem; }
.order-contact { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); color: var(--ink); }
footer p { font-size: .9rem; }

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 32rem);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
dialog::backdrop { background: rgb(25 14 13 / 64%); }
.cart-panel { display: flex; flex-direction: column; height: 100%; }
.cart-header, .cart-content, .cart-footer { padding-inline: clamp(1rem, 4vw, 2rem); }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.cart-header h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.icon-button { border: 1px solid var(--line); background: transparent; min-width: 44px; min-height: 44px; font-size: 1.55rem; cursor: pointer; }
.cart-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block: 1rem; }
.cart-items { margin: 0; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: .7rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.cart-item img { display: block; width: 100%; height: 4.3rem; object-fit: cover; }
.shop-card-photo img.product-label, .cart-item img.product-label { object-fit: contain; background: #000; }
:is(#salame-pistacho, #salame-avela) .shop-card-photo img.product-label { scale: 1.41; }
.cart-item-details { display: flex; flex-direction: column; }
.item-size { color: var(--muted); font-size: .9rem; }
.item-total { white-space: nowrap; }
.item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; margin-top: .45rem; }
.item-actions .text-link { font-size: .875rem; min-height: 44px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); }
.stepper button { width: 2.25rem; min-height: 44px; border: 0; background: transparent; cursor: pointer; }
.stepper button:hover:not(:disabled), .icon-button:hover { background: var(--cream); }
.stepper button:disabled { opacity: .4; cursor: default; }
.item-quantity { min-width: 1.35rem; text-align: center; }
.cart-footer { border-top: 1px solid var(--line); padding-block: .85rem 1rem; }
.cart-footer p { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 .6rem; }
.cart-footer .button { width: 100%; }
.cart-footer p:has(+ .button[hidden]) { margin-bottom: 0; }
#back-to-cart { display: block; min-height: 44px; margin-bottom: .55rem; }
#order-form label { display: block; margin: .8rem 0 .25rem; font-weight: 650; }
#order-form small { font-weight: 400; }
#order-form :is(input, select, textarea) {
  display: block;
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid #a48a7b;
  background: #fffdf9;
  color: var(--ink);
  border-radius: 0;
}
#order-form textarea { resize: vertical; }
#order-form button[type="submit"] { margin-top: .85rem; }
.field-help { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
#order-result { border-top: 1px solid var(--line); margin-top: 1.2rem; }
.order-email-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
#copy-status:empty { display: none; }

.catalogue-viewer {
  width: min(48rem, calc(100% - 1rem));
  max-width: none;
  max-height: calc(100% - 1rem);
  padding: 0;
  border: 1px solid #564b49;
  background: #080808;
  color: var(--paper);
}
.catalogue-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .75rem; background: #151212; }
.catalogue-viewer-header h2 { font: 1rem/1.3 var(--sans); }
.catalogue-viewer-header button { min-height: 44px; padding: .35rem .75rem; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
#catalogue-viewer-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 5rem); object-fit: contain; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .masthead { display: grid; grid-template-columns: 1fr auto; gap: .65rem; padding-block: .62rem; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; }
  .masthead .cart-toggle { grid-row: 1; grid-column: 2; }
  .hero, .story, .product, .orders { grid-template-columns: 1fr; }
  .hero-photo { min-height: clamp(15rem, 65vw, 28rem); }
  .product-image { min-height: clamp(17rem, 65vw, 27rem); }
  .shop-heading { align-items: start; flex-direction: column; }
  .story .eyebrow { margin: 0; }
}
@media (max-width: 460px) {
  .shop-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shop-card-photo img { transition: none; }
}

.cart-drawer.checkout-open { width: min(100%, 56rem); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; gap: 1.6rem; }
.checkout-grid h3 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin-bottom: .85rem; }
.checkout-summary { padding: clamp(1rem, 3vw, 1.5rem); background: var(--cream); }
.checkout-items { padding: 0; margin: 0; list-style: none; }
.checkout-items li, .checkout-line { display: flex; justify-content: space-between; gap: .75rem; }
.checkout-items li { border-bottom: 1px solid var(--line); padding-block: .6rem; }
.checkout-items strong { white-space: nowrap; }
.checkout-line span, .checkout-line output { text-align: right; }
.checkout-total { border-block: 1px solid var(--line); padding-block: .6rem; }
#order-result { border: 0; margin-top: 0; padding-block: 1.1rem; }
#order-error, #postcode-coverage { color: #842536; }
#order-error:empty, #postcode-coverage:empty { display: none; }
#order-form button:disabled { opacity: .7; cursor: wait; }
@media (max-width: 650px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.manage-orders { padding: clamp(2rem, 5vw, 4rem) var(--gutter); max-width: 82rem; margin-inline: auto; }
.manage-orders h1 { font-size: clamp(2.6rem, 5.2vw, 4rem); margin-bottom: 1.5rem; }
.manage-orders h2 { font-size: 1.7rem; }
.manage-order { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; border: 1px solid var(--line); padding: 1.25rem; margin-bottom: 1rem; }
.manage-update { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.manage-update label { display: grid; gap: .25rem; }
.manage-update input, .manage-update select { border: 1px solid var(--line); min-height: 44px; padding: .35rem; background: var(--paper); color: var(--ink); }
.manage-update input { max-width: 8rem; }
.manage-save-status { flex-basis: 100%; margin: 0; }
.manage-save-status:empty { display: none; }
.manage-reply { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; }
.manage-reply summary { cursor: pointer; font-weight: 650; }
.manage-reply label { display: grid; gap: .35rem; }
.manage-reply textarea { width: 100%; padding: .65rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; resize: vertical; }
.manage-reply-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .65rem; }
@media (max-width: 650px) {
  .manage-order { grid-template-columns: 1fr; }
}

.suspiros-shop { padding-top: 0; }
.suspiros-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); background: var(--cream); }
.suspiros-card .shop-card-photo { aspect-ratio: 1.65; }
.suspiros-card .shop-card-photo img { object-position: center 76%; }
.suspiros-card .shop-card-body { justify-content: center; padding: clamp(1.25rem, 4vw, 3rem); }
.suspiros-card .product-options { margin-top: 0; max-width: 24rem; }
.suspiros-card .field-help { margin-top: 0; }
@media (max-width: 700px) {
  .suspiros-card { grid-template-columns: 1fr; }
}
