/* ==========================================================
   My Daughter's Farm — vintage apothecary theme
   Colors live in :root so the whole palette can be tuned here.
   ========================================================== */

:root {
  --kraft: #c9ae84;          /* kraft-paper brown */
  --kraft-dark: #b39668;
  --parchment: #f3e9d2;      /* label paper */
  --parchment-deep: #e8dabb;
  --ink: #2b2620;            /* near-black ink */
  --ink-soft: #5a4f42;
  --green: #2f4a3a;          /* apothecary bottle green */
  --green-light: #4d6b57;
  --honey: #c98f2c;          /* honey / wax-seal gold */
  --rust: #8a3b25;

  --serif-display: "IM Fell English", "Georgia", serif;
  --serif-caps: "IM Fell English SC", "Georgia", serif;
  --serif-body: "EB Garamond", "Georgia", serif;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--kraft);
  /* subtle paper grain made from SVG noise — no image file needed */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .12  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a { color: var(--green); }
a:hover { color: var(--rust); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--parchment);
  border-bottom: 3px double var(--honey);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--serif-caps);
  font-size: 1.25rem;
  letter-spacing: .04em;
}
.brand:hover { color: var(--honey); }
.brand .emblem { width: 50px; height: 50px; flex: none; }

.nav { display: flex; gap: 1.4rem; }
.nav a {
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--serif-caps);
  font-size: 1.05rem;
  letter-spacing: .06em;
}
.nav a:hover { color: var(--honey); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--parchment);
  color: var(--parchment);
  font: inherit;
  font-family: var(--serif-caps);
  padding: .3rem .8rem;
  border-radius: 3px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--green);
    border-bottom: 3px double var(--honey);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem var(--gutter); border-top: 1px solid var(--green-light); }
  .brand span { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-label {
  background: var(--parchment);
  border: 1px solid var(--ink);
  outline: 6px solid var(--parchment);
  box-shadow: 0 0 0 7px var(--ink), 6px 10px 22px rgba(43, 38, 32, .35);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  margin: 7px;
}

.hero-label .hero-emblem { width: 210px; height: 210px; margin: 0 auto 1rem; }

.eyebrow {
  font-family: var(--serif-caps);
  letter-spacing: .18em;
  font-size: .95rem;
  color: var(--rust);
  margin: 0 0 .35rem;
}

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5rem;
}

.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3rem); color: var(--green); }

.rule {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--honey);
  margin: 1rem auto;
  max-width: 260px;
}
.rule::before,
.rule::after { content: ""; flex: 1; height: 1px; background: currentColor; }

.hero p.lede { font-size: 1.2rem; margin: 0 0 1.5rem; color: var(--ink-soft); }

.btn {
  display: inline-block;
  font-family: var(--serif-caps);
  letter-spacing: .1em;
  font-size: 1.05rem;
  text-decoration: none;
  padding: .7rem 1.5rem;
  border: 2px solid var(--green);
  color: var(--parchment);
  background: var(--green);
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--green); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: var(--parchment); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Photos styled like snapshots tacked to the wall */
.snapshot {
  background: var(--parchment);
  padding: 12px 12px 14px;
  box-shadow: 4px 8px 20px rgba(43, 38, 32, .35);
  position: relative;
  margin: 0;
}
.snapshot img { width: 100%; height: auto; object-fit: cover; }
.snapshot figcaption {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  padding-top: .5rem;
  font-size: 1rem;
}
.snapshot::before {           /* strip of tape */
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(243, 233, 210, .7);
  border: 1px solid rgba(90, 79, 66, .15);
}
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }

.hero .snapshot img { aspect-ratio: 4 / 3; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .snapshot { order: -1; }
}

/* ---------- Sections ---------- */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); color: var(--green); }
.section-head p { color: var(--ink-soft); margin: .25rem 0 0; }

.paper {
  background: var(--parchment);
  border-top: 3px double var(--ink-soft);
  border-bottom: 3px double var(--ink-soft);
}
.dark {
  background: var(--green);
  color: var(--parchment);
  border-top: 3px double var(--honey);
  border-bottom: 3px double var(--honey);
}
.dark .section-head h2 { color: var(--parchment); }
.dark .section-head p { color: var(--parchment-deep); }
.dark .eyebrow { color: var(--honey); }

/* ---------- Story ---------- */

.story {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.story-text p { margin: 0 0 1.1rem; }
.story-text p:first-of-type::first-letter {
  font-family: var(--serif-display);
  float: left;
  font-size: 4.2rem;
  line-height: .85;
  padding: .3rem .5rem 0 0;
  color: var(--rust);
}
.story-text h3 {
  font-size: 1.6rem;
  color: var(--green);
  margin-top: 2rem;
}
.signature {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--green);
}

.story-photos { display: grid; gap: 2.25rem; position: sticky; top: 100px; }
.story-photos .snapshot img { aspect-ratio: 4 / 5; }
.story-photos .snapshot.wide img { aspect-ratio: 4 / 3; }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-photos { position: static; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .story-photos .snapshot.wide { grid-column: 1 / -1; }
}

.critters {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
  align-items: start;
}
.critters .snapshot:first-child img { aspect-ratio: 4 / 3; }
.critters .snapshot:last-child img { aspect-ratio: 4 / 4.5; }
@media (max-width: 760px) {
  .critters { grid-template-columns: 1fr; }
  .critters .snapshot:last-child img { aspect-ratio: 4 / 3; }
}

/* ---------- Products: apothecary labels ---------- */

.labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .labels { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.label {
  background: var(--parchment);
  color: var(--ink);
  border: 1px solid var(--ink);
  outline: 5px solid var(--parchment);
  box-shadow: 0 0 0 6px var(--ink-soft), 4px 8px 18px rgba(0, 0, 0, .3);
  margin: 6px;
  padding: 2rem 1.6rem 1.75rem;
  text-align: center;
  border-radius: 46% 46% 6px 6px / 14% 14% 6px 6px;   /* jar-label arch */
  display: flex;
  flex-direction: column;
}
.label .no {
  font-family: var(--serif-caps);
  letter-spacing: .25em;
  font-size: .85rem;
  color: var(--rust);
}
.label h3 { font-size: 1.85rem; color: var(--green); margin: .25rem 0 .2rem; }
.label .sub {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}
.label .icon { width: 60px; height: 60px; margin: 1rem auto; color: var(--green); }
.label p.desc { margin: 0 0 1rem; flex: 1; }
.label .ingredients {
  border-top: 1px dashed var(--ink-soft);
  padding-top: .85rem;
  font-size: .98rem;
  color: var(--ink-soft);
  margin: 0;
}
.label .ingredients strong {
  font-family: var(--serif-caps);
  letter-spacing: .1em;
  font-weight: 400;
  color: var(--ink);
}

.products-note {
  text-align: center;
  max-width: 620px;
  margin: 3rem auto 0;
  font-style: italic;
  color: var(--parchment-deep);
}

/* ---------- Goats ---------- */

.goats { display: grid; gap: clamp(3rem, 7vw, 5rem); }

.goat {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
.goat:nth-child(even) .goat-photos { order: 2; }

.goat-photos { display: grid; gap: 1.5rem; }
.goat-photos.pair { grid-template-columns: 1fr 1fr; align-items: start; }
.goat-photos .snapshot img { aspect-ratio: 3 / 4; }
.goat-photos .snapshot.wide img { aspect-ratio: 4 / 3; }

.goat h3 { font-size: clamp(2.2rem, 4vw, 2.8rem); color: var(--green); margin: 0; }
.goat .role {
  font-family: var(--serif-caps);
  letter-spacing: .14em;
  color: var(--rust);
  font-size: .95rem;
  margin: 0 0 1rem;
}
.goat p { margin: 0 0 1rem; }

.tag-card {
  border: 1px solid var(--ink-soft);
  background: var(--parchment-deep);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 1.02rem;
  position: relative;
}
.tag-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.tag-card dt {
  font-family: var(--serif-caps);
  letter-spacing: .1em;
  color: var(--green);
}
.tag-card dd { margin: 0; }

@media (max-width: 760px) {
  .goat { grid-template-columns: 1fr; }
  .goat:nth-child(even) .goat-photos { order: 0; }
}

/* ---------- Find us ---------- */

.find {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 860px) { .find { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.find-card {
  background: var(--parchment);
  border: 1px solid var(--ink);
  outline: 4px solid var(--parchment);
  box-shadow: 0 0 0 5px var(--ink-soft);
  margin: 5px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.find-card h3 { font-size: 1.6rem; color: var(--green); }
.find-card p { margin: 0 0 .75rem; }
.find-card .icon { width: 44px; height: 44px; margin: 0 auto .75rem; color: var(--rust); }

/* Placeholder text that still needs real info — easy to spot, easy to search for "todo" */
.todo {
  background: #f6d77a;
  color: var(--ink);
  padding: 0 .3em;
  border-radius: 2px;
  font-style: normal;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--parchment-deep);
  text-align: center;
  padding: 3rem 0 2.5rem;
  font-size: 1rem;
}
.site-footer .footer-emblem { width: 130px; height: 130px; margin: 0 auto 1rem; }
.site-footer p { margin: .25rem 0; }
.site-footer a { color: var(--honey); }

.find-card .store-name {
  font-family: var(--serif-display);
  font-size: 1.5rem;
  color: var(--rust);
  margin: 0;
}
.find-card a { overflow-wrap: anywhere; }
.products-note a { color: var(--honey); }
.find-card a[href="mailto:mydaughtersfarmtx@gmail.com"] { font-size: 1rem; white-space: nowrap; }
.find-card address { font-style: normal; margin: 0 0 .75rem; }
.label .varieties {
  list-style: none;
  padding: 0;
  margin: .4rem 0 .9rem;
  line-height: 1.5;
}
.label .varieties li::before { content: "\2726  "; color: var(--honey); font-size: .8em; }
.label div.ingredients p { margin: 0; }


/* Farm emblem (pre-colored PNGs in images/: emblem-ink, emblem-cream, emblem-honey) */
.emblem { display: block; }
