/* ntp.querybox.de: same flat look as querybox.de. Geist is served from fonts/ (needs .woff2 in infra's allowlist). */
@font-face { font-family: "Geist"; src: url("fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #ffffff; --surface: #f6f6f9; --ink: #15141b; --muted: #5a5868; --line: #e6e5ee;
  --brand: #5b4cf0; --brand-soft: #efedff;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f0e14; --surface: #18171f; --ink: #eceaf4; --muted: #a3a1b3; --line: #2a2834; --brand: #8f84ff; --brand-soft: #1e1b33; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand svg { width: 28px; height: 28px; }
.what { color: var(--muted); font-size: 0.95rem; }

main.wrap { flex: 1; padding-top: clamp(40px, 8vw, 96px); padding-bottom: 48px; }
.clock-block { text-align: center; }
.label { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.clock { margin: 8px 0 4px; font-weight: 600; font-size: clamp(3rem, 15vw, 8rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ms { font-size: 0.4em; color: var(--brand); letter-spacing: -0.02em; }
.date { margin: 0; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--muted); }

.facts { margin: clamp(36px, 6vw, 64px) 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 10rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; }

.foot { border-top: 1px solid var(--line); padding: 22px 0 32px; font-size: 0.9rem; }
.foot-row { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
}
