/* OdedSVR — 24 שעות באקווריום — shared design tokens
   Art direction "24H / inside the glass": cool near-white paper, deep charcoal,
   one accent (Oded's sky blue, sampled from his official avatars). */

@font-face {
  font-family: 'Heebo';
  src: url('/fonts/Heebo[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block; /* broadcast: never flash a fallback face */
}
@font-face {
  font-family: 'Karantina';
  src: url('/fonts/Karantina-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  /* Palette */
  --cream: #f3f5f7; /* paper: cool near-white (the warm cream was rejected) */
  --cream-2: #e4e8ec;
  --char: #1a1d21;
  --char-2: #4a5058;
  --accent: #06a7ff;
  --white: #ffffff;

  /* Type */
  --font: 'Heebo', 'Arial Hebrew', 'Noto Sans Hebrew', Arial, sans-serif;
  --display: 'Karantina', 'Heebo', sans-serif;

  /* Geometry */
  --safe: 48px;
  --edge: 6px; /* the glass-edge stroke */

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-base: 0ms;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font);
  font-feature-settings: 'kern';
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

/* The clock: fixed-width digit cells (the layout never shifts), hours and
   minutes in charcoal, seconds in the accent, separators as two stacked squares
   (the same squares as the 24-hour strip), a unit label under each group. */
.clock {
  display: inline-flex;
  align-items: flex-start;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}
.clock .grp {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clock .digits {
  display: flex;
}
.clock .dg {
  display: inline-block;
  width: 0.6em;
  text-align: center;
}
.clock .ss .dg {
  color: var(--accent);
}
.clock .unit {
  margin-top: 0.06em;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.15em;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--char-2);
}
.clock .sep {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.16em;
  width: 0.3em;
  height: 0.82em; /* the digits' cap height */
}
.clock .sep::before,
.clock .sep::after {
  content: '';
  width: 0.1em;
  height: 0.1em;
  background: var(--accent);
}

/* The 24-hour strip: one segment per hour, filled from the start side. */
.strip {
  display: flex;
  direction: rtl;
  gap: 3px;
}
.strip i {
  display: block;
  flex: 1 1 0;
  height: 10px;
  background: rgba(26, 29, 33, 0.16);
  transition: background var(--t-base) var(--ease-out);
}
.strip i.on {
  background: var(--accent);
}
.strip i.part {
  background: linear-gradient(to left, var(--accent) var(--f, 0%), rgba(26, 29, 33, 0.18) 0);
}

img {
  display: block;
}

[data-shown='false'] {
  pointer-events: none;
}
