/* Praeludium Book — extracted and cleaned stylesheet
   Based on the visual system from the Devarim HTML prototype. */
/* Подключаем шрифт заголовка */
  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&display=swap');

  :root {
    --bg:  #f5f5f7;
    --bg-alt: #f5f5f7;
    --accent: #a06a3c;
    --black-accent: #d3a45e;
    --accent-soft: rgba(160, 106, 60, 0.12);
    --accent-hard: #714113;
    --text: #9b7440;
    --muted: #393836;
    --unmuted: #c4bfb8;
    --border: #393836;
    --card-bg: #0d111b;
    --max-width: 1080px;
    --radius-lg: 18px;
    --radius-md: 10px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.46);
  }

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

  /* Иконки icomoon */
  @font-face {
    font-family: 'icomoon';
    src:  url('https://ipfs.io/ipfs/bafybeifoc6gwchpe2zqi6yvns7h5ggwq6qrxarylpsaaygtpisiv6bnd6m/icomoon.eot?kl66p7');
    src:
      url('https://ipfs.io/ipfs/bafybeifoc6gwchpe2zqi6yvns7h5ggwq6qrxarylpsaaygtpisiv6bnd6m/icomoon.eot?kl66p7#iefix') format('embedded-opentype'),
      url('https://ipfs.io/ipfs/bafybeidnf3xf2tmjewvihnfs36mfiam7ycgt66za4munuvz22qr3vm2dsu/icomoon.woff2?kl66p7') format('woff2'),
      url('https://ipfs.io/ipfs/bafybeid3awdplo4nqg6f3s3j7xtq67k7vfwupq7e7b55gfigambzjzoa44/icomoon.ttf?kl66p7') format('truetype'),
      url('https://ipfs.io/ipfs/bafybeibjaajg4d57xnta2l5bka6g2x55d6vfcbp7vsmvfooh6dma2pl2j4/icomoon.woff?kl66p7') format('woff'),
      url('https://ipfs.io/ipfs/bafybeic7olbqu2o3kt2exfvblzmxod5kndpsxx672njgjtjshgphpp7yim/icomoon.svg?kl66p7#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
  }

  [class^="icon-"],
  [class*=" icon-"] {
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .icon-Pechat:before {
    font-size: 48px;
    line-height: 1;
    content: "\ea5a";
  }

  .icon-1218:before {
    font-size: 100px;
    line-height: 1;
    content: "\e96f";
  }

  .icon-0307:before {
    content: "\ea4b";
  }

  .icon-1814:before {
    font-size: 100px;
    line-height: 1;
    content: "\e9e2";
  }

  /* Базовые элементы */

  body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: radial-gradient(
      circle at top,
      #f8f8f8 0%,
      #e8e8e6 40%,
      #fafafa 100%
    );
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
  }

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

  img {
    max-width: 100%;
    display: block;
  }

.hero-art{
    margin:40px 0 35px;
    text-align:center;
}

.hero-art img{
    width:340px;
    max-width:100%;
    height:auto;
    display:block;
    margin:0 auto;
}

  audio {
    width: 100%;
    filter: brightness(0.6);
  }

  .page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 16px 32px;
  }

  .shell {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
  }

  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, #f6c453 0, #ae5ff2 38%, #050609 100%);
    box-shadow: 0 0 18px rgba(246, 196, 83, 0.7);
    font-size: 16px;
    font-weight: 600;
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .brand-text span:first-child {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
  }

  .brand-text span:last-child {
    font-size: 11px;
    color: var(--muted);
  }

  .tag-pill {
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid var(--accent-soft);
    font-size: 11px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(
      135deg,
      rgba(246, 196, 83, 0.06),
      rgba(13, 17, 27, 0.9)
    );
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.20),
      0 0 4px rgba(255, 255, 255, 0.08);
  }

  .tag-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent-hard);
    box-shadow: 0 0 6px rgba(246, 196, 83, 0.9);
  }

  .tag-pill .tag-dark {
    color: rgba(20, 20, 20, 0.85);
    font-weight: 500;
  }

  .tag-pill .tag-light {
    color: rgba(240, 240, 240, 0.92);
    font-weight: 500;
  }

  main {
    flex: 1;
  }

  /* Вступление */

  .introduction {
    position: relative;
    margin-top: 8px;
    margin-bottom: 26px;
    padding: 28px 26px;
    background: none;
  }

  .introduction::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
  }

  .introduction-body {
    position: relative;
    z-index: 2;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.015em;
    color: var(--accent-hard);
    line-height: 1.65;
  }

  .introduction-body p + p {
    margin-top: 10px;
  }

  /* Display-блок / мокап */

  .display {
    margin-top: 18px;
    margin-bottom: 32px;
    padding: 16px 18px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #f5f5f7;
    box-shadow: var(--shadow-soft);
  }

  .image-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 24px 0;
  }

  .art-image {
    width: 80%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: white;
    padding: 8px;
    display: block;
  }

  .cheg-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
  }

  .cheg-sound {
    font-size: 32px;
    font-weight: 600;
  }

  /* NFT-интро */

  .nft-intro {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 24px 0 32px;
    line-height: 1.45;
    color: #222;
  }

  .nft-intro .contract {
    font-size: 1.1rem;
    margin-top: 6px;
    opacity: 0.8;
  }
  .nft-intro .contract span {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .nft-intro span {
    font-family: monospace;
    opacity: 0.9;
  }

  /* Ступени */

  .stair-steps {
    text-align: center;
    margin: 40px 0;
    line-height: 1.2;
  }

  .step {
    font-weight: 600;
    margin: 8px 0;
  }

  .step1 {
    font-size: 1.4rem;
  }

  .step2 {
    font-size: 1.8rem;
  }

  .step3 {
    font-size: 2.3rem;
  }

  /* Блок с видео-мокапом */

  .video-image-box {
    width: 100%;
    text-align: center;
    margin: 24px 0 32px;
  }

  .video-img {
    width: 50%;
    max-width: 640px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    display: block;
    margin: 0 auto;
  }

  .video-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #555;
  }

  .video-note a {
    color: var(--accent-color, #3366cc);
    text-decoration: underline;
  }

  .button-box {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  /* Hero-блок */

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
    gap: 24px;
    margin-bottom: 28px;
  }

  .hero-text {
    padding: 20px 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
      linear-gradient(
        135deg,
        rgba(240, 240, 240, 0.5),
        rgba(255, 255, 255, 0.95)
      ),
      radial-gradient(circle at top left, rgba(174, 95, 242, 0.26), transparent 60%);
    box-shadow: var(--shadow-soft);
  }

  .hero-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--muted);
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.1;
    font-weight: 650;
    margin-bottom: 10px;
  }

  .hero-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
  }

  .hero-sub b {
    color: var(--accent);
    font-weight: 600;
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }

  .btn {
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
      transform 0.12s ease,
      box-shadow 0.12s ease,
      border-color 0.12s ease,
      background 0.12s ease;
    background: none;
    color: var(--text);
  }

  .btn-primary {
    background: linear-gradient(135deg, #c8a36a, #8a6130);
    color: #111;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(140, 100, 55, 0.3);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(140, 100, 55, 0.45);
  }

  .btn-ghost {
    border-color: var(--border);
    color: var(--unmuted);
    background: rgba(5, 6, 9, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  }

  .btn-ghost:hover {
    border-color: var(--accent-soft);
    color: var(--text);
    background: rgba(13, 17, 27, 0.96);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  }

  .hero-footnote {
    font-size: 11px;
    color: var(--muted);
    max-width: 460px;
    line-height: 1.5;
  }

  .hero-media {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.42);
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .preview-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  }

  .preview-placeholder {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    padding: 12px;
  }

  .preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
  }

  .preview-meta strong {
    font-size: 12px;
    color: var(--accent-hard);
  }

  .badge-chain {
    padding: 4px 9px;
    border-radius: 999px;
    border: 2px solid var(--accent-hard);
    color: var(--accent-hard);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* Общие секции */

  .section {
    margin-top: 18px;
    padding: 16px 18px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
      linear-gradient(
        135deg,
        rgba(240, 240, 240, 0.5),
        rgba(255, 255, 255, 0.95)
      ),
      radial-gradient(circle at top left, rgba(174, 95, 242, 0.26), transparent 60%);
    box-shadow: var(--shadow-soft);
  }

  .section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .section-body {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
  }

  .section-body p + p {
    margin-top: 8px;
  }

  .two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 14px;
  }

  .list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
  }

  .list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
  }

  .list-bullet {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    margin-top: 7px;
    flex-shrink: 0;
    background: var(--accent);
  }

  .links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
  }

  /* Аудио-карта */

  .audio-card {
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    transition:
      border-color 0.12s ease,
      transform 0.12s ease,
      box-shadow 0.12s ease;
  }

  .audio-label {
    letter-spacing: 0.14em;
    font-size: 10px;
    color: var(--unmuted);
  }

  /* Линк-карты */

  .link-card-red {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 70, 70, 0.35);
    background: linear-gradient(
      135deg,
      rgba(40, 0, 0, 0.95),
      rgba(85, 0, 0, 0.92)
    );
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition:
      border-color 0.12s ease,
      transform 0.12s ease,
      box-shadow 0.12s ease;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.25);
    cursor: pointer;
  }

  .link-card-red:hover {
    border-color: rgba(255, 120, 120, 0.75);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(255, 0, 0, 0.28);
  }

  .link-card {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: linear-gradient(
      135deg,
      rgba(13, 17, 27, 0.98),
      rgba(24, 31, 50, 0.96)
    );
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition:
      border-color 0.12s ease,
      transform 0.12s ease,
      box-shadow 0.12s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    cursor: pointer;
  }

  .link-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  }

  .link-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 10px;
    color: var(--unmuted);
  }

  .link-value {
    font-size: 12px;
    color: var(--black-accent);
    word-break: break-all;
  }

  /* Футер */

  footer {
    margin-top: 20px;
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid rgba(31, 37, 50, 0.9);
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
  }

  .footer-note {
    max-width: 420px;
    line-height: 1.4;
  }

  .footer-tagline {
    font-size: 11px;
    color: var(--accent);
    text-align: right;
  }

  /* ===== Лэйаут на планшете и ниже ===== */

  @media (max-width: 800px) {
    .hero {
      grid-template-columns: minmax(0, 1fr);
    }

    .section {
      padding: 14px 14px 16px;
    }

    .two-cols {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* ===== ЕДИНЫЙ МОБИЛЬНЫЙ БЛОК (телефоны) ===== */

  @media (max-width: 600px) {

    body {
      font-size: 16px;
    }

    header {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .introduction-body,
    .section-body,
    .list,
    .nft-intro,
    .video-note,
    .audio-card,
    .footer-note {
      font-size: 16px;
      line-height: 1.65;
    }

    .hero-title {
      font-size: 24px;
      line-height: 1.2;
    }

    .hero-sub {
      font-size: 16px;
    }

    .section-title,
    .step1,
    .step2,
    .step3 {
      font-size: 18px;
    }

    .btn,
    .tag-pill,
    .link-card,
    .link-card-red,
    .link-label,
    .link-value,
    .badge-chain,
    .preview-meta,
    .preview-placeholder,
    .audio-label,
    footer,
    .footer-tagline {
      font-size: 15px;
    }

    .btn,
    .link-card,
    .link-card-red {
      padding: 12px 18px;
    }

    .video-img {
      width: 80%;
    }

    .art-image {
      width: 100%;
    }

    footer {
      flex-direction: column;
      align-items: flex-start;
    }

    .footer-tagline {
      text-align: left;
    }
  }

/* ===== Praeludium Book additions ===== */
:root {
  --paper: #f7f3eb;
  --ink: #231f1a;
  --ink-soft: #5f554a;
  --gold: #a06a3c;
  --gold-dark: #714113;
  --line: rgba(113, 65, 19, 0.28);
  --book-width: 860px;
}

body.book-body {
  background: radial-gradient(circle at top, #fffaf0 0%, #efe7d8 42%, #f8f5ee 100%);
  color: var(--ink);
}

.book-shell {
  max-width: var(--book-width);
  margin: 0 auto;
}

.book-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 32px;
}

.book-brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
}

.book-brand-subtitle {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 3px;
}

.book-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}

.book-nav a {
  border-bottom: 1px solid transparent;
}

.book-nav a:hover {
  border-bottom-color: var(--gold);
  color: var(--gold-dark);
}

.book-cover {
  text-align: center;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 18px;
}

.book-kicker {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 12px;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.book-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 18px;
}

.book-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
  color: var(--gold-dark);
  max-width: 760px;
  margin: 0 auto 28px;
}

.book-author {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.book-button {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #d3b078, #9a6b39);
  color: #111;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(113, 65, 19, 0.25);
}

.book-main {
  background: rgba(255, 252, 246, 0.74);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  padding: clamp(24px, 5vw, 56px);
}

.chapter-number {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.chapter-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 12px;
}

.chapter-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  color: var(--gold-dark);
  margin-bottom: 34px;
}

.chapter-content {
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink);
}

.chapter-content p + p {
  margin-top: 1em;
}

.chapter-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  line-height: 1.2;
  margin: 2.1em 0 0.7em;
  color: var(--gold-dark);
}

.chapter-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.2em;
  border-left: 3px solid var(--gold);
  background: rgba(160, 106, 60, 0.08);
  color: var(--ink-soft);
  font-style: italic;
}

.figure {
  margin: 2em 0;
}

.figure img {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
  background: #fff;
}

.figure figcaption {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}

.chapter-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--gold-dark);
  font-size: 14px;
}

.citation-box {
  margin-top: 34px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .book-main { padding: 22px 18px; }
  .chapter-content { font-size: 17px; line-height: 1.72; }
  .book-nav { font-size: 15px; }
  .chapter-pagination { flex-direction: column; }
}
