/* 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 { height: 100%; }

/* The page above, the footer at the bottom of the screen (or after the page, when it is longer). */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  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;
  flex: 1;
}

main.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 40px 48px;
}

/* The badge + wordmark lockup (829 x 200), drawn for dark backgrounds. */
.brand-logo { display: block; height: clamp(40px, 8vw, 56px); width: auto; max-width: 100%; }
.home .brand-logo { margin-bottom: clamp(24px, 4vh, 40px); }

/* The new Neuronek (400 x 520). */
.neuronek { display: block; height: clamp(150px, 30vw, 210px); width: auto; margin-bottom: 24px; }

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

.soon {
  margin: 0 0 16px;
  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; }
.when, .countdown { margin-bottom: 20px; }
.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); }

/* What Memospace is, in one sentence (Google's brand check reads it), and the day's plan. */
.about {
  margin: 0 0 20px;
  max-width: 36ch;
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--starlight-dim);
  text-wrap: balance;
}

.plan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0 0 clamp(32px, 6vh, 48px);
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.plan li { display: inline-flex; align-items: center; gap: 10px; }
.plan li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lit);
  box-shadow: 0 0 10px var(--lit);
}
@media (max-width: 600px) {
  .plan { flex-direction: column; align-items: flex-start; width: fit-content; gap: 8px; text-align: left; }
}

.follow { margin: 0; font-size: 14px; color: var(--starlight-dim); }
.follow a, .site-footer p a { color: var(--starlight); text-decoration-color: var(--lit); text-underline-offset: 3px; }

/* Who makes it on one side, the documents on the other; one centred column on phones. */
.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding: 18px 0 max(18px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--panel-border);
  font-size: 13px;
  color: var(--starlight-dim);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.site-footer nav a { color: var(--starlight-dim); text-decoration: none; }
.site-footer nav a:hover { color: var(--starlight); text-decoration: underline; text-underline-offset: 3px; }
.follow a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 2px; }
@media (max-width: 600px) {
  .site-footer { flex-direction: column; justify-content: center; text-align: center; }
}

/* The privacy policy and the terms (privacy/, terms/): the website's text on
   a quiet panel, until the website takes the domain. */
main.legal {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
  padding-block: 32px 48px;
}
.legal-home { display: inline-block; margin-bottom: 24px; }
.legal-home:focus-visible { outline: 2px solid var(--lit); outline-offset: 4px; border-radius: 4px; }
.legal .brand-logo { height: 40px; }
.legal .paper {
  padding: 24px clamp(16px, 4vw, 32px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel-fill);
  overflow-wrap: anywhere;
}
.legal h1 { max-width: none; font-size: clamp(26px, 5vw, 36px); margin-bottom: 16px; }
.legal h2 { margin: 28px 0 8px; font: 700 20px/1.3 var(--font-heading); }
.legal .lead { color: var(--starlight); font-size: 17px; }
.legal p, .legal li { color: var(--starlight-dim); }
.legal strong { color: var(--starlight); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--lit); text-underline-offset: 3px; }
.legal a:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .neuronek { 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); }
}
