/* Shared by the home page and the legal pages of mywow.net: tokens, reset, header, the action button. The two faces come from fonts.css
   (generated from web/site.config.json). Flat colour, a tone step for fields, one radius for media, pills for actions, soft layered shadows for lift. */
:root {
  --bg: #ebe5e3;        /* the ground */
  --surface: #e1dad7;   /* one tone step: fields, the slot, banded rows */
  --ink: #2b2622;
  --muted: #5f5651;
  --accent: #1456d6;    /* the app's accent, on the action only */
  --accent-ink: #ffffff;
  --shadow-rgb: 52 38 30;
  --win-red: #ff5f57;   /* the three round buttons of a picture's window bar: flat, decorative */
  --win-yellow: #febc2e;
  --win-green: #28c840;
  --lift: 0 1px 2px rgb(var(--shadow-rgb) / 0.12), 0 12px 24px -10px rgb(var(--shadow-rgb) / 0.26), 0 34px 64px -28px rgb(var(--shadow-rgb) / 0.4);
  --lift-hover: 0 2px 4px rgb(var(--shadow-rgb) / 0.14), 0 18px 32px -10px rgb(var(--shadow-rgb) / 0.32), 0 44px 80px -28px rgb(var(--shadow-rgb) / 0.46);
  --lift-small: 0 1px 2px rgb(var(--shadow-rgb) / 0.18), 0 8px 16px -8px rgb(var(--shadow-rgb) / 0.4);
  --sunk: inset 0 0.06em 0.14em rgb(var(--shadow-rgb) / 0.28);
  --edge: transparent;  /* a faint light edge on pictures, only in the dark theme */
  --r: 18px;            /* the one radius of pictures, tiles and fields */
  --r-pill: 999px;      /* actions */
  --r-s: 10px;          /* small parts: list items, focus rings, progress bars */
  --m: clamp(16px, 2.2vw, 32px);   /* the one pair of page margins */
  --d1: clamp(2.35rem, 10vw, 14rem);
  --d2: clamp(2.1rem, 5vw, 5.5rem);
  --d3: clamp(1.7rem, 3vw, 3rem);
  --mark: 26vw;
  --body: 1.25rem;
  --ui: 1rem;
  --small: 0.8125rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}
:root[data-theme="dark"] {
  --bg: #1d1917;
  --surface: #2a2522;
  --ink: #ece6e3;
  --muted: #b3aaa5;
  --accent: #86b0ff;
  --accent-ink: #0a1a38;
  --shadow-rgb: 0 0 0;
  --lift: 0 1px 2px rgb(var(--shadow-rgb) / 0.5), 0 14px 28px -10px rgb(var(--shadow-rgb) / 0.6), 0 40px 72px -26px rgb(var(--shadow-rgb) / 0.75);
  --lift-hover: 0 2px 4px rgb(var(--shadow-rgb) / 0.55), 0 20px 36px -10px rgb(var(--shadow-rgb) / 0.66), 0 50px 88px -26px rgb(var(--shadow-rgb) / 0.8);
  --lift-small: 0 1px 2px rgb(var(--shadow-rgb) / 0.55), 0 8px 18px -8px rgb(var(--shadow-rgb) / 0.7);
  --sunk: inset 0 0.06em 0.16em rgb(var(--shadow-rgb) / 0.6);
  --edge: rgb(255 255 255 / 0.1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1d1917; --surface: #2a2522; --ink: #ece6e3; --muted: #b3aaa5; --accent: #86b0ff; --accent-ink: #0a1a38;
    --shadow-rgb: 0 0 0;
    --lift: 0 1px 2px rgb(var(--shadow-rgb) / 0.5), 0 14px 28px -10px rgb(var(--shadow-rgb) / 0.6), 0 40px 72px -26px rgb(var(--shadow-rgb) / 0.75);
    --lift-hover: 0 2px 4px rgb(var(--shadow-rgb) / 0.55), 0 20px 36px -10px rgb(var(--shadow-rgb) / 0.66), 0 50px 88px -26px rgb(var(--shadow-rgb) / 0.8);
    --lift-small: 0 1px 2px rgb(var(--shadow-rgb) / 0.55), 0 8px 18px -8px rgb(var(--shadow-rgb) / 0.7);
    --sunk: inset 0 0.06em 0.16em rgb(var(--shadow-rgb) / 0.6);
    --edge: rgb(255 255 255 / 0.1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--body)/1.5 var(--font-text); font-synthesis: none; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 20; padding: 12px 18px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font: 600 var(--ui)/1 var(--font-display); }
.skip:focus { top: 12px; }
.fine { font-size: var(--small); line-height: 1.5; color: var(--muted); }
h2 { font: 600 var(--d2)/1 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }

/* The action: one filled button, a pill, lifted by a soft shadow; it rises under the pointer and gives under the press */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font: 600 var(--ui)/1 var(--font-display); text-decoration: none; cursor: pointer; box-shadow: var(--lift-small); transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.18s ease; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--lift-hover); background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
}
.btn:active { transform: scale(0.97); box-shadow: var(--lift-small); transition-duration: 0.14s; }
.quiet { font: 600 var(--ui)/1 var(--font-display); }

/* Header: the wordmark, a few plain links, the language list */
.head { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 20px var(--m); font: 500 var(--ui)/1.2 var(--font-display); }
.head { white-space: nowrap; }
.head a { text-decoration: none; }
.head a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.wordmark { display: inline-flex; align-items: center; gap: 0.45em; margin-right: auto; font-weight: 700; font-size: var(--body); letter-spacing: -0.02em; }
.wordmark::before { content: ""; width: 1.2em; height: 1.2em; background: url(/img/favicon-m.svg) center / contain no-repeat; }
.links { display: flex; order: 1; gap: 28px; }
.motion-label { order: 2; }
.langs { order: 3; }
.menu { display: contents; }
.menu-btn, .menu-demo { display: none; }
.menu-demo { order: 2; }
.langs { position: relative; }
.langs summary { cursor: pointer; list-style: none; padding: 8px 0; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: 100%; min-width: 9rem; padding: 8px; border-radius: var(--r); background: var(--surface); box-shadow: var(--lift); }
.langs a { display: block; padding: 10px 12px; border-radius: var(--r-s); }
.langs a[aria-current] { font-weight: 700; }
.motion-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.motion-label { padding: 8px 0; cursor: pointer; }
.motion-input:focus-visible + .motion-label { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-s); }
.m-play { display: none; }
html:has(#motion-off:checked) .m-pause { display: none; }
html:has(#motion-off:checked) .m-play { display: inline; }
@media (prefers-reduced-motion: reduce) { .motion-input, .motion-label { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* The visitor's own pause: one switch, no script needed, stops every animation, loop and transition on the page */
html:has(#motion-off:checked), html:has(#motion-off:checked) * , html:has(#motion-off:checked) *::before, html:has(#motion-off:checked) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (max-width: 820px) {
  :root { --d1: clamp(2.1rem, 8.4vw, 4rem); --d2: clamp(2rem, 9.5vw, 3.4rem); --mark: 25vw; --body: 1.125rem; }
  .head { gap: 12px; }
}
@media (max-width: 380px) { .head { gap: 4px 12px; flex-wrap: wrap; font-size: 0.9375rem; } }
@media (max-width: 440px) { .wordmark::before { display: none; } }   /* the header has no room for the mark next to four words */
