/* ─────────────────────────────────────────────────────────────
   Read Book — посадочная страница. Без внешних зависимостей:
   системные шрифты, чистый CSS. Тёмная «книжная» палитра.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #14100d;
  --bg-soft: #1d1712;
  --card: #211a14;
  --card-border: #37291d;
  --text: #f1e9df;
  --text-dim: #a89c8c;
  --accent: #e8a35c;
  --accent-soft: #f3c98f;
  --green: #7fc98b;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Мягкое свечение фона, как лампа над книжной полкой */
.aurora {
  position: fixed;
  inset: -30% -10% auto;
  height: 90vh;
  background:
    radial-gradient(45% 55% at 30% 30%, rgba(232, 163, 92, 0.14), transparent 70%),
    radial-gradient(40% 45% at 75% 15%, rgba(127, 201, 139, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .header, .footer { position: relative; z-index: 1; }

/* ── Шапка ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 64px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo__icon { width: 26px; height: 26px; color: var(--accent); }

.header__tag {
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ── Герой ── */
.hero {
  text-align: center;
  padding: clamp(40px, 8vw, 90px) 20px 30px;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: clamp(16px, 2.4vw, 19px);
}

/* ── Карточки скачивания ── */
.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: min(280px, 100%);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card__icon { width: 30px; height: 30px; margin-bottom: 8px; }
.card--android .card__icon { color: var(--green); }
.card--windows .card__icon { color: var(--accent); }

.card__title {
  font-size: 18px;
  font-weight: 700;
}

.card__meta {
  font-size: 14px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ── Строка последнего релиза ── */
.release-note {
  max-width: 680px;
  margin: 0 auto 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.release-note__badge {
  color: var(--accent-soft);
  background: rgba(232, 163, 92, 0.12);
  border: 1px solid rgba(232, 163, 92, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.release-note__date { opacity: 0.75; }

.hint {
  max-width: 520px;
  margin: 6px auto 0;
  font-size: 13.5px;
  color: var(--text-dim);
  opacity: 0.8;
}

/* ── Возможности ── */
.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

.features h2 {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 34px);
  margin: 30px 0 30px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature {
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.feature__emoji { font-size: 28px; margin-bottom: 10px; }

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

/* ── Текстовые страницы (политика и т.п.) ── */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 60px) 22px 70px;
}

.doc h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 6px;
}

.doc__updated {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 30px;
}

.doc h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin: 34px 0 10px;
}

.doc p { color: var(--text-dim); }

.doc ul {
  padding-left: 22px;
  color: var(--text-dim);
}

.doc li { margin: 6px 0; }

.doc strong { color: var(--text); }

/* ── Подвал ── */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 26px 20px 34px;
  border-top: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 14px;
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--card-border);
}

.footer a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .header__tag { display: none; }
  .card { width: 100%; }
}
