/* ============================================================
   HuBo Native — styles.css
   Botanical editorial aesthetic
   Fonts: Playfair Display (headings) · DM Sans (body)
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* Color palette */
  --color-parchment:     #f5f0e8;   /* page background */
  --color-cream:         #faf7f2;   /* card / input backgrounds */
  --color-sage:          #5a7a5e;   /* primary green */
  --color-sage-dark:     #3d5940;   /* hover, active states */
  --color-sage-light:    #c8d8c9;   /* tints, borders */
  --color-sage-faint:    #edf2ed;   /* subtle backgrounds */
  --color-terracotta:    #c1623f;   /* accent / CTAs */
  --color-terracotta-dk: #9e4d30;   /* hover state */
  --color-terracotta-lt: #f0d5c8;   /* light tint */
  --color-charcoal:      #2c2c2a;   /* primary text */
  --color-stone:         #6b6760;   /* secondary text, captions */
  --color-divider:       #ddd7cc;   /* rules, borders */
  --color-white:         #ffffff;

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  /* Type scale (rem) */
  --text-xs:   0.75rem;    /*  12px */
  --text-sm:   0.875rem;   /*  14px */
  --text-base: 1rem;       /*  16px */
  --text-md:   1.125rem;   /*  18px */
  --text-lg:   1.375rem;   /*  22px */
  --text-xl:   1.75rem;    /*  28px */
  --text-2xl:  2.25rem;    /*  36px */
  --text-3xl:  3rem;       /*  48px */
  --text-4xl:  3.75rem;    /*  60px */

  /* Spacing scale */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-6);

  /* Borders & radius */
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-lg:  12px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(44,44,42,0.08), 0 1px 2px rgba(44,44,42,0.04);
  --shadow-md:  0 4px 12px rgba(44,44,42,0.10), 0 2px 4px rgba(44,44,42,0.06);
  --shadow-lg:  0 16px 40px rgba(44,44,42,0.12), 0 4px 12px rgba(44,44,42,0.06);
  --shadow-card: 0 2px 8px rgba(44,44,42,0.07);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 240ms;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-charcoal);
  background-color: var(--color-parchment);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle parchment texture via noise */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

main {
  flex: 1;
}

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

a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-sage-dark);
}

p {
  max-width: 68ch;
}

ul, ol {
  padding-left: var(--space-6);
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

/* Italic accent — use for plant Latin names */
.italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.text-stone    { color: var(--color-stone); }
.text-sage     { color: var(--color-sage); }
.text-terra    { color: var(--color-terracotta); }
.text-sm       { font-size: var(--text-sm); }
.text-xs       { font-size: var(--text-xs); }
.text-lg       { font-size: var(--text-lg); }

/* ── Layout utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-20);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: var(--space-24);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ── Dividers ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin-block: var(--space-8);
}

/* Botanical rule — thin double line */
.divider--botanical {
  border: none;
  height: 3px;
  background:
    linear-gradient(var(--color-sage-light), var(--color-sage-light)) top/100% 1px no-repeat,
    linear-gradient(var(--color-sage-light), var(--color-sage-light)) bottom/100% 1px no-repeat;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — terracotta fill */
.btn--primary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

.btn--primary:hover {
  background-color: var(--color-terracotta-dk);
  border-color: var(--color-terracotta-dk);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Secondary — sage outline */
.btn--secondary {
  background-color: transparent;
  color: var(--color-sage);
  border-color: var(--color-sage);
}

.btn--secondary:hover {
  background-color: var(--color-sage-faint);
  color: var(--color-sage-dark);
  border-color: var(--color-sage-dark);
}

/* Ghost — minimal */
.btn--ghost {
  background-color: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-divider);
}

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

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ── Availability badges ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  line-height: 1.6;
}

.badge--available {
  background-color: #ddeedd;
  color: #2d5c30;
}

.badge--local {
  background-color: var(--color-terracotta-lt);
  color: var(--color-terracotta-dk);
}

.badge--coming-soon {
  background-color: #e8e4d8;
  color: var(--color-stone);
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.7;
}

/* ── Plant / product cards ─────────────────────────────────── */
.card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.card__image {
  aspect-ratio: 2/3;   /* portrait — suits plant tags */
  background-color: var(--color-sage-faint);
  overflow: hidden;
  flex-shrink: 0;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.card__common-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-charcoal);
}

.card__latin-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-stone);
  line-height: 1.3;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-3);
}

/* ── Form elements ─────────────────────────────────────────── */
.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-sm);
  outline: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.input:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(90,122,94,0.15);
}

.input::placeholder {
  color: var(--color-stone);
  opacity: 0.7;
}

/* ── ─────────────────────────────────────────────────────────
   HEADER
   ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-parchment);
  border-bottom: 1px solid var(--color-divider);
  /* subtle backdrop blur for readability when scrolling */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(245,240,232,0.95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-8);
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-logo__wordmark span {
  color: var(--color-sage);
}

.site-logo__tagline {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--color-stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

.site-logo:hover .site-logo__wordmark {
  color: var(--color-sage-dark);
}

/* Primary nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-stone);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition:
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
  text-decoration: none;
  position: relative;
}

.site-nav__link:hover {
  color: var(--color-charcoal);
  background-color: var(--color-sage-faint);
}

/* Active state — current page */
.site-nav__link[aria-current="page"],
.site-nav__link.is-active {
  color: var(--color-sage);
}

.site-nav__link[aria-current="page"]::after,
.site-nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background-color: var(--color-sage);
  border-radius: 1px;
}

/* Etsy CTA in header */
.site-header__cta {
  flex-shrink: 0;
}

/* Hamburger button (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.nav-toggle:hover {
  background-color: var(--color-sage-faint);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-charcoal);
  border-radius: 1px;
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity var(--duration-base) var(--ease-out);
  transform-origin: center;
}

/* Animated hamburger → X */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── ─────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--color-charcoal);
  color: rgba(245,240,232,0.75);
  margin-top: auto;
}

/* Botanical decorative top border */
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-sage) 0%,
    var(--color-sage-light) 40%,
    var(--color-terracotta) 60%,
    var(--color-terracotta-lt) 100%
  );
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  padding-block: var(--space-16) var(--space-10);
}

/* Footer logo + about */
.footer-about__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-parchment);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  display: block;
  text-decoration: none;
}

.footer-about__logo span {
  color: var(--color-sage-light);
}

.footer-about__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(245,240,232,0.65);
  max-width: 28ch;
}

/* Footer nav column */
.footer-nav__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
  margin-bottom: var(--space-5);
}

.footer-nav__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav__list a {
  font-size: var(--text-sm);
  color: rgba(245,240,232,0.7);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav__list a:hover {
  color: var(--color-parchment);
}

/* Email signup column */
.footer-signup__heading {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-parchment);
  margin-bottom: var(--space-2);
}

.footer-signup__sub {
  font-size: var(--text-sm);
  color: rgba(245,240,232,0.55);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.footer-signup__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-signup__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  background-color: rgba(245,240,232,0.1);
  border: 1px solid rgba(245,240,232,0.2);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
  color: var(--color-parchment);
}

.footer-signup__input::placeholder {
  color: rgba(245,240,232,0.4);
}

.footer-signup__input:focus {
  border-color: var(--color-sage-light);
  background-color: rgba(245,240,232,0.12);
}

.footer-signup__btn {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--color-sage);
  color: var(--color-parchment);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.footer-signup__btn:hover {
  background-color: var(--color-sage-dark);
  transform: translateY(-1px);
}

/* Social links */
.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.footer-social__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-social__link:hover {
  color: var(--color-sage-light);
}

.footer-social__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer bottom bar */
.site-footer__bottom {
  border-top: 1px solid rgba(245,240,232,0.1);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-footer__copyright {
  font-size: var(--text-xs);
  color: rgba(245,240,232,0.35);
  letter-spacing: 0.04em;
}

.site-footer__legal {
  display: flex;
  gap: var(--space-6);
}

.site-footer__legal a {
  font-size: var(--text-xs);
  color: rgba(245,240,232,0.35);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__legal a:hover {
  color: rgba(245,240,232,0.65);
}

/* ── ─────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
   ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root {
    --container-pad: var(--space-5);
  }

  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }

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

@media (max-width: 768px) {
  /* Header */
  .site-header__inner {
    height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header__cta {
    display: none;
  }

  /* Nav becomes full-viewport drawer below the header */
  .site-nav {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    left: 0;
    /* Explicit height so the drawer fills the viewport on mobile browsers
       that don't resolve shorthand `inset` reliably. 100dvh adapts to
       iOS/Android address-bar collapse; 100vh is the fallback. */
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    /* Opaque background — backdrop-filter isn't reliable on mobile
       browsers and a translucent drawer bleeds page content through. */
    background-color: var(--color-parchment);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6) var(--space-5);
    gap: var(--space-1);
    border-top: 1px solid var(--color-divider);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-4);
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
  }

  .site-nav__link[aria-current="page"]::after,
  .site-nav__link.is-active::after {
    display: none;
  }

  /* Mobile Etsy CTA inside nav */
  .site-nav .btn {
    margin-top: var(--space-4);
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-block: var(--space-12) var(--space-8);
  }

  .footer-about__text {
    max-width: none;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: var(--space-4);
  }

  h1 { font-size: var(--text-xl); }
  h2 { font-size: var(--text-lg); }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .section { padding-block: var(--space-12); }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background: white; }
}

/* ============================================================
   /tags/ — Catalog page
   ============================================================ */

.catalog-hero {
  padding-block: var(--space-16) var(--space-8);
  text-align: center;
}

.catalog-hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: var(--space-3);
}

.catalog-hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.catalog-hero p {
  font-size: var(--text-md);
  color: var(--color-stone);
  max-width: 56ch;
  margin-inline: auto;
}

/* ── Availability segmented control ───────────────────────── */
.avail-switch {
  display: inline-flex;
  background-color: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
  margin-block: var(--space-6) var(--space-4);
}

.avail-switch__btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: var(--space-2) var(--space-5);
  border: none;
  background: transparent;
  color: var(--color-stone);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.avail-switch__btn:hover {
  color: var(--color-charcoal);
}

.avail-switch__btn[aria-pressed="true"] {
  background-color: var(--color-sage);
  color: var(--color-white);
}

/* ── Filter / sort toolbar ────────────────────────────────── */
.catalog-toolbar {
  position: sticky;
  top: 68px;  /* sits below the sticky site-header */
  z-index: 50;
  background-color: rgba(245,240,232,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-block: 1px solid var(--color-divider);
  padding-block: var(--space-4);
  margin-bottom: var(--space-8);
}

.catalog-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.catalog-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}

.catalog-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-stone);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-sm);
  background-color: var(--color-cream);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.catalog-search input:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(90,122,94,0.12);
}

.catalog-toolbar select {
  padding: var(--space-3) var(--space-8) var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-sm);
  background-color: var(--color-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6760' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.catalog-toolbar select:focus { border-color: var(--color-sage); }
.catalog-toolbar select:hover { border-color: var(--color-stone); }

.catalog-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.catalog-toolbar__sort label {
  font-size: var(--text-xs);
  color: var(--color-stone);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: var(--text-sm);
  color: var(--color-stone);
  padding-top: var(--space-1);
}

.catalog-meta b {
  color: var(--color-sage-dark);
  font-weight: 600;
}

.catalog-clear {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-terracotta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
  visibility: hidden;
}

.catalog-clear.is-visible { visibility: visible; }
.catalog-clear:hover { background-color: rgba(192,98,63,0.08); }

/* ── Card grid ────────────────────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-6);
}

/* ── Individual card (extends .card) ──────────────────────── */
.plant-card {
  position: relative;
  animation: fadeUp 0.4s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.plant-card .card__image {
  position: relative;
  aspect-ratio: 1 / 1;  /* square for denser grid — overrides portrait default */
}

.plant-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-sage-faint), var(--color-sage-light));
}

.plant-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.plant-card__family {
  font-size: var(--text-xs);
  color: var(--color-stone);
  letter-spacing: 0.02em;
  font-style: italic;
}

.plant-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  color: var(--color-charcoal);
  background-color: var(--color-sage-faint);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.7;
  white-space: nowrap;
}

.pill__icon {
  font-size: 0.9em;
  opacity: 0.8;
}

.plant-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--space-1) 0;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  align-self: flex-start;
  text-decoration: none;
}

.plant-card__cta--etsy {
  color: var(--color-terracotta);
}

.plant-card__cta--etsy:hover {
  color: var(--color-terracotta-dk);
  transform: translateX(2px);
}

.plant-card__cta--notify {
  color: var(--color-sage);
}

.plant-card__cta--notify:hover {
  color: var(--color-sage-dark);
  transform: translateX(2px);
}

.plant-card__cta--local {
  color: var(--color-stone);
  font-style: italic;
  font-weight: 400;
}

/* Make the whole card clickable via stretched pseudo-element */
.plant-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}

.plant-card__cta,
.plant-card a.plant-card__cta {
  position: relative;
  z-index: 2;  /* sits above the stretched card link */
}

/* ── Empty state ──────────────────────────────────────────── */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-20) var(--space-4);
  color: var(--color-stone);
}

.catalog-empty h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--color-charcoal);
}

.catalog-empty p {
  max-width: 40ch;
  margin-inline: auto;
}

/* ── Notify-me signup (site-wide) ─────────────────────────── */
.notify-block {
  background-color: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  margin-top: var(--space-16);
  text-align: center;
}

.notify-block h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.notify-block p {
  color: var(--color-stone);
  max-width: 50ch;
  margin-inline: auto var(--space-6);
}

.notify-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.notify-form input[type="email"]:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(90,122,94,0.15);
}

.notify-form__success {
  display: none;
  color: var(--color-sage-dark);
  font-weight: 500;
  margin-top: var(--space-4);
}

.notify-form__success.is-visible { display: block; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .catalog-toolbar {
    top: 60px;  /* matches mobile header height */
  }

  .catalog-toolbar__sort {
    margin-left: 0;
    width: 100%;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-4);
  }

  .avail-switch {
    display: flex;
    width: 100%;
  }

  .avail-switch__btn {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .notify-block {
    padding: var(--space-8) var(--space-5);
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .plant-card .card__body {
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-form input[type="email"] { min-width: 0; }
}
/* ============================================================
   Homepage — append to styles.css
   ============================================================ */

/* ── Shared home section head ─────────────────────────────── */
.home-section-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto var(--space-10);
}

.home-section-head h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.home-section-head p {
  color: var(--color-stone);
  margin-inline: auto;
}

.home-section-head--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  max-width: none;
  gap: var(--space-4);
}

.home-section-head--row p { margin-top: var(--space-1); }

/* ── Hero ─────────────────────────────────────────────────── */
.home-hero {
  padding-block: var(--space-16) var(--space-20);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.home-hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-4);
}

.home-hero__title {
  font-size: var(--text-4xl);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.home-hero__title .italic-accent {
  color: var(--color-sage-dark);
}

.home-hero__sub {
  font-size: var(--text-md);
  color: var(--color-stone);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.home-hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Image side */
.home-hero__image { position: relative; }

.home-hero__photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--color-sage-faint);
  aspect-ratio: 4 / 5;
}

.home-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder when hero image missing (onerror sets this class on <figure>) */
.home-hero__photo.is-placeholder {
  background:
    linear-gradient(135deg, var(--color-sage-faint) 0%, var(--color-sage-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__photo.is-placeholder::before {
  content: "Hero photo";
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-sage-dark);
  opacity: 0.5;
}

.home-hero__caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(44,44,42,0.78);
  color: var(--color-parchment);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── What we make — three-column strip ───────────────────── */
.home-what__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.home-what__card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 0 0 var(--space-6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.home-what__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.home-what__img {
  aspect-ratio: 16 / 10;
  background-color: var(--color-sage-faint);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Gentle sage tint when image is missing */
  background-image:
    linear-gradient(135deg, var(--color-sage-faint), var(--color-sage-light));
  margin-bottom: var(--space-5);
}

.home-what__card h3 {
  padding: 0 var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.home-what__card p {
  padding: 0 var(--space-6);
  color: var(--color-stone);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.home-what__link {
  padding: 0 var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-terracotta);
  letter-spacing: 0.02em;
  transition: transform var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.home-what__card:hover .home-what__link {
  color: var(--color-terracotta-dk);
  transform: translateX(2px);
}

/* ── Ethos block ──────────────────────────────────────────── */
.home-ethos__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.home-ethos__inner .divider--botanical {
  max-width: 120px;
  margin: 0 auto var(--space-8);
}

.home-ethos__inner .divider--botanical + .divider--botanical {
  margin: var(--space-8) auto 0;
}

.home-ethos__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-charcoal);
  max-width: none;
  margin-bottom: var(--space-5);
}

.home-ethos__link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.home-ethos__link a {
  color: var(--color-sage);
}

.home-ethos__link a:hover { color: var(--color-sage-dark); }

/* ── Featured plants ──────────────────────────────────────── */
.home-featured__see-all {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  white-space: nowrap;
  align-self: center;
  padding-bottom: var(--space-1);
}

.home-featured__see-all:hover {
  color: var(--color-terracotta-dk);
}

/* Override catalog-grid sizing for home — show exactly 4 across on desktop */
.home-featured__grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Where to buy ─────────────────────────────────────────── */
.home-buy {
  background-color: var(--color-sage-faint);
  /* Carve subtle top+bottom separators to distinguish from the featured block */
  border-block: 1px solid var(--color-divider);
}

.home-buy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.home-buy__card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: left;
}

.home-buy__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--color-sage);
  color: var(--color-parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.home-buy__card h3 {
  font-size: var(--text-lg);
}

.home-buy__card p {
  font-size: var(--text-sm);
  color: var(--color-stone);
  line-height: 1.6;
  flex: 1;
}

.home-buy__card .btn {
  margin-top: var(--space-3);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .home-hero__image {
    order: -1;     /* image above copy on tablet */
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .home-hero__title { font-size: var(--text-3xl); }

  .home-what__grid,
  .home-buy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .home-featured__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding-block: var(--space-10) var(--space-12);
  }

  .home-hero__title { font-size: var(--text-2xl); }
  .home-hero__sub   { font-size: var(--text-base); }

  .home-featured__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .home-ethos__text {
    font-size: var(--text-md);
  }
}

@media (max-width: 480px) {
  .home-hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .home-hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .home-featured__grid {
    grid-template-columns: 1fr 1fr;
  }
}
