/* Dark mode for the Daylight keynote design. Loaded with
   media="(prefers-color-scheme: dark)" when site.theme is "auto",
   or always when site.theme is "dark" (see layout.mjs). */

:root {
  --bg: #000000;
  --card: #161617;
  --card-2: #1d1d1f;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #8e8e93;
  --blue: #2997ff;
  --blue-bright: #6cb6ff;
  --blue-soft: #0c2340;
  --green: #30d158;
  --red: #ff453a;
  --line: #3a3a3c;
  --todo: #3a2f10;
  --cap-top: #3a3a3c;
  --cap-bottom: #2a2a2c;
  --cap-edge: #000000;
  color-scheme: dark;
}

/* Buttons: Apple's darker blue keeps white text readable */
.btn, .capture { background: #0071e3; color: #fff; }
.btn:hover, .capture:hover { background: #2a8cff; color: #fff; }
.btn-alt { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-alt:hover { color: var(--blue-bright); background: rgba(41, 151, 255, 0.12); box-shadow: inset 0 0 0 1.5px var(--blue-bright); }
.capture[aria-pressed="true"] { background: #f5f5f7; color: #000; }

/* Keycaps */
kbd { color: #f5f5f7; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 1px 2px rgba(0, 0, 0, 0.6), 0 1.5px 0 #000; }
.combo.win kbd { color: #c9d3ea; background: linear-gradient(#333a4b, #262b38); }
.answer kbd { background: linear-gradient(#3a3a3c, #2c2c2e); }
.stage { background: linear-gradient(#1c1c1e, #0d0d0f); }
.k { color: #f5f5f7; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 12px 28px rgba(0, 0, 0, 0.6), 0 2px 0 #000; }
.k.mac { color: var(--blue); }
.stage-plus, .stage-arrow { color: #6e6e73; }

/* Chips */
.chip { color: var(--ink); background: rgba(255, 255, 255, 0.09); }
.chip:hover { background: rgba(41, 151, 255, 0.2); color: var(--blue-bright); }
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover { background: #f5f5f7; color: #000; }

/* macOS mocks */
.mac-window { background: #2c2c2e; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.5); }
.mac-bar { background: #3a3a3c; }
.setting + .setting { box-shadow: 0 -1px 0 #3a3a3c; }
.toggle { background: #30d158; }
.toggle.off { background: #48484a; }
.bubble { background: rgba(44, 44, 46, 0.96); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.5); }

/* Comparison: our ticks in the dark-mode blue */
.compare td.us svg path[stroke="#0066d6"] { stroke: #2997ff; }

/* Banner button uses the shared dark-mode button colours */
.tool-banner .btn { background: #0071e3; color: #fff; }
.tool-banner .btn:hover { background: #2a8cff; color: #fff; }

/* Article details */
ol.steps > li::before { background: #0071e3; color: #fff; }
.prose .todo, .todo { color: #ffd98a; }
.prose code, .facts code { background: rgba(255, 255, 255, 0.1); }

/* Guide product card */
.btn-quiet { background: rgba(255, 255, 255, 0.09); color: #f5f5f7; }
.btn-quiet:hover { background: rgba(41, 151, 255, 0.2); color: var(--blue-bright); }
.mock-line { background: rgba(255, 255, 255, 0.12); }
.mock-warn { color: #ff9f0a; }
