/* CiaoCiao theme for the Lovetere frame 2.0.3: tokens, and the one font it hosts (family/FRAME.md lists them).
   The palette is the icon's (design/icon/README.md): the coral field #E4564F to #B42A43 in light, the night field
   #26232E to #121118 in dark. Approved 3 Dec 2026. Gold #F7C24A is a fill accent only and never text: --c-ciao is
   the fill (step discs) and --c-on-ciao the wine ink on it. Cards have no outline: they separate by colour. Fredoka SemiBold (SIL OFL, fonts/OFL.txt) is the
   display face, self-hosted. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --c-bg: #FFFFFF;
  --c-surface: #F7F5F5;
  --c-surface-2: #F1EFEF;
  --c-ink: #231919;
  --c-muted: #5F5F65;
  --c-line: #E5E3E3;
  --c-brand: #B42A43;        /* the icon's coral, deep end */
  --c-on-brand: #FFFFFF;
  --c-brand-ink: #B42A43;
  --c-link: #B42A43;
  --c-link-line: #B42A43;
  --c-focus: #B42A43;
  --c-hero: #FFFFFF;
  --c-band: #F1EFEF;         /* surface-2: cards are surface, so they stay visible in a band */
  --c-header: #FFFFFF;
  --c-footer: #FFFFFF;
  --c-alert: #BA1A1A;
  --c-ciao: #F7C24A;         /* the icon's gold: a FILL only, never text */
  --c-on-ciao: #3E0612;      /* wine ink on the gold fill, 10.3:1 */
  --c-band-card: #FFFFFF;    /* cards inside a band: white tiles on the pale grey band */
  --f-display: "Fredoka", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fw-display: 600;         /* the weight the font file is, so nothing is synthesised */
  --fw-strong: 600;
  --ls-display: -0.01em;
  --tt-label: none;
  --ls-label: 0;
  --r-card: 24px;            /* the app's corner radius */
  --r-button: 999px;
  --r-media: 24px;
  --r-icon: 22.37%;
  --shadow-card: none;
  --border-card: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #121118;         /* the icon's night field, dark end */
    --c-surface: #1E1B24;
    --c-surface-2: #26232E;
    --c-ink: #FFFCF4;
    --c-muted: #C9C3D1;
    --c-line: #312D3A;
    --c-brand: #FF9C94;
    --c-on-brand: #3E0612;
    --c-brand-ink: #FF9C94;
    --c-link: #FF9C94;
    --c-link-line: #FF9C94;
    --c-focus: #FF9C94;
    --c-hero: #121118;
    --c-band: #26232E;       /* surface-2, not surface: cards are surface */
    --c-header: #121118;
    --c-footer: #121118;
    --c-alert: #FF6E5E;
    --c-band-card: #1E1B24;  /* surface on the surface-2 band */
  }
}

/* The two places the gold and the band-card token are used. */
.fr-sec--band .fr-card, .fr-sec--band .fr-panel, .fr-sec--band .fr-facts, .fr-sec--band .fr-faq > details { background: var(--c-band-card); }
/* Three classes beat the kit's `.fr-steps > li.fr-card::before` (two) whichever stylesheet loads last. */
.fr-steps.fr-grid > li.fr-card::before { display: grid; place-items: center; align-self: flex-start; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--c-ciao); color: var(--c-on-ciao); }
