/* Приглашение по ссылке /r/<адрес> (invite.html).
   Язык — тот же, что у входа и главной (enter.css): белая бумага, камень,
   графит, заголовок антиквой NexoSerif, подписи разрядкой заглавными.
   Ни градиентов, ни зелёного. Своё у страницы одно — живой сайт
   пригласившего в телефоне: это и есть довод. */
@font-face{font-family:"NexoSerif";font-weight:400;font-display:swap;
  src:url("/static/fonts/serif-cyr-400.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"NexoSerif";font-weight:400;font-display:swap;
  src:url("/static/fonts/serif-lat-400.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+2000-206F,U+2122,U+2191,U+2193,U+2212}
@font-face{font-family:"NexoGolos";font-weight:400;font-display:swap;
  src:url("/static/fonts/golos-cyr-400.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"NexoGolos";font-weight:400;font-display:swap;
  src:url("/static/fonts/golos-lat-400.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+2000-206F,U+20BD,U+2122,U+2191,U+2193,U+2212}
@font-face{font-family:"NexoGolos";font-weight:600;font-display:swap;
  src:url("/static/fonts/golos-cyr-600.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"NexoGolos";font-weight:600;font-display:swap;
  src:url("/static/fonts/golos-lat-600.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+2000-206F,U+20BD,U+2122,U+2191,U+2193,U+2212}
@font-face{font-family:"NexoMono";font-weight:500;font-display:swap;
  src:url("/static/fonts/mono-cyr-500.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"NexoMono";font-weight:500;font-display:swap;
  src:url("/static/fonts/mono-lat-500.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+2000-206F,U+2122}

:root {
  --page: #ffffff;
  --stone: #f3f3f1;
  --ink: #121314;
  --soft: #56595f;
  --faint: #8b8e93;
  --line: #e5e5e2;
  --act: #121314;
  --act-ink: #ffffff;
  --bezel: #121314;
  --serif: "NexoSerif", "Playfair Display", Georgia, serif;
  --sans: "NexoGolos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "NexoMono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .9, .25, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #121214;
    --stone: #1e1e21;
    --ink: #f2f1ee;
    --soft: #a4a4aa;
    --faint: #75757b;
    --line: #2a2a2e;
    --act: #f2f1ee;
    --act-ink: #121214;
    --bezel: #000000;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.iv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 0;
}
.iv-mark { font: 400 22px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.iv-in { font-size: 14px; color: var(--soft); text-decoration: none; }
.iv-in:hover { color: var(--ink); }

.iv {
  display: grid;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px calc(48px + env(safe-area-inset-bottom, 0px));
}

.iv-k {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}
.iv-from { margin: 4px 0 0; font-size: 15px; color: var(--soft); }
.iv-h {
  margin: 22px 0 0;
  font: 400 clamp(38px, 10.5vw, 64px)/1.02 var(--serif);
  letter-spacing: -.02em;
  max-width: 15ch;
  text-wrap: balance;
}
.iv-sub { margin: 14px 0 0; font-size: 17px; color: var(--soft); }

.iv-code {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 0;
}
.iv-code span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}
.iv-code b {
  font: 500 28px/1 var(--mono);
  letter-spacing: .12em;
}

.iv-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  margin: 26px 0 0;
  border-radius: 16px;
  background: var(--act);
  color: var(--act-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s var(--ease), opacity .15s var(--ease);
}
.iv-go:active { transform: scale(.98); }
.iv-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.iv-alt {
  display: inline-block;
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--soft);
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}
.iv-alt:hover { color: var(--ink); }

.iv-why {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  max-width: 460px;
}
.iv-why li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ТЕЛЕФОН С ИХ САЙТОМ. Рамка сайта — 390×844, как экран телефона, и
   уменьшена целиком: кадр показывает сайт таким, каким его видит клиент. */
.iv-proof { margin: 0; display: grid; justify-items: center; gap: 14px; }
.iv-phone {
  --w: 240px;
  --s: calc(240 / 390);
  position: relative;
  width: calc(var(--w) + 16px);
  height: calc(844px * 240 / 390 + 16px);
  padding: 8px;
  border-radius: 40px;
  background: var(--bezel);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45);
  overflow: hidden;
}
.iv-phone iframe {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  border-radius: 52px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  pointer-events: none;
  background: var(--page);
}
.iv-proof figcaption { font-size: 13px; color: var(--soft); }
.iv-proof figcaption a { color: var(--ink); text-underline-offset: 3px; }

@media (min-width: 900px) {
  .iv {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
    padding-top: 72px;
  }
  .iv-phone {
    --s: calc(300 / 390);
    width: calc(300px + 20px);
    height: calc(844px * 300 / 390 + 20px);
    padding: 10px;
    border-radius: 48px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .iv-say > *, .iv-proof { animation: iv-in .45s var(--ease) both; }
  .iv-say > :nth-child(2) { animation-delay: .04s; }
  .iv-say > :nth-child(3) { animation-delay: .08s; }
  .iv-say > :nth-child(4) { animation-delay: .12s; }
  .iv-say > :nth-child(n+5) { animation-delay: .16s; }
  .iv-proof { animation-delay: .2s; }
}
@keyframes iv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
