/* =========================================================
   Jardín Porteño — styles
   Brand register, committed olive + terracotta + bay-blue
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Young+Serif&display=swap');

/* ---------- Tokens ---------- */
:root {
  --cream:        oklch(0.965 0.012 85);
  --cream-deep:   oklch(0.93  0.018 82);
  --cream-warm:   oklch(0.945 0.024 70);
  --olive-ink:    oklch(0.27  0.035 135);
  --olive:        oklch(0.42  0.075 135);
  --olive-leaf:   oklch(0.55  0.085 138);
  --olive-tint:   oklch(0.82  0.04  135);
  --terracotta:   oklch(0.68  0.14  50);
  --terracotta-deep: oklch(0.58 0.15 45);
  --terracotta-soft: oklch(0.85 0.06 60);
  --bay:          oklch(0.72  0.06  215);
  --bay-deep:     oklch(0.5   0.07  220);

  --shadow-sm: 0 1px 2px oklch(0.27 0.035 135 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.27 0.035 135 / 0.12);
  --shadow-lg: 0 24px 60px oklch(0.27 0.035 135 / 0.18);

  /* type scale (fluid) */
  --fs-xs:   clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --fs-sm:   clamp(0.90rem, 0.88rem + 0.12vw, 1.00rem);
  --fs-base: clamp(1.04rem, 1.00rem + 0.20vw, 1.18rem);
  --fs-md:   clamp(1.25rem, 1.18rem + 0.40vw, 1.50rem);
  --fs-lg:   clamp(1.60rem, 1.45rem + 0.80vw, 2.10rem);
  --fs-xl:   clamp(2.20rem, 1.90rem + 1.60vw, 3.20rem);
  --fs-2xl:  clamp(3.00rem, 2.30rem + 3.60vw, 5.60rem);
  --fs-3xl:  clamp(4.00rem, 2.80rem + 6.00vw, 9.00rem);

  /* spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  --sp-8:  clamp(3.5rem, 2.5rem + 3vw, 5rem);
  --sp-9:  clamp(5rem,   3rem + 6vw,   8rem);
  --sp-10: clamp(7rem,   4rem + 9vw,  12rem);

  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --container: min(1280px, 92vw);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--olive-ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; max-width: 65ch; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--terracotta); color: var(--cream); }

/* ---------- Background paper texture (subtle, CSS only) ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(oklch(0.85 0.025 75 / 0.18) 1px, transparent 1.4px),
    radial-gradient(oklch(0.85 0.025 75 / 0.10) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--olive);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 1px;
  background: currentColor;
  margin-right: 0.6em;
  margin-bottom: 3px;
}
.lead {
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.4;
  color: var(--olive-ink);
  max-width: 36ch;
}

/* ---------- Container ---------- */
.wrap { width: var(--container); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.965 0.012 85 / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid oklch(0.42 0.075 135 / 0.10);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  gap: var(--sp-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--serif);
  color: var(--olive);
}
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid oklch(0.42 0.075 135 / 0.18);
}
.brand__name { font-size: 1.25rem; line-height: 1; }
.brand__tagline {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--olive-ink);
  position: relative;
  padding: 4px 2px;
  transition: color 200ms ease;
}
.nav a:hover { color: var(--terracotta-deep); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav a.nav__cta {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.6em 1.1em;
  border: 1px solid var(--olive);
  border-radius: var(--radius-pill);
  color: var(--cream);
  background: var(--olive);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.nav a.nav__cta:hover { background: var(--olive-ink); color: var(--cream); transform: translateY(-1px); }
.nav a.nav__cta::after { display: none; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid oklch(0.42 0.075 135 / 0.3);
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  color: var(--olive);
}
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-4);
    border-top: 1px solid oklch(0.42 0.075 135 / 0.12);
  }
  .nav.is-open a { font-size: var(--fs-md); font-family: var(--serif); color: var(--olive); }
  .nav.is-open .nav__cta { align-self: stretch; text-align: center; padding: 0.9em; font-family: var(--sans); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-8) 0 var(--sp-9);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-7);
  align-items: end;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.hero__copy { padding-bottom: var(--sp-5); }
.hero__title {
  font-size: var(--fs-2xl);
  line-height: 0.98;
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta-deep);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.12em;
  background: var(--terracotta-soft);
  z-index: -1;
  opacity: 0.55;
}
.hero__sub {
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.35;
  color: var(--olive-ink);
  margin: 0 0 var(--sp-5);
  max-width: 38ch;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: var(--sp-5);
}
.hero__meta span { display: inline-flex; gap: 0.6em; align-items: center; }
.hero__meta svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.4em;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, border-color 200ms ease;
  letter-spacing: 0.01em;
}
.btn svg { width: 1em; height: 1em; }
.btn--primary {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive);
}
.btn--primary:hover { background: var(--olive-ink); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--olive-ink);
  border: 1px solid var(--olive);
}
.btn--ghost:hover { background: var(--olive); color: var(--cream); transform: translateY(-1px); }
.btn--terracotta {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.btn--terracotta:hover { background: var(--terracotta-deep); transform: translateY(-1px); }

.hero__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 78vh;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

/* stamped badge over the photo */
.hero__stamp {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  padding: 1em;
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
}
.hero__stamp::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px dashed oklch(1 0 0 / 0.55);
  border-radius: 50%;
}
.hero__stamp strong { display: block; font-size: 1.4rem; margin-bottom: 0.15em; }

@media (max-width: 600px) {
  .hero__stamp { width: 110px; height: 110px; font-size: 0.72rem; bottom: -18px; left: -12px; }
  .hero__stamp strong { font-size: 1.1rem; }
}

/* horizontal marquee strip under hero */
.marquee {
  background: var(--olive-ink);
  color: var(--cream);
  padding: var(--sp-3) 0;
  overflow: hidden;
  position: relative;
  font-family: var(--serif);
  font-size: 1rem;
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  gap: 2.5em;
  animation: marquee 38s linear infinite;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 1em; }
.marquee__track i {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--terracotta-soft);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Generic section ---------- */
.section {
  padding-block: var(--sp-9);
  position: relative;
}
.section--tight { padding-block: var(--sp-7); }
.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-5);
  align-items: end;
  margin-bottom: var(--sp-7);
}
.section__head p { margin: 0; font-family: var(--serif); font-size: var(--fs-md); line-height: 1.4; }
@media (max-width: 720px) {
  .section__head { grid-template-columns: 1fr; }
}

/* ---------- Place / story section ---------- */
.place {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 880px) {
  .place { grid-template-columns: 1fr; }
}

.place__art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 60px);
  gap: var(--sp-3);
}
.place__art .a {
  grid-column: 1 / span 4;
  grid-row: 1 / span 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.place__art .b {
  grid-column: 4 / span 3;
  grid-row: 3 / span 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--cream);
}
.place__art img { width: 100%; height: 100%; object-fit: cover; }

.place__copy h2 { max-width: 14ch; }
.place__copy p { margin-bottom: var(--sp-4); }
.place__sign {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  font-family: var(--serif);
  color: var(--olive);
  font-style: italic;
}
.place__sign::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--terracotta);
}

/* ---------- Principles / what we offer ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
  align-items: stretch;
}
.principle {
  background: var(--cream-deep);
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border: 1px solid oklch(0.42 0.075 135 / 0.08);
  position: relative;
}
.principle__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}
.principle h3 { font-size: var(--fs-md); margin: 0; color: var(--olive); }
.principle p { font-size: var(--fs-sm); margin: 0; color: var(--olive-ink); }

/* slight variation in card backgrounds to avoid identical-card-grid feel */
.principle:nth-child(2) { background: oklch(0.91 0.03 75); }
.principle:nth-child(3) { background: oklch(0.94 0.022 130); }
.principle:nth-child(4) { background: oklch(0.92 0.038 65); }

/* ---------- Selected plants strip ---------- */
.selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}
.plant {
  background: var(--cream);
  border: 1px solid oklch(0.42 0.075 135 / 0.12);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform 240ms cubic-bezier(0.22,1,0.36,1), box-shadow 240ms ease, border-color 240ms ease;
}
.plant:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: oklch(0.42 0.075 135 / 0.3);
}
.plant__icon {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: oklch(0.94 0.025 130);
  border-radius: var(--radius-sm);
  color: var(--olive);
}
.plant__icon svg { width: 56%; height: 56%; }
.plant__name {
  font-family: var(--serif);
  font-size: var(--fs-md);
  color: var(--olive);
  margin: 0;
  line-height: 1.1;
}
.plant__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border: 1px solid oklch(0.42 0.075 135 / 0.25);
  border-radius: var(--radius-pill);
  color: var(--olive);
  background: oklch(0.965 0.012 85 / 0.6);
  font-weight: 500;
}
.tag--accent { color: var(--terracotta-deep); border-color: oklch(0.68 0.14 50 / 0.4); }
.tag--bay { color: var(--bay-deep); border-color: oklch(0.5 0.07 220 / 0.35); }

.plant__care {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 0.9em;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--olive-ink);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px dashed oklch(0.42 0.075 135 / 0.18);
}
.plant__care span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-width: 0;
  white-space: nowrap;
}
.plant__care em {
  font-style: normal;
}
.plant__care svg {
  width: 13px;
  height: 13px;
  color: var(--terracotta-deep);
  flex-shrink: 0;
}
.plant__desc {
  font-size: var(--fs-sm);
  color: var(--olive-ink);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Mosaic gallery ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 130px;
  gap: var(--sp-3);
}
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius-md); position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.22,1,0.36,1); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: oklch(0.27 0.035 135 / 0.6);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(2px);
}
.mosaic .m1 { grid-column: 1 / span 7; grid-row: span 4; }
.mosaic .m2 { grid-column: 8 / span 5; grid-row: span 2; }
.mosaic .m3 { grid-column: 8 / span 5; grid-row: span 2; }
.mosaic .m4 { grid-column: 1 / span 4; grid-row: span 3; }
.mosaic .m5 { grid-column: 5 / span 4; grid-row: span 3; }
.mosaic .m6 { grid-column: 9 / span 4; grid-row: span 3; }
@media (max-width: 820px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; }
  .mosaic .m1 { grid-column: 1 / span 6; grid-row: span 3; }
  .mosaic .m2 { grid-column: 1 / span 3; grid-row: span 2; }
  .mosaic .m3 { grid-column: 4 / span 3; grid-row: span 2; }
  .mosaic .m4 { grid-column: 1 / span 6; grid-row: span 3; }
  .mosaic .m5 { grid-column: 1 / span 3; grid-row: span 2; }
  .mosaic .m6 { grid-column: 4 / span 3; grid-row: span 2; }
}

/* ---------- Visit / contact block ---------- */
.visit {
  background: var(--olive-ink);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: var(--sp-8) var(--sp-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  position: relative;
  overflow: hidden;
}
.visit h2 { color: var(--cream-warm); margin-bottom: var(--sp-3); }
.visit p { color: oklch(0.92 0.015 80); }
.visit ul {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
}
.visit li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.visit li:last-child { border-bottom: 0; }
.visit li b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--terracotta-soft);
  letter-spacing: 0.05em;
}
.visit__map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid oklch(1 0 0 / 0.1);
  position: relative;
  /* Hand-drawn cerro fallback so the area never feels empty */
  background:
    radial-gradient(circle at 22% 28%, oklch(0.7 0.12 60 / 0.55) 0 14px, transparent 15px),
    linear-gradient(180deg, oklch(0.55 0.05 220) 0%, oklch(0.42 0.04 220) 38%, oklch(0.36 0.07 135) 38%, oklch(0.32 0.08 135) 100%);
  display: grid;
  place-items: end stretch;
}
.visit__map::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, oklch(0 0 0 / 0) 0 10px, oklch(0 0 0 / 0.04) 10px 11px);
}
.visit__map iframe {
  width: 100%; height: 100%; min-height: 320px; border: 0;
  filter: saturate(0.85) sepia(0.05);
  position: relative; z-index: 1;
}
.visit__map__hint {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--sp-3) var(--sp-4);
  background: oklch(0.27 0.035 135 / 0.8);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  backdrop-filter: blur(2px);
}
.visit__map__hint a {
  color: var(--terracotta-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.visit__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.visit__cta .btn--ghost { color: var(--cream); border-color: oklch(1 0 0 / 0.45); }
.visit__cta .btn--ghost:hover { background: var(--cream); color: var(--olive-ink); }
@media (max-width: 880px) { .visit { grid-template-columns: 1fr; padding: var(--sp-6) var(--sp-5); } }

/* ---------- Footer ---------- */
.footer {
  background: var(--cream-deep);
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: var(--sp-8);
  border-top: 1px solid oklch(0.42 0.075 135 / 0.1);
  font-size: var(--fs-sm);
  color: var(--olive-ink);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: var(--sp-3);
}
.footer ul { display: grid; gap: 0.4em; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid oklch(0.42 0.075 135 / 0.15);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: oklch(0.42 0.075 135 / 0.8);
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
}

/* ---------- Catalog page ---------- */
.cat-hero {
  padding: var(--sp-8) 0 var(--sp-5);
}
.cat-hero h1 { font-size: var(--fs-xl); }
.cat-hero p { max-width: 60ch; font-size: var(--fs-md); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-4) 0 var(--sp-3);
  border-top: 1px solid oklch(0.42 0.075 135 / 0.12);
  border-bottom: 1px solid oklch(0.42 0.075 135 / 0.12);
  position: sticky;
  top: 76px;
  z-index: 20;
  background: oklch(0.965 0.012 85 / 0.92);
  backdrop-filter: blur(8px);
}
.filters__group { display: flex; gap: 0.4em; flex-wrap: wrap; }
.filters__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-right: 0.5em;
  font-weight: 600;
}
.filter-chip {
  background: transparent;
  border: 1px solid oklch(0.42 0.075 135 / 0.3);
  color: var(--olive);
  padding: 0.4em 0.95em;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.filter-chip:hover { background: oklch(0.42 0.075 135 / 0.08); }
.filter-chip[aria-pressed="true"] {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive);
}
.filters__search {
  margin-left: auto;
  position: relative;
}
.filters__search input {
  appearance: none;
  border: 1px solid oklch(0.42 0.075 135 / 0.3);
  background: var(--cream);
  border-radius: var(--radius-pill);
  padding: 0.55em 1em 0.55em 2.4em;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--olive-ink);
  min-width: 220px;
  transition: border-color 200ms, background 200ms;
}
.filters__search input:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--cream);
}
.filters__search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--olive);
  pointer-events: none;
}
@media (max-width: 600px) {
  .filters__search { margin-left: 0; flex: 1 1 100%; }
  .filters__search input { width: 100%; }
}

.catalog-count {
  font-family: var(--serif);
  color: var(--olive);
  font-size: var(--fs-sm);
  margin: var(--sp-5) 0;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
  padding-bottom: var(--sp-9);
}
.catalog-empty {
  padding: var(--sp-8) 0;
  text-align: center;
  font-family: var(--serif);
  font-size: var(--fs-md);
  color: var(--olive);
}

/* ---------- Plant detail dialog ---------- */
.plant-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--olive-ink);
  max-width: min(640px, 92vw);
  width: 100%;
  max-height: 88dvh;
  border-radius: 16px;
  box-shadow: 0 30px 80px oklch(0.2 0.03 135 / 0.4);
  overflow: visible;
  margin: auto;
}
.plant-dialog::backdrop {
  background: oklch(0.2 0.03 135 / 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.plant-dialog[open] {
  animation: pd-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.plant-dialog[open]::backdrop {
  animation: pd-bg-in 280ms ease-out both;
}
@keyframes pd-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes pd-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pd {
  position: relative;
  background: var(--cream);
  background-image:
    radial-gradient(oklch(0.85 0.025 75 / 0.18) 1px, transparent 1.4px),
    radial-gradient(oklch(0.85 0.025 75 / 0.10) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
  border-radius: 16px;
  border: 1px solid oklch(0.42 0.075 135 / 0.18);
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
  overflow: hidden;
}
.pd__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: 1px solid oklch(0.42 0.075 135 / 0.2);
  color: var(--olive);
  display: grid;
  place-items: center;
  transition: background 200ms, color 200ms, transform 200ms;
}
.pd__close:hover { background: var(--terracotta); color: var(--cream); transform: rotate(90deg); }
.pd__close svg { width: 18px; height: 18px; }

.pd__head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-6) var(--sp-6) var(--sp-4);
  background: linear-gradient(180deg, oklch(0.94 0.022 130) 0%, transparent 100%);
  border-bottom: 1px dashed oklch(0.42 0.075 135 / 0.2);
}
.pd__head .eyebrow { margin-bottom: 0.25em; }
.pd__icon {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: oklch(0.94 0.025 130);
  border: 1px solid oklch(0.42 0.075 135 / 0.15);
  display: grid;
  place-items: center;
  color: var(--olive);
}
.pd__icon svg { width: 70%; height: 70%; }
.pd__name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  line-height: 1.05;
  color: var(--olive);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
.pd__tags { display: flex; flex-wrap: wrap; gap: 0.4em; }

.pd__body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.pd__desc {
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--olive-ink);
  margin: 0;
  max-width: 58ch;
}

.pd__curio {
  background: oklch(0.93 0.04 70);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 10px;
  position: relative;
}
.pd__curio-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 600;
  margin-bottom: 0.4em;
}
.pd__curio p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--olive-ink);
}

.pd__care h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 var(--sp-3);
  font-weight: 600;
}
.pd__care dl { margin: 0; display: flex; flex-direction: column; gap: 0; }
.pd__care-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed oklch(0.42 0.075 135 / 0.18);
}
.pd__care-row:last-child { border-bottom: 0; }
.pd__care-row dt {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--olive);
}
.pd__care-row dt svg {
  width: 18px;
  height: 18px;
  color: var(--terracotta-deep);
  flex-shrink: 0;
}
.pd__care-row dd {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.4;
  color: var(--olive-ink);
}

.pd__extra h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 var(--sp-2);
  font-weight: 600;
}
.pd__extra p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--olive-ink);
}

.pd__cta {
  align-self: flex-start;
  margin-top: var(--sp-2);
}

@media (max-width: 600px) {
  .plant-dialog { max-width: 96vw; max-height: 92dvh; border-radius: 14px; }
  .pd { max-height: 92dvh; border-radius: 14px; }
  .pd__head {
    grid-template-columns: 64px 1fr;
    padding: var(--sp-5) var(--sp-5) var(--sp-4);
  }
  .pd__icon { width: 64px; height: 64px; }
  .pd__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
  .pd__care-row { grid-template-columns: 1fr; gap: 4px; padding: var(--sp-3) 0; }
  .pd__care-row dt { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .plant-dialog[open], .plant-dialog[open]::backdrop { animation: none; }
  .pd__close:hover { transform: none; }
}

/* hint that cards are clickable */
.plant { cursor: pointer; }
.plant:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
.plant::after {
  content: '→';
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-4);
  color: var(--terracotta-deep);
  font-family: var(--serif);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.plant { position: relative; }
.plant:hover::after, .plant:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* lock body scroll when dialog is open */
html:has(dialog[open]) { overflow: hidden; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22,1,0.36,1),
              transform 700ms cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Focus styles ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Decorative svg/illustration helpers ---------- */
.deco-leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  color: var(--olive);
  z-index: 0;
}

/* small horizontal divider with a dot */
.divider {
  display: flex;
  align-items: center;
  gap: 0.9em;
  color: var(--olive);
  font-family: var(--serif);
  margin: 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: oklch(0.42 0.075 135 / 0.2);
}

/* layered cream/olive section variant */
.section--cream-deep { background: var(--cream-deep); }
.section--cream-deep::before, .section--cream-deep::after { display: none; }

.section-edge {
  display: block;
  width: 100%;
  height: 32px;
  color: var(--cream-deep);
}

/* relative content layer above the paper texture */
.wrap, .site-header, .marquee, .footer { position: relative; z-index: 1; }
