/* Cove Fungi — shared styles (terracotta palette) */

:root {
  /* Palette: modern, fresh — paper white, deep ink, vivid moss, butter accent */
  --bone: #eef0ea;          /* soft off-white card surface */
  --bone-2: #e2e6dd;        /* slightly deeper neutral */
  --cream: #f7f8f4;          /* page background, near-white with a green tint */
  --paper: #ffffff;          /* card / panel surface */
  --ink: #0f1714;            /* near-black with a hint of green */
  --ink-soft: #4a544f;       /* secondary text */
  --mushroom: #b85d3b;        /* terracotta — replaces forest green */
  --mushroom-2: #a14e2e;      /* deeper terracotta */
  --sage: #b85d3b;            /* terracotta accent */
  --sage-deep: #8a4324;       /* deep terracotta for eyebrows / links */
  --sage-pale: #f0c8b3;       /* pale terracotta */
  --terra: #e8a33d;           /* warm butter-amber accent (the pop) */
  --rule: #d6dcd2;            /* hairline */
  --rule-soft: #e6ebe2;       /* softer hairline */

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1100px 540px at 85% -10%, rgba(184, 93, 59, 0.10), transparent 60%),
    radial-gradient(700px 460px at -8% 22%, rgba(232, 163, 61, 0.07), transparent 60%),
    var(--cream);
  min-height: 100vh;
}

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--mushroom);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; font-weight: 500; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; font-weight: 600; }

p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--sage-deep);
  display: inline-block;
}

.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--mushroom-2);
}

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

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mushroom);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mushroom);
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.15);
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.brand-name em { font-style: italic; color: var(--sage-deep); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--mushroom); }
.nav-links a.active { color: var(--mushroom); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mushroom);
  color: var(--cream);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--ink); }
.nav-cta:active { transform: translateY(1px); }
.cart-count {
  background: var(--terra);
  color: var(--cream);
  font-size: 11px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--mushroom);
  color: var(--cream);
}
.btn-primary:hover { background: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--mushroom);
  border-color: var(--mushroom);
}
.btn-secondary:hover { background: var(--mushroom); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--mushroom); }
.btn-arrow::after {
  content: "→";
  transition: transform 0.2s;
}
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(184, 93, 59, 0.07) 0,
      rgba(184, 93, 59, 0.07) 1px,
      transparent 1px,
      transparent 12px),
    var(--bone);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--mushroom-2);
}
.ph .ph-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(251, 247, 238, 0.92);
  border: 1px solid var(--rule);
  padding: 6px 10px;
  border-radius: 6px;
  margin: 12px;
  max-width: calc(100% - 24px);
}
.ph .ph-label b { color: var(--mushroom); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 120px;
  background: var(--mushroom);
  color: var(--bone);
  padding: 80px 0 40px;
}
.footer h4 {
  color: var(--cream);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-mark {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 16px;
}
.footer-mark em { color: var(--sage-pale); }
.footer-tag {
  color: var(--bone);
  opacity: 0.75;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.5;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  color: var(--bone);
  opacity: 0.75;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}
.footer ul li a:hover { opacity: 1; }
.footer-base {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--bone);
  opacity: 0.6;
}

/* ---------- Section helpers ---------- */
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .lhs { max-width: 720px; }
.section-head h2 { margin-top: 12px; }
.section-head .desc {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 580px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(58, 44, 31, 0.25);
  border-color: var(--rule);
}

/* Form base */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--mushroom);
  background: #fff;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; gap: 12px; align-items: flex-start; }
}
