/* Ace of Circles · Jupiter's Favour theme (shared by every page)
   From the "Ace of Circles" design system, theme `jupiters-favour`:
   Sea Green #1F5E5A · Deep Green #16443F · Linen #F4EDE3 · Paper #FBF8F3 · Sun Gold #E0B04F
   Mint #D6E2DE · Ink #2F3538 · Ink muted #4C5558 · Tide text #3E7472 · Amethyst #5E4B86

   Linen and Paper base; dark mode (device setting) uses Deep Green, with dark-ground versions of Koko's illustrations.
   Each page maps its own variables onto the --jf-* role tokens below.
   Scopes:  :root / .jf-base  page ground: Linen, with Paper cards
            .jf-hero          the one Sea Green panel per page (Linen text, Mint labels, Gold accents)
            .jf-foot          Deep Green footer
   Contrast notes: Gold on Sea Green is 3.7:1, so small text on green uses Linen or Mint;
   Gold there is for the button, numbers, rings and large type. Tide on Mint is 4:1: text on Mint is Ink. */

:root{
  --jf-sea:#1F5E5A; --jf-deep:#16443F; --jf-linen:#F4EDE3; --jf-paper:#FBF8F3; --jf-gold:#E0B04F;
  --jf-mint:#D6E2DE; --jf-ink:#2F3538; --jf-ink-muted:#4C5558; --jf-tide:#3E7472; --jf-amethyst:#5E4B86;
  --jf-display:Montserrat,"Helvetica Neue",Arial,sans-serif;
  --jf-body:"Open Sans","Segoe UI",Arial,sans-serif;
  --jf-radius-sm:12px; --jf-radius-md:24px; --jf-radius-pill:40px;
}

/* Linen base, on every device setting */
:root,.jf-base{
  color-scheme:light;
  --jf-bg:var(--jf-linen);          /* page ground */
  --jf-surface:var(--jf-paper);     /* cards, long reading */
  --jf-soft:var(--jf-mint);         /* soft panels and notes (text on it: Ink) */
  --jf-field:#fff;                  /* form fields */
  --jf-text:var(--jf-ink);
  --jf-muted:var(--jf-ink-muted);
  --jf-label:var(--jf-tide);        /* eyebrows, labels, links */
  --jf-line:rgb(31 94 90 / .16);    /* hairlines, card edges */
  --jf-ring:var(--jf-sea);          /* dotted circles, bullets, icons */
  --jf-accent:var(--jf-gold);       /* the one button */
  --jf-on-accent:var(--jf-ink);
  --jf-err:#A3392B;
  --jf-shadow:0 1px 3px rgb(47 53 56 / .06),0 14px 30px -18px rgb(47 53 56 / .22);
}
/* Dark mode, in greens (for visitors whose device is set to dark). Illustrations switch to
   dark-ground versions (images/art/dark): same art, only the light glow/shadow outside each drawing removed. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]),:root:not([data-theme="light"]) .jf-base{
    color-scheme:dark;
    --jf-bg:var(--jf-deep); --jf-surface:#1B4D48; --jf-soft:#23605A; --jf-field:#123A36;
    /* Gold stays for the one button; labels, links and rings use a soft sea-foam, as Tide and Sea do in light mode */
    --jf-text:var(--jf-linen); --jf-muted:var(--jf-mint); --jf-label:#9DD3C8;
    --jf-line:rgb(244 237 227 / .16); --jf-ring:#7FBDB2; --jf-err:#F2A196;
    --jf-shadow:0 2px 4px rgb(0 0 0 / .3),0 22px 44px -18px rgb(0 0 0 / .6);
  }
  :root:not([data-theme="light"]) .jf-foot{--jf-bg:#0F2F2C}
  :root:not([data-theme="light"]) .jf-logo-dark{display:none!important}
  :root:not([data-theme="light"]) .jf-logo-light{display:block!important}
}

/* Quiet trademarks: assets/tm.js wraps each ™ so it sits small, raised and light */
.tm{font-size:.5em;vertical-align:.75em;line-height:0;margin-left:.06em;font-weight:400;letter-spacing:0;opacity:.75}

/* The one Sea Green panel per page, and the Deep Green footer */
.jf-hero,.jf-foot{
  color-scheme:dark;
  --jf-bg:var(--jf-sea); --jf-surface:var(--jf-deep); --jf-soft:var(--jf-deep); --jf-field:#123A36;
  --jf-text:var(--jf-linen); --jf-muted:var(--jf-mint); --jf-label:var(--jf-mint);
  --jf-line:rgb(244 237 227 / .22); --jf-ring:var(--jf-gold); --jf-err:#F2A196;
  --jf-shadow:0 2px 4px rgb(0 0 0 / .18),0 22px 44px -18px rgb(0 0 0 / .45);
  background:var(--jf-bg); color:var(--jf-text);
}
.jf-foot{--jf-bg:var(--jf-deep)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .jf-foot{--jf-bg:#0F2F2C}}

/* Nothing may scroll sideways */
html,body{overflow-x:clip}
/* Full-width band from inside a centred column: the background runs edge to edge, the content stays aligned */
.jf-bleed{box-shadow:0 0 0 100vmax var(--jf-bg);clip-path:inset(0 -100vmax)}

/* Dotted circle: the brand's mark as a small detail */
.jf-dot{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border-radius:50%;
  border:2.5px dotted var(--jf-ring);color:var(--jf-label);font-family:var(--jf-display);font-weight:600;font-size:13px;background:none}

/* Sample sign-up box (assets/sample-gate.js) on every page */
html .gbox{background:var(--jf-surface);color:var(--jf-text);box-shadow:var(--jf-shadow)}
html .gfld input{background:var(--jf-field);border-color:var(--jf-line);color:var(--jf-text)}
html .gerr{color:var(--jf-err)}
html .gbtn{background:var(--jf-accent);color:var(--jf-on-accent)}
html .gbtn.ghost{background:none;color:var(--jf-text);border-color:var(--jf-line)}

/* Logos: charcoal on Linen, white in dark mode (switched in the dark-mode block above) */
.jf-logo-light{display:none!important}

/* Illustrations (Koko): never cropped or recoloured. Each is a <picture> with a dark-ground source. */
.jf-art{margin:0;display:flex;align-items:center;justify-content:center}
.jf-art picture{display:contents}
.jf-art img{display:block;max-width:100%;height:auto}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
