/* Sprig Street. Herb-market stall: chalkboard sign on torn kraft paper, lime stickers, chalkboard specials.
 * Bricolage Grotesque (SIL OFL, assets/OFL-bricolage-grotesque.txt). */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/bricolage-grotesque-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/bricolage-grotesque-latin-800-normal.woff2') format('woff2');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f1e3;
  --ink: #10291b;
  --muted: #3d5244;
  --accent: #166534;
  --accent-ink: #ffffff;
  --surface: #fffdf6;
  --line: #10291b;
  --lime: #c5f05a;
  --board: #173826;
  --board-ink: #f6f1e3;
  --chilli: #b5400b;
  --radius: 18px;
  --font: 'Bricolage Grotesque', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
  font-size: 17px;
}

/* Market sign: a chalkboard band on torn kraft paper, full width. (The milk bar next door has the awning.) */
body::before {
  content: 'Stall 7 \00B7  Fresh herbs \00B7  Open daily' / '';
  display: block;
  padding: 12px 16px 26px;
  text-align: center; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lime);
  background: linear-gradient(var(--board) 0 0) top / 100% calc(100% - 16px) no-repeat, #c79c62;
  border-top: 6px solid #6b4a2b;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M0 0H120V3L115 7L109 2L102 8L96 4L89 9L81 3L74 7L67 1L59 6L52 3L45 8L38 2L31 6L23 4L16 9L9 3L4 6L0 2Z'/%3E%3C/svg%3E") bottom / 120px 9px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M0 0H120V3L115 7L109 2L102 8L96 4L89 9L81 3L74 7L67 1L59 6L52 3L45 8L38 2L31 6L23 4L16 9L9 3L4 6L0 2Z'/%3E%3C/svg%3E") bottom / 120px 9px repeat-x;
}
body { background: var(--bg); }

:focus-visible { outline: 3px solid var(--chilli); outline-offset: 3px; border-radius: 4px; }
.skip-link:focus { background: var(--ink); color: var(--lime); }

.site-header { padding-top: 10px; }
.site-brand {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 18px 6px 6px;
  box-shadow: 0 4px 0 var(--ink);
}
.site-logo { width: 46px; height: 46px; }
.site-name { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; }
.site-tagline { color: var(--muted); margin: 10px 0 0 6px; font-weight: 600; }

/* Stall front. */
.stall { position: relative; }
.stall-sticker {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 6px 14px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transform: rotate(-4deg);
}
.report-title {
  font-weight: 800;
  font-size: clamp(2.2rem, 9.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 12px 0 12px;
}
.report-tagline { font-size: 1.15rem; margin: 0 0 18px; }

.menu {
  background: var(--board);
  color: var(--board-ink);
  border-radius: var(--radius);
  border: 6px solid #6b4a2b;
  padding: 14px 18px 12px;
  margin: 0 0 14px;
}
.menu-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: var(--lime); text-transform: uppercase; letter-spacing: 0.06em; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.menu-list span { flex: none; }
.menu-list b { order: 2; flex: none; color: var(--lime); font-weight: 800; }
.menu-list li::before {
  content: '';
  order: 1;
  flex: 1;
  border-bottom: 2px dotted rgb(246 241 227 / 0.5);
  transform: translateY(-4px);
}
.report-asks { color: var(--muted); font-size: 0.95rem; }
.report-asks b { color: var(--ink); }

/* Widget: the order ticket. */
.widget {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 22px 16px;
  margin: 22px 0 28px;
}
.widget-hint, .widget-msg { color: var(--ink); font-weight: 600; }
.widget-qrbox svg { border-radius: 12px; border: 3px solid var(--ink); background: #fff; }
.widget-link, .widget-again {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-size: 1.05rem;
}
.widget-link:hover, .widget-again:hover { background: var(--ink); }
.widget-link:active, .widget-again:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.widget-again { margin-top: 18px; }
.widget-error { color: var(--chilli); }

/* Result: chalkboard special. */
.result {
  background: var(--board);
  color: var(--board-ink);
  border: 6px solid #6b4a2b;
  border-radius: 14px;
  padding: 18px 18px 8px;
}
.special-label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 12px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  transform: rotate(-2deg);
}
.result-headline { font-weight: 800; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 4px 0 14px; color: var(--lime); }
.soapometer { margin: 0 0 14px; }
.soapometer-title { margin: 0 0 8px; }
.soapometer-title b { color: var(--lime); }
.soapometer-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--board-ink);
  background: linear-gradient(90deg, #4ade80, #c5f05a 45%, #c4b5fd 75%, #a5b4fc);
}
.soapometer-pin {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--board-ink);
  border: 4px solid var(--ink);
  box-shadow: 0 0 0 3px var(--board-ink);
}
.meter-AA .soapometer-pin { left: 10%; }
.meter-AC .soapometer-pin { left: 50%; }
.meter-CC .soapometer-pin { left: 90%; }
.soapometer-ends { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 0.85rem; font-weight: 600; }
.result-reading { margin: 0 0 10px; }
.result-genotype { background: var(--lime); color: var(--ink); padding: 1px 8px; border-radius: 6px; font-weight: 800; letter-spacing: 0.05em; }
.result-body { font-size: 1.05rem; }
.result-fact { border-top: 2px dotted rgb(246 241 227 / 0.5); padding-top: 10px; }
.result-fact b { color: var(--lime); }
.result-disclaimer { font-size: 0.85rem; color: #d3dccf; }
.result:not(.result-call) .result-headline { color: var(--board-ink); }

.site-footer { color: var(--muted); border-top: 3px dashed var(--ink); }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--accent); font-weight: 800; }

.not-found h1 { font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; }

@media print {
  body::before { display: none; }
  .result, .menu { background: none; color: var(--ink); border-color: var(--ink); }
  .result-headline, .soapometer-title b, .result-fact b, .menu-title, .menu-list b { color: var(--ink); }
  .result-disclaimer { color: var(--muted); }
}
