/* romashkov.nexxe.su — светлая бумага, тушь и тёмно-красный с обложки; лёгкий дым за текстом. */
:root { --paper: #f8f5ef; --ink: #221d1a; --mut: #786d65; --red: #8e1f1d; --red2: #b2392f; --line: #e3dbcf; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 18px/1.7 Georgia, "Times New Roman", serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-weight: 400; margin: 0; line-height: 1.04; }
.small { font: 12px/1.4 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--mut); margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; font: 600 14px/1 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--red); background: var(--red); color: #fff; transition: background .2s, color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: var(--red2); border-color: var(--red2); }
.btn.ghost { background: transparent; color: var(--red); } .btn.ghost:hover { background: var(--red); color: #fff; }
[data-reveal] { opacity: 0; translate: 0 24px; transition: opacity 1s, translate 1s; } [data-reveal].in { opacity: 1; translate: 0 0; }

/* дым — холст под всем содержимым */
.smoke { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .top, .foot { position: relative; z-index: 1; }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; padding: 16px 30px; transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(248,245,239,.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.sig { font-style: italic; font-size: 22px; }
.nav { margin-left: auto; display: flex; gap: 26px; font: 15px "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
.nav a:hover { color: var(--red); }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 110px 20px 60px; }
.hero h1 { font-size: clamp(56px, 10vw, 150px); letter-spacing: -.01em; }
.hero h1 span { font-style: italic; color: var(--red); }
.hero .lead { max-width: 600px; color: var(--mut); font-size: 20px; margin: 30px auto 0; }
.scroll { margin-top: 48px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--mut); font-family: system-ui, sans-serif; animation: bob 2.6s ease-in-out infinite; }
.scroll:hover { color: var(--red); border-color: var(--red); }
@keyframes bob { 50% { transform: translateY(6px); } }

.novel { max-width: 1180px; margin: 0 auto; padding: 90px 30px; display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 70px; align-items: start; scroll-margin-top: 40px; }
.book { position: sticky; top: 100px; }
.cover { margin: 0; position: relative; }
.cover::before { content: ""; position: absolute; inset: 8% -8% -6%; background: radial-gradient(closest-side, rgba(142,31,29,.28), rgba(142,31,29,0)); z-index: -1; filter: blur(10px); }
.cover img { width: 100%; aspect-ratio: 1049 / 1500; object-fit: cover; box-shadow: 0 30px 50px -30px rgba(40,10,10,.55); transition: opacity .35s; }
.cover img.fade { opacity: 0; }
.ed { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.ed button { font: 14px "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mut); cursor: pointer; }
.ed button.on { border-color: var(--red); color: var(--red); }
.novel h2 { font-size: clamp(48px, 6vw, 86px); margin-bottom: 30px; }
.novel h2 span { display: block; font-style: italic; font-size: .42em; color: var(--red); margin-top: 10px; }
.txt p { margin: 0 0 18px; }
.txt .first::first-letter { float: left; font-size: 4.2em; line-height: .8; padding: 6px 10px 0 0; color: var(--red); }
blockquote { margin: 30px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--red); font-style: italic; font-size: 20px; color: #3b322d; }
.editions { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.editions li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.editions span { font: 15px "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--mut); }

.about, .contact { max-width: 760px; margin: 0 auto; padding: 90px 30px; scroll-margin-top: 40px; }
.about h2, .contact h2 { font-size: clamp(38px, 4.6vw, 60px); margin-bottom: 28px; }
.about p { margin: 0 0 18px; }
.more a { font: 15px "Segoe UI", system-ui, sans-serif; color: var(--red); border-bottom: 1px solid rgba(142,31,29,.3); }
.contact { text-align: center; padding-bottom: 120px; }
.contact > p:not(.small) { color: var(--mut); margin: 0 0 22px; }
.mail { font-size: clamp(24px, 3.4vw, 40px); font-style: italic; color: var(--red); border-bottom: 1px solid rgba(142,31,29,.35); }
.mail:hover { border-color: var(--red); }
.foot { text-align: center; padding: 30px 20px 40px; border-top: 1px solid var(--line); font: 14px "Segoe UI", system-ui, sans-serif; color: var(--mut); }
.foot p { margin: 0; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .top { padding: 12px 16px; } .nav { gap: 16px; font-size: 14px; } .sig { font-size: 19px; }
  .novel { grid-template-columns: 1fr; gap: 36px; padding: 60px 16px; }
  .book { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
  .about, .contact { padding: 60px 16px; }
  .editions li { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 420px) { .nav a:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; translate: none; transition: none; }
  .scroll { animation: none; }
}
