img { height: auto; }

:root {
    --forest: #1F3D2B;
    --cream: #F7F1E3;
    --clay: #C97B4A;
    --sage: #8B9B7E;
    --ink: #2B2620;
    --forest-light: #2F4F3A;
    --cream-dark: #EDE4CD;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Archivo', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
  }

  h1, h2, h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; letter-spacing: -0.005em; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button { font-family: inherit; cursor: pointer; }

  .eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
  }

  /* ---------- NAV ---------- */
  .nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--cream);
    border-bottom: 1px solid rgba(31,61,43,0.12);
    padding: 16px 40px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-left { display: flex; align-items: center; gap: 14px; }
  .nav-logo { width: 46px; height: 46px; }
  .nav-wordmark { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.15rem; }
  .nav-links { display: flex; gap: 32px; font-size: 0.92rem; font-weight: 500; }
  .nav-links a { position: relative; padding-bottom: 2px; }
  .nav-links a:hover { color: var(--clay); }
  .nav-cta {
    background: var(--forest); color: var(--cream);
    padding: 10px 22px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 600;
    border: 1px solid var(--forest);
    transition: background .2s ease, color .2s ease;
  }
  .nav-cta:hover { background: var(--clay); border-color: var(--clay); }
  .nav-toggle {
    display: none;
    background: none; border: 1px solid rgba(31,61,43,0.25);
    border-radius: 8px; padding: 8px 12px; font-size: 0.85rem;
  }
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
  }

  /* ---------- HERO ---------- */
  .hero {
    padding: 76px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
  }
  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 48px 20px 40px; text-align: center; }
  }
  .hero-eyebrow { color: var(--clay); margin-bottom: 18px; display: block; }
  @media (max-width: 900px) { .hero-eyebrow { text-align: center; } }
  .hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.06;
    margin-bottom: 22px;
  }
  .hero p.lede {
    font-size: 1.15rem;
    opacity: 0.78;
    max-width: 46ch;
    margin-bottom: 32px;
  }
  @media (max-width: 900px) { .hero p.lede { margin-left: auto; margin-right: auto; } }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
  @media (max-width: 900px) { .hero-ctas { justify-content: center; } }
  .btn-primary {
    background: var(--forest); color: var(--cream);
    padding: 14px 30px; border-radius: 100px;
    font-weight: 600; font-size: 0.95rem;
    display: inline-block;
    border: 1px solid var(--forest);
    transition: background .2s ease, transform .2s ease;
  }
  .btn-primary:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-1px); }
  .btn-secondary {
    background: transparent; color: var(--ink);
    padding: 14px 30px; border-radius: 100px;
    font-weight: 600; font-size: 0.95rem;
    display: inline-block;
    border: 1px solid rgba(43,38,32,0.3);
    transition: border-color .2s ease, transform .2s ease;
  }
  .btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }

  .hero-photo {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/11.5;
  }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; }

  /* ---------- HERO GRADIENT + WORDMARK (full-bleed) ---------- */
  .hero { position: relative; z-index: 0; overflow: hidden; }
  .hero::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--forest) 0%, var(--clay) 52%, var(--sage) 100%);
    z-index: -1;
  }
  .hero .hero-eyebrow { color: var(--cream); }
  .hero h1 { color: var(--cream); }
  .hero p.lede { color: var(--cream); opacity: 0.92; }
  .hero .btn-secondary { color: var(--cream); border-color: rgba(247,241,227,0.55); }
  .hero .btn-secondary:hover { border-color: var(--cream); color: var(--cream); }
  .hero-photo { position: relative; }
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(31,61,43,0.55), rgba(201,123,74,0.4) 55%, rgba(139,155,126,0.55));
    z-index: 1;
  }
  .hero-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    letter-spacing: 0.01em;
    color: var(--cream);
    text-align: center;
    padding: 0 28px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.28);
  }

  /* ---------- TRUST / BADGE STRIP ---------- */
  .trust-strip {
    background: var(--forest);
    padding: 18px 40px;
  }
  .trust-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 12px 36px;
    justify-content: center;
    color: var(--cream);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
  }
  .trust-inner span { display: flex; align-items: center; gap: 8px; opacity: 0.92; }
  .trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--clay); flex: none; }

  /* ---------- SECTION SHELL ---------- */
  section { padding: 88px 40px; }
  @media (max-width: 720px) { section { padding: 56px 20px; } }
  .section-inner { max-width: 1180px; margin: 0 auto; }
  .section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
  .section-eyebrow { color: var(--clay); display: block; margin-bottom: 14px; text-align: center; }
  .section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
  .section-sub { opacity: 0.75; font-size: 1.05rem; }

  /* ---------- COLLECTION INTRO BLOCKS ---------- */
  .collection-block {
    max-width: 1180px; margin: 0 auto;
    padding: 60px 40px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
  }
  .collection-block.reverse { direction: rtl; }
  .collection-block.reverse > * { direction: ltr; }
  .collection-block img { border-radius: 20px; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
  .collection-label { color: var(--clay); margin-bottom: 16px; display: block; }
  .collection-block.earth .collection-label { color: var(--forest); }
  .collection-block h2 { font-size: 1.9rem; margin-bottom: 18px; }
  .collection-block p { font-size: 1.02rem; opacity: 0.8; margin-bottom: 14px; }
  .collection-block .btn-secondary { margin-top: 10px; }
  @media (max-width: 900px) {
    .collection-block { grid-template-columns: 1fr; direction: ltr !important; padding: 40px 20px; }
  }

  /* ---------- SHOP GRID ---------- */
  .shop-tabs {
    display: flex; justify-content: center; gap: 10px;
    margin-bottom: 44px; flex-wrap: wrap;
  }
  .shop-tab {
    padding: 10px 22px; border-radius: 100px;
    border: 1px solid rgba(43,38,32,0.22);
    font-size: 0.88rem; font-weight: 600;
    background: transparent; color: var(--ink);
  }
  .shop-tab.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  @media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

  .product-card {
    background: var(--cream-dark);
    border-radius: 20px;
    padding: 20px 20px 24px;
    display: flex; flex-direction: column;
    border: 2.5px solid transparent;
    transition: border-color .2s ease;
  }
  .product-card:hover {
    border-color: var(--forest);
  }
  .product-photo {
    border-radius: 14px; overflow: hidden;
    aspect-ratio: 1/1; margin-bottom: 16px;
    position: relative;
  }
  .product-photo img { width: 100%; height: 100%; object-fit: cover; }
  .stock-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--ink); color: var(--cream);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 100px;
  }
  .collection-chip {
    position: absolute; top: 10px; right: 10px;
    background: rgba(247,241,227,0.92); color: var(--forest);
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 100px;
  }
  .product-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
  .product-blurb { font-size: 0.85rem; opacity: 0.75; margin-bottom: 10px; font-style: italic; }
  .ingredients-toggle {
    background: none; border: none; padding: 0;
    font-size: 0.78rem; font-weight: 700; color: var(--forest);
    display: inline-flex; align-items: center; gap: 5px;
    margin-bottom: 12px; cursor: pointer;
  }
  .ingredients-toggle:hover { color: var(--clay); }
  .ingredients-toggle .chevron { transition: transform .25s ease; font-size: 0.7rem; }
  .ingredients-toggle.open .chevron { transform: rotate(180deg); }
  .ingredients-panel {
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .ingredients-panel.open { max-height: 550px; }
  .ingredients-panel-inner { padding-bottom: 8px; }
  .ingredient-block { margin-bottom: 6px; }
  .ingredient-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--clay); display: block; margin-bottom: 5px;
  }
  .ingredient-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
  .weight-note { font-size: 0.78rem; color: var(--ink); margin-bottom: 8px; }
  .weight-note strong { font-weight: 700; }
  .weight-disclaimer { font-size: 0.72rem; opacity: 0.65; font-style: italic; line-height: 1.4; }
  .ingredient-tag {
    font-size: 0.72rem; background: var(--cream); border: 1px solid rgba(43,38,32,0.14);
    border-radius: 100px; padding: 3px 10px; color: var(--ink); opacity: 0.85;
  }
  .product-notes { font-size: 0.85rem; opacity: 0.72; margin-bottom: 14px; flex: 1; }
  .product-notes strong { opacity: 1; font-weight: 700; color: var(--ink); }
  .product-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; border-top: 1px solid rgba(43,38,32,0.12);
    margin-top: auto;
  }
  .price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.05rem; }
  .add-btn {
    font-size: 0.82rem; font-weight: 700;
    padding: 8px 16px; border-radius: 100px;
    background: var(--forest); color: var(--cream);
    border: 1px solid var(--forest);
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
  }
  .add-btn:hover { background: var(--clay); border-color: var(--clay); transform: scale(1.06); }
  .add-btn:active { transform: scale(0.94); }
  .add-btn:disabled, .add-btn.disabled {
    background: transparent; color: var(--ink); opacity: 0.4;
    border: 1px solid rgba(43,38,32,0.25);
    cursor: not-allowed;
  }

  /* ---------- FORMATS / PRICING STRIP ---------- */
  .formats-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  }
  @media (max-width: 900px) { .formats-grid { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 560px) { .formats-grid { grid-template-columns: 1fr; } }
  .format-card {
    background: var(--cream-dark); border-radius: 18px;
    padding: 28px 22px; text-align: center;
  }
  .format-card .fp { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--forest); margin: 10px 0 6px; }
  .format-card h4 { font-size: 1rem; margin-bottom: 6px; }
  .format-card p { font-size: 0.82rem; opacity: 0.7; }

  /* ---------- QUOTE BANNER ---------- */
  .quote-banner {
    background: var(--forest);
    padding: 80px 40px;
    text-align: center;
  }
  .quote-banner p {
    color: var(--cream);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600; font-style: italic;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    line-height: 1.3;
    max-width: 820px;
    margin: 0 auto;
  }

  /* ---------- VALUES GRID ---------- */
  .values-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
  @media (max-width: 1000px) { .values-grid { grid-template-columns: repeat(3,1fr); } }
  @media (max-width: 640px) { .values-grid { grid-template-columns: repeat(2,1fr); } }
  .value-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--cream-dark);
    border-radius: 16px;
    transition: transform .2s ease;
  }
  .value-card:hover { transform: translateY(-3px); }
  .value-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    transition: transform .3s ease;
  }
  .value-card:hover .value-icon { transform: rotate(-8deg) scale(1.08); }
  .value-card h4 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
  .value-card p { font-size: 0.85rem; opacity: 0.7; }

  /* ---------- FOUNDER STRIP ---------- */
  .founder-strip {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 40px 0;
    text-align: center;
  }
  .founder-strip h2 { font-size: 1.8rem; margin-bottom: 24px; }
  .founder-strip p { font-size: 1.05rem; opacity: 0.8; margin-bottom: 16px; }
  .founder-signoff {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400; font-style: italic;
    color: var(--forest);
    font-size: 1.3rem;
    margin-top: 24px;
  }

  /* ---------- NEWSLETTER / REFERRAL CTA ---------- */
  .referral-band {
    background: var(--cream-dark);
    border-radius: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 48px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
  }
  .referral-band h2 { font-size: 1.7rem; max-width: 16ch; margin-bottom: 10px; }
  .referral-band p { opacity: 0.75; max-width: 42ch; }
  .referral-form { display: flex; gap: 0; min-width: 320px; flex: 1; max-width: 420px; }
  .referral-form input[type=email] {
    flex: 1; padding: 14px 18px; border: 1px solid rgba(43,38,32,0.25);
    border-right: none; background: var(--cream);
    font-family: 'Archivo', sans-serif; font-size: 0.92rem;
    border-radius: 100px 0 0 100px;
  }
  .referral-form input[type=email]:focus { outline: 2px solid var(--clay); outline-offset: 2px; }
  .referral-form button {
    padding: 14px 24px; background: var(--forest); color: var(--cream);
    border: 1px solid var(--forest); border-radius: 0 100px 100px 0;
    font-weight: 600; font-size: 0.9rem;
  }
  .referral-form button:hover { background: var(--clay); border-color: var(--clay); }

  /* ---------- CTA BAND ---------- */
  .story-cta {
    background: var(--clay);
    text-align: center;
    padding: 70px 40px;
  }
  .story-cta h2 { color: var(--cream); font-size: 1.8rem; margin-bottom: 24px; }
  .story-cta .btn-primary { background: var(--forest); border-color: var(--forest); }

  /* ---------- FOOTER ---------- */
  footer {
    background: var(--ink); color: var(--cream);
    padding: 56px 40px 28px;
  }
  .footer-grid {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(247,241,227,0.14);
  }
  @media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
  .footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .footer-brand span { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.05rem; }
  .footer-col p.desc { font-size: 0.85rem; opacity: 0.65; max-width: 30ch; }
  .footer-col h4 {
    font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
    opacity: 0.6; margin-bottom: 16px; font-weight: 700;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
  .footer-col a { font-size: 0.88rem; opacity: 0.85; }
  .footer-col a:hover { color: var(--clay); opacity: 1; }
  .footer-bottom {
    max-width: 1180px; margin: 0 auto;
    padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: 0.78rem; opacity: 0.55;
  }

  /* focus visibility */
  a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--clay); outline-offset: 2px;
  }

  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Accessibility pass ---- */
/* Two text-safe clays: one for cream backgrounds, one for forest.
   --clay itself is untouched, so borders, dots and chips keep the brand colour. */
:root { --clay-text: #A15C30; --clay-on-dark: #D29168; --sage-text: #647258; }

.hero-eyebrow, .section-eyebrow, .collection-label { color: var(--clay-text); }
/* card interior is a shade darker than the page, so this label needs to go darker still */
.ingredient-label { color: #96562D; }
.nav-links a:hover, .footer-col a:hover, .ingredients-toggle:hover { color: var(--clay-text); }
.nav-cta:hover, .btn-primary:hover, .add-btn:hover, .referral-form button:hover { color: var(--clay-on-dark); }

/* ---- Tap targets: 44px minimum (Apple + Google guidance) ---- */
.add-btn { min-height: 44px; padding: 10px 20px; }
.shop-tab { min-height: 44px; }
.ingredients-toggle { min-height: 44px; align-items: center; }
.nav-links a { display: inline-block; padding: 11px 0; }
.footer-col a { display: inline-block; padding: 11px 0; }
.nav-cta, .btn-primary, .btn-secondary, .referral-form button { min-height: 44px; }

/* ---- Tappable ingredient explanations ---- */
button.ingredient-tag { font-family: inherit; cursor: pointer; }
.ingredient-tag.has-info {
  border-style: dashed; border-color: rgba(31,61,43,0.45);
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 3px 14px;
}
.ingredient-tag.has-info:hover, .ingredient-tag.has-info[aria-expanded="true"] {
  background: var(--forest); color: var(--cream); border-color: var(--forest); opacity: 1;
}
.info-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%; font-size: 0.6rem; font-weight: 700;
  background: rgba(31,61,43,0.16); color: var(--forest); line-height: 1;
}
.ingredient-tag.has-info:hover .info-dot,
.ingredient-tag.has-info[aria-expanded="true"] .info-dot {
  background: rgba(247,241,227,0.28); color: var(--cream);
}
.ing-info {
  margin-top: 4px; padding: 11px 13px; border-radius: 12px;
  background: var(--cream); border: 1px solid rgba(31,61,43,0.2);
  font-size: 0.78rem; line-height: 1.5;
}
.ing-info strong { display: block; margin-bottom: 3px; font-weight: 700; }

/* ---- Shop by skin type ---- */
.skin-tabs { margin: 14px 0 4px; }
.skin-tabs-label {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--clay-text); margin-bottom: 8px;
}
.skin-tab-row { display: flex; flex-wrap: wrap; gap: 8px; }
.skin-tab {
  min-height: 44px; padding: 0 18px; border-radius: 100px; cursor: pointer;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(43,38,32,0.22);
}
.skin-tab:hover { border-color: var(--forest); }
.skin-tab.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.no-match {
  margin: 20px 0 0; padding: 18px; border-radius: 14px; text-align: center;
  background: var(--cream); border: 1px dashed rgba(43,38,32,0.25); font-size: 0.9rem;
}

/* one-line answer to "why not just buy a supermarket bar?" */
.real-soap {
  max-width: 640px; margin: 26px auto 0; padding: 0 24px;
  text-align: center; font-size: 0.95rem; line-height: 1.6; opacity: 0.82;
}
@media (max-width: 600px) { .real-soap { font-size: 0.9rem; margin-top: 20px; } }

/* every ingredient pill the same height, text centred, so tappable and
   plain tags sit on one line instead of stepping up and down */
.ingredient-tags { align-items: center; }
.ingredient-tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 3px 14px; box-sizing: border-box;
}
/* the panel grows once the pills are taller, so give it room */
.ingredients-panel.open { max-height: 900px; }

/* logo given more presence */
.nav-logo { width: 74px; height: 74px; }
.nav-wordmark { font-size: 1.35rem; letter-spacing: -0.01em; }
.nav-wordmark, .nav-cta { white-space: nowrap; }
@media (max-width: 600px) {
  .nav-logo { width: 54px; height: 54px; }
  .nav-wordmark { font-size: 1.02rem; }
  .nav-cta { padding-left: 16px; padding-right: 16px; font-size: 0.85rem; }
}
@media (max-width: 380px) {
  /* the mark carries the brand on the narrowest screens */
  .nav-wordmark { display: none; }
  .nav-logo { width: 58px; height: 58px; }
}

/* email form had min-width:320px, which overflows screens narrower than ~380px */
@media (max-width: 430px) {
  .referral-form { min-width: 0; width: 100%; flex-wrap: wrap; gap: 8px; }
  .referral-form input[type=email] { flex: 1 1 100%; min-width: 0; border-radius: 100px; }
  .referral-form button { flex: 1 1 100%; border-radius: 100px; }
}

/* footer columns overflow below ~340px */
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* logo centred: links sit left, Shop Now right, brand in the middle */
/* true centring: the brand is pinned to the middle of the bar, so uneven
   side content (long link list vs short button) can't push it off */
.nav { position: relative; justify-content: space-between; }
.nav-left {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); margin: 0;
}
/* brand is out of the flex flow, so the button needs pushing right itself */
.nav-cta { margin-left: auto; }
/* below this the wordmark would collide with the links; the mark carries the name anyway */
@media (max-width: 1300px) {
  .nav-wordmark { display: none; }
  .nav-links { gap: 22px; }
}
@media (max-width: 1000px) { .nav-links { display: none; } }
/* on the narrowest screens the button would touch the centred mark */
@media (max-width: 340px) {
  .nav-logo { width: 46px; height: 46px; }
  .nav-cta { padding-left: 12px; padding-right: 12px; font-size: 0.78rem; }
}

/* ---- mobile menu ---- */
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 1.5px solid rgba(31,61,43,0.28); border-radius: 12px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle .bar {
  display: block; width: 20px; height: 2px; background: var(--forest); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* an author display rule beats the [hidden] attribute, so restore it explicitly */
.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid rgba(31,61,43,0.12);
  padding: 8px 24px 18px; display: flex; flex-direction: column;
  box-shadow: 0 14px 28px rgba(31,61,43,0.10);
}
.mobile-menu a {
  display: block; padding: 14px 2px; min-height: 44px;
  font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(31,61,43,0.10);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--clay-text); }

@media (max-width: 1000px) { .nav-toggle { display: flex; } }

/* ---- scrolling trust bar ---- */
.trust-marquee { overflow: hidden; }
.trust-track { display: flex; width: max-content; animation: trust-scroll 42s linear infinite; }
.trust-set { display: flex; gap: 36px; padding-right: 36px; color: var(--cream); }
.trust-set span { display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0.92; }
.trust-marquee:hover .trust-track { animation-play-state: paused; }
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* moving text is a problem for some readers, so respect the system setting */
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
  .trust-marquee { overflow-x: auto; }
}

/* ---- display settings ---- */
.a11y-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  border: 2px solid var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(31,61,43,0.30);
}
.a11y-fab:hover { background: #16301f; }
.a11y-panel[hidden] { display: none; }
.a11y-panel {
  position: fixed; left: 18px; bottom: 80px; z-index: 200;
  width: min(290px, calc(100vw - 36px));
  background: var(--cream); color: var(--ink);
  border: 1.5px solid rgba(31,61,43,0.28); border-radius: 18px;
  padding: 16px 18px; box-shadow: 0 16px 40px rgba(31,61,43,0.20);
}
.a11y-panel h2 { font-size: 0.95rem; margin: 0 0 10px; }
.a11y-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 44px; cursor: pointer; font-size: 0.9rem;
  border-bottom: 1px solid rgba(31,61,43,0.10);
}
.a11y-row:last-of-type { border-bottom: 0; }
.a11y-row input { width: 20px; height: 20px; accent-color: var(--forest); cursor: pointer; }
.a11y-note { margin: 10px 0 0; font-size: 0.72rem; opacity: 0.72; line-height: 1.45; }

/* the three preferences themselves */
html.a11y-bigtext { font-size: 125%; }
html.a11y-underline a { text-decoration: underline; }
html.a11y-nomotion * { animation: none !important; transition: none !important; }
html.a11y-nomotion .reveal { opacity: 1 !important; transform: none !important; }

@media (max-width: 600px) { .a11y-fab { left: 14px; bottom: 14px; } .a11y-panel { left: 14px; bottom: 74px; } }
@media print { .a11y-fab, .a11y-panel { display: none; } }

/* ---- basket + saved ---- */
.cart-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--forest); color: var(--cream);
  border: 2px solid var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(31,61,43,0.30);
}
.cart-fab:hover { background: #16301f; }
.cart-count[hidden] { display: none; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  padding: 0 5px; border-radius: 11px; background: var(--clay); color: #fff;
  font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.drawer-scrim { position: fixed; inset: 0; background: rgba(31,61,43,0.34); z-index: 210; }
.drawer[hidden], .drawer-scrim[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 220;
  width: min(400px, 100vw); background: var(--cream);
  display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(31,61,43,0.22);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-close {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--ink); border-radius: 12px;
}
.drawer-close:hover { color: var(--clay-text); }
.drawer-tabs { display: flex; gap: 8px; padding: 0 20px 12px; }
.drawer-tab {
  min-height: 44px; padding: 0 18px; border-radius: 100px; cursor: pointer;
  font-family: inherit; font-size: 0.86rem; font-weight: 600;
  background: transparent; color: var(--ink); border: 1.5px solid rgba(43,38,32,0.22);
}
.drawer-tab.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 10px; }
.drawer-foot { padding: 14px 20px 20px; border-top: 1px solid rgba(31,61,43,0.14); }

.line {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(31,61,43,0.10);
}
.line img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex: none; }
.line-info { flex: 1; min-width: 0; }
.line-name { font-weight: 700; font-size: 0.92rem; }
.line-price { font-size: 0.85rem; opacity: 0.75; }
.line-qty { display: flex; align-items: center; gap: 2px; margin-top: 6px; }
.line-qty button {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid rgba(43,38,32,0.22); background: none;
  font-size: 1rem; color: var(--ink); font-family: inherit;
}
.line-qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.line-remove {
  border: 0; background: none; cursor: pointer; font-size: 0.78rem;
  color: var(--ink); opacity: 0.6; text-decoration: underline;
  min-height: 44px; padding: 0 4px; font-family: inherit;
}
.line-remove:hover { opacity: 1; color: var(--clay-text); }
.drawer-empty { padding: 34px 6px; text-align: center; opacity: 0.7; font-size: 0.92rem; }
.drawer-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.drawer-cta {
  display: block; width: 100%; min-height: 48px; border-radius: 100px; border: 0;
  background: var(--forest); color: var(--cream); font-family: inherit;
  font-weight: 600; font-size: 0.98rem; cursor: pointer; text-align: center;
  line-height: 48px; text-decoration: none;
}
.drawer-cta:hover { background: #16301f; }
.drawer-note { margin: 10px 0 0; font-size: 0.72rem; opacity: 0.72; line-height: 1.45; text-align: center; }

/* save-for-later heart on each card */
.wish-btn {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(247,241,227,0.92); border: 1px solid rgba(31,61,43,0.18);
  display: flex; align-items: center; justify-content: center; color: var(--forest); padding: 0;
}
.wish-btn:hover { background: var(--cream); }
.wish-btn svg { width: 19px; height: 19px; }
.wish-btn[aria-pressed="true"] svg { fill: var(--clay); stroke: var(--clay); }
.product-photo { position: relative; }
@media (max-width: 600px) { .cart-fab { right: 14px; bottom: 14px; } }
@media print { .cart-fab, .drawer, .drawer-scrim { display: none; } }

.hero-photo video { width:100%; height:100%; object-fit:cover; display:block; }
@media (prefers-reduced-motion: reduce) {
  .hero-photo video { display:none; }
  .hero-photo { background:var(--hero-poster, none) center/cover no-repeat; }
}

.shop-all-wrap { text-align: center; margin-top: 34px; }
.shop-all { display: inline-block; min-height: 48px; line-height: 48px; padding: 0 34px; }
