/* New Media XP site stylesheet; accent, button and per-item colour tokens come from palette.css.
   Perf: no animated backgrounds or blur filters; only the fixed .fx / .birds layers animate, and only transform / opacity. */

/*#region fonts (self-hosted, latin subset) */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/roboto-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/roboto-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/roboto-slab-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/roboto-slab-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/*#endregion*/

/*#region tokens */
:root {
  color-scheme: light;

  --chrome: linear-gradient(hsl(250 50% 30%), hsl(200 50% 30%));          /* header */
  --chrome-reverse: linear-gradient(hsl(200 50% 30%), hsl(250 50% 30%));  /* footer + mobile menu */
  --chrome-text: hsl(180 100% 80%);
  --chrome-name: hsl(0 0% 100%); /* the header wordmark */
  --chrome-line: hsl(180 100% 80% / .22);
  --chrome-hover: hsl(180 100% 80% / .12);

  --px-red: hsl(0 100% 50%);
  --px-green: hsl(120 100% 45%);
  --px-blue: hsl(240 100% 58%);

  /* light (default) */
  --bg: hsl(170 74% 88%);
  --text: hsl(230 40% 9%);
  --muted: hsl(230 24% 26%);
  --faint: hsl(230 14% 38%);
  --link: hsl(240 100% 35%);
  --chip-bg: hsl(70 100% 20%);
  --chip-text: hsl(70 100% 90%);
  /* --btn-*, --ghost-*, --hl-mark, --page-*, --pager-*, --store-* … come from palette.css */
  --ring: hsl(240 100% 35%);
  --store-outline: rgb(255 255 255 / .45); /* store icon outline: the button text colour, dulled */
  --glint: hsl(0 0% 100% / .45);           /* the shine on button shadows: dimmer on the near-black light-mode shadows */
  --art-shadow: drop-shadow(0 12px 18px hsl(230 60% 14% / .3)); /* icons: follows each icon's own shape */
  --outline-alt: hsl(70 50% 50%); /* tag hover outline: the other theme's tag colour */
  --line: hsl(250 50% 30% / .2);
  --surface: hsl(168 70% 97% / .62);
  --shadow: 0 14px 30px -18px hsl(200 70% 12% / .7);
  --page-glow:
    radial-gradient(70vmax 46vmax at 22% 30%, hsl(180 100% 95% / .7), #0000 70%),
    radial-gradient(56vmax 40vmax at 92% 8%, hsl(60 100% 80% / .3), #0000 70%);

  --font-head: "Roboto Slab", Georgia, serif;
  --font-body: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: hsl(230 74% 10%);
  --text: hsl(150 60% 80%);
  --muted: hsl(158 28% 70%);
  --faint: hsl(170 16% 58%);
  --link: hsl(240 100% 85%);
  --chip-bg: hsl(70 50% 50%);
  --chip-text: hsl(230 74% 8%);
  --ring: hsl(240 100% 85%);
  --store-outline: rgb(22 22 22 / .45);
  --glint: hsl(0 0% 100% / .85);
  --art-shadow: drop-shadow(0 14px 22px hsl(0 0% 0% / .55));
  --outline-alt: hsl(70 100% 20%);
  --line: hsl(180 100% 80% / .14);
  --surface: hsl(232 58% 15% / .62);
  --shadow: 0 16px 32px -18px hsl(0 0% 0% / .9);
  --page-glow:
    radial-gradient(70vmax 46vmax at 24% 30%, hsl(250 60% 24% / .5), #0000 70%),
    radial-gradient(56vmax 40vmax at 92% 8%, hsl(200 60% 24% / .4), #0000 70%);
}
/*#endregion*/

/*#region base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 1rem/1.55 var(--font-body);
  color: var(--text);
  background: var(--page-glow), var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
main { flex: 1 0 auto; }
.top, main, .foot { position: relative; z-index: 1; }
.top { z-index: 10; }

/* hidden above the page by its own height: it wraps on very narrow screens, so a fixed offset could let it peek out */
.skip {
  position: absolute; left: 12px; top: 0; z-index: 20;
  max-width: calc(100% - 24px);
  padding: 10px 14px; border-radius: 8px;
  background: var(--chrome); color: var(--chrome-text);
  transform: translateY(-100%);
}
.skip:focus { top: 12px; transform: none; }
.skip:focus-visible { outline-color: var(--chrome-text); } /* drawn over the header chrome */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/*#endregion*/

/*#region header */
.top { background: var(--chrome); color: var(--chrome-text); box-shadow: 0 1px 0 hsl(250 100% 20%); }
.top :focus-visible { outline-color: var(--chrome-text); }
.top__bar { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--chrome-name); text-decoration: none; flex: none; } /* the wordmark draws in this colour */
.brand__logo { width: 44px; height: 44px; transition: filter .15s; }
/* the wordmark: two masked layers; ::before = the wordmark, ::after = the glitch ghost behind it (logo hover) */
.brand__word {
  position: relative;
  display: block;
  /* 26px tall: "New Media XP" 566×64 → 230px, "NMX" 184×64 → 74.8px (end of file). Explicit width for iOS 14 and older */
  --word-img: url(/assets/img/nmx-wordmark.png);
  height: 26px;
  width: 230px;
  isolation: isolate; /* keeps the ghost (z -1) inside the wordmark box, above the header bar */
}
.brand__word::before,
.brand__word::after {
  content: "";
  position: absolute; inset: 0;
  -webkit-mask: var(--word-img) center / contain no-repeat;
  mask: var(--word-img) center / contain no-repeat;
}
.brand__word::before { background: currentColor; }
.brand__word::after { z-index: -1; background: var(--px-red); opacity: 0; }

/* logo hover: a white glow on the icon and an RGB-split glitch on the wordmark */
.brand__logo:hover { filter: drop-shadow(0 0 4px hsl(0 0% 100%)); }
.brand__logo:hover + .brand__word::after { opacity: .9; animation: nmx-glitch-ghost .48s steps(1) infinite; }
.brand__logo:hover + .brand__word::before { animation: nmx-glitch-main .36s steps(1) infinite; }
@keyframes nmx-glitch-ghost {
  0%   { transform: translate(-2px, 1px);  background: var(--px-red); }
  25%  { transform: translate(2px, -1px);  background: var(--px-blue); }
  50%  { transform: translate(-1px, -1px); background: var(--px-green); }
  75%  { transform: translate(2px, 1px);   background: var(--px-red); }
}
@keyframes nmx-glitch-main {
  0%   { transform: none; }
  33%  { transform: translate(1px, 0); }
  66%  { transform: translate(-1px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .brand__logo:hover + .brand__word::before { animation: none; }
  .brand__logo:hover + .brand__word::after { animation: none; opacity: 0; } /* glow only */
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--chrome-text);
  font: 600 1.125rem/1.55 var(--font-head);
  text-decoration: none;
  transition: background-color .15s;
}
.nav a:hover { background: var(--chrome-hover); }
.nav a[aria-current]::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--chrome-text);
}

.top__actions { display: flex; gap: 6px; }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 2px solid var(--chrome-line);
  border-radius: 10px;
  background: transparent;
  color: var(--chrome-text);
  cursor: pointer;
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--chrome-hover); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.nav-btn { display: none; }
.nav-btn path { transform-box: fill-box; transform-origin: center; transition: transform .2s, opacity .15s; }
.top.is-open .nav-btn .l1 { transform: translateY(5px) rotate(45deg); }
.top.is-open .nav-btn .l2 { opacity: 0; }
.top.is-open .nav-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
/*#endregion*/

/*#region footer */
.foot { background: var(--chrome-reverse); color: var(--chrome-text); font-size: .9rem; }
.foot :focus-visible { outline-color: var(--chrome-text); }
.foot__bar { display: flex; align-items: center; gap: 12px 28px; min-height: 56px; padding-block: 10px; }
.foot__copy { display: flex; align-items: center; gap: 10px; margin: 0; }
.foot__links { display: flex; gap: 20px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.foot a { color: var(--chrome-text); text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
/*#endregion*/

/*#region shared bits */
.rgb { display: inline-flex; gap: 2px; flex: none; }
.rgb i { width: 6px; height: 6px; background: var(--px-red); }
.rgb i:nth-child(2) { background: var(--px-green); }
.rgb i:nth-child(3) { background: var(--px-blue); }

/* highlight: a highlighter stroke (--hl-mark) behind the lower ~40% of the text */
.hl {
  color: inherit;
  margin-inline: -.06em;
  padding-inline: .12em;
  border-radius: .3em .12em .3em .12em;
  background: linear-gradient(transparent 55%, var(--hl-mark) 55% 95%, transparent 95%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: 10px;
  font: 500 1rem/1 var(--font-body);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background-color .2s;
}
.btn svg { flex: none; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
/* the button recipe: link-colour fill + hard pixel shadow; hover = half pressed */
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 4px 4px 0 var(--btn-shadow); }
.btn--primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--btn-shadow); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--btn-shadow); }
/* a 1px inner edge in each button's pixel-shadow colour, so edge and shadow read as one block;
   on ::after so it moves with the press */
.btn, .store, .pager__step, .pager__num { position: relative; }
.btn { --edge: var(--btn-shadow); }
.store { --edge: var(--store-shadow); }
.pager__step, .pager__num { --edge: var(--page-shadow); } /* --edge, not --ring: --ring is the keyboard focus colour */
.btn::after, .store::after, .pager__step::after, .pager__num::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--edge);
  pointer-events: none;
}
/* glint: a white arc + dash 1px inside the pixel shadow's rounded bottom-right corner, concentric with it
   (--corner = button radius, --depth = shadow offset). Hidden when pressed: a 1px shadow has no side to shine */
.btn { --corner: 10px; }
.store, .pager__step, .pager__num { --corner: 8px; }
.btn, .store, .pager__step, .pager__num { --depth: 4px; }
.btn--primary:hover, .store:hover, .pager a[href]:hover { --depth: 2px; }
.btn::before, .store::before, .pager__step::before, .pager__num::before, .share__social a::before {
  content: "";
  position: absolute;
  z-index: 1; /* above the share icons' filtered image, which paints as its own layer */
  right: calc(1px - var(--depth));
  bottom: calc(1px - var(--depth));
  width: calc(2 * var(--corner) - 2px);
  height: calc(2 * var(--corner) - 2px);
  border: 1.5px solid transparent;
  border-right-color: var(--glint);
  border-bottom-color: var(--glint);
  border-radius: 50%;
  /* two wedges from the centre: 20°–55° (edge points tan 20° → 68.2%, cot 55° → 85%) and 63°–74° (cot → 75.5%, 64.3%) */
  -webkit-clip-path: polygon(50% 50%, 100% 68.2%, 100% 100%, 85% 100%, 50% 50%, 75.5% 100%, 64.3% 100%);
  clip-path: polygon(50% 50%, 100% 68.2%, 100% 100%, 85% 100%, 50% 50%, 75.5% 100%, 64.3% 100%);
  pointer-events: none;
  transition: right .15s, bottom .15s, opacity .15s;
}
.btn--primary:active::before, .store:active::before, .pager a[href]:active::before,
.pager .pager__num[aria-current]::before, .pager__step[aria-disabled="true"]::before, .store--off::before,
.share__social a:active::before { opacity: 0; }
/* the same button in yellow (--page-*) and green (--green-*) */
.btn--alt { --btn-bg: var(--page-bg); --btn-ink: var(--page-ink); --btn-shadow: var(--page-shadow); }
.btn--green { --btn-bg: var(--green-bg); --btn-ink: var(--green-ink); --btn-shadow: var(--green-shadow); }

.chip {
  display: inline-flex; align-items: center;
  padding: 5px 8px 4px;
  border-radius: 4px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font: 500 .68rem/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
a.chip { position: relative; transition: transform .15s, box-shadow .15s; }
/* 3px of invisible tap area all round; the 6px gap between chips is shared exactly */
a.chip::before { content: ""; position: absolute; inset: -3px; }
a.chip:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--outline-alt); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

/* store buttons: the button recipe in grey (--store-*) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.store {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px 0 12px;
  border-radius: 8px;
  background: var(--store-bg);
  color: var(--store-ink);
  box-shadow: 4px 4px 0 var(--store-shadow);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.store:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--store-shadow); }
.store:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--store-shadow); }
.store img, .store svg { width: 20px; height: 20px; border-radius: 5px; flex: none; box-shadow: 0 0 0 1px var(--store-outline); }
.note {
  padding: 3px 5px 2px;
  border-radius: 3px;
  font: 500 .6rem/1.2 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* a note in a store button ("Demo"): the button's two colours swapped */
.store .note { background: var(--store-ink); color: var(--store-bg); }

.more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
.more svg { transition: transform .2s; }
.more:hover { border-bottom-color: currentColor; }
.more:hover svg { transform: translateX(3px); }

.count {
  padding: 4px 7px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font: 600 .72rem/1 var(--font-mono);
  letter-spacing: .08em;
}
/*#endregion*/

/*#region home: hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 40px;
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(28px, 4.4vw, 60px);
  align-items: center;
}
/* the art box = the logo box, so the beams are placed in % of the logo */
.hero__art { position: relative; z-index: 0; width: 100%; max-width: 480px; justify-self: center; }
.hero__logo { position: relative; z-index: 1; width: 100%; }

/* RGB stage lights, one per pixel letter: centres measured from nmx-banner-1.png's alpha (N 18.69%, M 49.94%, X 81.19%) */
.beam {
  position: absolute;
  z-index: 0;
  top: -44px;
  bottom: 10%;
  width: 42%;
  transform: translateX(-50%);
  -webkit-clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.beam--r { left: 18.69%; background: linear-gradient(hsl(0 100% 50%) 0 4px, hsl(0 100% 55% / .16) 4px, transparent 96%); }
.beam--g { left: 49.94%; background: linear-gradient(hsl(120 100% 38%) 0 4px, hsl(120 100% 45% / .14) 4px, transparent 96%); }
.beam--b { left: 81.19%; background: linear-gradient(hsl(240 100% 50%) 0 4px, hsl(240 100% 60% / .16) 4px, transparent 96%); }
[data-theme="dark"] .beam--r { background: linear-gradient(hsl(0 100% 58%) 0 4px, hsl(0 100% 55% / .22) 4px, transparent 96%); }
[data-theme="dark"] .beam--g { background: linear-gradient(hsl(120 100% 50%) 0 4px, hsl(120 100% 50% / .17) 4px, transparent 96%); }
[data-theme="dark"] .beam--b { background: linear-gradient(hsl(240 100% 68%) 0 4px, hsl(240 100% 65% / .3) 4px, transparent 96%); }

.hero h1 {
  margin: 0 0 12px;
  font: 700 clamp(1.9rem, 1.1rem + 2.5vw, 3.2rem)/1.1 var(--font-head);
  letter-spacing: -.012em;
  text-wrap: balance;
}
.hero__line { margin: 0 0 22px; color: var(--muted); font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px 14px; }
/*#endregion*/

/*#region home: product bands */
.band {
  --pad: clamp(24px, 3.2vw, 44px);
  position: relative;
  overflow: hidden;
  padding: var(--pad) 0;
  border-top: 1px solid var(--line);
  background: var(--tint);
}
.band__in {
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 11fr);
  gap: clamp(24px, 4.4vw, 60px);
  align-items: center;
}
.band--flip .band__in { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); }
.band--flip .band__art { order: 2; }

.band__art { position: relative; z-index: 0; display: block; justify-self: center; width: 100%; max-width: 540px; }

/* the spotlight: lamp bar at the band's top edge + a widening cone */
.spot {
  position: absolute;
  z-index: 0;
  top: calc(-1 * var(--pad) - 1px);
  bottom: 6%;
  left: -14%;
  right: -14%;
  -webkit-clip-path: polygon(44.5% 0, 55.5% 0, 100% 100%, 0 100%);
  clip-path: polygon(44.5% 0, 55.5% 0, 100% 100%, 0 100%);
  background: linear-gradient(var(--lamp) 0 4px, var(--beam) 4px, transparent 94%);
  pointer-events: none;
}
/* halo pool behind the art */
.band__art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -6% -10%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.band__art img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 12%;
  filter: var(--art-shadow); /* static, so it is painted once; the hover lift only moves it */
  transition: transform .35s var(--ease);
}
.band__art:hover img { transform: translateY(-5px); }
/* art, title and "Read more" open the same article: hovering / focusing one shows all three effects */
.band:has(.band__art:hover, .band__name a:hover, .band__name a:focus-visible, .more:hover, .more:focus-visible) .band__art img { transform: translateY(-5px); }
.band:has(.band__art:hover, .band__name a:hover, .band__name a:focus-visible, .more:hover, .more:focus-visible) .band__name a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--lamp); }
.band:has(.band__art:hover, .band__name a:hover, .band__name a:focus-visible, .more:hover, .more:focus-visible) .more { border-bottom-color: currentColor; }
.band:has(.band__art:hover, .band__name a:hover, .band__name a:focus-visible, .more:hover, .more:focus-visible) .more svg { transform: translateX(3px); }

.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker__no { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.kicker__no::before { content: ""; width: 8px; height: 8px; background: var(--lamp); }
/* category chip in the band's hue (--cat-*) */
.band .chip { background: var(--cat-bg); color: var(--cat-ink); }

.band__name {
  margin: 14px 0 10px;
  font: 700 clamp(2.1rem, 1.25rem + 2.6vw, 3.6rem)/1.04 var(--font-head);
  letter-spacing: -.018em;
  text-wrap: balance;
}
.band__name a { color: inherit; text-decoration: none; }
.band__name a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--lamp); }
.band__pitch { max-width: 36ch; margin: 0 0 20px; color: var(--muted); font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); }

/* per-product colours (--tint, --beam, --glow, --lamp, --accent, --cat-*): palette.css, keyed by data-hue */
/*#endregion*/

/*#region blog: page head */
.page-head { padding-block: 30px 20px; }
.page-head h1 {
  display: flex; align-items: flex-end; gap: 14px;
  margin: 10px 0 0;
  font: 700 clamp(2.1rem, 1.5rem + 2vw, 3rem)/1 var(--font-head);
  letter-spacing: -.018em;
}
.page-head .count { position: relative; margin-bottom: 4px; }
/*#endregion*/

/*#region blog: featured card */
/* the library tile, bigger and sideways (shared rules in the library region) */
.feature__card { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); }
.feature__art {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: calc(var(--r) - 1px) 0 0 calc(var(--r) - 1px);
  background: #000;
}
.feature__art img { width: 100%; height: 100%; object-fit: contain; }

.feature__body { align-self: center; padding: clamp(22px, 3vw, 40px) clamp(20px, 3.6vw, 48px); }
.feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; }
.badge-new {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 9px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: 600 .68rem/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.feature__meta time { color: var(--faint); font: 500 .76rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

.feature__title { margin: 0; font: 700 clamp(1.8rem, 1.1rem + 2.2vw, 2.9rem)/1.06 var(--font-head); letter-spacing: -.015em; text-wrap: balance; }
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover .feature__main { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--ghost-line); }
.feature__sub {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font: 600 clamp(1.05rem, .98rem + .4vw, 1.3rem)/1.3 var(--font-head);
  letter-spacing: 0;
}
.feature__desc { max-width: 52ch; margin: 14px 0 0; color: var(--muted); font-size: clamp(1rem, .96rem + .2vw, 1.08rem); }
.feature__tags { margin-top: 16px; position: relative; z-index: 2; } /* tags stay clickable above the card link */
/* the title link stretches over the whole card */
.feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
/*#endregion*/

/*#region blog: library */
.library { margin-top: clamp(30px, 4vw, 48px); padding-bottom: clamp(44px, 5vw, 64px); }
/* head row: "Page 1 of 2" ——— ‹ Prev 1 2 Next › */
.library__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; scroll-margin-top: 16px; }
.library__head::after { content: ""; flex: 1 1 40px; height: 1px; background: currentColor; opacity: .18; order: 2; }
.library__title { margin: 0; font: 700 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.2 var(--font-head); }
.library__of { color: var(--faint); font-weight: 600; }
.library__head .pager { order: 3; }

/* pager: the button recipe in yellow (--page-*); the current page sits pressed in (--pager-*) */
.pager { display: flex; align-items: center; gap: 10px; }
.pager__nums { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pager__step,
.pager__num {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--page-bg);
  color: var(--page-ink);
  box-shadow: 4px 4px 0 var(--page-shadow);
  font: 600 .74rem/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.pager__step { padding: 0 12px 0 8px; }
.pager__step--next { padding: 0 8px 0 12px; }
.pager__step svg { flex: none; }
.pager a[href]:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--page-shadow); }
.pager a[href]:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--page-shadow); }
.pager .pager__num[aria-current],
.pager .pager__num[aria-current]:hover,
.pager .pager__num[aria-current]:active { cursor: default; background: var(--pager-bg); color: var(--pager-ink); transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--page-shadow); }
.pager__step[aria-disabled="true"] { opacity: .38; cursor: default; transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--page-shadow); }
.pager--foot { justify-content: center; margin-top: clamp(28px, 3vw, 40px); }

.library__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0; padding: 0;
  list-style: none;
}
/* article card; the featured card shares these rules */
.tile,
.feature__card {
  --r: 16px;
  position: relative; /* anchors the selection ring and the stretched title link */
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease);
}
.tile { display: flex; flex-direction: column; }
.tile__art { position: relative; display: block; }
.tile__frame {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
  background: #000;
}
.tile__frame img { width: 100%; height: 100%; object-fit: contain; }
/* date / title / tags; the tags sit on the card's bottom edge so a row lines up */
.tile__body { display: flex; flex-direction: column; flex: 1 0 auto; padding: 14px 16px 16px; }

/* selection ring + lift shadow: static, only opacity animates */
.tile::after,
.feature__card::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: calc(var(--r) + 4px);
  box-shadow: 0 0 0 3px var(--ghost-line), 0 16px 30px -14px hsl(230 60% 8% / .5);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
/* shine sweep on select */
.tile__frame::before,
.feature__art::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 38%, hsl(0 0% 100% / .2) 50%, transparent 62%);
  transform: translateX(-110%);
  pointer-events: none;
}
.tile__prompt { /* the "Ⓐ Read" prompt: decorative, the pointer passes through to the card link */
  pointer-events: none;
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  background: hsl(230 74% 7% / .82);
  color: hsl(180 100% 85%);
  font: 600 .72rem/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .25s var(--ease);
}
.tile__prompt b {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: hsl(120 100% 40%);
  color: hsl(0 0% 0%);
  font-size: .7rem;
}

.tile:hover,
.tile:focus-within,
.feature__card:hover,
.feature__card:focus-within { transform: translateY(-4px); }
.tile:hover::after,
.tile:focus-within::after,
.feature__card:hover::after,
.feature__card:focus-within::after { opacity: 1; }
.tile:hover .tile__prompt,
.tile:focus-within .tile__prompt,
.feature__card:hover .tile__prompt,
.feature__card:focus-within .tile__prompt { opacity: 1; transform: none; }
.feature__art .tile__prompt { left: 16px; bottom: 16px; }
.tile:hover .tile__frame::before,
.tile:focus-within .tile__frame::before,
.feature__card:hover .feature__art::before,
.feature__card:focus-within .feature__art::before { transform: translateX(110%); transition: transform .75s ease-out; }

.tile time { color: var(--faint); font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.tile__name { margin: 7px 0 0; font: 700 clamp(1.15rem, 1.02rem + .35vw, 1.35rem)/1.2 var(--font-head); letter-spacing: -.01em; }
.tile__name a { color: inherit; text-decoration: none; }
/* the title link stretches over the whole card: above the art's decorations (z 1–2), below the tags (z 4) */
.tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r); }
.tile__name a:hover .tile__main { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--ghost-line); }
.tile__sub { display: block; margin-top: 3px; color: var(--muted); font: 400 .95rem/1.35 var(--font-body); letter-spacing: 0; }
.tile .chips { margin-top: auto; padding-top: 12px; position: relative; z-index: 4; } /* tags stay their own links */
.tile .chip { font-size: .62rem; }
/*#endregion*/

/*#region about + contact */
.two-part,
.info-links {
  max-width: 800px;
  margin: clamp(32px, 5vw, 60px) auto clamp(44px, 5vw, 64px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.two-part h1,
.info-links h1 { margin: 0 0 .9em; font: 700 clamp(1.8rem, 1.5rem + 1vw, 2.2rem)/1.15 var(--font-head); letter-spacing: -.01em; }
.two-part__main p { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; }
.two-part__side { margin: 0 auto 28px; width: fit-content; text-align: center; }
.two-part__side img { width: 100%; max-width: 200px; margin: 0 auto; filter: var(--art-shadow); }
.two-part__main .two-part__contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 1.4em; }
.two-part__contact .more { margin: 0; }
.two-part__side p { margin: 10px 0 0; font: 500 1rem/1.2 var(--font-head); }
@media (min-width: 700px) {
  .two-part { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(24px, 4vw, 48px); }
  .two-part__side { margin: 0; flex: none; }
  .two-part__main { flex: 1 1 0; min-width: 0; }
}
.info-links__email { margin: 2.4em 0 .6em; }
.info-links__email p { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.15rem); overflow-wrap: anywhere; }
.info-links__group { margin-top: 2.2em; }
.info-links h2 { margin: 0 0 .8em; font: 700 clamp(1.2rem, 1.1rem + .4vw, 1.4rem)/1.2 var(--font-head); }
/*#endregion*/

/*#region 404 */
.error-show {
  --pad: clamp(26px, 4vw, 44px);
  position: relative;
  overflow: hidden; /* clips the lights to the panel; their lamp bars sit on its top edge */
  max-width: 640px;
  margin: clamp(32px, 6vw, 72px) auto clamp(44px, 6vw, 80px);
  padding: var(--pad);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}
.error-show__code { position: relative; z-index: 0; width: fit-content; margin: 0 auto; }
/* the hero's stage lights, one per digit: the digits sit in three equal columns (centres 1/6, 1/2, 5/6) */
.error-show .beam { top: calc(-1 * var(--pad) - 1px); bottom: -8%; width: 46%; }
.error-show .beam--r { left: calc(100% / 6); }
.error-show .beam--g { left: 50%; }
.error-show .beam--b { left: calc(500% / 6); }
.error-show h1 {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  font: 700 clamp(5.5rem, 3.4rem + 10vw, 9.5rem)/1 var(--font-head);
}
.error-show h1 span { padding-inline: .04em; }
.error-show__text { margin: 12px 0 0; font: 700 clamp(1.4rem, 1.2rem + .8vw, 1.9rem)/1.2 var(--font-head); }
.error-show .btn { margin-top: clamp(22px, 3vw, 30px); }
/*#endregion*/

/*#region tag page */
.page-head--tag h1 { flex-wrap: wrap; row-gap: 12px; }
.chip--title { align-self: center; padding: 6px 9px 5px; border-radius: 6px; font-size: clamp(.78rem, .72rem + .3vw, .95rem); } /* centred on "Blog"'s capitals */
.library--tag { margin-top: 6px; } /* straight under the title: no featured card to clear */
.library__more { margin: clamp(20px, 2.6vw, 28px) 0 0; text-align: center; }
.library__more .more { margin-top: 0; }
/*#endregion*/

/*#region article */
.post {
  max-width: 800px;
  margin: clamp(28px, 4.5vw, 52px) auto 0;
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.post__title { margin: 0; font: 700 clamp(2rem, 1.4rem + 2.2vw, 3rem)/1.06 var(--font-head); letter-spacing: -.015em; text-wrap: balance; }
.post__sub { display: block; margin-top: 8px; color: var(--muted); font: 600 clamp(1.1rem, 1rem + .5vw, 1.4rem)/1.3 var(--font-head); letter-spacing: 0; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--faint); font: 500 .76rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.post__sep { width: 4px; height: 4px; background: currentColor; } /* a pixel dot between date and author */
.post__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  margin-top: 18px;
  padding-bottom: clamp(20px, 2.6vw, 28px);
  border-bottom: 1px solid var(--line);
}
/* Share: the primary button, a size smaller */
.btn--share { height: 40px; padding: 0 14px 0 16px; font-size: .95rem; cursor: pointer; border: 0; }
.btn--share:hover svg { transform: translate(2px, -2px); }

/* article body: heading squares and list markers in the tag colour (--chip-bg) */
.prose { margin-top: clamp(20px, 2.6vw, 28px); font-size: clamp(1.05rem, 1rem + .25vw, 1.15rem); line-height: 1.65; }
.prose .sub-section + .sub-section { margin-top: 1.7em; }
.prose p { margin: .7em 0 0; }
.prose .sub-section > :first-child { margin-top: 0; }
.prose h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 .45em; font: 700 clamp(1.3rem, 1.15rem + .6vw, 1.6rem)/1.2 var(--font-head); }
.prose h2::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--chip-bg); }
.prose ul:not(.stores) { display: grid; gap: .45em; margin: .8em 0 0; padding: 0; list-style: none; }
.prose ul:not(.stores) > li { position: relative; padding-left: 22px; }
.prose ul:not(.stores) > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--chip-bg); }
/* custom markers: --marker in a style attribute on .prose, a list or an item replaces the pixel square */
.prose[style*="--marker"] ul:not(.stores) > li,
.prose ul[style*="--marker"]:not(.stores) > li,
.prose ul:not(.stores) > li[style*="--marker"] { padding-left: 1.7em; } /* as specific as the default rule, or it loses */
.prose[style*="--marker"] ul:not(.stores) > li::before,
.prose ul[style*="--marker"]:not(.stores) > li::before,
.prose ul:not(.stores) > li[style*="--marker"]::before {
  content: var(--marker);
  left: 0; top: 0;
  width: 1.2em; height: auto;
  background: none;
  color: var(--chip-bg);
  text-align: center;
  font-variant-emoji: text; /* a symbol, not a colour emoji, where the font allows */
}
/* Links section; an unpublished store = the same button pressed flat + dimmed, no link */
.prose .stores { margin-top: .9em; }
.store.store--off,
.store.store--off:hover,
.store.store--off:active { opacity: .55; cursor: default; transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--store-shadow); }
.prose a { overflow-wrap: anywhere; text-underline-offset: 3px; }
/* the product art, never upscaled */
.prose p > img { width: 100%; max-width: 512px; margin: 1.1em auto .5em; border-radius: 12%; filter: var(--art-shadow); }

.post__end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 14px;
  margin: clamp(26px, 3.4vw, 36px) 0 0;
  padding-top: clamp(20px, 2.6vw, 26px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.related { margin-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(44px, 5vw, 64px); }

/* share window (native <dialog>), framed by a double outline: border + a page-colour gap + a second ring */
.share {
  width: min(100% - 32px, 400px);
  padding: 0;
  overflow: hidden; /* the title bar takes the window's top corners */
  border: 2px solid var(--text);
  border-radius: 14px;
  background: var(--page-glow), var(--bg);
  color: var(--text);
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--text),
    0 24px 60px -20px hsl(230 60% 6% / .8);
}
.share::backdrop { background: hsl(230 60% 6% / .5); }
html:has(.share[open]) { overflow: hidden; } /* no page scroll behind it */
html:has(.share) { scrollbar-gutter: stable; } /* …without the page jumping sideways when the scrollbar goes */
.share__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 14px 20px; /* room below for the close button's pixel shadow */
  border-bottom: 1px solid var(--line);
}
.share h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1.3rem/1 var(--font-head); }
/* close: the primary button in red (--red-*), square at the Share button's 40px height */
.share__close {
  --btn-bg: var(--red-bg); --btn-ink: var(--red-ink); --btn-shadow: var(--red-shadow);
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.share__close:hover svg { transform: none; } /* the × stays put; the button itself presses */
.share__body { padding: 22px 22px 24px; }
.share__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
/* share icons: the button recipe with the store-button shadow; zero-blur drop-shadows trace each icon's squircle */
.share__social a {
  /* 1px outline around the squircle: four zero-blur copies */
  --outline: drop-shadow(1px 0 0 var(--store-shadow)) drop-shadow(-1px 0 0 var(--store-shadow)) drop-shadow(0 1px 0 var(--store-shadow)) drop-shadow(0 -1px 0 var(--store-shadow));
  /* glint: squircle corner ≈ a 12.3px circle (measured from the icon alpha); the outline adds 1px to corner and depth */
  --corner: 13px; --depth: 5px;
  position: relative;
  display: block;
  border-radius: 28%; /* focus outline shape */
  transition: transform .15s;
}
/* the outline + pixel shadow sit on the image, so they don't also outline/shadow the glint (on the link) */
.share__social img { width: 48px; height: 48px; filter: var(--outline) drop-shadow(4px 4px 0 var(--store-shadow)); transition: filter .15s; }
.share__social a:hover { transform: translate(2px, 2px); --depth: 3px; }
.share__social a:hover img { filter: var(--outline) drop-shadow(2px 2px 0 var(--store-shadow)); }
.share__social a:active { transform: translate(3px, 3px); }
.share__social a:active img { filter: var(--outline) drop-shadow(1px 1px 0 var(--store-shadow)); }
.share__copy { width: 100%; margin-top: 22px; border: 0; cursor: pointer; }
.copy__done { display: none; }
.share__copy.is-copied .copy__idle { display: none; }
.share__copy.is-copied .copy__done { display: inline; }
/* browsers without <dialog> (iOS < 15.4) would show it on every article: hidden unless open */
.share:not([open]) { display: none; }
/*#endregion*/

/*#region fx: fireflies (dark) / birds (light) */
/* flown by effects.js; only transform + opacity animate, so nothing repaints. Idle ones are display:none */
.fx,
.birds {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.fx { display: none; }
[data-theme="dark"] .fx { display: block; }
[data-theme="dark"] .birds { display: none; }
.fx i,
.birds i { position: absolute; left: 0; top: 0; opacity: 0; }
.fx i:not(.on),
.birds i:not(.on) { display: none; }

/* fireflies: i = a firefly (path + fade), b = its glow (a static shadow, painted once) */
.fx b {
  position: absolute;
  left: -2.5px; top: -2.5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: hsl(70 100% 65%);
  box-shadow: 0 0 8px 3px hsl(70 100% 60% / .8), 0 0 24px 9px hsl(70 100% 55% / .34);
}
.fx i:nth-child(3n) b { left: -3px; top: -3px; width: 6px; height: 6px; }
.fx i:nth-child(5n) b { left: -2px; top: -2px; width: 4px; height: 4px; }

/* birds: i = a bird (its flight), s = its two wings; the wing beats are CSS, effects.js picks the rhythm per flight */
.birds { --bird: hsl(205 45% 20% / .72); }
.birds s {
  position: absolute;
  width: calc(16px * var(--w, 1)); height: calc(8px * var(--w, 1));
  top: calc(-7.1px * var(--w, 1)); /* the body (the V's point) sits on the bird's origin */
  background: var(--bird);
  animation: flap-glide-l var(--ft, 2s) ease-in-out var(--fd, 0s) infinite;
}
.birds s:first-child {
  right: 0;
  transform-origin: 100% 88.6%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 7'%3E%3Cpath d='M14 6.2C12 2.6 7.5.6.4 2.8 6.5 2.6 11 4.2 13.2 7Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 7'%3E%3Cpath d='M14 6.2C12 2.6 7.5.6.4 2.8 6.5 2.6 11 4.2 13.2 7Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  animation-name: var(--flap-l, flap-glide-l);
}
.birds s:last-child {
  --w: var(--w2, 1); /* the far wing can look shorter: the bird is seen at an angle */
  left: 0;
  transform-origin: 0 88.6%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 7'%3E%3Cpath d='M0 6.2C2 2.6 6.5.6 13.6 2.8 7.5 2.6 3 4.2.8 7Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 7'%3E%3Cpath d='M0 6.2C2 2.6 6.5.6 13.6 2.8 7.5 2.6 3 4.2.8 7Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  animation-name: var(--flap-r, flap-glide-r);
}
/* wing beats (left wing; the right one mirrors): up = a "v", down = an arch, glide = almost level */
@keyframes flap-glide-l  { 0%, 20%, 40% { transform: rotate(20deg); } 10%, 30%, 50% { transform: rotate(-20deg); } 62%, 100% { transform: rotate(4deg); } }
@keyframes flap-glide-r  { 0%, 20%, 40% { transform: rotate(-20deg); } 10%, 30%, 50% { transform: rotate(20deg); } 62%, 100% { transform: rotate(-4deg); } }
@keyframes flap-steady-l { 0%, 100% { transform: rotate(20deg); } 50% { transform: rotate(-20deg); } }
@keyframes flap-steady-r { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(20deg); } }
@keyframes flap-soar-l   { 0%, 16% { transform: rotate(18deg); } 8%, 24% { transform: rotate(-18deg); } 34%, 100% { transform: rotate(7deg); } }
@keyframes flap-soar-r   { 0%, 16% { transform: rotate(-18deg); } 8%, 24% { transform: rotate(18deg); } 34%, 100% { transform: rotate(-7deg); } }
/*#endregion*/

/*#region responsive */
@media (max-width: 1000px) {
  .library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
}

@media (max-width: 860px) {
  /* featured card stacks */
  .feature__card { grid-template-columns: minmax(0, 1fr); }
  .feature__art { border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; }
  .feature__art img { height: auto; }
  .feature__body { padding: 18px 20px 22px; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }

  .foot__bar { justify-content: center; text-align: center; flex-wrap: wrap; padding-block: 16px; }
  .foot__links { margin: 0; }

  /* home */
  .hero { padding: 28px 0 30px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: center; }
  .hero__art { max-width: 340px; }
  .beam { top: -28px; }
  .hero__btns { justify-content: center; }

  .band__in,
  .band--flip .band__in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .band--flip .band__art { order: 0; }
  .band__name { margin: 12px 0 8px; }

  /* blog */
  .page-head { padding-block: 22px 16px; }
}

/* menu button under 640px: logo + full name + links + theme button need ≈593px plus the 16px margins */
@media (max-width: 639px) {
  .top__bar { gap: 12px; }
  .top__actions { margin-left: auto; }

  /* without JS the nav wraps to a second row; with JS it collapses behind the menu button */
  .top__bar { flex-wrap: wrap; height: auto; min-height: 64px; }
  .nav { order: 3; width: 100%; margin: 0; }
  .nav ul { flex-wrap: wrap; padding-bottom: 8px; }

  .js .top__bar { flex-wrap: nowrap; height: 64px; }
  .js .nav-btn { display: grid; order: 2; margin-left: -6px; } /* shown after the theme button (first in the DOM for Tab order); 12px gap − 6 = the 6px between icon buttons */
  .js .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    width: auto;
    background: var(--chrome-reverse);
    border-top: 1px solid var(--chrome-line);
    box-shadow: 0 14px 24px -12px hsl(250 60% 10% / .6);
  }
  .js .top.is-open .nav { display: block; }
  .js .nav ul { flex-direction: column; align-items: flex-end; padding: 8px 16px 14px; }
  .js .nav a { padding: 12px 10px; text-align: right; }
  .js .nav a[aria-current]::after { left: auto; right: 10px; width: 24px; bottom: 6px; }
}

@media (max-width: 600px) {
  /* pager compresses to ‹ 1 2 ›: labels stay for screen readers, 40px tap targets */
  .library__head { margin-bottom: 4px; }
  .library__head::after { flex-basis: 12px; }
  .pager { gap: 4px; }
  .pager__nums { gap: 4px; }
  .pager__step, .pager__num { min-width: 40px; height: 40px; }
  .pager__step { padding: 0; }
  .pager__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .pager--foot { margin-top: 16px; }
  .library__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 12px; }
  .tile::after,
  .feature__card::after { box-shadow: 0 0 0 3px var(--ghost-line), 0 12px 24px -12px hsl(230 60% 8% / .5); }
}

@media (max-width: 479px) {
  .brand__word { --word-img: url(/assets/img/nmx-wordmark-short.png); width: 74.8px; }
}
@media (max-width: 259px) {
  .brand__word { display: none; }
}
/* hide the whole home link rather than leave an empty focusable one; Home is in the menu */
@media (max-width: 179px) {
  .brand { display: none; }
}
/* only the menu button is left, kept at the right */
@media (max-width: 119px) {
  .top__actions { display: none; }
  .js .nav-btn { margin-left: auto; }
}

/* Windows high-contrast (forced colours): fills and shadows are dropped, so give every button a real border */
@media (forced-colors: active) {
  .btn, .store, .pager__step, .pager__num { border: 1px solid ButtonText; }
  .pager .pager__num[aria-current] { border: 2px solid Highlight; }
  .chip { border: 1px solid LinkText; }
}

@media (prefers-reduced-motion: reduce) {
  .fx, .birds { display: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
/*#endregion*/
