/* ATCODEX SCHOOL light mode, design A "Bright morning" (2026-12-03): every page: the colours, the dark/light switch, the logos and the brand.
   GENERATED by tools/light-theme.mjs from the dark stylesheets: do not edit here. Change the dark stylesheet and run
   npm run theme:light, or tune by hand in tools/light-theme/shared.css (appended at the end, so it wins). */
/* ---------- from /site-brand.css ---------- */
html[data-theme="light"] .home-hero .home-title { background: none; color: #052844; -webkit-text-fill-color: #052844; }
html[data-theme="light"] .home-hero .home-title .title-at { color: #946a00; -webkit-text-fill-color: #946a00; }
html[data-theme="light"] .top .top-nav { color: #395073; }
html[data-theme="light"] .top .top-nav a:hover, html[data-theme="light"] .top .top-nav a[aria-current="page"] { color: #0c1628; }
html[data-theme="light"] .site-header nav a[aria-current="page"] { color: #0c1628; }
html[data-theme="light"] .footer-offers { color: #41597c; }
html[data-theme="light"] .footer-offers a:hover { color: #0c1628; }
/* ---------- from /brand-motion.css ---------- */
html[data-theme="light"] .brand-bloom { background: radial-gradient(circle, #102a5c1f 0%, #102a5c1e 34%, #e6bd7200 68%); }
html[data-theme="light"] .brand-beam { background: linear-gradient(115deg, transparent 30%, #102a5c0e 46%, #102a5c16 50%, #102a5c0e 54%, transparent 70%); }
html[data-theme="light"] .brand-streaks i { background: linear-gradient(90deg, transparent, #f0b25c00 12%, #f0b25c 62%, #fff6dc 93%, transparent); box-shadow: 0 0 14px 2px #f2a94a59; }
html[data-theme="light"] .brand-streaks i:nth-child(3) { box-shadow: 0 0 10px 1px #70d8ff40; background: linear-gradient(90deg, transparent, #70d8ff00 12%, #9fdcff 66%, #f2fbff 93%, transparent); }
html[data-theme="light"] .brand-sheen::before { background: linear-gradient(100deg, transparent 0, #f0b25c00 18%, #f0b25c8c 40%, #ffe3a8e6 49%, #fff8e8 50%, #ffe3a8e6 51%, #f0b25c8c 60%, transparent 82%); }
html[data-theme="light"] .brand-embers i { background: #ffd27a; box-shadow: 0 0 6px 1px #f5b14fb3; }

/* ---------- by hand: tools/light-theme/shared.css ---------- */
/* every page, by hand: design A's colours, the dark/light switch in the header and the two logos */
html[data-theme="light"] {
  color-scheme: light;
  --l-bg: #f4f7fc; --l-ink: #0d1b36; --l-ink2: #1f3358; --l-muted: #5a6a84; --l-soft: #3a4b68; --l-line: rgba(16, 42, 92, .1);
  --l-card: #ffffff; --l-card-border: #e0e8f3; --l-card-border-hover: #b9cde9;
  --l-card-shadow: 0 1px 2px rgba(16, 36, 77, .06), 0 18px 44px rgba(16, 36, 77, .1);
  --l-card-shadow-hover: 0 2px 4px rgba(16, 36, 77, .06), 0 30px 64px rgba(16, 36, 77, .16);
  --l-chip-bg: #f1f5fb; --l-chip-border: #d6e1f0; --l-chip-hover: #e6eef9; --l-chip-border-hover: #a9c2e6;
  --l-win-bar: #eef3fa; --l-win-border: #d5e0ee; --l-win-shadow: 0 20px 44px rgba(16, 36, 77, .18);
  --l-gold-text: #a86d00; --l-gold-soft: #fff5df; --l-gold-line: #efcc86;
  --l-violet: #6a45e6; --l-blue: #1d64d8; --l-cyan: #0b84c6;
  /* the dark stylesheets' own colour names, in light */
  --bg: var(--l-bg); --bg2: #eef3fa; --panel: #ffffff; --text: var(--l-ink); --muted: var(--l-muted); --soft: var(--l-soft); --line: var(--l-line);
  --blue: #1f6fe5; --cyan: var(--l-cyan); --gold: #c27f08; --gold2: #e6a83f;
}
html[data-theme="light"] body { background: var(--l-bg); color: var(--l-ink); }
html[data-theme="light"] a:focus-visible, html[data-theme="light"] button:focus-visible { outline-color: var(--l-blue); }

/* the two logos: the dark page shows the white lettering, the light page the navy one */
html:not([data-theme="light"]) .logo-light, html[data-theme="light"] .logo-dark { display: none !important; }

/* the switch: a sun on the dark page (to light it), a moon on the light page */
.theme-toggle { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid #365a86; background: #10264a80; color: #ffd98f; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s; }
.theme-toggle:hover { background: #18386a; border-color: #5f8fd0; }
.theme-toggle svg { grid-area: 1 / 1; width: 19px; height: 19px; transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.theme-toggle .ico-moon { opacity: 0; transform: rotate(-70deg) scale(.5); }
.theme-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-theme="light"] .theme-toggle { color: var(--l-violet); border-color: var(--l-chip-border); background: var(--l-chip-bg); }
html[data-theme="light"] .theme-toggle:hover { background: var(--l-chip-hover); border-color: var(--l-chip-border-hover); }
html[data-theme="light"] .theme-toggle .ico-sun { opacity: 0; transform: rotate(70deg) scale(.5); }
html[data-theme="light"] .theme-toggle .ico-moon { opacity: 1; transform: none; }
@media (max-width: 600px) { .theme-toggle { width: 36px; height: 36px; } .theme-toggle svg { width: 17px; height: 17px; } }
@media (prefers-reduced-motion: reduce) { .theme-toggle svg { transition: none; } }

/* the brand's light streaks are drawn to brighten a dark page; on a light page they simply show */
html[data-theme="light"] .brand-streaks { mix-blend-mode: normal; opacity: .7; }
/* the glint runs over the logo's own pixels: on the light page it takes its shape from the light logo (the same shape),
   so a light page never downloads the dark logo */
html[data-theme="light"] .brand-sheen { -webkit-mask-image: url(/assets/atcodex-school-sunrise-lockup-light.webp); mask-image: url(/assets/atcodex-school-sunrise-lockup-light.webp); }
