@charset "utf-8";
/* ===========================================================================
   illumineX Rainbow ScreenSaver PaX - section stylesheet
   ---------------------------------------------------------------------------
   Goals this stylesheet serves:
     1. Preserve the glass "ice bar" styling, now in all six site colors and
        both orientations, rebuilt from the existing GIFs as CSS backgrounds.
     2. Mobile first. No fixed widths, no media queries for the saver grid -
        `auto-fill` reflows it from 2 columns on a phone to 6 on a desktop.
     3. No JavaScript anywhere, and no inline style attributes, so the page
        runs under: default-src 'none'; img-src 'self'; style-src 'self';
        font-src 'self'; base-uri 'none'
     4. Understated neutrals so the saver screenshots carry the colour; the
        rainbow appears only in dividers, rules, focus rings and hover states.

   Tuning knobs, all at the top of :root below:
     --measure     text column width
     --page        maximum page width
     --card        minimum saver-card width, the only control over grid density
   =========================================================================== */

/* --- Self-hosted type ------------------------------------------------------
   M PLUS Rounded 1c, chosen originally for its closeness to SF Pro Rounded.
   Self-hosted rather than pulled from Google's CDN: it removes a third-party
   request from a product that advertises collecting no data, and it lets
   font-src stay 'self'. Until the woff2 files are in place the stack below
   falls back to SF Pro, so this page renders correctly either way. */
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/MPLUSRounded1c-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/MPLUSRounded1c-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/MPLUSRounded1c-Bold.woff2") format("woff2");
}

:root {
  --measure: 68ch;
  --page: 1140px;
  --card: 140px;

  --font: "M PLUS Rounded 1c", -apple-system, "SF Pro Rounded", system-ui,
          "Helvetica Neue", sans-serif;

  /* Rainbow, traceable to IXBrandingKit/RainbowPalette.json. Light mode uses
     each hue's `middle` stop, which is the saturated one; dark mode uses `rim`,
     the pale one, so accents stay legible against a dark surface. Deliberately
     never used for body text - contrast on the yellow and green would fail. */
  --red: #f53651;
  --orange: #ff831a;
  --yellow: #f9df37;
  --green: #49f098;
  --blue: #2688f6;
  --indigo: #6059ed;
  --violet: #ba66ee;

  /* Understated base. Neutral paper and ink, so the colourful saver
     screenshots are the brightest thing on the page. */
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-sunken: #f4f4f7;
  --ink: #1d1d1f;
  --ink-muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.10);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --red: #ffb5bb;
    --orange: #ffdab1;
    --yellow: #fff5bd;
    --green: #b5ffd8;
    --blue: #b7e0ff;
    --indigo: #c9caff;
    --violet: #e5baff;

    --bg: #161618;
    --surface: #1f1f22;
    --surface-sunken: #121214;
    --ink: #f5f5f7;
    --ink-muted: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  /* Fluid body size: 16px on a phone up to 17.5px on a wide display. */
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- Ice bars --------------------------------------------------------------
   Drawn in CSS rather than loaded as GIFs. The original art bakes its drop
   shadow against white, so on any other background the shadow reads as a white
   halo - visible as pale bands above and below every bar in dark mode. Gradients
   have no baked background: the shadow here is an rgba box-shadow, so the page
   colour shows through whatever it is. Three further things fall out of it:
   the bars are resolution independent (the GIFs are 1x and already soft on
   every Retina Mac), any height is free, and the palette extends to all seven
   IXBrandingKit hues - lemon and plum included, which the GIF set never had.

   Construction, bottom layer up:
     1. body      vertical gradient, lightened at the top and darkened at the
                  foot, which is what reads as a tube rather than a stripe
     2. specular  white highlight over the top half
     3. bubbles   three tiling layers of radial gradients, echoing the Rainbow
                  wordmark. Tile widths 61/83/107px are coprime, so the three
                  layers only realign every ~538px and the pattern never reads
                  as a regular dotted rule. Opt in with .icebar--bubbles.
     4. rim       inset highlight on top, inset shade at the foot, hairline
                  border, and the cast shadow underneath

   Tuning knobs: --bar-h for thickness, and the --hue / --hue-top / --hue-bot
   trio for colour. The stops are precomputed rather than derived with
   color-mix(): no dependency on CSS Color 5, and each stop stays hand-tunable.
   Values are a plain sRGB mix, 78% hue with white on top, 62% with black at
   the foot; tools/icebar-hue.py regenerates them for a new colour. */
.icebar {
  --bar-h: 16px;
  --hue: #dfe9ee;
  --hue-top: #e6eef2;
  --hue-bot: #8a9094;
  height: var(--bar-h);
  border: 0;
  border-radius: 999px;
  margin: 2.75rem auto;
  width: min(70%, var(--page));
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.30) 30%,
      rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--hue-top) 0%, var(--hue) 46%, var(--hue-bot) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 2px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(0, 0, 0, 0.10),
    0 1px 3px rgba(0, 0, 0, 0.28);
}

/* Bubbles, as in the Rainbow wordmark. Separate class so a bar can be plain. */
.icebar--bubbles {
  background:
    radial-gradient(circle at 11px 11px, rgba(255, 255, 255, 0.50) 0, rgba(255, 255, 255, 0.50) 2px, transparent 2.6px)
      0 0 / 61px 100% repeat-x,
    radial-gradient(circle at 35px 6px, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0.34) 1.6px, transparent 2.1px)
      0 0 / 83px 100% repeat-x,
    radial-gradient(circle at 53px 12px, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0.28) 1.1px, transparent 1.6px)
      0 0 / 107px 100% repeat-x,
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.30) 30%,
      rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, var(--hue-top) 0%, var(--hue) 46%, var(--hue-bot) 100%);
}

/* Site colour names kept from the existing theme stylesheets; lemon and plum
   are new, filling the two rainbow stops the GIF set was missing. */
.icebar--strawberry  { --hue: #f53651; --hue-top: #f76277; --hue-bot: #982132; }
.icebar--tangerine   { --hue: #ff831a; --hue-top: #ff9e4c; --hue-bot: #9e5110; }
.icebar--lemon       { --hue: #f9df37; --hue-top: #fae663; --hue-bot: #9a8a22; }
.icebar--lime        { --hue: #49f098; --hue-top: #71f3af; --hue-bot: #2d955e; }
.icebar--blueberry   { --hue: #2688f6; --hue-top: #56a2f8; --hue-bot: #185499; }
.icebar--plum        { --hue: #6059ed; --hue-top: #837ef1; --hue-bot: #3c3793; }
.icebar--grape       { --hue: #ba66ee; --hue-top: #c988f2; --hue-bot: #733f94; }
/* Ice is the one colourless bar, and the only one whose stops are taken from
   the palette directly rather than mixed from a hue: RainbowPalette's ice
   entries are nearly transparent white (real glass), which would vanish on a
   light page, so the visible `rim` and `rimDim` stops are used instead. Light
   and dark get their own pair -- ice-light and ice-dark -- because one silver
   cannot hold contrast against both white and near-black. */
.icebar--ice         { --hue: #b9c6cb; --hue-top: #e7eef0; --hue-bot: #83959b; }

/* On a dark page the cast shadow has little to fall on, so it is pulled back
   and the top rim is brightened instead, which keeps the glass reading. */
@media (prefers-color-scheme: dark) {
  /* ice-dark rim / rimDim */
  .icebar--ice { --hue: #9aa8ae; --hue-top: #d9e5e8; --hue-bot: #536d76; }
  .icebar {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      inset 0 -1px 2px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 1px 2px rgba(0, 0, 0, 0.5);
  }
}

/* The full rainbow run, for the footer: all seven hues as one band. */
.icebar-run {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(70%, var(--page));
  margin: 2.5rem auto;
}
.icebar-run .icebar { margin: 0; width: 100%; }

/* Vertical bar, used as a callout rule: the same construction turned 90deg. */
.vbar-callout {
  display: grid;
  grid-template-columns: var(--bar-h, 16px) 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.vbar-callout::before {
  content: "";
  display: block;
  --hue: #f53651;
  --hue-top: #f76277;
  --hue-bot: #982132;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.30) 30%,
      rgba(255, 255, 255, 0) 55%),
    linear-gradient(90deg, var(--hue-top) 0%, var(--hue) 46%, var(--hue-bot) 100%);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.55),
    inset -1px 0 2px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(0, 0, 0, 0.10),
    1px 0 3px rgba(0, 0, 0, 0.28);
}

/* --- Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.prose { max-width: var(--measure); }
.prose > p:first-child { margin-top: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- Site header ----------------------------------------------------------
   The old header used CSS hover drop-downs, which no touch device can open.
   Flattened to one wrapping row of section links; what used to hide inside the
   hover menus now lives in the footer sitemap, reachable on every device. */
.masthead {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.masthead__logo { display: flex; align-items: center; flex: 0 0 auto; }
/* h64 artwork shown at 32px: an exact 2x on Retina, and tall enough that the
   diagonal rainbow gradient still reads. */
.masthead__logo img { display: block; height: 32px; width: auto; }

.sitenav { flex: 1 1 auto; }
.sitenav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitenav a {
  display: block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.sitenav a:hover { color: var(--ink); background: var(--surface-sunken); }
.sitenav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: clamp(2rem, 6vw, 4rem) 0 0; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}
@media (min-width: 46rem) {
  .hero__inner { grid-template-columns: auto 1fr; align-items: center; }
}
.hero__icon img { display: block; width: 128px; height: 128px; }
.hero h1 {
  margin: 0 0 0.35rem;
  /* 2rem on a phone, up to 3rem on a desktop. */
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__version { margin: 0 0 0.25rem; font-weight: 500; }
.hero__compat { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.4rem;
  padding: 0.7rem 1.25rem 0.7rem 0.7rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.cta:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.cta img { display: block; width: 48px; height: 48px; }
.cta__sub { display: block; color: var(--ink-muted); font-size: 0.85rem; font-weight: 400; }

/* --- Sections ------------------------------------------------------------- */
main { padding-bottom: 3rem; }
section { margin-top: 1rem; }
h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-decoration-color: var(--blue); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* --- The saver grid -------------------------------------------------------
   This replaces the old vertical pick-list, which on a phone was a clipped
   strip too narrow to read. auto-fill with a minimum card width means the
   column count follows the viewport with no media queries and no breakpoints
   to maintain: --card is the single knob. The thumbnails are the chooser
   images the savers already ship, so the grid shows the actual product the
   way macOS System Settings does. */
.savers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.saver a {
  display: block;
  padding: 0.5rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}
.saver a:hover { box-shadow: var(--shadow); border-color: transparent; }
.saver img {
  display: block;
  width: 100%;
  height: auto;
  /* Matches the chooser thumbnail's own 90x58, so no reflow as images load. */
  aspect-ratio: 90 / 58;
  border-radius: 7px;
  background: var(--surface-sunken);
}
.saver span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  /* Long names such as WanderingPolygon must not widen the track. */
  overflow-wrap: anywhere;
}
/* The rainbow, applied where it costs nothing: each card lights up in the next
   hue on hover and focus. nth-child(7n) cycles the seven stops across rows. */
.saver:nth-child(7n + 1) a:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--red); }
.saver:nth-child(7n + 2) a:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--orange); }
.saver:nth-child(7n + 3) a:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--yellow); }
.saver:nth-child(7n + 4) a:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--green); }
.saver:nth-child(7n + 5) a:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--blue); }
.saver:nth-child(7n + 6) a:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--indigo); }
.saver:nth-child(7n + 7) a:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--violet); }

/* --- Options figure ------------------------------------------------------- */
.figure {
  margin: 1.5rem 0;
  max-width: 320px;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}
@media (min-width: 52rem) {
  /* Floated beside the prose on a desktop, stacked above it on a phone. */
  .figure--aside { float: right; margin: 0 0 1.25rem 2rem; }
}

/* --- Release notes -------------------------------------------------------- */
.notes ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.notes li { margin-bottom: 0.4rem; }

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  background: var(--surface-sunken);
}
.callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* --- Footer --------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  padding: 2.5rem 0 3rem;
}
.sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  margin: 0 0 2rem;
}
.sitemap h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap li { margin-bottom: 0.3rem; }
.sitemap a { color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; }
.sitemap a:hover { color: var(--ink); text-decoration: underline; }

.colophon {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.8rem;
}
.colophon img { display: block; margin: 0 auto 1rem; height: 64px; width: auto; }
.colophon p { margin: 0.25rem 0; }

/* --- Focus and motion ----------------------------------------------------
   One visible focus style everywhere, in brand blue, for keyboard users. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
.cta, .saver a { transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .cta:hover { transform: none; }
}

/* --- Saver pages ----------------------------------------------------------
   A saver page leads with its movie rather than a product icon: the movie is
   what the visitor came to see. Everything below reuses the index's parts. */
.hero--saver .hero__inner { grid-template-columns: 1fr; }
.hero--saver h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }

/* Fluid, because .col1's successor is a percentage-width column: a fixed
   width would overflow a narrow window. The cap keeps it from ballooning on
   a wide display. Previously an inline style; moved here so the page needs
   no style-src 'unsafe-inline'. */
.movie { margin: 1.5rem 0 0; }
.movie video {
  display: block;
  width: 100%;
  max-width: 704px;
  height: auto;
  border-radius: 14px;
  background: #000;
  box-shadow: var(--shadow);
}
.movie p { margin: 0.75rem 0 0; color: var(--ink-muted); font-size: 0.9rem; }

/* The saver this page is about, marked in the grid that doubles as nav. */
.saver a[aria-current="page"] {
  box-shadow: inset 0 0 0 2px var(--blue);
  background: var(--surface-sunken);
}

/* A placeholder where a saver's media has not been built yet. */
.pending {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  color: var(--ink-muted);
  max-width: 704px;
}

/* --- Hero highlights ------------------------------------------------------
   The product's six headline points, marked with rainbow dots drawn in CSS
   rather than emoji: emoji render differently on every platform, carry their
   own colours rather than the brand's, and announce themselves to screen
   readers ("red circle, orange circle") as noise ahead of every line. The
   dots take the same hues and the same glass highlight as the ice bars.

   Tuning knob: --dot per item, cycling the palette in rainbow order. */
.highlights {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  max-width: var(--measure);
}
.highlights li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.45em;
}
.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  /* optically centred on the first line at line-height 1.6 */
  top: 0.48em;
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: var(--dot, var(--ink-muted));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
              inset 0 0 0 1px rgba(0, 0, 0, 0.12),
              0 1px 2px rgba(0, 0, 0, 0.25);
}
.highlights li:nth-child(1) { --dot: var(--red); }
.highlights li:nth-child(2) { --dot: var(--orange); }
.highlights li:nth-child(3) { --dot: var(--yellow); }
.highlights li:nth-child(4) { --dot: var(--green); }
.highlights li:nth-child(5) { --dot: var(--blue); }
.highlights li:nth-child(6) { --dot: var(--indigo); }
.highlights li:nth-child(7) { --dot: var(--violet); }
