/* Mini Mint Farm
   Warm paper, mint accent, rustic but plain.
   Phone, email, and address placeholders are in the HTML, not here. */

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-baskerville-400.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libre-baskerville-700.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-700.woff2") format("woff2");
}

:root {
  --ink: #4e4842;
  --heading: #6e655c;
  --muted: #5e564e;
  --cream: #f4efe4;
  --paper: #fffcf7;
  --line: #e4dccf;
  --mint: #3f6558;
  --mint-deep: #2f5248;
  --mint-fresh: #86b8a3;
  --mint-bright: #91baab;
  --mint-soft: #e7f3ef;
  --forest: #86b8a3;
  --focus: #2f5248;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
.wordmark,
.footer-name {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading);
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin: 0 0 0.5rem;
}

h3 {
  font-size: 1.28rem;
  margin: 0;
}

p {
  margin: 0 0 0.8rem;
}

a {
  color: var(--mint-deep);
}

a:hover {
  color: var(--mint-deep);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

#main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  background: #fff;
  color: var(--mint-deep);
  padding: 0.65rem 1rem;
  z-index: 100;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.page {
  padding: 1.5rem 0 2.5rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 65ch;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-deep);
}

.note {
  background: #fff8ec;
  border: 1px solid #e4c48a;
  border-left: 6px solid #c9843f;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}

.glossary,
.fine,
.hero-media figcaption {
  color: var(--muted);
  font-size: 0.95rem;
}

code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.92em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.brand-bar {
  height: 6px;
  background: linear-gradient(90deg, #86b8a3, #91baab 62%, #c4a574);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 76px;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: auto;
  height: 78px;
  max-width: min(220px, 46vw);
  flex: none;
}

.site-footer .logo-mark {
  height: 88px;
  max-width: 160px;
  margin-bottom: 0.35rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.wordmark {
  font-size: 1.35rem;
  line-height: 1.05;
}

.tagline {
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d9d0c2;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.7rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.35rem 0.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--mint-deep);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

/* Hero and home */

.hero {
  padding-top: 1.25rem;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--mint-soft);
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.15rem 1.4rem;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.pathways {
  display: grid;
  gap: 1rem;
  margin: 0.5rem 0 2rem;
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.path-card:hover {
  border-color: var(--mint-fresh);
}

.path-card h2 {
  color: var(--ink);
}

.path-card p {
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.path-card .go {
  color: var(--mint-deep);
  font-weight: 700;
  margin-top: 0.35rem;
}

.about-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
}

.about-grid img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--mint-soft);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.fact-row li {
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

/* Buttons, chips, cards */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--mint);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--mint);
  cursor: pointer;
}

.btn:hover {
  background: #314e45;
  border-color: #314e45;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--mint-deep);
}

.btn-ghost:hover {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.filters,
.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.chip {
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d9d0c2;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--mint);
  border-color: var(--mint);
  color: #fff;
}

.jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--mint-soft);
  text-decoration: none;
  font-weight: 700;
  color: var(--mint-deep);
}

.catalog,
.product-grid {
  display: grid;
  gap: 1rem;
}

.animal-card,
.product-card,
.info-card,
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.animal-card,
.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.animal-card.is-sold {
  opacity: 0.92;
}

.animal-photo,
.product-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mint-soft);
}

.animal-photo img,
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin: 0;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.badge-available {
  background: var(--mint);
  color: #fff;
}

.badge-pending {
  background: #f8e3bf;
  color: #5c3b09;
}

.badge-sold {
  background: #ece7e1;
  color: #3f3a36;
}

.badge-for-sale {
  background: var(--mint);
  color: #fff;
}

.badge-herd {
  background: var(--mint-bright);
  color: var(--mint-deep);
}

.badge-other {
  background: #fff;
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li {
  background: var(--mint-bright);
  color: var(--mint-deep);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
}

.nickname {
  display: block;
  margin-top: 0.2rem;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.photo-fallback {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--mint-soft);
  color: var(--mint-deep);
  text-align: center;
  padding: 1rem;
}

.photo-fallback img {
  width: 64px;
  height: 64px;
}

.photo-fallback p {
  margin: 0;
  font-weight: 700;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.thumbs button[aria-pressed="true"] {
  border-color: var(--mint);
}

.thumbs img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card-body .btn {
  margin-top: auto;
  width: 100%;
}

.ear-tag {
  display: inline-block;
  margin-left: 0.35rem;
  background: #f3d56a;
  color: #3a2a10;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 3px 10px 10px 3px;
  border: 1px solid #dfc15a;
  vertical-align: 2px;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
}

.facts .wide {
  grid-column: 1 / -1;
}

.facts dt,
.k,
.info-list .k {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 700;
}

.desc {
  margin: 0;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--mint);
  margin: 0.15rem 0;
}

.product-card .k {
  display: block;
}

.product-group {
  margin-top: 2rem;
}

.product-group h2 {
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--mint-bright);
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
}

/* Contact */

.contact-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.info-card,
.form-card {
  padding: 1.15rem 1.15rem 1.35rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  margin: 0 0 0.9rem;
}

.form-grid,
.form-row {
  display: grid;
  gap: 0.85rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.28rem;
}

.req {
  font-weight: 700;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc5b6;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  min-height: 44px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

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

.form-card {
  position: relative;
}

#form-heading {
  overflow-wrap: anywhere;
}

.narrow {
  max-width: 40rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Footer */

.site-footer {
  background: var(--forest);
  color: #241e18;
  padding: 2rem 0 1.2rem;
  margin-top: 1rem;
}

.site-footer a {
  color: #241e18;
}

.site-footer a:hover {
  color: #14362c;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.footer-name {
  color: #241e18;
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.site-footer nav a {
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-base {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(20, 84, 69, 0.28);
  padding-top: 0.8rem;
  font-size: 0.92rem;
}

/* Wider layouts */

@media (min-width: 700px) {
  .catalog,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem));
  }

  .hero-card {
    padding: 1.6rem 1.8rem 1.75rem;
  }

  .pathways {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr auto;
  }

  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (min-width: 1000px) {
  .product-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  html.js .site-nav {
    display: none;
  }

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

  .site-nav {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.4rem;
  }

  .site-nav a {
    border-top: 1px solid var(--line);
    padding: 0.35rem 0.15rem;
  }
}

@media (max-width: 380px) {
  .logo-mark {
    height: 64px;
    max-width: 54vw;
  }
}

.coming {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  max-width: 40rem;
}

.recipe-card h2,
.favorite-card h2 {
  font-size: 1.35rem;
}

.recipe-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.15rem 1.5rem;
}

.recipe-sheet ol,
.recipe-sheet ul {
  padding-left: 1.2rem;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--muted);
  font-weight: 700;
}

@media print {
  .page-recipe .site-header,
  .page-recipe .site-footer,
  .page-recipe .brand-bar,
  .page-recipe .recipe-back,
  .page-recipe .skip-link {
    display: none !important;
  }

  .page-recipe .recipe-sheet {
    border: 0;
    padding: 0;
  }

  .page-recipe body,
  .page-recipe {
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .nav-toggle,
  .brand-bar,
  .filters {
    display: none;
  }

  .site-nav {
    display: flex !important;
  }

  body {
    background: #fff;
  }

  .btn {
    background: #fff;
    color: #000;
    border-color: #000;
  }
}
