/* Hallmark · component: экран до запуска · genre: modern-minimal · theme: ReVault · v2.0.0 */
/* Цвета и типографика взяты из первого экрана ui-root. */

@font-face {
  font-family: 'ReVault Wordmark';
  src: url('/fonts/revault-wordmark.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  unicode-range: U+0052, U+0056;
}

@font-face {
  font-family: 'ReVault Interface';
  src: url('/fonts/revault-interface-black.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'ReVault Interface';
  src: url('/fonts/revault-interface-extralight-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200;
  font-display: swap;
}

:root {
  --bg: #171817;
  --ink: #ece7dc;
  --accent: #e7b07a;
  --bg-deep: #111311;
  --art-shade: #171817b0;
  --art-shade-soft: #17181757;
  --font-body: 'ReVault Interface', sans-serif;
  --font-wordmark: 'ReVault Wordmark', var(--font-body);
  color-scheme: dark;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

main {
  --gutter: 20px;
  --date-gap: 24px;
  --date-size: clamp(40px, 4.8vw, 64px);
  --date-line: calc(var(--date-size) * 1.05);
  display: grid;
  place-items: center;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding: var(--gutter);
  text-align: center;
}

.curtain {
  --art-ratio: 1.5;
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  inline-size: min(100%, 55rem, 120vh);
  inline-size: min(100%, 55rem, 120svh);
  min-width: 0;
  aspect-ratio: var(--art-ratio);
  padding-inline: 16px;
}

.curtain::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 46% 38% 29% 48% / 44% 44% 31% 36%;
  background-image:
    radial-gradient(ellipse at 49% 48%, var(--art-shade), var(--art-shade-soft) 41%, transparent 74%),
    url('/art/antenna.webp');
  background-position: center;
  background-size: cover;
  content: '';
}

@supports (clip-path: shape(from 0 0, line to 100% 100%, close)) {
  .curtain::before {
    border-radius: 0;
    clip-path: shape(
      from 5% 46%,
      curve to 14% 21% with 7% 35% / 9% 25%,
      curve to 38% 12% with 20% 15% / 28% 9%,
      curve to 68% 8% with 51% 17% / 57% 3%,
      curve to 91% 19% with 79% 12% / 88% 11%,
      curve to 97% 51% with 94% 27% / 99% 36%,
      curve to 91% 82% with 96% 66% / 96% 75%,
      curve to 69% 94% with 86% 90% / 77% 96%,
      curve to 38% 91% with 60% 94% / 49% 86%,
      curve to 15% 85% with 29% 96% / 20% 93%,
      curve to 5% 65% with 5% 78% / 1% 71%,
      curve to 5% 46% with 6% 59% / 3% 53%,
      close
    );
  }
}

h1 {
  min-width: 0;
  margin: 0;
  font-family: var(--font-wordmark);
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.curtain-tagline {
  margin: 8px 0 0;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  text-wrap: balance;
}

time {
  display: block;
  margin-top: var(--date-gap);
  color: var(--ink);
  font-size: var(--date-size);
  font-style: italic;
  font-weight: 200;
  letter-spacing: -.035em;
  line-height: var(--date-line);
}

@media (max-width: 600px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  main {
    --date-below-gap: 8px;
    --date-below-space: calc(var(--date-line) + var(--date-below-gap));
    padding-block-end: calc(var(--gutter) + var(--date-below-space));
  }

  .curtain {
    --reserved-height: calc(2 * var(--gutter) + var(--date-below-space));
    inline-size: min(100%, 55rem, calc((100vh - var(--reserved-height)) * var(--art-ratio)));
    inline-size: min(100%, 55rem, calc((100svh - var(--reserved-height)) * var(--art-ratio)));
    /* Сохраняем высоту надписи после переноса даты из сетки. */
    padding-block-end: calc(var(--date-gap) - var(--date-below-gap));
  }

  time {
    position: absolute;
    inset-block-start: calc(100% + var(--date-below-gap));
    inset-inline: 0;
    margin-top: 0;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .curtain {
    --art-ratio: 1.08;
    padding-block-end: calc(72px + var(--date-gap) - var(--date-below-gap));
  }

  .curtain::before {
    background-position: center, right center;
  }

  .curtain-tagline {
    font-size: clamp(17px, 5.2vw, 22px);
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(43px, 9vw, 60px);
  }
}
