/* The landing's stand-in until the real one is designed: the app's own type, ground and ink. */

@font-face {
  font-family: 'Tektur Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  src: url(/fonts/tektur-latin.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: 'Tektur Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  src: url(/fonts/tektur-cyrillic.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ground: #0b0a09;
  --fg: #e9e1cd;
  --muted: #aaa294;
  --line: rgba(233, 225, 205, 0.3);
  --accent: #db3325;
  --on-accent: #0b0a09;
  --gutter: 20px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #ece5d4;
    --fg: #17130f;
    --muted: #6a6255;
    --line: rgba(23, 19, 15, 0.3);
    --accent: #c81a10;
    --on-accent: #ece5d4;
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--fg);
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(20px, env(safe-area-inset-bottom));
  font: 500 13px/1.4 'Tektur Variable', 'Arial Narrow', system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
a {
  color: inherit;
}

.top,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.mark {
  font-weight: 900;
  font-stretch: 75%;
  /* The axis itself as well: Safari can leave font-stretch at the face's default width. */
  font-variation-settings: 'wdth' 75;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.langs {
  display: inline-flex;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.langs a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
}
.langs a[aria-current='page'] {
  background: var(--fg);
  color: var(--ground);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 0;
}
h1 {
  margin: 0;
  font-weight: 900;
  font-stretch: 75%;
  /* The axis itself as well: Safari can leave font-stretch at the face's default width. */
  font-variation-settings: 'wdth' 75;
  /* Sized with room to spare: Safari sets this face a touch wider than Chrome, and the word must
     never push the page sideways. The cap keeps it inside the 1120px column on a wide screen. */
  font-size: clamp(44px, 13.2vw, 168px);
  line-height: 0.82;
  letter-spacing: 0;
}
h1 span {
  color: var(--accent);
}
.lede {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  color: var(--muted);
}
.go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  max-width: 100%;
  padding: 0 clamp(16px, 5vw, 24px);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 900;
  font-stretch: 75%;
  /* The axis itself as well: Safari can leave font-stretch at the face's default width. */
  font-variation-settings: 'wdth' 75;
  font-size: clamp(19px, 6vw, 28px);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.go:focus-visible,
.langs a:focus-visible,
.mark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.foot {
  padding-top: 16px;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
}

/* Not found: the same page, saying so. */
.lost h1 {
  font-size: clamp(64px, 22vw, 240px);
}
