  html, body { margin: 0; height: 100%; }
  body {
    background: #f2f2f0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
  }
  .clock { width: min(88vw, 78vh, 640px); height: auto; display: block;
           filter: drop-shadow(0 6px 14px rgba(0,0,0,.22)); }
  .info { margin-top: 2.2vh; text-align: center; }
  .digital { font-size: clamp(18px, 3.2vh, 28px); font-weight: 600; letter-spacing: .06em;
             font-variant-numeric: tabular-nums; }
  .place { margin-top: 4px; font-size: clamp(12px, 1.8vh, 15px); color: #666; letter-spacing: .04em; }

/* ---------- Dark mode: used automatically when the device is set to dark ----------
   Idea: a graphite clock lit softly from above, in a dark room.
   - The case is a lighter graphite with a top highlight, so the clock keeps its shape.
   - Clear order of brightness: hands > hour marks > logo > minute ticks.
   - Warm off-white instead of pure white, to avoid glare at night.
   - Soft shadows under the hands, so they stay apart where they cross. */
@media (prefers-color-scheme: dark) {
  body {
    background: radial-gradient(ellipse at 50% 42%, #1d1f23 0%, #111214 55%, #0a0b0c 100%);
    color: #e9e6df;
  }
  .place { color: #8b8d92; }
  .clock { filter: drop-shadow(0 18px 30px rgba(0,0,0,.65)); }

  .case { fill: url(#bezelDark); }
  .bezel-line { stroke: rgba(255,255,255,.10); stroke-width: 1.5; }
  .face { fill: url(#faceDark); }

  .ticks .hour-mark { fill: #d8d4cb; }
  .ticks .min-mark  { fill: #6a6c71; }

  .ink    { stroke: #9a9ca1; }
  .inline { stroke: #1f2023; }

  .hand   { fill: #f1ede4; }
  .second { fill: #ff4a3d; }
  .shadowed { filter: url(#handShadow); }
}
