/* Шрифты: только системные стеки, без загрузки файлов и сторонних CDN. */
:root {
  color-scheme: light;
  --paper: #f4efe7;
  --ink: #26231e;
  --text: #3a362f; /* основной мелкий текст, ~10:1 на вуали */
  --muted: #55504a; /* вторичный, ~7:1 на вуали */
  --line: rgba(38, 35, 30, 0.22);
  --veil: rgba(244, 239, 231, 0.6);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(24px, 5vw, 72px);
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) var(--gutter);
  isolation: isolate;
}

.hero-image,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.92) contrast(0.96);
}

.shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(247, 243, 236, 0.95) 0%, var(--veil) 48%, rgba(247, 243, 236, 0.1) 100%),
    linear-gradient(180deg, rgba(244, 239, 231, 0.2), rgba(244, 239, 231, 0.72));
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status,
.eyebrow {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero {
  align-self: center;
  width: min(640px, 100%);
  padding-block: clamp(40px, 7vh, 88px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

h1 {
  max-width: 9em;
  margin: 0 0 0 -0.04em; /* оптическое выравнивание заглавной «A» по левому краю */
  font-family: var(--serif);
  font-size: clamp(3.25rem, 2.2rem + 4.6vw, 6.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}

.lede {
  max-width: 30em;
  margin: clamp(24px, 3vw, 32px) 0 0;
  color: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.legal {
  display: grid;
  gap: 8px 48px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.legal p {
  max-width: 68ch;
  margin: 0;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.legal a:hover {
  text-decoration-color: currentColor;
}

@media (min-width: 900px) {
  .legal {
    grid-template-columns: minmax(0, 68ch) auto;
    justify-content: space-between;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .shade {
    background:
      linear-gradient(180deg, rgba(247, 243, 236, 0.96) 0%, rgba(247, 243, 236, 0.78) 55%, rgba(247, 243, 236, 0.5) 100%);
  }

  .brand {
    font-size: 1.125rem;
  }

  .status,
  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  .hero {
    padding-block: 40px 48px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image {
    animation: slow-breath 18s ease-in-out infinite alternate;
  }
}

@keyframes slow-breath {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.035);
  }
}
