/* ============================================================
   Unearthed Artisan Co. — storefront styles
   ============================================================ */

:root {
  --ivory: #f6f3e9;
  --ivory-card: #fffefa;
  --sage-pale: #e4eacb;
  --sage: #94ab6e;
  --sage-deep: #5c7346;
  --forest: #201e17;
  --charcoal: #2b2820;
  --accent: #8a6a35;
  --accent-pale: #f6ecd3;
  --tan-pale: #f8f0dd;
  --line: rgba(32, 30, 23, 0.14);
  --shadow: 0 18px 40px -24px rgba(43, 40, 32, 0.35);

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #1b1e14;
    --ivory-card: #232819;
    --sage-pale: #262b1c;
    --sage: #b9cc97;
    --sage-deep: #a3ba82;
    --forest: #ece9df;
    --charcoal: #d8d4c4;
    --accent: #d9be86;
    --accent-pale: #2a2013;
    --tan-pale: #332818;
    --line: rgba(233, 236, 217, 0.14);
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ivory: #1b1e14;
  --ivory-card: #232819;
  --sage-pale: #262b1c;
  --sage: #b9cc97;
  --sage-deep: #a3ba82;
  --forest: #ece9df;
  --charcoal: #d8d4c4;
  --accent: #d9be86;
  --accent-pale: #2a2013;
  --tan-pale: #332818;
  --line: rgba(233, 236, 217, 0.14);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.band {
  padding: 88px 0;
}
.band--pale { background: var(--sage-pale); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
}
.nav-mark img { width: 36px; height: 36px; border-radius: 50%; }
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--sage-deep); border-color: var(--sage-deep); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory-card);
  color: var(--forest);
  cursor: pointer;
  flex: none;
}
.nav-toggle:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.nav-toggle:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  margin-top: 18px;
}
.hero-lede {
  margin: 22px auto 0;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--charcoal);
}
.hero-tagline {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest);
}
.tag-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.tag-row--left { justify-content: flex-start; }
.tag-row .tag {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}
.tag-row .dot {
  color: var(--sage-deep);
  font-size: 0.65rem;
}
.brand-line {
  margin: 18px auto 0;
  max-width: 56ch;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--charcoal);
}
.brand-line--left { margin-left: 0; margin-right: 0; }
.hero-cta-row {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.btn--primary {
  background: var(--sage-deep);
  color: var(--ivory-card);
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--forest); }
.btn--ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

.hero-medallion {
  position: relative;
}
.hero-medallion img {
  width: min(420px, 80vw);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* ---------- section headers ---------- */
.section-head {
  max-width: 60ch;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-top: 12px;
}
.section-head .brand-line {
  font-size: 1.3rem;
}
.section-head p {
  margin-top: 16px;
  color: var(--charcoal);
  font-size: 1.02rem;
}

.shelf-heading {
  font-size: 1.4rem;
  margin: 56px 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.shelf-heading:first-of-type { margin-top: 0; }

.shop-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.shop-jump a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.shop-jump a:hover, .shop-jump a:focus-visible {
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}
.shop-jump .dot {
  color: var(--sage-deep);
  font-size: 0.6rem;
}

/* ---------- product shelf ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.card {
  background: var(--ivory-card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.card-art {
  position: relative;
  background: var(--sage-pale);
  padding: 22px 22px 0;
}
.card-art img {
  border-radius: 50%;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.card-tag {
  position: absolute;
  top: 34px;
  left: 34px;
  background: color-mix(in srgb, var(--ivory-card) 90%, transparent);
  color: var(--forest);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px 6px 6px 0;
}
.card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.card-body h3 { font-size: 1.5rem; }
/* Jar size tag under a cream's name, so 2 oz facial vs 4 oz body is
   obvious at a glance. */
.card-size {
  align-self: flex-start;
  margin-top: -6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card-ingredients {
  font-size: 0.9rem;
  color: var(--sage-deep);
  font-weight: 500;
}
.card-desc { font-size: 0.95rem; color: var(--charcoal); flex: 1; }
.card-inci { font-size: 0.72rem; }
.card-inci summary {
  cursor: pointer;
  color: var(--sage-deep);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-inci summary::-webkit-details-marker { display: none; }
.card-inci summary::after { content: "+"; font-size: 0.85rem; }
.card-inci[open] summary::after { content: "\2212"; }
.card-inci p {
  margin-top: 6px;
  color: var(--charcoal);
  opacity: 0.65;
  line-height: 1.5;
}.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 12px;
}
.card-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.card-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  opacity: 0.85;
}
/* Ritual card prices update live in JS, so both the label and the
   amount are spans (for easy targeting) - reset the amount back to look
   like the plain trailing price text the other cards use. */
.card-price .mix-total,
.card-price .ritual-total {
  display: inline;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--charcoal);
  opacity: 1;
}
.ship-date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--sage-deep);
  margin: -6px 0 10px;
}
/* Preorder note above the shop shelves — an open, unboxed note (small
   label with a sage dot, then one line of detail) so it reads as part of
   the page intro rather than an alert. */
.preorder-note {
  max-width: 60ch;
  margin-bottom: 36px;
}
.preorder-note-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.preorder-note-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-pale);
  margin-left: 4px; /* keeps the halo flush with the text's left edge */
  flex: none;
}
.preorder-note p + p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.buy-btn {
  background: var(--sage-deep);
  color: var(--ivory-card);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.buy-btn:hover { background: var(--forest); transform: translateY(-1px); }
.buy-btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.buy-btn.is-sold-out {
  background: var(--line);
  color: var(--charcoal);
  opacity: 0.6;
  cursor: not-allowed;
}
.buy-btn.is-sold-out:hover { background: var(--line); transform: none; }

.shelf-note {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--sage-deep);
  max-width: 62ch;
}

/* ---------- ritual cards (no photo) ---------- */
.card--ritual .card-body {
  padding-top: 38px;
}
.ritual-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--sage-deep);
  margin: 0;
}
.ritual-eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--sage);
  margin-top: 14px;
}

/* ---------- mix & match ---------- */
.mix-picks {
  display: grid;
  /* minmax(0, 1fr) keeps a row from growing to its longest option name —
     otherwise the × buttons get pushed past the card's right edge. */
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.mix-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mix-remove {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory-card);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mix-remove:hover, .mix-remove:focus-visible {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}
.mix-remove[hidden] { display: none; }
.mix-add {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sage-deep);
  background: transparent;
  border: 1px dashed var(--sage);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mix-add:hover, .mix-add:focus-visible {
  border-style: solid;
  background: var(--sage-pale);
}
.mix-add[hidden] { display: none; }
/* Curated Ritual note shown while the picks are accessories only. */
.mix-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--accent);
}
.mix-hint[hidden] { display: none; }

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

/* ---------- faq ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--sage-deep);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
}
.faq-item p a { color: var(--sage-deep); text-decoration: underline; }

/* ---------- policy pages ---------- */
.policy-content { max-width: 760px; }
.policy-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
  margin-top: 32px;
}
.policy-content h3:first-child { margin-top: 0; }
.policy-content p {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
}
.policy-content p a { color: var(--sage-deep); text-decoration: underline; }
.policy-content .policy-updated {
  font-size: 0.85rem;
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: -8px;
}
.policy-content .policy-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--charcoal);
  opacity: 0.75;
}

.bundle-picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.bundle-picks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
}
.bundle-label-text {
  flex: 0 0 100px;
}
.bundle-select {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ivory-card);
  color: var(--charcoal);
}
.bundle-select:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

.card-art--label {
  background: var(--tan-pale);
  display: flex;
  justify-content: center;
  padding: 26px 26px 0;
}
.card-art-media {
  position: relative;
  width: min(220px, 100%);
}
.card-art-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-art--label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transform-origin: 50% 65%;
  display: block;
}
.card-art-media .card-tag {
  top: 12px;
  left: 12px;
}

.shelf--coming-soon { grid-template-columns: 1fr; }
.card--soon {
  flex-direction: row;
  align-items: center;
  background: var(--sage-pale);
  border-style: dashed;
}
.card-body--soon {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.card-tag--static {
  position: static;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .card--soon { flex-direction: column; align-items: flex-start; }
}

/* ---------- shipping ledger ---------- */
.ledger {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.ledger-table {
  border-top: 1px solid var(--line);
}
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row dt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
  font-weight: 600;
}
.ledger-row dd {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--charcoal);
  opacity: 0.85;
}
/* Label + detail lines (Local Delivery) — quicker to scan than a
   paragraph. Labels sit in their own column so the details line up. */
.ledger-facts {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ledger-facts li {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 12px;
  line-height: 1.45;
}
.ledger-facts span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  padding-top: 0.2em;
}
.ledger-facts b {
  font-weight: 600;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}
.ledger-row .amt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--sage-deep);
  white-space: nowrap;
  align-self: start;
}
.ledger-foot {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--charcoal);
  opacity: 0.75;
}

/* ---------- estimator ---------- */
.estimator {
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.estimator h3 { font-size: 1.3rem; margin-bottom: 6px; }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.92rem;
}
.radio-option:has(input:checked) {
  border-color: var(--sage-deep);
  background: var(--sage-pale);
}
.radio-option:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.radio-option input { accent-color: var(--sage-deep); }
.radio-option .rlabel { display: flex; align-items: center; gap: 10px; }
.radio-option .ramt { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--sage-deep); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
/* Center the logo in its column rather than hugging the left edge. */
.about-medallion { display: flex; justify-content: center; }
.about-medallion img { border-radius: 50%; box-shadow: var(--shadow); width: 100%; max-width: 340px; }
.about-copy h2 { font-style: italic; margin-top: 12px; margin-bottom: 22px; }
.about-copy p + p { margin-top: 16px; }
.about-copy p { font-size: 1.02rem; line-height: 1.5; }
.about-copy p.about-lede {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.3;
}
.about-signoff {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sage-deep);
}
.about-dedication {
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--charcoal);
  opacity: 0.7;
}
.about-list {
  margin-top: 26px;
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  font-size: 0.92rem;
  color: var(--sage-deep);
  font-weight: 600;
}
.about-list li::before { content: "\2022"; margin-right: 10px; }

/* ---------- footer ---------- */
.footer {
  background: var(--forest);
  color: var(--sage-pale);
  padding: 56px 0 32px;
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 14px;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ivory-card);
  margin-bottom: 10px;
}
.footer p, .footer address { font-size: 0.92rem; line-height: 1.7; opacity: 0.92; font-style: normal; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer a { text-decoration: none; opacity: 0.92; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer-social { display: inline-flex; align-items: center; gap: 6px; }
.footer-social svg { flex: none; }

.about-follow {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-follow p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--charcoal);
}
.about-follow-links {
  margin-top: 14px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.about-follow-links .footer-social {
  color: var(--sage-deep);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 1;
}
.about-follow-links .footer-social:hover { color: var(--forest); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 243, 233, 0.16);
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- email list sign-up (footer) + unsubscribe page ---------- */
.footer .footer-join {
  grid-template-columns: 1.2fr 2fr;
  align-items: center;
  gap: 20px 40px;
  padding-bottom: 40px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(246, 243, 233, 0.16);
}
.footer-join-copy p { margin: 0; }
.join-form { margin: 0; }
.join-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.join-input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory-card);
  color: var(--charcoal);
}
.join-input:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.footer .btn--primary:hover { background: var(--sage); color: var(--forest); }
.join-hp { position: absolute; left: -9999px; }
.join-label { display: block; width: 100%; font-weight: 600; font-size: 0.9rem; }
.join-label--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.join-fields[hidden], .join-msg[hidden] { display: none; }
.join-msg { margin: 12px 0 0; }
.footer .join-msg a { text-decoration: underline; }
.unsubscribe-form { max-width: 520px; margin-bottom: 28px; }
.contact-form { max-width: 680px; margin-bottom: 28px; }
.contact-fields { display: grid; gap: 18px; }
.contact-fields[hidden] { display: none; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-field { display: grid; gap: 8px; }
.contact-field .join-input { width: 100%; flex: none; }
.contact-optional { font-weight: 400; opacity: 0.7; }
.contact-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath d=%27M2 4l4 4 4-4%27 fill=%27none%27 stroke=%27%235c7346%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.contact-message { border-radius: 18px; resize: vertical; min-height: 150px; line-height: 1.6; }
.contact-thanks { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--forest); }
@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shelf { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--ivory-card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 32px;
    border-bottom: none;
  }
  .nav-links a:hover, .nav-links a:focus-visible { background: var(--sage-pale); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .band { padding: 64px 0; }
}

/* ---------- cart ---------- */
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory-card);
  color: var(--forest);
  cursor: pointer;
  flex: none;
}
.cart-toggle:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.cart-toggle:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-pale);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

#cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty {
  font-size: 0.92rem;
  color: var(--charcoal);
  opacity: 0.75;
}
.cart-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-item-info {
  min-width: 0;
}
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--forest);
  overflow-wrap: break-word;
}
.cart-item-price {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--charcoal);
  opacity: 0.75;
}
.cart-item-ship {
  margin: 4px 0 0;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--forest);
  cursor: pointer;
  line-height: 1;
}
.cart-qty-btn:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.cart-item-qty {
  min-width: 1.4ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.cart-remove {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: underline;
}

.cart-shipping {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cart-shipping > label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 10px;
}
.cart-shipping .radio-group { gap: 8px; }
.cart-shipping .radio-option { padding: 10px 12px; font-size: 0.86rem; }

.zip-check { margin-bottom: 14px; }
.zip-check label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 8px;
}
.zip-input {
  width: 140px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ivory-card);
  color: var(--charcoal);
}
.zip-input:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}
.zip-check-msg { margin-top: 8px; font-size: 0.82rem; }
.zip-check-msg.is-eligible { color: var(--sage-deep); font-weight: 600; }
.zip-check-msg.is-ineligible { color: var(--accent); font-weight: 600; }

.cart-totals {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.cart-total-row--grand {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
}

.cart-ship-summary {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage-deep);
}
.cart-checkout {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  text-align: center;
}
.cart-checkout.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}
.cart-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--charcoal);
  opacity: 0.7;
  line-height: 1.5;
}


/* ---------- photo zoom (lightbox) ---------- */
.card-art img.zoomable { cursor: zoom-in; }
.card-art img.zoomable:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 4px; }
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(20, 18, 12, 0.84);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}
.lightbox-figure img {
  display: block;
  width: auto;
  max-width: min(92vw, 820px);
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox-figure figcaption {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #f6f3e9;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 233, 0.4);
  background: rgba(20, 18, 12, 0.5);
  color: #f6f3e9;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-close:focus-visible {
  background: rgba(246, 243, 233, 0.15);
  outline: 2px solid #f6f3e9;
  outline-offset: 2px;
}


/* ---------- gift cards (gift-cards.html, gift-card.html, bag) ---------- */
.gift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .gift-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* The card itself — on the purchase page as a live preview, and on the
   gift card page as the real thing. */
.gift-visual {
  position: relative;
  aspect-ratio: 1.586;
  max-width: 460px;
  width: 100%;
  border-radius: 18px;
  padding: 26px 28px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 254, 250, 0.35), transparent 45%),
    linear-gradient(135deg, #5c7346 0%, #3f5230 100%);
  color: #fffefa;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.gift-visual-top { display: flex; align-items: center; gap: 12px; }
.gift-visual-top img { width: 44px; height: 44px; border-radius: 50%; background: #f6f3e9; }
.gift-visual-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.gift-visual-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.gift-visual-amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
}
.gift-visual-to { font-size: 0.86rem; opacity: 0.92; }

.gift-form { display: grid; gap: 22px; }
.gift-form .contact-field > span,
.gift-amounts-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.gift-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gift-amount {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory-card);
  color: var(--charcoal);
  cursor: pointer;
}
.gift-amount:hover { border-color: var(--sage-deep); }
.gift-amount[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: #fffefa; }
.gift-amount:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.gift-custom { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.gift-custom[hidden] { display: none; }
.gift-custom .join-input { flex: 0 0 140px; }
.gift-count { font-size: 0.78rem; opacity: 0.7; text-align: right; }
.gift-error { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.gift-fine {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--charcoal);
  opacity: 0.8;
}
.gift-fine li { margin-top: 6px; }
.gift-thanks {
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--sage-pale);
  margin-bottom: 32px;
}
.gift-thanks h3 { font-size: 1.4rem; }
.gift-thanks p { margin-top: 8px; }

/* gift-card.html */
.gift-page { max-width: 560px; margin: 0 auto; }
.gift-page .gift-visual { margin: 0 auto; }
.gift-message {
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--forest);
  white-space: pre-line;
  text-align: center;
}
.gift-from { margin-top: 8px; text-align: center; color: var(--sage-deep); font-weight: 600; }
.gift-code-box {
  margin-top: 28px;
  padding: 20px;
  border: 1px dashed var(--sage-deep);
  border-radius: 14px;
  text-align: center;
}
.gift-code {
  margin-top: 6px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--forest);
  word-break: break-all;
}
.gift-balance { margin-top: 10px; font-size: 0.92rem; }
.gift-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.gift-how { margin-top: 28px; font-size: 0.92rem; line-height: 1.7; text-align: center; }
@media print {
  .nav, .footer, .gift-actions, .gift-noprint { display: none !important; }
  .gift-visual { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Gift Card field in the bag's Order Summary */
.cart-gift {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cart-gift > label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 8px;
}
.cart-gift-row { display: flex; gap: 8px; }
.cart-gift-row .zip-input { flex: 1; width: auto; min-width: 0; text-transform: uppercase; }
.cart-gift-apply {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--sage-deep);
  background: transparent;
  color: var(--sage-deep);
  cursor: pointer;
}
.cart-gift-apply:hover { background: var(--sage-deep); color: #fffefa; }
.cart-gift-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage-deep);
}
.cart-gift-zip { margin-top: 12px; }
.cart-gift-zip label { display: block; font-size: 0.82rem; margin-bottom: 6px; }
.cart-gift-msg { margin-top: 8px; font-size: 0.82rem; }
.cart-gift-msg.is-error { color: var(--accent); font-weight: 600; }
.cart-total-row--gift { color: var(--sage-deep); font-weight: 600; }
.cart-gift-row[hidden], .cart-gift-applied[hidden], .cart-total-row[hidden] { display: none; }
