  @font-face { font-family: "Spectral"; src: url("fonts/Spectral-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
  @font-face { font-family: "Spectral"; src: url("fonts/Spectral-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
  @font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
  @font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
  @font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
  :root {
    --paper: #fbfaf7; --paper-warm: #f4f2ec; --paper-deep: #eae7df;
    --ink: #1a1a18; --ink-soft: #4a4945; --ink-muted: #6e6c66;
    --stone: #454869; --stone-light: #5a5e80; --on-stone: #fbfaf7;   /* индиго — ностальгическая палитра владельца, 05.10.2026 */
    --sage: #ced5cf; --rose: #d6c7c6; --frost: #d7e0e4; --steel: #b1bfc7;
    --accent: #a94e3a; --accent-soft: #c2634e;
    --highlight: #f1e4a8; --pencil: #4f6d7a;   /* две краски для важных слов: маркер и цветной карандаш */
    --font-display: "Spectral", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --d-stroke: 1200ms; --d-stroke-short: 600ms; --d-settle: 400ms; --d-stagger: 80ms;
    --e-draw: cubic-bezier(.22, .61, .36, 1); --e-settle: cubic-bezier(.33, 1, .68, 1);
    --gutter: clamp(20px, 5vw, 72px); --mw-paper: var(--paper);
  }
  html { scroll-behavior: smooth; }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--mw-paper); color: var(--ink); font: 400 17px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; transition: background 900ms var(--e-settle); overflow-x: hidden; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--stone); color: var(--on-stone); padding: 10px 14px; border-radius: 8px; font: 600 15px/1 var(--font-body); text-decoration: none; }
  .skip:focus { top: 16px; }

  /* ── шапка ── */
  .top { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter) 18px; pointer-events: none; background: var(--mw-paper); transition: background 900ms var(--e-settle); }
  /* карандашная линейка: шапку от листа отделяет не тень и не рамка, а линия, проведённая рукой */
  .pencil-line { position: relative; height: 10px; }
  .pencil-line__svg { display: block; width: 100%; height: 10px; overflow: visible; }
  .pencil-line__svg path { fill: none; stroke: var(--ink-soft); stroke-opacity: .75; stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .top .pencil-line { position: absolute; left: 0; right: 0; bottom: -4px; }
  .top .pencil-line__svg path { animation: draw 1500ms var(--e-draw) 600ms forwards; }
  .is-drawn .pencil-line__svg path { transition: stroke-dashoffset 1500ms var(--e-draw); stroke-dashoffset: 0; }
  .top > * { pointer-events: auto; }
  .mark { display: block; width: 140px; color: var(--ink); }
  .mark svg { display: block; width: 100%; height: auto; overflow: visible; }
  .mark .name { fill: currentColor; }
  .mark .mrule { stroke: var(--accent); fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--d-stroke) var(--e-draw) 400ms forwards; }
  .top nav { display: flex; gap: 26px; }
  .top nav a { font: 500 15px/1.15 var(--font-body); color: var(--ink-soft); text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
  .top nav a { border-bottom: 0; background: linear-gradient(var(--pencil), var(--pencil)) no-repeat 0 100% / 0% 2px; padding-bottom: 6px; transition: background-size 600ms var(--e-draw), color 200ms; }
  .top nav a:hover { color: var(--ink); }
  .top nav a.is-active { color: var(--ink); background-size: 100% 2px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 10px; background: var(--stone); color: var(--on-stone); font: 600 15px/1.15 var(--font-body); text-decoration: none; border: 0; cursor: pointer; transition: background var(--d-settle) var(--e-settle), transform 120ms ease; }
  .btn:hover { background: var(--stone-light); } .btn:active { transform: translateY(1px); }
  .btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--steel); min-height: 44px; padding: 0 18px; }
  .btn-quiet mark { transition-delay: 1400ms; }
  .btn-quiet:hover { background: var(--frost); }
  .link { font: 500 15px/1.15 var(--font-body); color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--paper-deep); padding-bottom: 2px; }
  .link:hover { color: var(--ink); border-bottom-color: var(--ink); }

  /* ── мир: лист за листом, сверху вниз ── */
  .mw-root { position: relative; padding-top: 100px; }
  .mw-lines { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; overflow: visible; }
  .mw-line { fill: none; stroke: var(--ink-soft); stroke-opacity: .8; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
  .mw-line:nth-of-type(3n+2) { stroke-opacity: .45; stroke-width: 1; } .mw-line:nth-of-type(3n) { stroke-opacity: .32; stroke-width: 1; }
  .mw-block { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 48px); align-items: center; max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
  .mw-block--left { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
  .mw-block--left .mw-sheet { grid-column: 1; grid-row: 1; justify-self: start; } .mw-block--left .mw-copy { grid-column: 2; grid-row: 1; }
  /* Первый экран — целиком под первый лист: композиция стоит посреди экрана,
     а не жмётся к шапке. Только на широком экране в альбомной ориентации:
     на высоком узком (телефон в «режиме компьютера», планшет стоймя) это
     давало пустоту между шапкой и первым листом. */
  @media (min-width: 861px) and (orientation: landscape) {
    .mw-block:first-of-type { min-height: calc(100svh - 100px); align-content: center; justify-content: center; }
    .mw-block:first-of-type .mw-sheet { justify-self: center; }
  }
  .mw-gap { height: 22vh; }
  /* Лист — коробка в пропорции клипа; клип заполняет её целиком, и маски
     растушёвывают именно его края: внешняя — левый и правый, внутренняя — верх и низ. */
  .mw-sheet { position: relative; width: min(100%, calc(80vh * 3 / 2)); aspect-ratio: 3 / 2; justify-self: end; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .mw-sheet__in { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .mw-block--static .mw-sheet { -webkit-mask-image: none; mask-image: none; }   /* триптих первого экрана лежит прямо на бумаге страницы, края не растушёвываются */
  .mw-still, .mw-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .mw-sheet.has-clip .mw-still { opacity: 0; } .mw-video { z-index: 1; }
  .mw-copy { display: grid; gap: 18px; max-width: 460px; }
  .mw-copy__num { font: 500 15px/1.15 var(--font-body); font-variant-numeric: tabular-nums; color: var(--ink-muted); }
  .mw-copy__eyebrow { display: grid; gap: 10px; font: 600 15px/1.15 var(--font-body); letter-spacing: 3px; text-transform: uppercase; color: var(--ink-muted); }
  .mw-rule { display: block; width: 100%; height: 1px; overflow: visible; }
  .mw-rule line { stroke: var(--paper-deep); stroke-width: 1; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--d-stroke) var(--e-draw); }
  .mw-copy.is-drawn .mw-rule line { stroke-dashoffset: 0; }
  .mw-copy__title { font: 400 clamp(32px, 3vw, 46px)/1.12 var(--font-display); letter-spacing: -0.3px; margin: 0; text-wrap: balance; }
  .mw-block:first-of-type .mw-copy__title { font-size: clamp(38px, 4vw, 58px); }
  .mw-copy__body { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink-soft); max-width: 38ch; }
  .mw-copy__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
  .mw-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 10px; background: var(--stone); color: var(--on-stone); font: 600 15px/1.15 var(--font-body); text-decoration: none; }
  .mw-btn:hover { background: var(--stone-light); }
  .mw-link { font: 500 15px/1.15 var(--font-body); color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--paper-deep); padding-bottom: 2px; }
  .mw-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
  /* подсказка — нарисованная стрелка */
  .mw-hint { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 15px/1.15 var(--font-body); letter-spacing: 3px; text-transform: uppercase; color: var(--ink-muted); transition: opacity 300ms; pointer-events: none; }
  .mw-hint__arrow svg { display: block; width: 22px; height: 36px; overflow: visible; }
  .mw-hint__arrow path { fill: none; stroke: var(--ink-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawloop 2800ms var(--e-draw) infinite; }
  /* ── дуб наследия ── */
  /* ── важные слова: маркер и цветной карандаш, прорисовываются по приходу ── */
  mark { background: linear-gradient(transparent 36%, var(--highlight) 36%, var(--highlight) 94%, transparent 94%) no-repeat 0 0 / 0% 100%; color: inherit; padding: 0 .08em; margin: 0 -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 640ms var(--e-draw) 320ms; }
  .is-drawn mark { background-size: 100% 100%; }
  .ul { background: linear-gradient(var(--pencil), var(--pencil)) no-repeat 0 100% / 0% 2px; padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 720ms var(--e-draw) 640ms; }
  .is-drawn .ul { background-size: 100% 2px; }
  /* блуждающая линия: карандаш не отдыхает */
  .wander { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; z-index: 12; pointer-events: none; }
  .wander svg { display: block; width: 100%; height: 100%; }
  .wander path { fill: none; stroke: var(--ink-muted); stroke-opacity: .45; stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: wander 74s linear infinite; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes drawloop { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 85% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
  @keyframes wander { 0% { stroke-dashoffset: 1; opacity: 1; } 82% { stroke-dashoffset: 0; opacity: 1; } 92% { opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }

  /* ── хвост: цены, страница книги, письмо ── */
  .tail { position: relative; z-index: 30; padding: clamp(72px, 10vw, 140px) var(--gutter) 40px; }
  .wrap { max-width: 1120px; margin-inline: auto; }
  .tail section { padding-block: clamp(36px, 6vw, 80px); }
  h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.2px; }
  h2 { font-size: clamp(30px, 1.2vw + 24px, 36px); line-height: 1.15; } h3 { font-size: 24px; line-height: 1.2; }
  p { margin: 0; }
  .lead { font-size: 17px; line-height: 1.5; color: var(--ink-soft); max-width: 42ch; }
  .body { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
  .eyebrow { font: 600 15px/1.15 var(--font-body); letter-spacing: 3px; text-transform: uppercase; color: var(--ink-muted); }
  .reading { font: 400 19px/1.65 var(--font-display); color: var(--ink); }
  .numeral { font: 500 28px/1.1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
  .rule { height: 1px; } .rule svg { display: block; width: 100%; height: 1px; overflow: visible; }
  .rule line { stroke: var(--paper-deep); stroke-width: 1; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--d-stroke) var(--e-draw); transition-delay: calc(var(--i, 0) * var(--d-stagger)); }
  .rule.ink line { stroke: var(--ink); stroke-width: 1.5; }
  .is-drawn .rule line { stroke-dashoffset: 0; }
  .rule-head { display: grid; gap: 10px; margin-bottom: 20px; }
  .tiers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 36px; }
  .tier { display: grid; gap: 12px; align-content: start; } .tier .rule { margin-bottom: 8px; }
  .fine { font-size: 15px; line-height: 1.5; color: var(--ink-muted); margin-top: 36px; max-width: 62ch; }
  .words { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
  .words blockquote { margin: 0; max-width: 62ch; } .words blockquote p + p { margin-top: 1em; }
  .words .aside { display: grid; gap: 14px; padding-top: 6px; }
  .begin { display: grid; gap: 18px; justify-items: start; }
  .email { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; font: 400 19px/1.3 var(--font-display); }
  .email a { font: inherit; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--paper-deep); } .email a:hover { border-bottom-color: var(--ink); }
  footer { padding-block: 32px 8px; display: grid; gap: 26px; }
  footer .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
  footer .mark .mrule { animation: none; stroke-dashoffset: 0; }
  footer .tagline { font: 400 17px/1.4 var(--font-display); color: var(--ink-soft); }
  footer .small { font-size: 15px; color: var(--ink-muted); }
  .peshij { display: grid; gap: 48px; padding: 96px var(--gutter) 24px; max-width: 900px; margin-inline: auto; }
  .peshij img { width: 100%; height: auto; display: block; }

  @media (max-width: 1100px) { .top nav { display: none; } }
  @media (max-width: 860px) {
    .mw-root { padding-top: 92px; }
    .mw-block, .mw-block--left { grid-template-columns: 1fr; gap: 18px; padding-inline: 0; }
    .mw-block--left .mw-sheet, .mw-block--right .mw-sheet { grid-column: 1; grid-row: 1; }
    .mw-block--left .mw-copy, .mw-block--right .mw-copy { grid-column: 1; grid-row: 2; padding-inline: var(--gutter); max-width: none; }
    .mw-sheet { width: 100%; aspect-ratio: 4 / 3; justify-self: stretch; -webkit-mask-image: none; mask-image: none; }
    .mw-sheet__in { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
    .mw-gap { height: 18vh; }
    .mw-copy__title { font-size: clamp(32px, 8.4vw, 40px); } .mw-block:first-of-type .mw-copy__title { font-size: clamp(38px, 10vw, 48px); }
    .mw-copy__body { font-size: 17px; max-width: none; }
    .mw-hint { display: none; }
    .wander { display: none; }
    .tiers, .words { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; } body { transition: none; }
    .mark .mrule, .mw-hint__arrow path, .wander path { animation: none; stroke-dashoffset: 0; }
    .mw-rule line, .rule line, .mw-line { transition: none; stroke-dashoffset: 0; }
    mark { transition: none; background-size: 100% 100%; } .ul { transition: none; background-size: 100% 2px; }
    .pencil-line__svg path { animation: none; transition: none; stroke-dashoffset: 0; } .top nav a { transition: none; }
    .wander { display: none; }
  }

/* Бывшие style="" (CSP сайта: style-src 'self'). */
.tier.i1 { --i: 1; }
#words-h { margin-bottom: 26px; }
.rule-head.full { width: 100%; }
.small a.plain { text-decoration: none; color: inherit; }
