/* ---------------------------------------------------------------- reset */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height: auto обязательна: у картинок проставлены width/height атрибутами
   ради резерва места, и без неё заданная в CSS ширина не тянет за собой
   высоту — логотип в шапке выходил 118x230 вместо 118x62. */
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.shell { width: var(--shell); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section--flush { padding-block: 0; }

.display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 84, "wght" 800;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.display--l { font-size: var(--step-3); }
.display--m { font-size: var(--step-2); }
.display--s { font-size: var(--step-1); }

.lede { font-size: var(--step-1); line-height: 1.45; color: var(--fg-muted); }
.body { color: var(--fg-muted); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.hand {
  font-family: var(--font-hand);
  font-size: var(--step-1);
  color: var(--accent-text);
  text-transform: none;
  letter-spacing: 0;
}

/* ------------------------------------------------------------ entrance */

.reveal { opacity: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    @keyframes reveal-in {
      from { opacity: 0; translate: 0 24px; }
      to   { opacity: 1; translate: 0 0; }
    }
  }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
}
