/* CosmoMatch · промо 01 — Астральный сигил: гравюра и книжная вёрстка */

:root {
  --ground: #F4EFE4;
  --ink: #1B1A17;
  --accent: #A8813C;
  --secondary: #5C6B5E;
  --glow: #D9CBAE;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sheet {
  max-width: 62ch;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ---------- верхний колонтитул ---------- */

.colophon {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--ink);
}

.colophon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
}

.logo { display: flex; align-items: center; gap: 14px; }

.logo__mark {
  width: 52px;
  height: 52px;
  color: var(--ink);
  flex: none;
}

.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark__cosmo { font-weight: 400; }
.wordmark__match { font-weight: 700; }

.colophon__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-variant: small-caps;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--secondary);
  white-space: nowrap;
}

/* ---------- полоса набора ---------- */

.band { padding-top: 8px; }

.kicker {
  font-family: 'Playfair Display', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  margin: 56px 0 20px;
}

.headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.headline .glyph { display: inline-block; }

.vignette {
  width: 34px;
  margin: 34px 0 10px;
  color: var(--accent);
}

.vignette svg { width: 100%; height: auto; display: block; }

.sub {
  font-size: 1.15rem;
  max-width: 54ch;
  margin-top: 18px;
}

.cta-wrap { margin-top: 34px; }

.cta {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--glow);
  background: var(--ink);
  color: var(--ground);
}

.cta:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--glow); }

/* ---------- линейки-лидеры ---------- */

.leader {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 64px 0;
}

.leader__dots {
  flex: 1;
  height: 0;
  border-bottom: 1px dotted var(--accent);
  transition: transform 0.3s ease;
}

.leader__glyph { color: var(--accent); font-size: 14px; line-height: 1; }

.leader:hover .leader__dots { transform: translateY(-3px); }

/* ---------- карточки ---------- */

.cards { display: grid; gap: 44px; }

.card__rule {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.card__t {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.card__leader {
  flex: 1;
  height: 0;
  border-bottom: 1px dotted var(--secondary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card__no {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

.card__d { margin-top: 10px; max-width: 52ch; }

.card:hover .card__leader {
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* ---------- цитата и примечание ---------- */

.quote-wrap { padding: 8px 0; }

.quote {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 44px 8px;
  text-align: center;
}

.quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 auto;
}

.note { padding: 56px 0 8px; text-align: center; }

.note__text {
  font-size: 1.05rem;
  color: var(--ink);
}

.note__text::before,
.note__text::after {
  content: "·";
  color: var(--accent);
  margin: 0 12px;
}

/* ---------- подвал ---------- */

.imprint {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  text-align: center;
}

.imprint__text {
  font-family: 'Playfair Display', Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 14px;
  color: var(--secondary);
}

.promo-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 20px;
}

.promo-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-bottom: 1px dotted var(--secondary);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.promo-nav a:hover { color: var(--accent); border-color: var(--accent); }

.imprint__brand { margin-top: 26px; }

.logo--inline { display: inline-flex; }

.logo__mark--mini {
  width: 32px;
  height: 32px;
  color: var(--secondary);
}

/* монохромное чтение знака */
.logo--mono .logo__mark { filter: grayscale(1) contrast(1.15); color: var(--ink); }

/* ---------- появление по скроллу ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].in { opacity: 1; transform: none; }

/* буквы «печатаются» */
.headline .glyph {
  opacity: 0;
  transform: translateY(3px);
  filter: blur(1.6px);
}

.headline .glyph.on {
  animation: press-in 0.5s ease forwards;
}

@keyframes press-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- escape hatch ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .headline .glyph { opacity: 1; transform: none; filter: none; }
  .cta { transition: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .colophon { flex-direction: column; align-items: flex-start; gap: 12px; }
  .leader { margin: 44px 0; }
}
