/* Tiffins 'N Things: global styles (v2, first pass 2026-10-05)
   Tokens from Dena's "Save the Planet.. Daily" badge: sage, charcoal, cream.
   Gloock for display, Hanken Grotesk for body. One radius scale, one spacing
   scale, static by default. */

:root {
  --cream: #F7F4EC;
  --charcoal: #333333;
  --sage: #9AA388;
  --sage-deep: #57604C;
  --sage-tint: #E4E4D8;
  --sage-tint-soft: #EAE9DE;
  --ink-band: #3F403D;
  --white: #FFFFFF;

  --font-display: 'Gloock', Georgia, serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --radius-tile: 4px;
  --radius-band: 4px;
  --radius-pill: 4px;

  --space-section: clamp(4rem, 8vw, 6.5rem);
  --wrap: 1180px;
}

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

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk-variable.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

/* A stray wide element must never give the page a sideways scroll: that breaks the sticky header. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--sage-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--charcoal); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Grid children must shrink below their min-content width on small screens. */
.grid > li,
.hero__grid > div,
.spotlight__grid > div,
.about-grid > div,
.contact-grid > div,
.sale-banner > div {
  min-width: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--solid {
  background: var(--sage-deep);
  color: var(--cream);
}
.btn--solid:hover { background: var(--charcoal); color: var(--cream); }

.btn--ghost {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}
.btn--ghost:hover { background: var(--charcoal); color: var(--cream); }

.btn--cream {
  background: var(--cream);
  color: var(--charcoal);
}
.btn--cream:hover { background: var(--white); color: var(--charcoal); }

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--sage);
  color: var(--charcoal);
  text-align: center;
}
.announce p {
  margin: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

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

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--cream);
  border-bottom: 1px solid var(--sage-tint);
  overflow-anchor: none; /* stops scroll anchoring fighting the height change */
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  transition: min-height 0.2s ease;
}

.site-header.is-thin .site-header__bar { min-height: 66px; }

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.45rem);
  line-height: 1.1;
  display: inline-block;
  padding-block: 0.5rem;
  transition: font-size 0.2s ease;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--sage-deep); }
.site-header.is-thin .wordmark { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

.cart-link {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  top: 50%;
  translate: 0 -50%;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.cart-link:hover { color: var(--sage-deep); }

.nav-toggle {
  display: none;
  position: absolute;
  left: clamp(1.25rem, 4vw, 2.5rem);
  top: 50%;
  translate: 0 -50%;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  background: none;
  border: 0;
  padding: 0.5rem 0;
  min-height: 44px;
  cursor: pointer;
}

.site-nav__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  padding-block: 0.9rem;
}

.site-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 2px solid transparent;
}
.site-nav__link:hover { color: var(--sage-deep); }
.site-nav__link[aria-current='page'] {
  border-bottom-color: var(--sage-deep);
  color: var(--sage-deep);
}

/* ---------- Bottom bar (phone) ---------- */

.bottom-bar {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  margin: 0;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 44ch;
  margin-bottom: 1rem;
}

.hero__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 2.5rem; }
.hero__all { font-weight: 600; text-underline-offset: 0.3em; }
.featured__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.featured__head h2 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }
.featured { display: grid; grid-template-columns: repeat(var(--featured-count, 4), minmax(0, 1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.featured:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 6px; }
.featured__item { min-width: 0; }
.featured__image { display: flex; height: clamp(240px, 22vw, 310px); align-items: center; justify-content: center; padding: 0.5rem 0.7rem 1rem; }
.featured__image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(51, 51, 51, 0.09)); transition: transform 180ms ease; }
.featured__image:hover img { transform: translateY(-5px); }
.featured__image--cloth img { padding: 1rem 1.5rem; }
.featured__details { border-top: 1px solid rgba(51,51,51,0.2); padding-top: 1rem; }
.featured__details h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin: 0 0 0.35rem; }
.featured__details h3 a { text-decoration: none; }
.featured__description { font-size: 0.86rem; line-height: 1.4; margin: 0 0 1rem; min-height: 2.4em; }
.featured__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.95rem; }
.featured__bottom a { font-weight: 500; text-decoration: none; border: 1px solid var(--sage-deep); border-radius: var(--radius-tile); padding: 0.5rem 1rem; min-height: 44px; display: inline-flex; align-items: center; gap: 0.5rem; }
.featured__bottom a:hover { background: var(--sage-deep); color: var(--cream); }
.featured__controls { display: none; gap: 0.5rem; }
.featured__controls button { width: 44px; height: 44px; border: 1px solid var(--sage); border-radius: 50%; background: transparent; color: var(--charcoal); cursor: pointer; }
.featured__controls button:disabled { opacity: 0.35; cursor: default; }

.hero__photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  align-items: center;
}

.hero__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-tile);
  padding: 0;
  margin: 0;
  aspect-ratio: 1;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(51, 51, 51, 0.1));
}
.hero__photo--bottle img { padding: 0 4%; }
.hero__photo--cloth img { padding: 6% 10%; }
.hero__photo:hover { outline: 1px solid var(--sage); outline-offset: 5px; }
.hero__photo:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 5px; }
.spotlight__photo.spotlight__photo--cutout {
  display: block;
  background: transparent;
  padding: 0;
}
.spotlight__photo--cutout img {
  max-height: 380px;
  filter: drop-shadow(0 5px 5px rgba(51, 51, 51, 0.1));
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-section); }
.section--tint { background: var(--sage-tint-soft); }

.section__head {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section__head p { margin: 0; }

.section__head--solo { margin-bottom: 0; }

.section__more {
  text-align: center;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* ---------- Product cards and grids ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  display: block;
  text-decoration: none;
  color: var(--charcoal);
}
.card:hover .card__name { color: var(--sage-deep); }

.card__tile {
  position: relative;
  display: block;
  background: transparent;
  border-radius: var(--radius-tile);
  padding: 5%;
  margin-bottom: 0.8rem;
}
.card--soft .card__tile { background: transparent; }

.card__tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Transparent cutouts preserve the original product colour on every surface. */
.card__tile img,
.spotlight__photo img,
.category__circle img,
.gallery__main img,
.gallery__thumb img,
.cart-line__thumb img {
  mix-blend-mode: normal;
}
.spotlight__photo--cutout img { mix-blend-mode: normal; }

.card__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--sage-deep);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}
.card__tag--soldout {
  background: var(--charcoal);
}

.card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  text-align: center;
}
.card__placeholder-initial {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--sage-deep);
  line-height: 1;
}
.card__placeholder-note {
  font-size: 0.8rem;
  color: var(--charcoal);
  opacity: 0.75;
}

.card__name {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.card__price {
  display: block;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.card__was {
  color: var(--charcoal);
  opacity: 0.6;
  margin-right: 0.4rem;
}

/* ---------- Spotlight band ---------- */

.spotlight { background: var(--sage); }
.spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: var(--space-section);
}
.spotlight h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.spotlight p { max-width: 40ch; }
.spotlight__photo {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius-band);
  padding: 8%;
}
.spotlight__photo img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: contain;
}

/* ---------- Category circles (the badge echo) ---------- */

.categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category { text-align: center; min-width: 0; }

.category__circle {
  display: block;
  background: var(--sage-tint);
  border-radius: 50%;
  padding: 14%;
  margin-bottom: 1rem;
  transition: background-color 0.15s ease;
}
.category:hover .category__circle { background: var(--sage-tint-soft); }
.category__circle img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.category__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--charcoal);
}

.category a { text-decoration: none; }
.category a:hover .category__name { color: var(--sage-deep); }

/* ---------- Story band ---------- */

.story { text-align: center; }
.story__inner { max-width: 44rem; margin-inline: auto; }
.story h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }

.story__icons {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}
.story__icons li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.story__icons svg {
  width: 44px;
  height: 44px;
  stroke: var(--sage-deep);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story__badge {
  width: clamp(120px, 16vw, 170px);
  border-radius: 50%;
  margin: 0 auto 1.75rem;
}

/* ---------- Sale banner ---------- */

.sale-banner {
  background: var(--ink-band);
  color: var(--cream);
  border-radius: var(--radius-band);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.sale-banner h2 { color: var(--cream); font-size: clamp(2rem, 3.8vw, 3rem); }
.sale-banner p { color: var(--cream); opacity: 0.9; max-width: 38ch; }
.sale-banner__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.sale-banner .card__tile { background: var(--cream); }
.sale-banner .card__name,
.sale-banner .card__price,
.sale-banner .card__was { color: var(--cream); }
.sale-banner .card:hover .card__name { color: var(--white); text-decoration: underline; }

/* ---------- Page head (inner pages) ---------- */

.page-head {
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-head p {
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 0;
}

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

.filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 0;
  list-style: none;
}
.filter button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 1.2rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sage);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
}
.filter button:hover { border-color: var(--sage-deep); }
.filter button[aria-pressed='true'] {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--cream);
}

.shop-count {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 2.25rem;
  margin-bottom: 0;
}

/* ---------- Product page ---------- */

.crumbs {
  font-size: 0.88rem;
  padding-block: 1.25rem 0;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.35rem;
  opacity: 0.5;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 3.5rem) var(--space-section);
  align-items: start;
}

.gallery__main {
  background: transparent;
  border-radius: var(--radius-band);
  padding: 3%;
}
.gallery__main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.gallery__thumb {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: var(--sage-tint-soft);
  padding: 8px;
  cursor: pointer;
}
.gallery__thumb[aria-current='true'] { border-color: var(--sage-deep); }
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__info h1 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-bottom: 0.35rem;
}

.product__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.product__price s {
  font-size: 1.1rem;
  opacity: 0.6;
  margin-right: 0.5rem;
}

.product__stock {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 1.5rem;
}
.product__stock--out { color: var(--charcoal); }

.buy-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-pill);
}
.qty button {
  font: inherit;
  font-size: 1.1rem;
  width: 2.6rem;
  height: 2.75rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--charcoal);
}
.qty output {
  min-width: 2rem;
  text-align: center;
  font-weight: 500;
}

.cart-feedback {
  font-size: 0.95rem;
  min-height: 1.5em;
}

.product__description {
  margin-top: 2rem;
  border-top: 1px solid var(--sage-tint);
  padding-top: 1.75rem;
  max-width: 38rem;
}
.product__description h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

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

.cart-lines {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--sage-tint-soft);
  border-radius: var(--radius-tile);
  padding: 1rem;
}
.cart-line__thumb {
  width: 96px;
  height: 96px;
  border-radius: 4px;
  background: transparent;
  padding: 8px;
}
.cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-line__name {
  margin: 0 0 0.2rem;
  font-weight: 500;
}
.cart-line__meta {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  opacity: 0.75;
}
.cart-line__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cart-line__remove {
  font: inherit;
  font-size: 0.88rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.cart-line__price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  white-space: nowrap;
}

.cart-summary {
  display: grid;
  gap: 1rem;
  justify-items: start;
  border-top: 1px solid var(--sage-tint);
  padding-top: 1.5rem;
  max-width: 26rem;
}
.cart-summary__total {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.notice {
  background: var(--sage-tint);
  border-radius: var(--radius-tile);
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
}

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

.form-grid { display: grid; gap: 1.1rem; max-width: 34rem; }
.form-grid label { font-weight: 500; font-size: 0.95rem; display: block; margin-bottom: 0.35rem; }
.form-grid input,
.form-grid textarea {
  font: inherit;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--sage);
  border-radius: 4px;
  background: var(--white);
  color: var(--charcoal);
}
.form-grid textarea { min-height: 9rem; resize: vertical; }
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--sage-deep);
  outline-offset: 1px;
  border-color: var(--sage-deep);
}

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

.letter-form { margin-top: 1rem; }
.letter-form label { font-weight: 500; font-size: 0.92rem; display: block; margin-bottom: 0.35rem; }
.letter-form__row { display: flex; gap: 0.6rem; }
.letter-form__row .btn { flex: none; white-space: nowrap; }
.letter-form input {
  font: inherit;
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--charcoal);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-details p { margin-bottom: 0.75rem; }
.contact-details .detail-line { font-size: 1.1rem; }

/* ---------- About page ---------- */

.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.1em; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-grid__badge {
  width: min(100%, 340px);
  margin-inline: auto;
  border-radius: 50%;
}

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

.site-footer {
  background: var(--sage-tint);
  border-top: 1px solid var(--sage);
  margin-top: var(--space-section);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.site-footer__col { min-width: 0; }
.site-footer__col a[href^='mailto:'],
.site-footer__col a[href^='tel:'] { overflow-wrap: anywhere; }

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.site-footer__col a {
  color: var(--charcoal);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--sage-deep); text-decoration: underline; }

.site-footer__brand { display: inline-block; margin-bottom: 1.5rem; }
.site-footer__badge {
  width: 150px;
  border-radius: 50%;
}

.site-footer__base {
  background: var(--ink-band);
  color: var(--cream);
}
.site-footer__base-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
  font-size: 0.88rem;
}
.site-footer__base a { color: var(--cream); }

/* ---------- Mode badge (dev only) ---------- */

.mode-badge {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 300;
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  opacity: 0.85;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__letter { grid-column: 1 / -1; max-width: 30rem; }
}

@media (max-width: 860px) {
  body { padding-bottom: 60px; }

  .nav-toggle { display: block; }

  .site-header__bar { min-height: 72px; }
  .site-header.is-thin .site-header__bar { min-height: 58px; }

  .site-nav {
    display: none;
    border-top: 1px solid var(--sage-tint);
  }
  .site-nav.is-open { display: block; }
  .site-nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-block: 0.5rem;
  }
  .site-nav__link {
    width: 100%;
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--sage-tint);
  }
  .site-nav__link[aria-current='page'] { border-bottom: 1px solid var(--sage-tint); }

  .bottom-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: var(--ink-band);
  }
  .bottom-bar__link {
    color: var(--cream);
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem 0.5rem;
  }
  .bottom-bar__link + .bottom-bar__link { border-left: 1px solid rgba(247, 244, 236, 0.25); }
  .bottom-bar__link:hover { color: var(--white); }

  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__intro { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.7rem; }
  .hero h1 br { display: none; }
  .hero__lede { font-size: 1rem; }
  .featured { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 1.25rem; }
  .featured__item { flex: 0 0 80%; scroll-snap-align: start; }
  .featured__image { height: 250px; }
  .featured__description { min-height: 0; }
  .featured__controls { display: flex; }
  .hero__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__photo { aspect-ratio: 1.1; }

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

  .spotlight__grid,
  .sale-banner,
  .product,
  .contact-grid,
  .about-grid { grid-template-columns: 1fr; }

  .categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 1rem;
  }
  .category { width: calc((100% - 2rem) / 3); }
  .category__name { font-size: 1.05rem; }

  .contact-grid .contact-details { order: -1; }

  .site-footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .grid { gap: 0.9rem; }
  .card__tile { padding: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  .featured__image img { transition: none; }
  .featured__image:hover img { transform: none; }
}

/* The Bare Home reference: quiet product surfaces and restrained controls. */
.card__name { font-size: 1.05rem; font-weight: 500; }
.card__price { margin-top: 0.4rem; }
.card__tile img { transition: transform 180ms ease; }
.card:hover .card__tile img { transform: scale(1.025); }
.gallery__thumb { border-radius: 4px; background: transparent; border-color: var(--sage-tint); }
.buy-row > .btn { flex: 1; }
.product__description { font-size: 1rem; line-height: 1.75; }
.product__description p { white-space: pre-line; }
@media (min-width: 861px) { .gallery { position: sticky; top: 150px; } }
@media (max-width: 860px) { .product { padding-top: 1rem; gap: 1.75rem; } .gallery__main { max-width: 440px; margin-inline: auto; } .product__info h1 { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { .card__tile img { transition: none; } .card:hover .card__tile img { transform: none; } }

/* Round 2 (2026-10-10): products without a confirmed price, and the Sale tile's label. */
.card__price--pending,
.product__price--pending { font-style: italic; opacity: 0.8; }
.featured__image--strips img { padding: 0.5rem 1rem; }
.category__label {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--sage-deep);
}
/* With the home sale banner gone, the tinted story band is the last section: no cream strip before the footer. */
main:has(> .section--tint:last-child) + .site-footer { margin-top: 0; }
