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

:root {
  color-scheme: dark;
  --background: #0b0b0b;
  --foreground: #fff;
  --muted: #919191;
  --edge: clamp(1.5rem, 4vw, 4rem);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(var(--edge), env(safe-area-inset-top)) max(var(--edge), env(safe-area-inset-right)) max(var(--edge), env(safe-area-inset-bottom)) max(var(--edge), env(safe-area-inset-left));
  color: var(--foreground);
  background: var(--background);
}

::selection { background: #fff; color: #0b0b0b; }

.masthead { line-height: 1; }
.wordmark { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.075em; }
.main { display: grid; align-items: center; min-width: 0; padding-block: 3.5rem 5rem; }
.identity { width: 100%; text-align: center; }

.headline {
  margin: 0;
  font-size: clamp(3rem, 12.6vw, 5.5rem);
  font-weight: 450;
  line-height: 1.06;
  letter-spacing: -0.065em;
}
.headline span { display: block; }

.subheadline {
  margin: 1.625rem 0 0;
  color: var(--muted);
  font-size: clamp(0.8125rem, 3.5vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.025em;
}

.action { margin-top: 2.5rem; }
.instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-height: 3.375rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid #595959;
  border-radius: 999px;
  color: var(--foreground);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}
.arrow { flex: none; transition: transform 220ms ease; }
.instagram:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.instagram:active { background: #dedede; border-color: #dedede; color: #0b0b0b; }
.footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; color: var(--muted); line-height: 1.5; }
.footer small { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.04em; }
.footer .signature { font-size: 0.75rem; letter-spacing: 0; }

@media (hover: hover) {
  .instagram:hover { background: #fff; border-color: #fff; color: #0b0b0b; }
  .instagram:hover .arrow { transform: translate(2px, -2px); }
}

@media (min-width: 48rem) {
  .headline { font-size: clamp(4rem, 8.1vw, 8.5rem); line-height: 1.08; }
  .headline span { display: inline; }
  .subheadline { margin-top: 1.875rem; font-size: 1rem; }
  .action { margin-top: 2.875rem; }
}

/* Short landscape viewports stay usable; content may scroll when zoomed. */
@media (max-height: 32rem) and (min-width: 32rem) {
  body { --edge: 1.5rem; }
  .main { padding-block: 1.5rem; }
  .headline { font-size: clamp(2.5rem, 7.5vw, 4.5rem); }
  .headline span { display: inline; }
  .subheadline { margin-top: 1rem; }
  .action { margin-top: 1.5rem; }
}

/* The default is fully visible. Motion is only added when explicitly allowed. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .headline { animation-delay: 60ms; }
  .subheadline { animation-delay: 180ms; }
  .action { animation-delay: 300ms; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .instagram, .arrow { transition: none; }
  .instagram:hover .arrow { transform: none; }
}

@media (forced-colors: active) {
  .instagram { border-color: ButtonText; }
  .instagram:focus-visible { outline-color: Highlight; }
}
