/* Saucebox site styles: the app's colour tokens (spec §1.1) and type (§5.1).
   Plain CSS, no framework, no third-party calls. */

/* Nunito Bold (SIL Open Font Licence), self-hosted. Subset to the letters of "saucebox"; only used for the
   wordmark where SF Pro Rounded (ui-rounded) is not available. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-bold-wordmark.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --canvas: #F7F7F7;
  --card: #FFFFFF;
  --tile: #E5E5EA;
  --ink: #000000;
  --meta: #6E6E73;
  --rule: #D1D1D6;
  --chili: #D7371D;
  --carton: #DCB68D;
  --outline: #2B1A0E;
  --handle: rgba(60, 60, 67, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --card: #1C1C1E;
    --tile: #2C2C2E;
    --ink: #FFFFFF;
    --meta: #8E8E93;
    --rule: #3A3A3C;
    --chili: #E8573D;
    --outline: #8A6A4C;
    --handle: rgba(235, 235, 245, 0.6);
  }
}

@media (prefers-contrast: more) {
  :root { --chili: #B82C14; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --chili: #FF6B50; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.5 -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* Body links are ink and underlined; chili is for buttons (spec §5.1). */
a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.15em; }

/* ---- Lockup: mark, wordmark, optional BETA pill ---- */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
}
.lockup svg { width: 1.43em; height: 1.43em; flex: none; }
.wordmark {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1;
}
.beta {
  margin-left: 0.3em;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--meta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.3;
}

.mark-handle { stroke: var(--handle); }
.mark-carton { fill: var(--carton); stroke: var(--outline); }
.mark-zigzag { stroke: var(--outline); }
.mark-dot { fill: var(--chili); }

/* ---- Chili button: filled, white 19 px bold label (large text, so the
   lighter dark-mode chili still passes) ---- */

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--chili);
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}
.button:hover { filter: brightness(1.06); }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.meta { color: var(--meta); }

.footer-links { display: flex; gap: 20px; justify-content: center; font-size: 15px; }
