/* ==========================================================================
   Eve's Healthy Bakes — Workshop Landing Site
   Design tokens
   ========================================================================== */
:root {
  --ink: #2b2620;
  --olive: #5b6b3f;
  --olive-deep: #3a4326;
  --wheat: #f2ead2;
  --paper: #fbf7ec;
  --crust: #a1552f;
  --gold: #cf9a41;
  --line: rgba(43, 38, 32, 0.14);
  --shadow: 0 18px 40px -18px rgba(43, 38, 32, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--wheat);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-optical-sizing: auto;
}

.font-display { font-family: 'Fraunces', serif; }
.font-mono { font-family: 'Space Mono', monospace; }
.font-hand { font-family: 'Caveat', cursive; }

/* Texture: subtle flour-dust grain over the wheat background */
.grain-bg {
  background-color: var(--wheat);
  background-image:
    radial-gradient(rgba(43,38,32,0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}

/* ---------- Stamp badge (recreates the embroidered circular logo) ---------- */
.stamp {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  border: 2px solid var(--crust);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--crust);
  background: var(--paper);
  box-shadow: var(--shadow);
  position: relative;
  flex-shrink: 0;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px dashed var(--crust);
  opacity: 0.55;
}
.stamp-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ---------- Chalkboard signature section ---------- */
.chalkboard {
  background: linear-gradient(180deg, #262c1e, #1d2217);
  border: 10px solid #6b4a30;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.03),
    var(--shadow);
  position: relative;
}
.chalkboard::before {
  /* chalk dust flecks */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 40px 60px;
  pointer-events: none;
  border-radius: 4px;
}
.chalk-text {
  font-family: 'Caveat', cursive;
  color: #f3ead2;
  text-shadow: 0 0 1px rgba(255,255,255,0.25);
}
.chalk-rule {
  border-color: rgba(243,234,210,0.25);
}
.chalk-no {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: #f3ead2;
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--crust);
  color: var(--paper);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { background: #8c4526; transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--olive);
  color: var(--olive-deep);
  font-family: 'Space Mono', monospace;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover { background: var(--olive); color: var(--paper); }

/* ---------- Nav underline (accent, not decoration) ---------- */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--crust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Curriculum / detail cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* ---------- FAQ ---------- */
details.faq summary { cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s ease; }

/* ---------- Utility ---------- */
.section-label {
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--crust);
}

.legal h2 { font-family: 'Fraunces', serif; font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.6rem; color: var(--olive-deep); }
.legal p, .legal li { color: rgba(43,38,32,0.86); line-height: 1.75; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal strong { color: var(--ink); }
.placeholder { background: rgba(207,154,65,0.18); padding: 0 4px; border-radius: 3px; }

/* ---------- Marquee ---------- */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
.animate-marquee {
  flex-shrink: 0;
  display: flex;
  min-width: 100%;
  animation: marquee 30s linear infinite;
}
