/* BonBite public website. Mobile first, system fonts only, dark mode follows the system. */
:root {
  --bg: #ffffff;
  --surface: #f6f6f3;
  --ink: #111111;
  --muted: #4d4d4d;
  --line: #e3e3de;
  --accent: #fbd603;
  --on-accent: #111111;
  --link: #111111;
  --focus: #111111;
  --mark-bg: #ffd9d6;
  --mark-ink: #6b0000;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --surface: #1a1a1a;
    --ink: #f3f3f1;
    --muted: #b9b9b4;
    --line: #2c2c2a;
    --link: #fbd603;
    --focus: #fbd603;
    --mark-bg: #4d1212;
    --mark-ink: #ffd9d6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--accent); color: var(--on-accent); padding: 10px 14px;
  border-radius: 10px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Draft preview banner (only in `node website/build.mjs --draft`). */
.draft-banner { background: var(--mark-bg); color: var(--mark-ink); border-bottom: 2px dashed currentColor; font-size: 14px;
  font-weight: 700; padding: 10px 16px; text-align: center; }
mark.marker { background: var(--mark-bg); color: var(--mark-ink); outline: 1.5px dashed currentColor; border-radius: 3px;
  padding: 0 2px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.top .brand { display: inline-flex; border-radius: 8px; }
.top .brand img { display: block; width: 104px; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-weight: 600; font-size: 16px; }

/* Home */
.hero { text-align: center; padding: 20px 0 8px; }
.hero .logo { display: block; width: min(320px, 82vw); margin: 0 auto 18px; }
.hero h1 { font-size: clamp(26px, 6.4vw, 38px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 auto 10px; max-width: 18em; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.tags li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 15px;
  font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; margin: 28px 0; }
.card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.card p { margin: 0 0 4px; color: var(--muted); }
.card.center { text-align: center; }

/* Store buttons: shown only for a store with a link in website/config.mjs. */
.stores { display: grid; gap: 12px; margin-top: 16px; }
.store { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 18px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none; font-size: 17px; }
.store:hover { filter: brightness(0.95); }
.store:focus-visible { outline-color: var(--focus); }
.soon { display: inline-block; margin-top: 14px; padding: 10px 16px; border-radius: 12px; border: 1.5px dashed var(--line);
  font-weight: 700; color: var(--ink); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px;
  border-radius: 14px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; text-decoration: none; }

/* Text pages */
main { padding-bottom: 24px; }
.page h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 18px 0 10px; }
.page h2 { font-size: 22px; line-height: 1.3; margin: 34px 0 8px; letter-spacing: -0.01em; scroll-margin-top: 16px; }
.page h3 { font-size: 18px; line-height: 1.35; margin: 24px 0 6px; scroll-margin-top: 16px; }
.page p, .page li { overflow-wrap: anywhere; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin: 4px 0; }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.page code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
.lead { color: var(--muted); font-size: 18px; }

.page .help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.page .help-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0; }
.help-list strong { display: block; font-size: 18px; margin-bottom: 2px; }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between;
  gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 600; }
details[open] summary::after { content: "\2212"; }
summary:focus-visible { outline-offset: 2px; }
details p { margin: 0 0 14px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 36px; font-size: 15px; color: var(--muted); }
.foot .cols { display: grid; gap: 22px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot address { font-style: normal; }
.foot p { margin: 0 0 6px; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .hero { padding-top: 36px; }
  .stores { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .foot .cols { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .store { transition: filter 120ms ease; }
}
