/* Alternative looks for the same four pages.
   Open any page with ?theme=noir to preview it, or put data-theme="noir" on the
   <html> element to make it the default. main.css stays the layout; this file
   only re-declares the theme block and the few components that invert. */

[data-theme="noir"] {
  /* surfaces */
  --canvas: #0d0e10;
  --canvas-alt: #16181b;
  --canvas-raise: #141619;
  --canvas-night: #08090a;

  /* ink */
  --ink: #f2f1ed;
  --ink-soft: #b9b8b3;
  --ink-faint: #7b7a76;
  --ink-onNight: #f2f1ed;
  --ink-onNight-soft: #b9b8b3;

  /* lines */
  --line: #2b2e33;
  --line-soft: #202327;
  --line-night: #26292e;

  /* signal */
  --accent: #d5c4a1;
  --accent-soft: #e2d5b8;
  --wa: #25d366;

  /* label colour for anything sitting on a bone plate */
  --btn-label: #0d0e10;
  --shadow-lift: 0 24px 48px -34px rgba(0, 0, 0, 0.8);
}

[data-theme="noir"] .btn--ink,
[data-theme="noir"] .float,
[data-theme="noir"] .skip,
[data-theme="noir"] .size[aria-pressed="true"],
[data-theme="noir"] .sizeopt:has(input:checked),
[data-theme="noir"] .toolbar__filter em {
  color: var(--btn-label);
}

[data-theme="noir"] .btn--ink:hover,
[data-theme="noir"] .float:hover {
  background: var(--accent);
  color: var(--btn-label);
}

/* keep the two dark bands in a different tone from the page, or the rhythm
   flattens out entirely */
[data-theme="noir"] .section--night { background: #17191d; }
[data-theme="noir"] .foot { background: var(--canvas-night); }

[data-theme="noir"] .hero__media figcaption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

[data-theme="noir"] .card__plate,
[data-theme="noir"] .gallery__main,
[data-theme="noir"] .split__media {
  background: var(--canvas-alt);
}

[data-theme="noir"] .draft { background: var(--canvas-alt); }

[data-theme="noir"] ::selection {
  background: var(--accent);
  color: var(--btn-label);
}
