/* ───────────────────────────────────────────────────────────────
   Caerme — стили лендинга
   Палитра: тёплая cream + терракотовый акцент
   Типографика: Cormorant Garamond (display) + Crimson Pro (body)
   Стиль: editorial natural minimalism
   ─────────────────────────────────────────────────────────────── */

:root {
  /* Палитра */
  --cream:        #FAF6EE;
  --cream-deep:   #F0E9D8;
  --ink:          #1F1B17;
  --ink-soft:     #3D362E;
  --whisper:      #8A8073;
  --terra:        #B45A36;
  --terra-deep:   #8A3F22;

  /* Типографика */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Crimson Pro", "Georgia", serif;

  /* Метрики */
  --max-width:    720px;
  --gutter:       2rem;
}

/* ── Сброс ───────────────────────────────────────────────────── */

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

html, body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

/* Тонкая «бумажная» текстура для тёплого ощущения */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 5rem) var(--gutter);
}

.hero__inner {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Бренд ───────────────────────────────────────────────────── */

.brand {
  margin-bottom: clamp(3rem, 8vh, 5rem);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.5rem, 14vw, 9.5rem);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
}

.brand__transcription {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--whisper);
  letter-spacing: 0.08em;
  margin: 0.75rem 0 0;
}

.brand__transcription .dot {
  display: inline-block;
  margin: 0 0.15em;
  opacity: 0.7;
}

/* ── Слоган ──────────────────────────────────────────────────── */

.slogan {
  margin-bottom: 1.25rem;
}

.slogan__line {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* ── Подзаголовок ────────────────────────────────────────────── */

.lede {
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
  max-width: 32rem;
}

.lede p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

/* ── CTA ─────────────────────────────────────────────────────── */

.cta {
  margin-bottom: 1.4rem;
}

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 0.95em 2em;
  background: var(--terra);
  color: var(--cream);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 0 rgba(31, 27, 23, 0.05);
}

.cta__button:hover,
.cta__button:focus-visible {
  background: var(--terra-deep);
  transform: translateY(-1px);
}

.cta__button:focus-visible {
  outline: 2px solid var(--terra-deep);
  outline-offset: 4px;
}

.cta__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 1.05em;
}

.cta__button:hover .cta__arrow {
  transform: translateX(3px);
}

/* ── Метаданные под кнопкой ──────────────────────────────────── */

.cta__meta {
  margin-bottom: clamp(4rem, 12vh, 7rem);
}

.cta__meta p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--whisper);
  letter-spacing: 0.015em;
  margin: 0;
  line-height: 1.5;
}

.cta__meta .dot-sep {
  display: inline-block;
  margin: 0 0.5em;
  opacity: 0.6;
}

/* ── Сноска внизу ────────────────────────────────────────────── */

.footnote {
  margin: 0;
}

.footnote p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--whisper);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.5;
}

.footnote em {
  font-style: italic;
  color: var(--ink-soft);
}

/* ── Анимация загрузки ───────────────────────────────────────── */

[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 0.8s ease-out forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim="fade-up"] {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Адаптив: мобайл ─────────────────────────────────────────── */

@media (max-width: 480px) {
  :root {
    --gutter: 1.5rem;
  }

  body {
    font-size: 17px;
  }

  .brand__name {
    letter-spacing: -0.02em;
  }
}
