/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --bg: #ece1c6;
  --bg-panel: #f6efdc;
  --ink: #2b2118;
  --ink-dim: #6b5d48;
  --line: #cab98d;
  --plum: #6b2737;
  --sage: #4d5f42;
  --honey: #93691a;
  --shadow: rgba(43, 33, 24, 0.16);

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a2018;
    --bg-panel: #212a1d;
    --ink: #ece1c6;
    --ink-dim: #b2a688;
    --line: #3b4432;
    --plum: #d17b93;
    --sage: #93b47c;
    --honey: #dbac47;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #1a2018;
  --bg-panel: #212a1d;
  --ink: #ece1c6;
  --ink-dim: #b2a688;
  --line: #3b4432;
  --plum: #d17b93;
  --sage: #93b47c;
  --honey: #dbac47;
  --shadow: rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] {
  --bg: #ece1c6;
  --bg-panel: #f6efdc;
  --ink: #2b2118;
  --ink-dim: #6b5d48;
  --line: #cab98d;
  --plum: #6b2737;
  --sage: #4d5f42;
  --honey: #93691a;
  --shadow: rgba(43, 33, 24, 0.16);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.75rem;
}

section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--line); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

/* ---------- hand-tag (signature element) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink-dim);
  transform: rotate(-2deg);
  margin-bottom: 1.1rem;
}
.tag::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-dim);
  background: var(--bg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  overflow: hidden;
  background-image:
    linear-gradient(100deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 32%, color-mix(in srgb, var(--bg) 12%, transparent) 64%),
    url('assets/hero-garden.jpg');
  background-size: cover;
  background-position: center 62%;
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.2rem);
  font-variation-settings: 'SOFT' 90, 'WONK' 1, 'opsz' 144;
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-dim);
  max-width: 42ch;
  margin: 1.6rem 0 2.2rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--bg-panel);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow); }

/* ---------- about ---------- */
.about .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 760px) {
  .about .wrap { grid-template-columns: 1fr; }
}
.about p {
  font-size: 1.15rem;
  max-width: 58ch;
  color: var(--ink);
}
.about p + p { margin-top: 1.1rem; color: var(--ink-dim); }

/* ---------- pinned photo (about + shop) ---------- */
.pinned-photo { position: relative; }
.pinned-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 10px solid var(--bg-panel);
  box-shadow: 0 8px 0 var(--shadow);
}
.pinned-photo::before {
  content: '';
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 2px 3px var(--shadow);
  z-index: 2;
}
.pinned-photo.tilt-left { transform: rotate(-2deg); }
.pinned-photo.tilt-right { transform: rotate(2deg); }
.pinned-photo.tilt-right img { aspect-ratio: 4 / 3; }

/* ---------- pillars: seed packets ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
@media (max-width: 820px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

.packet {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem 1.8rem;
  position: relative;
  box-shadow: 0 3px 0 var(--shadow);
}
.packet::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 10px;
  background-image: linear-gradient(135deg, var(--bg) 50%, transparent 50%),
                     linear-gradient(-135deg, var(--bg) 50%, transparent 50%);
  background-size: 16px 16px;
  background-position: top left;
  background-repeat: repeat-x;
}
.packet .icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--sage);
  margin-bottom: 1rem;
}
.packet h3 {
  font-size: 1.4rem;
  font-variation-settings: 'SOFT' 70, 'WONK' 0, 'opsz' 40;
  margin-bottom: 0.6rem;
}
.packet p {
  color: var(--ink-dim);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- grow strip: seasonal snapshots ---------- */
.grow-strip-tag { margin-top: 3rem; }
.grow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.grow-strip figure {
  margin: 0;
  width: 160px;
  background: var(--bg-panel);
  border: 8px solid var(--bg-panel);
  box-shadow: 0 5px 0 var(--shadow);
  text-align: center;
}
.grow-strip figure:nth-child(odd) { transform: rotate(-2deg); }
.grow-strip figure:nth-child(even) { transform: rotate(2deg); }
.grow-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.grow-strip figcaption {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--ink-dim);
  padding: 0.4rem 0 0.15rem;
}
@media (max-width: 620px) {
  .grow-strip figure { width: calc(50% - 0.75rem); }
}

/* ---------- shop ---------- */
.shop-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 760px) {
  .shop-wrap { grid-template-columns: 1fr; }
}
.shop-intro {
  font-size: 1.15rem;
  max-width: 56ch;
  color: var(--ink-dim);
  margin-bottom: 2.2rem;
}
.jars {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 2.4rem;
}
.jar-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--bg-panel);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
}
.jar-label .soon {
  position: absolute;
  top: -0.7rem;
  right: -0.6rem;
  background: var(--honey);
  color: var(--bg-panel);
  font-family: var(--font-hand);
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  transform: rotate(6deg);
  white-space: nowrap;
}

/* ---------- friends of the acre ---------- */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.friend-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1.5rem;
  box-shadow: 0 3px 0 var(--shadow);
}
.friend-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.friend-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.friend-card h3 {
  font-size: 1.3rem;
  font-variation-settings: 'SOFT' 70, 'WONK' 0, 'opsz' 40;
  margin-bottom: 0.4rem;
}
.friend-card a {
  color: var(--plum);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--plum) 60%, transparent);
}
.friend-card a:hover { border-bottom-style: solid; }

/* ---------- footer ---------- */
footer { padding: 3.5rem 0; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.footer-row a {
  text-decoration: none;
  border-bottom: 1px dashed var(--ink-dim);
}
.footer-row a:hover { color: var(--plum); border-color: var(--plum); }
.footer-mark {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--ink-dim);
}

/* ---------- motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}
