/*
  Souvera, Australian theme.
  Red ochre, eucalyptus green, dusty sand and charcoal.
  Every texture here (corrugated iron, painted tin, rivets, stitching,
  sun-bleached grain) is a CSS gradient or border, so no extra image files.
*/

:root {
  --ochre-700: #8a3920;
  --ochre-600: #a8442a;
  --ochre-500: #c4572f;
  --ochre-300: #e39b78;
  --gum-800: #2c4639;
  --gum-600: #4b6b58;
  --gum-200: #b8cdb9;
  --sand-50: #fbf7ee;
  --sand-100: #f4ecdb;
  --sand-200: #e9dcc0;
  --sand-300: #d8c7a2;
  --char-900: #1f1e1c;
  --char-800: #2b2a27;
  --char-600: #4d4a44;
  --focus: var(--char-900);
  --slab: Rockwell, "Roboto Slab", Georgia, serif;
  --sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --radius: 4px;
  /* galvanised corrugated iron, ridges every 16px */
  --iron: repeating-linear-gradient(
    90deg,
    #7b7f7a 0,
    #a3a7a2 4px,
    #c8cbc6 8px,
    #a3a7a2 12px,
    #7b7f7a 16px
  );
  /* ridges only, laid over a painted colour */
  --tin: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.22) 0,
    rgba(255, 255, 255, 0.08) 6px,
    rgba(0, 0, 0, 0.22) 12px
  );
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font: 1rem / 1.6 var(--sans);
  color: var(--char-800);
  /* sun glare, faint grain, bleached sand */
  background:
    radial-gradient(
      70rem 30rem at 85% -10rem,
      rgba(255, 255, 255, 0.8),
      transparent 70%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(139, 104, 46, 0.05) 0 1px,
      transparent 1px 7px
    ),
    var(--sand-100);
}

main {
  flex: 1 0 auto;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--slab);
  line-height: 1.15;
  color: var(--char-900);
}

h1 {
  font-size: clamp(2.1rem, 1.3rem + 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.35rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--ochre-700);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--char-900);
}

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

/* ---------- Helpers ---------- */

.on-dark {
  --focus: var(--sand-100);
}

.wrap {
  width: min(75rem, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  --focus: var(--sand-50);
  position: absolute;
  top: -4rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--char-900);
  color: var(--sand-50);
  font-weight: 700;
}

.skip:focus {
  top: 0.5rem;
}

.muted {
  color: var(--char-600);
  font-size: 0.9rem;
}

.lede {
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--char-600);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font: 700 0.78rem / 1.2 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gum-600);
}

/* stitched underline under section titles */
.rule::after {
  content: "";
  display: block;
  width: 5rem;
  height: 0.35rem;
  margin-top: 0.6rem;
  background: repeating-linear-gradient(
    90deg,
    var(--rule, var(--ochre-600)) 0 0.8rem,
    transparent 0.8rem 1.2rem
  );
}

.hl {
  color: var(--ochre-600);
}

@keyframes rise {
  from {
    transform: translateY(14px);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--char-900);
  border-radius: var(--radius);
  background: var(--ochre-600);
  color: #fff;
  font: 700 0.95rem / 1.1 var(--slab);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--char-900);
  cursor: pointer;
}

.btn:hover {
  background: var(--ochre-700);
  color: #fff;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--char-900);
}

.btn--ghost {
  background: transparent;
  color: var(--char-900);
}

.btn--ghost:hover {
  background: var(--sand-200);
  color: var(--char-900);
}

.btn--light {
  background: var(--sand-50);
  color: var(--char-900);
}

.btn--light:hover {
  background: var(--sand-200);
  color: var(--char-900);
}

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

.link-btn {
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--ochre-700);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--char-900);
}

/* ---------- Forms ---------- */

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.field .opt {
  color: var(--char-600);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--char-900);
  border-radius: var(--radius);
  background: #fff;
  color: var(--char-900);
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

select {
  width: auto;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--ochre-600);
  background: #fff4ee;
}

.field-error {
  margin: 0.3rem 0 0;
  color: var(--ochre-700);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- Banner and header ---------- */

.demo-banner {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--gum-800);
  color: var(--sand-100);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-header {
  background: var(--sand-50);
  border-bottom: 3px solid var(--char-900);
}

/* corrugated iron eave, weathered towards the bottom edge */
.site-header::after {
  content: "";
  display: block;
  height: 0.75rem;
  border-top: 3px solid var(--char-900);
  background:
    linear-gradient(180deg, transparent 40%, rgba(138, 57, 32, 0.4)),
    var(--iron);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.75rem 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--char-900);
  text-decoration: none;
}

.logo:hover {
  color: var(--char-900);
}

/* red-ochre sun with a gum leaf */
.logo__mark {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border: 3px solid var(--char-900);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    var(--ochre-500),
    var(--ochre-700)
  );
  box-shadow: 2px 2px 0 var(--char-900);
}

.logo__mark::after {
  content: "";
  position: absolute;
  top: 24%;
  left: 24%;
  width: 52%;
  height: 52%;
  border-radius: 0 100% 0 100%;
  background: var(--gum-200);
}

.logo__text {
  display: grid;
  line-height: 1;
}

.logo__name {
  font: 800 1.45rem / 1 var(--slab);
  letter-spacing: -0.01em;
}

.logo__sub {
  margin-top: 0.25rem;
  font: 700 0.65rem / 1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ochre-700);
}

.nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border-bottom: 4px solid transparent;
  color: var(--char-900);
  font: 700 0.85rem / 1 var(--slab);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--ochre-600);
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--ochre-600);
  color: #fff;
  font: 700 0.8rem / 1 var(--sans);
  letter-spacing: 0;
}

@media (max-width: 40rem) {
  .nav {
    flex: 1 1 100%;
  }

  .nav ul {
    justify-content: space-between;
  }

  .nav a {
    padding: 0 0.4rem;
  }
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  display: grid;
}

.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 55% 40%;
}

.hero__wrap {
  position: relative;
  padding-bottom: 2rem;
}

/* painted sign board: rivets in the corners, stitched inner edge */
.hero__panel {
  position: relative;
  margin-top: -2.5rem;
  padding: 2.25rem 1.5rem 1.75rem;
  border: 3px solid var(--char-900);
  background-color: var(--sand-50);
  background-image:
    radial-gradient(circle at 14px 14px, #6b6f6a 0 3px, transparent 4px),
    radial-gradient(
      circle at calc(100% - 14px) 14px,
      #6b6f6a 0 3px,
      transparent 4px
    ),
    radial-gradient(
      circle at 14px calc(100% - 14px),
      #6b6f6a 0 3px,
      transparent 4px
    ),
    radial-gradient(
      circle at calc(100% - 14px) calc(100% - 14px),
      #6b6f6a 0 3px,
      transparent 4px
    );
  box-shadow: 6px 6px 0 var(--char-900);
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dashed var(--sand-300);
  pointer-events: none;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.perks-line {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--char-800);
}

@media (min-width: 56rem) {
  .hero {
    align-items: end;
    min-height: 36rem;
  }

  .hero__img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      rgba(31, 30, 28, 0.6),
      rgba(31, 30, 28, 0) 60%
    );
  }

  .hero__wrap {
    z-index: 2;
    padding-bottom: 3rem;
  }

  .hero__panel {
    width: min(35rem, 100%);
    margin-top: 0;
    padding: 2.5rem 2.5rem 2.25rem;
  }
}

/* ---------- Home: perks strip ---------- */

.perks {
  border-block: 3px solid var(--char-900);
  background: var(--tin), var(--ochre-600);
}

.perks ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0 auto;
  padding: 0.9rem 0;
  list-style: none;
  color: #fff;
  font: 700 0.8rem / 1.3 var(--slab);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* rivet dot before each perk */
.perks li::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--sand-100);
  vertical-align: middle;
}

@media (min-width: 48rem) {
  .perks ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Home: story and newsletter ---------- */

.more {
  margin: 2rem 0 0;
  text-align: center;
}

.story {
  border-block: 3px solid var(--char-900);
  background: var(--sand-200);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: block;
  margin-bottom: 0.25rem;
  font: 800 3rem / 1 var(--slab);
  color: var(--ochre-600);
}

/* where supported, empty alt text stops screen readers reading the number twice */
@supports (content: "" / "") {
  .steps li::before {
    content: counter(step, decimal-leading-zero) / "";
  }
}

.steps p {
  margin: 0;
  color: var(--char-600);
}

.newsletter {
  --rule: var(--ochre-300);
  background: var(--gum-800);
  color: var(--sand-100);
}

.newsletter h2 {
  color: var(--sand-50);
}

.newsletter .lede,
.newsletter .muted {
  color: var(--sand-200);
}

.newsletter .field-error {
  color: #ffd2bc;
}

.nl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nl-row input {
  flex: 1 1 15rem;
  width: auto;
}

.nl-form {
  max-width: 34rem;
}

.nl-form .field {
  margin-bottom: 0;
}

.form-msg {
  min-height: 1.5rem;
  margin: 0.5rem 0 0;
  font-weight: 700;
}

/* ---------- Shop: toolbar and product cards ---------- */

.perks-line--page {
  margin-bottom: 0;
  color: var(--ochre-700);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.75rem;
  padding-block: 1rem;
  border-block: 2px dashed var(--sand-300);
}

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

.chip {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 2px solid var(--char-900);
  border-radius: var(--radius);
  background: var(--sand-50);
  color: var(--char-900);
  font: 700 0.85rem / 1 var(--slab);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.chip:hover {
  background: var(--sand-200);
}

.chip[aria-pressed="true"] {
  background: var(--char-900);
  color: var(--sand-50);
}

.sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.count {
  margin: 0 0 1.25rem;
  color: var(--char-600);
  font-size: 0.9rem;
}

.size-help {
  margin: 2rem 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.75rem 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--char-900);
  background: var(--sand-50);
  box-shadow: 6px 6px 0 var(--sand-300);
}

.card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 3px solid var(--char-900);
  background: var(--sand-200);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

@media (hover: hover) {
  .card:hover .card__media img {
    transform: scale(1.04);
  }
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem 1.1rem;
}

.card__cat {
  margin: 0 0 0.3rem;
  font: 700 0.72rem / 1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gum-600);
}

.card__name {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.card__blurb {
  margin: 0 0 0.75rem;
  color: var(--char-600);
  font-size: 0.95rem;
}

.card__price {
  margin: 0 0 1rem;
  font: 800 1.5rem / 1 var(--slab);
  color: var(--ochre-700);
}

.buy {
  margin-top: auto;
}

/* size picker: radio inputs drawn as buttons */
.sizes {
  min-width: 0;
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
}

.sizes legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font: 700 0.72rem / 1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--char-600);
}

.sizes__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}

.sizes input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sizes label {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  border: 2px solid var(--char-900);
  border-radius: 3px;
  background: #fff;
  color: var(--char-900);
  font: 700 0.8rem / 1 var(--sans);
  cursor: pointer;
  user-select: none;
}

.sizes label:hover {
  background: var(--sand-200);
}

.sizes input:checked + label {
  background: var(--char-900);
  color: var(--sand-50);
}

.sizes input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.buy.is-invalid .sizes label {
  border-color: var(--ochre-600);
}

.buy__msg {
  min-height: 1.4rem;
  margin: 0 0 0.5rem;
  color: var(--ochre-700);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- Cart ---------- */

/* items, then summary, then details on a phone; summary beside both on desktop */
.cart-layout {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
  grid-template-areas:
    "items"
    "summary"
    "checkout";
}

.cart-items {
  grid-area: items;
}

.summary {
  grid-area: summary;
}

.cart-checkout {
  grid-area: checkout;
}

@media (min-width: 62rem) {
  .cart-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas:
      "items summary"
      "checkout summary";
    align-items: start;
  }
}

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--char-900);
}

.line {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  grid-template-areas:
    "img info info"
    "qty qty total";
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  border-bottom: 2px dashed var(--sand-300);
}

.line__img {
  grid-area: img;
  width: 5rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  border: 2px solid var(--char-900);
}

.line__info {
  grid-area: info;
}

.line__name {
  margin: 0;
  font-size: 1.05rem;
}

.line__meta {
  margin: 0.15rem 0 0;
  color: var(--char-600);
  font-size: 0.9rem;
}

.qty {
  display: inline-flex;
  grid-area: qty;
  justify-self: start;
  align-items: center;
  border: 2px solid var(--char-900);
  border-radius: var(--radius);
  background: #fff;
}

.qty__btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--char-900);
  font: 700 1.25rem / 1 var(--sans);
  cursor: pointer;
}

.qty__btn:hover:not(:disabled) {
  background: var(--sand-200);
}

.qty__btn:disabled {
  color: #8d8a82;
  cursor: not-allowed;
}

.qty__n {
  min-width: 2.25rem;
  font-weight: 700;
  text-align: center;
}

.line__total {
  grid-area: total;
  margin: 0;
  font: 800 1.2rem / 1 var(--slab);
  color: var(--char-900);
}

@media (min-width: 40rem) {
  .line {
    grid-template-columns: 6rem minmax(0, 1fr) auto 5.5rem;
    grid-template-areas: "img info qty total";
  }

  .line__img {
    width: 6rem;
  }

  .line__total {
    text-align: right;
  }
}

.summary {
  padding: 1.25rem;
  border: 3px solid var(--char-900);
  background: var(--sand-50);
  box-shadow: 6px 6px 0 var(--sand-300);
}

.summary h2 {
  font-size: 1.4rem;
}

.totals {
  margin: 0 0 1rem;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--sand-300);
}

.totals dt {
  color: var(--char-600);
}

.totals dd {
  margin: 0;
  font-weight: 700;
}

.totals .totals__total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 3px double var(--char-900);
  border-bottom: 0;
  font: 800 1.35rem / 1.2 var(--slab);
  color: var(--char-900);
}

.totals .totals__total dt {
  color: inherit;
}

.checkout {
  max-width: 40rem;
}

.checkout h2 {
  font-size: 1.4rem;
}

.empty {
  margin-top: 1.5rem;
  padding: 2.5rem 1.5rem;
  border: 3px dashed var(--sand-300);
  background: var(--sand-50);
  text-align: center;
}

.notice {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  overflow-wrap: anywhere;
  border: 3px solid var(--gum-800);
  background: #e4ede4;
  color: var(--char-900);
  box-shadow: 5px 5px 0 var(--gum-800);
}

.notice h2 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

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

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 56rem) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
  }
}

.showroom {
  padding: 1.5rem;
  border: 3px solid var(--char-900);
  background: var(--gum-800);
  color: var(--sand-100);
  box-shadow: 6px 6px 0 var(--sand-300);
}

.showroom h2 {
  color: var(--sand-50);
  font-size: 1.5rem;
}

.showroom a {
  color: var(--sand-50);
  overflow-wrap: anywhere;
}

.showroom address {
  margin-bottom: 1rem;
  font-style: normal;
}

.showroom .muted {
  color: var(--sand-200);
}

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

.faq {
  margin-top: 3.5rem;
}

.faq details {
  margin-bottom: 0.75rem;
  border: 3px solid var(--char-900);
  background: var(--sand-50);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font: 700 1.05rem / 1.3 var(--slab);
  color: var(--char-900);
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 3px solid var(--ochre-600);
  border-bottom: 3px solid var(--ochre-600);
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

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

.site-footer {
  background: var(--char-900);
  color: var(--sand-200);
}

.site-footer::before {
  content: "";
  display: block;
  height: 0.9rem;
  border-bottom: 3px solid var(--ochre-600);
  background:
    linear-gradient(180deg, rgba(138, 57, 32, 0.45), transparent 60%),
    var(--iron);
}

.site-footer a {
  color: var(--sand-100);
}

.site-footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding-block: 2.5rem 1.5rem;
}

.footer__brand {
  margin: 0 0 0.5rem;
  font: 800 1.5rem / 1.1 var(--slab);
  color: var(--sand-50);
}

.footer__title {
  display: block;
  margin: 0 0 0.75rem;
  font: 700 0.8rem / 1.2 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-300);
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li {
  margin-bottom: 0.35rem;
}

.site-footer address {
  font-style: normal;
  overflow-wrap: anywhere;
}

.site-footer .field-error {
  color: #ffd2bc;
}

.footer__legal {
  margin: 0 auto;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.25rem;
  border-left: 6px solid var(--ochre-500);
  border-radius: var(--radius);
  background: var(--char-900);
  color: var(--sand-50);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Accessibility preferences ---------- */

@media (forced-colors: active) {
  .sizes input:checked + label {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }
}

/* Motion is opt-in: visitors who ask for reduced motion get none of it. */
@media (prefers-reduced-motion: no-preference) {
  .hero__panel {
    animation: rise 0.6s ease-out both;
  }

  .card {
    animation: rise 0.45s ease-out both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }

  .btn {
    transition:
      transform 0.1s,
      box-shadow 0.1s,
      background-color 0.15s;
  }

  .card__media img {
    transition: transform 0.5s;
  }

  .faq summary::after {
    transition: transform 0.2s;
  }

  .toast {
    transition:
      opacity 0.2s,
      transform 0.2s;
  }
}

/* Keep last: this plain rule only wins over .card, .cart-layout and friends by coming after them. */
[hidden] {
  display: none;
}
