/* The Wild Loaf Bakery — colors taken from the stand: powder-blue cabinet,
   butter-yellow doors, cream sign board, navy hand lettering, mint baskets. */
:root {
  --blue: #6f9dcb;
  --blue-deep: #4a7fb3;
  --blue-soft: #dbe8f5;
  --yellow: #f6dc63;
  --yellow-soft: #fbefb4;
  --cream: #fbf6e8;
  --paper: #fffdf7;
  --navy: #1e2d56;
  --ink: #2a3350;
  --muted: #5d6680;
  --mint: #b9dcc9;
  --venmo: #008cff;
  --line: #e6dcc3;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(30, 45, 86, .06), 0 10px 30px -12px rgba(30, 45, 86, .22);
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; color: var(--navy); line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.3rem, 6.5vw, 3.8rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 6px; }

/* Logo: the transparent line-art PNG used as a mask so we can ink it navy */
.logo-mark {
  display: inline-block;
  background: var(--navy);
  -webkit-mask: url("images/logo.png") center / contain no-repeat;
          mask: url("images/logo.png") center / contain no-repeat;
  aspect-ratio: 4998 / 4811;
}
.logo-mark--sm { width: 40px; }
.logo-mark--hero { width: 100%; position: relative; }
.logo-mark--foot { width: 110px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; font: 800 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(30,45,86,.6); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--small { padding: .55em 1em; font-size: .9rem; }
.btn--big { padding: 1em 1.6em; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn--venmo { background: var(--venmo); border-color: var(--venmo); }
.btn[disabled] { background: #c9cede; border-color: #c9cede; color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--hand); font-size: 1.6rem; color: var(--navy); }
.topnav { display: none; gap: 22px; }
.topnav a { color: var(--navy); text-decoration: none; font-weight: 700; }
.topnav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 4px; }
@media (min-width: 760px) { .topnav { display: flex; } }

/* Hero */
.hero {
  position: relative;
  background: var(--cream);
  padding: 40px 16px 0;
  overflow: hidden;
}
/* scalloped trim like the sandwich board */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22px;
  background:
    radial-gradient(circle at 14px -2px, var(--blue) 15px, transparent 16px) 0 0 / 28px 22px repeat-x;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 28px; align-items: center;
}
.hero-badge { position: relative; width: min(78vw, 340px); margin: 0 auto; }
.hero-badge .sun {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%);
  width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow);
}
.eyebrow { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--blue-deep); margin-bottom: .6em; }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .1em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: .95rem; color: var(--navy);
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #c9cede; flex: none; }
.status[data-state="open"] .dot { background: #3bb273; box-shadow: 0 0 0 4px rgba(59,178,115,.18); }
.status[data-state="closed"] .dot { background: #e0a23a; box-shadow: 0 0 0 4px rgba(224,162,58,.2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-photo { margin: 36px auto 0; max-width: 1100px; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

@media (min-width: 860px) {
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 380px 1fr; gap: 48px; }
  .hero-badge { width: 100%; }
}

/* Blue-and-white awning stripes from inside the cabinet */
.stripes {
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 28px, #fff 28px 56px);
  border-block: 2px solid var(--blue-deep);
}

/* Sections */
.section { padding: 64px 16px; }
.section--cream { background: var(--cream); }
.section--yellow { background: var(--yellow-soft); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); }
.section-head--left { text-align: left; margin: 0 0 20px; }

/* Menu */
.menu-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.loading { text-align: center; color: var(--muted); grid-column: 1 / -1; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--yellow-soft); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo--placeholder { display: grid; place-items: center; }
.card-photo--placeholder .logo-mark { width: 46%; }
.tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.tag--soldout { background: var(--navy); color: #fff; left: auto; right: 12px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-title h3 { margin: 0; font-size: 1.75rem; }
.price {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-soft); color: var(--navy);
  font-family: var(--hand); font-size: 1.4rem;
}
.card-desc { color: var(--muted); margin: 0; }
.card-size { font-size: .85rem; color: var(--muted); font-weight: 700; }
.card details { border-top: 1px dashed var(--line); padding-top: 8px; }
.card summary { cursor: pointer; font-weight: 700; color: var(--blue-deep); font-size: .95rem; }
.card details p { font-size: .92rem; margin: .6em 0 .4em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.left-note { font-size: .82rem; color: var(--muted); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy);
  font: 800 1.4rem/1 var(--sans); cursor: pointer;
}
.stepper button:hover:not([disabled]) { background: var(--yellow-soft); }
.stepper button[disabled] { color: #c3c7d4; cursor: not-allowed; }
.stepper output { min-width: 32px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.add-btn { padding: .65em 1.3em; }
.card.is-soldout .card-photo img { filter: grayscale(.7) opacity(.7); }
.card.in-basket { outline: 3px solid var(--yellow); outline-offset: -3px; }

/* Order */
.order-wrap { max-width: 640px; margin: 0 auto; }
.order-form, .success {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.summary { border-bottom: 1px dashed var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.summary-empty { color: var(--muted); margin: 0 0 8px; }
.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-list .qty { font-weight: 800; color: var(--blue-deep); margin-right: 6px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-weight: 800; color: var(--navy); }
.summary-total strong { font-family: var(--hand); font-size: 2rem; font-weight: 400; }
.fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.field small { font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper);
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field input[aria-invalid="true"] { border-color: #d0543c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: #8a2a1a; border-radius: 12px; padding: 10px 14px; margin: 16px 0 0; font-weight: 700; }
.order-form .btn--big { margin-top: 18px; }
.fineprint { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.success { text-align: center; }
.success:focus { outline: none; }
.success-badge {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); color: var(--navy);
  font-size: 2rem; font-weight: 800;
}
.success .btn { margin-top: 8px; }
.link-btn { margin-top: 16px; background: none; border: 0; color: var(--blue-deep); font: 700 .95rem var(--sans); text-decoration: underline; cursor: pointer; }
.demo-note { background: var(--yellow-soft); border-radius: 12px; padding: 10px 14px; font-size: .9rem; margin: 0 0 16px; text-align: left; }

.nextweek-banner { background: var(--yellow); color: var(--navy); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.nextweek-modal { border: 0; border-radius: var(--radius); padding: 28px 24px; max-width: min(92vw, 400px); text-align: center; color: var(--ink); box-shadow: var(--shadow); }
.nextweek-modal::backdrop { background: rgba(30, 45, 86, .45); }
.nextweek-modal p { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.nextweek-modal .fineprint { font-weight: 400; margin: 0 0 16px; }

/* Pickup */
.pickup-grid { max-width: 1000px; margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 820px) { .pickup-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.pickup-card { background: var(--blue-soft); border-radius: var(--radius); padding: 24px; }
.facts { margin: 0 0 16px; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.facts dt { font-weight: 800; color: var(--blue-deep); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.pickup-note { margin: 0; color: var(--ink); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* About */
.about { max-width: 1000px; margin: 0 auto; display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .about { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 70%; border: 6px solid #fff; transform: rotate(-1.5deg); }
.about-copy h2 { font-size: clamp(2.6rem, 7vw, 4rem); }
.about-copy p { font-size: 1.1rem; }
.signoff { font-family: var(--hand); font-size: 1.6rem !important; color: var(--navy); }

/* Footer */
.footer { background: var(--navy); color: #dfe6f5; text-align: center; padding: 40px 16px 110px; font-size: .95rem; }
.footer .logo-mark { background: var(--yellow); margin-bottom: 10px; }
.footer p { margin: 0 0 .4em; }
.footer strong { color: #fff; }
.disclaimer { font-size: .8rem; opacity: .75; margin-top: 1em !important; }
@media (min-width: 760px) { .footer { padding-bottom: 40px; } }

/* Mobile basket bar */
.basket-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 14px 20px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(30,45,86,.6);
  font-weight: 700;
}
.basket-bar[hidden] { display: none; }
.basket-bar strong { font-family: var(--hand); font-weight: 400; font-size: 1.4rem; color: var(--yellow); }
.basket-cta { margin-left: auto; }
@media (min-width: 760px) { .basket-bar { left: auto; right: 24px; bottom: 24px; min-width: 320px; } }

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