/* Direction: Hourline — cool white studio instrument, condensed geometric headings,
   mono tabular digits, one electric violet reserved for the timer and Start. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f3f3f8;
  --border: #e6e6f0;
  --border-strong: #b4b2ba;
  --ink: #14141b;
  --muted: #65657a;
  --accent: #6d28d9;
  --accent-hover: #5d22b8;
  --accent-ink: #ffffff;
  --accent-text: #5b21b6;
  --accent-strong: #4c1d95;
  --accent-soft: #f1ebfe;
  --accent-border: #bb9ced;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dfece6;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f2e7e0;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f3e0e2;
  --danger-strong: #b91c1c;
  --chart-1: #6d28d9;
  --chart-2: #d32287;
  --chart-3: #783904;
  --chart-4: #767b03;
  --chart-5: #105a49;
  --chart-6: #0f82af;

  --font-display: "Archivo Narrow", "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-tracking: -0.005em;
  --radius-card: 10px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --shadow-card: 0 1px 2px rgba(20, 20, 35, 0.05);
  --card-pad: 1.35rem;
  --x-on-dark: #ffffff;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #080310;
  --surface: #211c28;
  --surface-2: #14101c;
  --border: #2b2631;
  --border-strong: #524f58;
  --ink: #fbfbfd;
  --muted: #9a989e;
  --accent: #6d28d9;
  --accent-hover: #8348df;
  --accent-ink: #ffffff;
  --accent-text: #9f71e6;
  --accent-strong: #9765e4;
  --accent-soft: #1e0b3c;
  --accent-border: #35146a;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0b1f1a;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2e150e;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2f0913;
  --danger-strong: #cd5c5c;
  --chart-1: #7d41ee;
  --chart-2: #ef2d9a;
  --chart-3: #c26214;
  --chart-4: #888e0e;
  --chart-5: #0c9679;
  --chart-6: #1a95c7;
}

/* Hourline — the instrument's own motion and the timesheet grid */

main {
  animation: hl-slide 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes hl-slide {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}

.clock-running {
  animation: hl-breathe 2.6s ease-in-out infinite;
}

@keyframes hl-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.66;
  }
}

.live-dot {
  animation: hl-dot 1.6s ease-in-out infinite;
}

@keyframes hl-dot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.55);
  }
}

.sheet-cell {
  width: 100%;
  min-width: 3.5rem;
  padding: 0.45rem 0.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  color: var(--ink);
}

.sheet-cell:hover {
  border-color: var(--border);
}

.sheet-cell:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

html.reduced-motion main,
html.reduced-motion .clock-running,
html.reduced-motion .live-dot {
  animation: none;
}
