/* The "coming soon" page for memospace.pl. Colours are copies of
   website/src/styles/tokens.css; website/test/teaser.test.mjs keeps them equal. */

@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --sky-top: #2a2f7a;
  --sky-mid: #121638;
  --sky-deep: #0a0c22;
  --starlight: #e9ecff;
  --starlight-dim: #b4baea;
  --lit: #5cf2e0;
  --ember: #ffd666;
  --shine: #ffffff;
  --panel-fill: #ffffff12;
  --panel-border: #ffffff21;
  --font-heading: 'Space Grotesk Variable', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, var(--sky-top), var(--sky-mid) 55%, var(--sky-deep));
  background-color: var(--sky-deep);
  color: var(--starlight);
  font: 16px/1.5 var(--font-body);
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  text-align: center;
  padding-block: 48px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 40px; height: 40px; }
.brand span { font: 700 clamp(30px, 6vw, 44px)/1 var(--font-heading); letter-spacing: -0.01em; }
.lit-fill { fill: var(--lit); }
.lit-stroke { fill: none; stroke: var(--lit); stroke-width: 1.1; stroke-linecap: round; }

.neuronek { width: clamp(120px, 26vw, 168px); height: auto; overflow: visible; }
.neuronek .branches line { stroke: var(--lit); stroke-width: 5; stroke-linecap: round; }
.neuronek .halo { fill: var(--lit); opacity: 0.2; }
.neuronek .body { fill: var(--lit); }
.neuronek .eye, .neuronek .mouth { fill: var(--sky-deep); }
.neuronek .shine { fill: var(--shine); }

h1 {
  margin: 0;
  max-width: 18ch;
  font: 700 clamp(28px, 5.4vw, 48px)/1.1 var(--font-heading);
  text-wrap: balance;
}

.soon {
  margin: 0;
  font: 500 13px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.when {
  margin: 0;
  font: 700 clamp(44px, 9vw, 64px)/1 var(--font-heading);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.when[hidden] { display: none; }

.countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.countdown[hidden] { display: none; }

.unit {
  display: grid;
  gap: 4px;
  min-width: 76px;
  padding: 14px 10px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel-fill);
}
.unit b { font: 700 32px/1 var(--font-heading); font-variant-numeric: tabular-nums; }
.unit span { font-size: 12px; color: var(--starlight-dim); }

footer { font-size: 14px; color: var(--starlight-dim); }
footer a { color: var(--starlight); text-decoration-color: var(--lit); text-underline-offset: 3px; }
footer a:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .neuronek .figure { animation: float 5.4s ease-in-out infinite; }
}

/* A 2.4 s float, then a 3 s rest, like the app's idle cycle. */
@keyframes float {
  0%, 44.4%, 100% { transform: translateY(0); }
  22.2% { transform: translateY(-8px); }
}
