/*
 * Заглушка лендинга. Цвета и шрифты — те же, что в приложении
 * (src/styles/app.css, src/styles/fonts.css): бумага, тёмная шапка, рукописный
 * заголовок. Шрифты лежат у нас же, nginx отдаёт их по /fonts/ — наружу
 * страница не ходит вовсе, поэтому и CSP у неё строгий.
 */

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Caveat-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Inter-400-latin.woff2) format('woff2');
  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 {
  --ink: #2b2e36;
  --paper: #fcefd2;
  --paper-warm: #f7e6c3;
  --text: #33302a;
  --text-soft: #8d8677;
  --rule: rgba(90, 82, 66, 0.35);
  --red: #c1452f;
  --green: #3f8f3a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.5 'Inter', system-ui, sans-serif;
}

.top {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px calc(14px + env(safe-area-inset-top, 0px));
  font-family: 'Caveat', cursive;
  font-size: 30px;
  line-height: 1;
}

.paper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom, 0px));
}

.title {
  font-family: 'Caveat', cursive;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.line {
  margin: 0;
  color: var(--text-soft);
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.waitlist input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.waitlist input::placeholder {
  color: var(--text-soft);
}

.waitlist button {
  padding: 12px 18px;
  font: inherit;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.waitlist button[disabled] {
  opacity: 0.55;
  cursor: default;
}

.note {
  margin: 0;
  min-height: 1.5em;
  color: var(--text-soft);
}

.note--ok {
  color: var(--green);
}

.note--error {
  color: var(--red);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .title {
    font-size: 52px;
  }
}
