/* ==========================================================================
   STYLES — you don't need to edit this file.
   Colors can be changed from the "theme" section at the bottom of content.js
   ========================================================================== */

:root {
  --flour: #f6f1e7;      /* page background */
  --linen: #fffdf8;      /* card background */
  --rye: #2a211a;        /* main text */
  --crumb: #7c6c5b;      /* secondary text */
  --enamel: #2f5a9e;     /* accent: buttons & links */
  --enamel-dark: #24477f;
  --crust: #c98a3b;      /* highlight: tags & score marks */
  --radius: 14px;
  --shadow: 0 2px 14px rgba(42, 33, 26, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--flour);
  color: var(--rye);
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--enamel); }

:focus-visible {
  outline: 3px solid var(--enamel);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- announcement ---------- */
.announcement {
  background: var(--rye);
  color: var(--flour);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}
.announcement p { margin: 0; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
}

.brand {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.25rem;
  color: var(--rye);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.site-nav a {
  color: var(--rye);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--crust); }

.nav-cta {
  background: var(--enamel);
  color: var(--linen) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover {
  background: var(--enamel-dark);
  border-bottom-color: transparent !important;
}

/* ---------- layout ---------- */
main section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.2rem 1.4rem 1rem;
}

.section-intro {
  color: var(--crumb);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* ---------- score-mark divider (signature) ---------- */
.score-divider {
  width: 96px;
  margin: 0 0 1.2rem;
}
.score-divider svg { display: block; width: 100%; }
.score-divider path {
  fill: none;
  stroke: var(--crust);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2.6rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--enamel);
  margin-bottom: 1.1rem;
}

.hero-sub {
  color: var(--crumb);
  font-size: 1.12rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.button {
  display: inline-block;
  background: var(--enamel);
  color: var(--linen);
  text-decoration: none;
  font-weight: 700;
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--enamel-dark); transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }

.button-quiet {
  background: transparent;
  color: var(--enamel);
  box-shadow: inset 0 0 0 2px var(--enamel);
}
.button-quiet:hover { background: rgba(47, 90, 158, 0.08); }

.hero-media img,
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* ---------- loaf artwork ---------- */
.loaf-art svg { width: 100%; height: auto; display: block; }
.loaf-body { fill: var(--linen); stroke: var(--rye); stroke-width: 3; }
.loaf-shadow { fill: rgba(42, 33, 26, 0.1); }
.loaf-score {
  fill: none;
  stroke: var(--crust);
  stroke-width: 3;
  stroke-linecap: round;
}
.loaf-art-card svg { max-height: 150px; margin: 0 auto; }
.loaf-art-thanks { max-width: 160px; margin: 0 auto; }

/* ---------- schedule strip ---------- */
.schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  background: var(--rye);
  color: var(--flour);
  border-radius: var(--radius);
  padding: 1rem 1.6rem !important;
  margin-top: 2.2rem;
}

.schedule-label {
  font-family: "Young Serif", Georgia, serif;
  color: var(--crust);
}

.schedule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-list li { position: relative; padding-left: 1.1rem; }
.schedule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crust);
}

/* ---------- menu ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
}

.menu-card {
  background: var(--linen);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  position: relative;
  background: var(--flour);
  padding: 1rem 1rem 0;
}
.card-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.card-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--crust);
  color: var(--linen);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.card-body { padding: 1.1rem 1.2rem 1.3rem; }

.card-toprow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.card-toprow h3 { margin-bottom: 0.4rem; }

.card-price {
  font-family: "Young Serif", Georgia, serif;
  color: var(--enamel);
  white-space: nowrap;
}

.card-body p {
  color: var(--crumb);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- flavors of the week ---------- */
.flavors .eyebrow {
  color: var(--crust);
  margin-bottom: 0.5rem;
}

.flavor-card {
  border-top: 4px solid var(--crust);
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}
.about .score-divider { grid-column: 1 / -1; margin-bottom: 0; }
.loaf-art-about { padding: 1.5rem; }

/* ---------- survey ---------- */
.survey-section .eyebrow { margin-bottom: 0.5rem; }

.survey-card {
  background: var(--linen);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.7rem;
  max-width: 46rem;
}

.survey-legend {
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--flour);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  font-size: 0.97rem;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-pill:hover { border-color: var(--crust); }

.choice-pill input {
  accent-color: var(--enamel);
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  cursor: pointer;
}

.choice-pill:has(input:checked) {
  background: rgba(47, 90, 158, 0.1);
  border-color: var(--enamel);
}

.survey-field { margin-bottom: 1.2rem; }

.survey-field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.survey-field input {
  width: 100%;
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(42, 33, 26, 0.25);
  border-radius: 10px;
  background: #fff;
  color: var(--rye);
}
.survey-field input:focus {
  outline: none;
  border-color: var(--enamel);
  box-shadow: 0 0 0 3px rgba(47, 90, 158, 0.18);
}

.survey-submit {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.survey-status {
  margin: 0;
  color: var(--crumb);
  font-size: 0.94rem;
}

.survey-thanks {
  text-align: center;
  padding: 1rem 0;
}
.survey-thanks p {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.25rem;
  margin: 0.8rem 0 0;
}

/* ---------- faq ---------- */
.faq-list { max-width: 46rem; }

.faq-item {
  background: var(--linen);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 0.8rem;
  padding: 0 1.2rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.3rem;
  color: var(--crust);
}
.faq-item[open] summary::after { content: "–"; }

.faq-item p { color: var(--crumb); padding-bottom: 1.1rem; margin: 0; }

/* ---------- contact ---------- */
.contact-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.pickup-note { color: var(--crumb); font-size: 0.95rem; }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1080px;
  margin: 3rem auto 0;
  padding: 1.6rem 1.4rem 2.4rem;
  border-top: 1px solid rgba(42, 33, 26, 0.14);
  color: var(--crumb);
  font-size: 0.92rem;
}
.site-footer p { margin: 0 0 0.4em; }
.fine-print { font-size: 0.82rem; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button:hover { transform: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero, .about { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-media { order: -1; max-width: 320px; margin: 0 auto; }
  .about-media { max-width: 320px; margin: 0 auto; }
  main section { padding: 2.4rem 1.2rem 0.6rem; }
  .site-nav { gap: 1rem; font-size: 0.94rem; }
  .survey-card { padding: 1.4rem 1.2rem; }
}
