/* The Sweet Side Piece: shared brand kit.
   Colours are sampled from the supplied logo and card artwork (brand/*.png).
   Served to every site at /ssp/brand.css by tools/sync-assets.mjs. */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "Oleo Script Swash Caps"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/oleo-script-swash-caps-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oleo Script Swash Caps"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/oleo-script-swash-caps-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oleo Script Swash Caps"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/oleo-script-swash-caps-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oleo Script Swash Caps"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/oleo-script-swash-caps-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sacramento"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/sacramento-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sacramento"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/sacramento-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sorts Mill Goudy"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/sorts-mill-goudy-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sorts Mill Goudy"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/sorts-mill-goudy-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/libre-caslon-text-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/libre-caslon-text-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/libre-caslon-text-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/libre-caslon-text-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* ---------- Colour, sampled from the artwork ---------- */
  --ssp-cream: #FCE4D8;        /* plaque fill, the lightest surface */
  --ssp-blush: #F6DED8;        /* card ground */
  --ssp-rose-100: #E9C9C2;     /* gingham, light check */
  --ssp-rose-200: #DEB4AE;     /* gingham, dark check */
  --ssp-rose-300: #CC9C96;     /* checkerboard strip */
  --ssp-rose-500: #B4726C;     /* plaque outline, flourishes. Decoration and large display only */
  --ssp-rose-700: #8A4B45;     /* secondary text on cream or blush: 4.6:1 */
  --ssp-cocoa: #5A2A24;        /* lettering ink: 9.5:1 on blush */
  /* Derived from the ink for dark surfaces. Not in the artwork. */
  --ssp-cocoa-deep: #3E1B17;
  --ssp-cocoa-night: #2A110E;

  /* ---------- Type roles ---------- */
  --ssp-font-script: "Oleo Script Swash Caps", "Brush Script MT", cursive;   /* the wordmark voice: bold, swashed */
  --ssp-font-hand: "Sacramento", "Segoe Script", cursive;                    /* the "Order Online!" monoline hand */
  --ssp-font-caps: "Libre Caslon Text", "Baskerville", Georgia, serif;       /* THE / SWEETS • BREAD • CHURRO TOFFEE, set in caps, tracked 0.2em+ */
  --ssp-font-body: "Sorts Mill Goudy", "Goudy Old Style", Georgia, serif;    /* card body copy */

  --ssp-check: 44px;           /* one gingham square */
}

/* ---------- Materials ---------- */
/* Woven gingham, as on the gingham card: two translucent stripe sets, so crossings read darker. */
.ssp-gingham {
  background-color: var(--ssp-cream);
  background-image:
    linear-gradient(90deg, rgb(204 156 150 / 0.42) 50%, transparent 0),
    linear-gradient(rgb(204 156 150 / 0.42) 50%, transparent 0);
  background-size: calc(var(--ssp-check) * 2) calc(var(--ssp-check) * 2);
}
/* The same weave for dark grounds. */
.ssp-gingham-dark {
  background-color: var(--ssp-cocoa-night);
  background-image:
    linear-gradient(90deg, rgb(180 114 108 / 0.13) 50%, transparent 0),
    linear-gradient(rgb(180 114 108 / 0.13) 50%, transparent 0);
  background-size: calc(var(--ssp-check) * 2) calc(var(--ssp-check) * 2);
}
/* Two-row checkerboard strip, as on the order card footer. Give the element a height of 2 squares. */
.ssp-checker {
  background: conic-gradient(var(--ssp-rose-300) 25%, #EAC9C2 0 50%, var(--ssp-rose-300) 0 75%, #EAC9C2 0)
    0 0 / calc(var(--ssp-check) * 2) calc(var(--ssp-check) * 2);
}

/* ---------- Browser surfaces ---------- */
::selection { background: var(--ssp-rose-500); color: var(--ssp-cream); }
