/* 401 brand fonts. Manrope is variable (weight 200-800), so one file per
   subset covers 400/500/800: do not split per weight.
   latin-ext carries all 22 Latvian diacritics; latin carries none, so both
   must be declared with their own unicode-range or Latvian renders as tofu.
   Ranges copied verbatim from apps/calendar/src/index.css. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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;

  --ground: #000305;
  --text: #FAF2EF;
  --primary: #F76400;
  --accent: #FFFF00;
  --secondary: #0F1ADA;
  --success: #35D07F;
  --danger: #FF5C4D;
  --ink-700: #24272C;
  --ink-500: #5C5F65;
  --ink-300: #B3B6BA;
}

/* Reset and page frame. The page has one look, dark only. */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--ground);
  background-image: radial-gradient(ellipse at top, rgba(15, 26, 218, 0.28) 0%, rgba(15, 26, 218, 0) 60vh);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* The whole motion budget: a 120ms press feedback on the link rows, only
   when the visitor has not asked for reduced motion. Nothing loops. */
@media (prefers-reduced-motion: no-preference) {
  .link-row {
    transition: transform 120ms;
  }
  .link-row:active {
    transform: scale(0.98);
  }
}

/* One centred column, vertically centred on the viewport. */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.stack {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.mark {
  height: 64px;
  width: auto;
  margin: 0 auto 24px;
}

.tagline {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

/* The links list. Adding a page later is copying one <li>. */
.links {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--ink-700);
  border: 1px solid rgba(92, 95, 101, 0.4);
  font-size: 16px;
  font-weight: 700;
}

.links li:last-child .link-row {
  margin-bottom: 0;
}

/* 404 */
.notfound-code {
  margin: 24px 0 0;
  font-size: 18px;
  color: var(--ink-300);
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--ground);
  font-weight: 800;
}
