/* Casa da Criança — theme. Mounted at /data/theme, served at /theme/theme.css
   after the base stylesheet. Overrides slots; never adds selectors the
   base does not define, except for the wordmark treatment below. */

@font-face { font-family: "Baloo 2"; src: url("/theme/fonts/baloo2-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/theme/fonts/fredoka-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/theme/fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
/* Metric-matched fallbacks so text does not reflow when the real faces arrive. */
@font-face { font-family: "Baloo 2 fallback"; src: local("Arial"), local("Roboto"), local("Helvetica"); size-adjust: 104%; ascent-override: 92%; descent-override: 28%; }
@font-face { font-family: "Nunito fallback"; src: local("Arial"), local("Roboto"), local("Helvetica"); size-adjust: 98%; }

:root {
  --action: #F7941D;        --action-strong: #B45B00;
  --contact: #2AA85B;       --link: #1D71B8;   /* the shop's own green, not WhatsApp's neon */
  --secondary: #2AA85B;     --on-secondary: #2B2D42;   /* the shop's green (owner's choice); dark text on it reads in both themes */
  --ink: #2B2D42;           --muted: #6B7280;
  --line: #EEF0F3;          --paper: #FFFFFF;      --panel: #FFF9F2;
  --accent-1: #1D71B8; --accent-1-strong: #155A94;   /* batizado */
  --accent-2: #F26D9A; --accent-2-strong: #B8305F;   /* festa */
  --accent-3: #2AA85B; --accent-3-strong: #1C7A40;   /* saída-maternidade */
  --accent-4: #EF3B4A; --accent-4-strong: #B0202D;
  --accent-5: #5BB0E8; --accent-5-strong: #1F6FA8;
  --accent-6: #FFD23F; --accent-6-strong: #8A6D00;
  --accent-7: #F7941D; --accent-7-strong: #8F4700;
  --accent-8: #A78BFA; --accent-8-strong: #5B21B6;
  --display: "Baloo 2", "Baloo 2 fallback", system-ui, sans-serif;
  --script: "Fredoka", "Baloo 2", "Baloo 2 fallback", system-ui, sans-serif;
  --body: "Nunito", "Nunito fallback", system-ui, sans-serif;
}

/* Dark: softer than the base's near-black — a warm charcoal paper with a
   slightly lighter panel and off-white ink, so the cream feel of the light
   theme carries over. Same two selectors as the base, so they win the
   same way (device setting, or the header toggle's data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #272a33; --panel: #30343f; --line: #3e4350; --ink: #ece9e2; --muted: #b5b2aa; }
}
:root[data-theme="dark"] { --paper: #272a33; --panel: #30343f; --line: #3e4350; --ink: #ece9e2; --muted: #b5b2aa; }

/* The tagline under the wordmark: a quiet, widely tracked label in small
   caps, in the ink colour so the name keeps all the colour. */
.wordmark .tagline { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: .7; margin-top: 8px; padding-left: .2em; }
@media (max-width: 719px) { .wordmark .tagline { font-size: 10.5px; letter-spacing: .1em; } }

/* The wordmark (owner's choice, 2026-10-03: "toy blocks"): "Casa da
   Criança" in a rounded bold face, the shop's four main colours taking
   turns letter by letter like children's building blocks, a small
   up-and-down step between letters, and a paper-coloured outline with a
   soft drop so each letter reads like a sticker on either theme. No
   yellow: it fades on white. */
.wordmark-text .ch { font-family: var(--script); font-weight: 700;
  text-shadow: 2px 0 0 var(--paper), -2px 0 0 var(--paper), 0 2px 0 var(--paper), 0 -2px 0 var(--paper), 0 4px 0 rgba(0,0,0,.12); }
.wordmark-text .ch:nth-child(4n+1) { color: var(--accent-4); transform: translateY(-1px); }
.wordmark-text .ch:nth-child(4n+2) { color: var(--accent-1); transform: translateY(1px); }
.wordmark-text .ch:nth-child(4n+3) { color: var(--accent-3); transform: translateY(-1px); }
.wordmark-text .ch:nth-child(4n+4) { color: var(--accent-7); transform: translateY(1px); }
.wordmark-text .ch.word-start:not(:first-child) { margin-left: .2em; }
.wordmark-text { display: inline-block; line-height: 1; white-space: nowrap; font-size: 54px; letter-spacing: .01em; padding-top: 4px; }
/* Narrower screens: as big as the room beside the header buttons allows
   (they take about 214px; the name is about 7.4 times its font size wide). */
@media (max-width: 719px) { .wordmark-text { font-size: min(40px, calc((100vw - 214px) / 7.4)); } }
@media (min-width: 350px) and (max-width: 479px) {
  .site-header > .wordmark .wordmark-text { font-size: min(31px, calc((100vw - 214px) / 7.4)); }
  .site-header > .wordmark .tagline { font-size: min(9px, calc((100vw - 214px) / 22)); }
}
.wordmark-footer .wordmark-text { font-size: 34px; }
/* the footer sits on the panel colour: outline the letters in it */
.wordmark-footer .wordmark-text .ch { text-shadow: 2px 0 0 var(--panel), -2px 0 0 var(--panel), 0 2px 0 var(--panel), 0 -2px 0 var(--panel), 0 4px 0 rgba(0,0,0,.12); }
.wordmark-footer .tagline { font-size: 11px; letter-spacing: .18em; }

/* No pennant strips (owner's choice, 2026-09-29). Without the four
   --bunting colours they are transparent; this also gives back the 12px
   each one held at the top and the bottom of the page. To bring them
   back: set the colours again and remove this rule. */
.bunting { display: none; }

/* No PT/EN switch in the header for now (owner's choice, 2026-10-05). The
   English pages and translations keep working; to bring the switch back,
   remove this rule. */
.lang-switch { display: none; }

/* Order e-mails (plan B2). E-mail clients do not read CSS variables, so the app reads these
   from this file and writes each colour into the e-mail. Today's colours; no page uses them. */
:root {
  --email-page: #f4efe8; --email-card: #ffffff; --email-ink: #2b2d42; --email-text: #3c3f52;
  --email-soft: #4b5060; --email-muted: #6b7280; --email-line: #f1ebe2; --email-panel: #fff9f2;
  --email-panel-line: #f3e4cf; --email-chip: #fff1e0; --email-ok-panel: #e6f5ec; --email-ok: #1c7a40;
  --email-action: #f7941d; --email-on-action: #2b2d42; --email-contact: #2aa85b; --email-on-contact: #ffffff;
}
