/* Week 04, Set 3: Sleep. A bedroom with the lights out: deep navy, moonlight type, one warm lamp glow.
   Everything is round and slow. Shared by the white noise, night lamp and sleep timer prototypes. */
:root {
  --night: #0b1020;      /* the page */
  --panel: #141a2e;      /* raised surfaces */
  --line: #262e48;       /* tracks and hairlines */
  --ink: #e8e6f2;        /* moonlight type */
  --mute: #7d84a3;       /* quiet text */
  --glow: #ffb867;       /* the one accent, a warm lamp */

  --round: "SF Pro Rounded", ui-rounded, "Hiragino Maru Gothic ProN", "Nunito", -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --label-size: 11px; --label-line: 14px;
  --name-size: 20px; --name-line: 24px;
  --big-size: 28px; --big-line: 32px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --slow: .45s;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--night); color: var(--ink); font-family: var(--round); -webkit-font-smoothing: antialiased; }
.stage { min-height: 100vh; display: grid; place-items: center; padding: 16px; user-select: none; -webkit-user-select: none; overflow: hidden; }
[role="slider"] { touch-action: none; outline: none; }
[role="slider"]:focus-visible { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--glow); border-radius: 999px; }
.label { font: 500 var(--label-size)/var(--label-line) var(--round); color: var(--mute); letter-spacing: .02em; }

/* Spec, below the fold */
.spec { max-width: 620px; margin: 0 auto; padding: 32px 20px 64px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.spec h2 { font: 600 20px/1.2 var(--round); margin: 0 0 6px; }
.spec h3 { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 24px 0 8px; }
.spec p { color: var(--mute); margin: 0 0 8px; }
.spec table { width: 100%; border-collapse: collapse; }
.spec td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td:first-child { width: 42%; color: var(--mute); padding-right: 12px; }
.spec .swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.back-pill { position: fixed; left: 12px; bottom: 12px; font: 12px/1 var(--round); color: var(--ink); background: rgba(255,255,255,.1); padding: 8px 12px; border-radius: 999px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
