/* ==========================================================================
   СКИН «WHIMSY» — скрапбук.
   Бумага в точку и крафт, полароиды с васи-скотчем, вырезанные буквы
   мастхеда («письмо похитителя»), стикеры, рваные края (clip-path),
   подписи от руки (Caveat), ярлыки как у этикет-принтера (Courier Prime).
   Все размеры в cqw — рвань и наклоны одинаковы на телефоне и в печати.
   Фото НЕ меняем: белая рамка полароида вокруг, внутри — object-fit: cover.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Caveat:wght@500;700&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Bodoni+Moda:ital,opsz,wght@1,6..96,800&display=swap");

.mag--whimsy {
  --m-paper: #f8f2e4;
  --m-paper2: #efe4cc;
  --m-ink: #2b2521;
  --m-ink2: #6f6357;
  --m-rule: #d8c9ad;
  --m-accent: #e2553f;        /* томатный */
  --m-accent-ink: #ffffff;
  --m-inv-bg: #caa77a;        /* крафт */
  --m-inv-ink: #2b2521;
  --w-mustard: #f2b134;
  --w-sage: #a9c3a2;
  --w-sky: #9cc2e6;
  --w-pink: #f5b9c4;
  --w-kraft: #caa77a;
  --f-mast: "Fraunces", Georgia, serif;
  --f-head: "Fraunces", Georgia, serif;
  --f-body: "Fraunces", Georgia, serif;
  --f-ui: "Courier Prime", "Courier New", monospace;
  --f-num: "Fraunces", Georgia, serif;
  --f-hand: "Caveat", "Bradley Hand", cursive;
  --f-mono: "Courier Prime", monospace;
  --mast-glyph: 1.02;
  --mast-track: 0;
  --fs: 2.1cqw;
  /* рваный край сверху и снизу / только сверху (заготовки, длины в cqw) */
  --torn: polygon(0.0% 0.32cqw, 3.8% 0.15cqw, 7.7% 0.65cqw, 11.5% 0.07cqw, 15.4% 0.54cqw, 19.2% 0.37cqw, 23.1% 0.06cqw, 26.9% 0.51cqw, 30.8% 0.04cqw, 34.6% 0.43cqw, 38.5% 0.07cqw, 42.3% 0.09cqw, 46.2% 0.42cqw, 50.0% 0.83cqw, 53.8% 0.12cqw, 57.7% 0.22cqw, 61.5% 0.63cqw, 65.4% 0.95cqw, 69.2% 0.58cqw, 73.1% 0.40cqw, 76.9% 0.98cqw, 80.8% 0.05cqw, 84.6% 0.86cqw, 88.5% 0.29cqw, 92.3% 0.14cqw, 96.2% 0.12cqw, 100.0% 0.31cqw, 100.0% calc(100% - 0.82cqw), 96.2% calc(100% - 0.18cqw), 92.3% calc(100% - 0.58cqw), 88.5% calc(100% - 0.64cqw), 84.6% calc(100% - 0.37cqw), 80.8% calc(100% - 0.55cqw), 76.9% calc(100% - 0.06cqw), 73.1% calc(100% - 0.06cqw), 69.2% calc(100% - 0.21cqw), 65.4% calc(100% - 0.68cqw), 61.5% calc(100% - 0.43cqw), 57.7% calc(100% - 0.31cqw), 53.8% calc(100% - 0.59cqw), 50.0% calc(100% - 0.45cqw), 46.2% calc(100% - 0.30cqw), 42.3% calc(100% - 0.79cqw), 38.5% calc(100% - 0.70cqw), 34.6% calc(100% - 0.24cqw), 30.8% calc(100% - 0.57cqw), 26.9% calc(100% - 0.53cqw), 23.1% calc(100% - 0.88cqw), 19.2% calc(100% - 0.73cqw), 15.4% calc(100% - 0.29cqw), 11.5% calc(100% - 0.98cqw), 7.7% calc(100% - 0.12cqw), 3.8% calc(100% - 0.42cqw), 0.0% calc(100% - 0.76cqw));
  --torn-top: polygon(0.0% 0.15cqw, 3.8% 0.49cqw, 7.7% 0.04cqw, 11.5% 0.67cqw, 15.4% 0.76cqw, 19.2% 0.57cqw, 23.1% 0.88cqw, 26.9% 0.31cqw, 30.8% 0.70cqw, 34.6% 0.59cqw, 38.5% 0.58cqw, 42.3% 0.46cqw, 46.2% 0.84cqw, 50.0% 0.94cqw, 53.8% 0.47cqw, 57.7% 0.66cqw, 61.5% 0.06cqw, 65.4% 0.70cqw, 69.2% 0.65cqw, 73.1% 0.99cqw, 76.9% 0.82cqw, 80.8% 0.28cqw, 84.6% 0.39cqw, 88.5% 0.67cqw, 92.3% 0.02cqw, 96.2% 0.46cqw, 100.0% 0.17cqw, 100% 100%, 0% 100%);
  /* SVG-шум для фактуры бумаги (без внешних файлов) */
  --w-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .15  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* «волнистое» подчёркивание маркером */
  --w-squiggle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' preserveAspectRatio='none'><path d='M0 5 Q5 1 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%23f2b134' stroke-width='3' stroke-linecap='round'/></svg>");
}

/* ---------- бумага: точка + шум ---------- */
/* вкладки раунда 2 (.is-insert) живут в своей палитре — фактуру бумаги не кладём */
.mag--whimsy :where(.mag-page:not(.is-insert)) > .pg-in {
  background:
    var(--w-noise),
    radial-gradient(circle, rgba(90, 60, 30, .16) .13cqw, transparent .17cqw) 0 0 / 3.6cqw 3.6cqw;
  font-variation-settings: "opsz" 14;
}
.mag--whimsy .rh, .mag--whimsy .folio { font-family: var(--f-ui); letter-spacing: .14em; }
.mag--whimsy .folio-n { font: 700 2.2cqw/1 var(--f-hand); }

/* ярлык этикет-принтера вместо кикера */
.mag--whimsy .kicker {
  width: fit-content; background: var(--m-ink); color: var(--m-paper);
  font: 700 1.15cqw/1 var(--f-ui); letter-spacing: .2em; padding: .7cqw 1.3cqw .6cqw;
  transform: rotate(-1.6deg); box-shadow: .2cqw .3cqw 0 rgba(0,0,0,.12);
}
/* заголовки: тяжёлая мягкая антиква, акцентное слово — курсивом с маркером */
.mag--whimsy :where(.mag-page:not(.is-insert):not(.is-new)) h2 { font-family: var(--f-head) !important; font-weight: 800 !important; letter-spacing: -.025em !important; font-variation-settings: "opsz" 144; }
.mag--whimsy :where(.mag-page:not(.is-insert):not(.is-new)) h2 em {
  font-weight: 500; color: var(--m-accent);
  background: var(--w-squiggle) 0 100% / 100% .22em no-repeat; padding-bottom: .1em;
}
.mag--whimsy .dropcap > p:first-child::first-letter { font-family: var(--f-head); font-weight: 900; color: var(--m-accent); }

/* ---------- ПОЛАРОИДЫ + ВАСИ-СКОТЧ ---------- */
.mag--whimsy .ph:not(.cv-photo--none) {
  background: #fffdf9; padding: 1.3cqw 1.3cqw 0;
  box-shadow: 0 .25cqw .5cqw rgba(0,0,0,.12), 0 1.4cqw 2.4cqw -1cqw rgba(60,40,20,.35);
}
.mag--whimsy .ph img { background: #e9e1d2; }
.mag--whimsy .ph-cap {
  font: 700 2.3cqw/1 var(--f-hand); letter-spacing: 0; text-transform: none; color: var(--m-ink);
  padding: 1.1cqw .4cqw 1.5cqw; position: static !important; text-shadow: none !important;
}
.mag--whimsy .ph:not(:has(.ph-cap)) { padding-bottom: 4.2cqw; }
.mag--whimsy .ph::before {                 /* полоска скотча */
  content: ""; position: absolute; z-index: 3; top: -1.7cqw; left: 50%;
  width: 12cqw; height: 3.4cqw; transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(245,185,196,.88) 0 .9cqw, rgba(255,246,240,.7) .9cqw 1.8cqw);
  clip-path: polygon(3% 0, 97% 0, 100% 18%, 96% 36%, 100% 55%, 97% 78%, 100% 100%, 3% 100%, 0 80%, 4% 60%, 0 40%, 4% 20%);
  mix-blend-mode: multiply;
}
/* скотч разных цветов и углов — чтобы не выглядело штампом */
.mag--whimsy .st-sp:nth-child(2)::before, .mag--whimsy .mo-1::before, .mag--whimsy .tl-i:nth-child(even) .ph::before, .mag--whimsy .ob-photo::before {
  background: repeating-linear-gradient(90deg, rgba(242,177,52,.85) 0 .5cqw, rgba(255,236,190,.8) .5cqw 1cqw); transform: translateX(-50%) rotate(5deg);
}
.mag--whimsy .mo-2::before, .mag--whimsy .tl-i:nth-child(3n) .ph::before, .mag--whimsy .bk-photo::before {
  background: rgba(156,194,230,.82); transform: translateX(-50%) rotate(-7deg); left: 30%;
}
.mag--whimsy .mo-3::before, .mag--whimsy .iv-photo::before {
  background: radial-gradient(circle, rgba(255,255,255,.9) .35cqw, transparent .4cqw) 0 0 / 1.4cqw 1.4cqw, rgba(169,195,162,.88);
  transform: translateX(-50%) rotate(3deg); left: 68%;
}
/* наклоны */
.mag--whimsy .st-sp:nth-child(1) { transform: rotate(2.2deg); }
.mag--whimsy .st-sp:nth-child(2) { transform: rotate(-2.6deg); }
.mag--whimsy .tl-i:nth-child(odd) .ph { transform: rotate(-2.2deg); }
.mag--whimsy .tl-i:nth-child(even) .ph { transform: rotate(2deg); }
.mag--whimsy .mo-0 { transform: rotate(-1.6deg); } .mag--whimsy .mo-1 { transform: rotate(2.4deg); }
.mag--whimsy .mo-2 { transform: rotate(-2.8deg); } .mag--whimsy .mo-3 { transform: rotate(1.4deg); }
.mag--whimsy .mo-4 { transform: rotate(-1deg); }   .mag--whimsy .mo-5 { transform: rotate(2.8deg); }

/* ---------- ОБЛОЖКА: бумага, буквы-вырезки, большой полароид ---------- */
.mag--whimsy .pg-cover { background: var(--m-paper); color: var(--m-ink); }
.mag--whimsy .pg-cover .pg-in { background: var(--w-noise), radial-gradient(circle, rgba(90,60,30,.18) .13cqw, transparent .17cqw) 0 0 / 3.6cqw 3.6cqw, linear-gradient(170deg, #fbf3e3, #f1e3c8); }
.mag--whimsy .cv-scrim { display: none; }
.mag--whimsy .cv-issue { font-family: var(--f-ui); border-bottom: .2cqw dashed currentColor; }
.mag--whimsy .cv-mast { margin-top: 2.6cqw; line-height: 1; }
.mag--whimsy .ml {
  padding: .02em .07em .06em; margin: 0 .012em; line-height: .92;
  box-shadow: .08em .1em 0 rgba(0,0,0,.14);
}
.mag--whimsy .ml-0 { background: var(--m-accent); color: #fff; font-family: "Fraunces", serif; font-weight: 900; transform: rotate(-4deg); }
.mag--whimsy .ml-1 { background: #fffdf8; color: var(--m-ink); font-family: "Bodoni Moda", serif; font-style: italic; font-weight: 800; transform: rotate(3deg) translateY(.04em); }
.mag--whimsy .ml-2 { background: var(--w-mustard); color: var(--m-ink); font-family: "Courier Prime", monospace; font-weight: 700; transform: rotate(-2deg); }
.mag--whimsy .ml-3 { background: var(--m-ink); color: #f8f2e4; font-family: "Fraunces", serif; font-weight: 300; font-style: italic; transform: rotate(5deg) translateY(-.03em); }
.mag--whimsy .ml-4 { background: var(--w-sage); color: var(--m-ink); font-family: "Caveat", cursive; font-weight: 700; font-size: 1.12em; line-height: .82; transform: rotate(-3deg); }
.mag--whimsy .ml-5 { background: var(--w-sky); color: var(--m-ink); font-family: "Fraunces", serif; font-weight: 600; transform: rotate(2deg) translateY(.05em); }
.mag--whimsy .cv-photo:not(.cv-photo--none) {
  inset: auto; left: 11cqw; right: 13cqw; top: 33cqw; bottom: 27cqw;
  padding: 2.2cqw 2.2cqw 8cqw; transform: rotate(-2.4deg);
}
.mag--whimsy .cv-photo::before { top: -1.8cqw; left: 20%; width: 15cqw; transform: translateX(-50%) rotate(-8deg); }
.mag--whimsy .cv-photo::after {
  content: ""; position: absolute; top: -1.4cqw; right: -3cqw; width: 14cqw; height: 3.4cqw; transform: rotate(38deg);
  background: rgba(156,194,230,.85); mix-blend-mode: multiply;
  clip-path: polygon(3% 0, 97% 0, 100% 30%, 97% 60%, 100% 100%, 3% 100%, 0 70%, 3% 40%, 0 0);
}
.mag--whimsy .cv-photo--none { display: none; }
.mag--whimsy .cv-lead {
  left: 4cqw; bottom: 9cqw; width: 26cqw; height: 26cqw; border-radius: 50%; padding: 3cqw;
  background: var(--w-mustard); color: var(--m-ink); transform: rotate(-9deg);
  grid-template-columns: 1fr; justify-items: center; align-content: center; text-align: center; row-gap: .4cqw;
  box-shadow: .3cqw .5cqw 0 rgba(0,0,0,.12);
}
.mag--whimsy .cv-lead-k { font: 700 1.3cqw/1 var(--f-ui); }
.mag--whimsy .cv-lead-n { font: 900 11cqw/.8 var(--f-head); color: var(--m-accent); }
.mag--whimsy .cv-lead-t { font: 700 2.6cqw/.95 var(--f-hand); padding: 0; }
.mag--whimsy .cv-lines {
  left: auto; right: 4cqw; bottom: 4cqw; width: 50cqw; gap: 1.5cqw;
  background: #fffdf8; padding: 2.6cqw 3cqw 2.8cqw; transform: rotate(1.6deg);
  clip-path: var(--torn);
}
.mag--whimsy .cl-k { font: 700 1.25cqw/1.2 var(--f-ui); letter-spacing: .1em; }
.mag--whimsy .cl-s { font: 700 2.5cqw/1 var(--f-hand); color: var(--m-accent); }
.mag--whimsy .cv-badge {
  top: 27cqw; right: 5cqw; width: 18cqw; height: 18cqw; border-radius: 0; transform: rotate(14deg);
  background: var(--w-pink); color: var(--m-ink);
  clip-path: polygon(50% 0, 61% 12%, 76% 6%, 79% 22%, 95% 25%, 89% 40%, 100% 52%, 88% 62%, 93% 78%, 77% 80%, 72% 96%, 58% 89%, 45% 100%, 36% 87%, 20% 93%, 18% 77%, 3% 72%, 11% 58%, 0 46%, 12% 36%, 6% 20%, 22% 18%, 27% 3%, 41% 11%);
  font-family: var(--f-ui);
}
.mag--whimsy .cv-badge b { font: 700 3.6cqw/1 var(--f-hand); }
.mag--whimsy .cv-code { left: 4.5cqw; right: auto; bottom: auto; top: 22cqw; width: 12cqw; transform: rotate(-6deg); display: none; }
.mag--whimsy .cv-code { display: block; top: auto; bottom: 3.4cqw; left: auto; right: 59cqw; width: 11cqw; transform: rotate(4deg); }

/* ---------- содержание + письмо редактора на рваном листе ---------- */
.mag--whimsy .ed-head { border-bottom: .25cqw dashed var(--m-ink); }
.mag--whimsy .ed-title { font: 900 15cqw/.85 var(--f-head); letter-spacing: -.04em; }
.mag--whimsy .toc-i { border-bottom: 1px dashed var(--m-rule); }
.mag--whimsy .toc-n {
  width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center;
  font: 700 .9em/1 var(--f-ui); background: var(--w-mustard); color: var(--m-ink);
}
.mag--whimsy .toc-i:nth-child(3n+2) .toc-n { background: var(--w-sky); }
.mag--whimsy .toc-i:nth-child(3n) .toc-n { background: var(--w-pink); }
.mag--whimsy .toc-t { font: 700 1.25em/1.05 var(--f-head); }
.mag--whimsy .toc-d { font: 700 .95em/1 var(--f-hand); letter-spacing: 0; color: var(--m-ink2); }
.mag--whimsy .ed-letter {
  border: 0; padding: 4cqw 3.4cqw; background: #fffdf8; align-self: start;
  clip-path: var(--torn); transform: rotate(1.4deg);
}
.mag--whimsy .ed-first { font-family: var(--f-hand); font-style: normal; font-weight: 700; font-size: 1.55em; line-height: 1.05; }
.mag--whimsy .ed-sign { color: var(--m-accent); }

/* ---------- главная история ---------- */
.mag--whimsy .st-hero { margin: -3cqw 2cqw 0; height: 56cqw; transform: rotate(-1.2deg); }
.mag--whimsy .pg-story.has-hero .rh { color: var(--m-ink2); text-shadow: none; }
.mag--whimsy .st-pull {
  top: 46cqw; right: 5cqw; width: 34cqw; background: var(--w-mustard); padding: 3cqw;
  font: 700 3.2cqw/1 var(--f-hand); transform: rotate(3deg); clip-path: var(--torn);
}
.mag--whimsy .st-body { font-variation-settings: "opsz" 12; }

/* ---------- интервью: полароид + заметка ---------- */
.mag--whimsy .iv-photo { margin: 2cqw 0 22cqw 0; transform: rotate(-3deg); }
.mag--whimsy .pg-interview.has-photo.is-left .rh-a,
.mag--whimsy .pg-interview.has-photo .folio, .mag--whimsy .pg-interview.has-photo .folio-n { color: var(--m-ink2); text-shadow: none; }
.mag--whimsy .iv-pull {
  left: 6cqw; bottom: 9cqw; width: 34cqw; padding: 3.4cqw; background: var(--w-pink);
  font: 700 3.3cqw/1 var(--f-hand); transform: rotate(-2deg); clip-path: var(--torn);
}
.mag--whimsy .qa dt { font: 700 .66em/1.3 var(--f-ui); color: var(--m-accent); }
.mag--whimsy .iv-dek, .mag--whimsy .st-dek, .mag--whimsy .rs-dek, .mag--whimsy .dc-dek, .mag--whimsy .vc-dek {
  font: 700 2.4cqw/1.15 var(--f-hand); color: var(--m-ink2);
}

/* ---------- причины: номера-стикеры ---------- */
.mag--whimsy .rs-head { border-bottom: .25cqw dashed var(--m-ink); }
.mag--whimsy .rs-num {
  font: 900 30cqw/.8 var(--f-head); color: var(--m-accent);
  text-shadow: 1.2cqw 1.2cqw 0 var(--w-mustard); transform: rotate(-6deg);
}
.mag--whimsy .rs-list { column-rule: 1px dashed var(--m-rule); }
.mag--whimsy .rs-n {
  width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center;
  font: 700 .8em/1 var(--f-ui); background: var(--w-sky); color: var(--m-ink); transform: rotate(-8deg);
}
.mag--whimsy .rs-i:nth-child(3n+2) .rs-n { background: var(--w-pink); transform: rotate(6deg); }
.mag--whimsy .rs-i:nth-child(3n) .rs-n { background: var(--w-mustard); }
.mag--whimsy .rs-h { font-weight: 700; font-family: var(--f-head); }
.mag--whimsy .rs-s { font: 700 1.25em/1.05 var(--f-hand); font-style: normal; }
.mag--whimsy .rs-by { font-family: var(--f-ui); }

/* ---------- currently obsessed: карточки-каталожки ---------- */
.mag--whimsy .ob-grid { border: 0; gap: 3cqw; padding-top: 1cqw; }
.mag--whimsy .ob-card, .mag--whimsy .ob-card:nth-child(even) {
  border: 0; padding: 3cqw; background:
    linear-gradient(var(--m-accent), var(--m-accent)) 0 6.2cqw / 100% .15cqw no-repeat,
    repeating-linear-gradient(transparent 0 3.4cqw, #c9dcef 3.4cqw calc(3.4cqw + 1px)) 0 6.2cqw / 100% 100% no-repeat,
    #fffdf8;
  box-shadow: 0 1cqw 2cqw -1cqw rgba(60,40,20,.4);
}
.mag--whimsy .ob-card:nth-child(1) { transform: rotate(-1.6deg); }
.mag--whimsy .ob-card:nth-child(2) { transform: rotate(1.8deg); }
.mag--whimsy .ob-card:nth-child(3) { transform: rotate(1.2deg); }
.mag--whimsy .ob-card:nth-child(4) { transform: rotate(-2deg); }
.mag--whimsy .ob-card::before {
  content: ""; position: absolute; top: -1.4cqw; left: 40%; width: 10cqw; height: 2.8cqw; transform: rotate(-3deg);
  background: rgba(245,185,196,.85); mix-blend-mode: multiply;
}
.mag--whimsy .ob-card:nth-child(even)::before { background: rgba(242,177,52,.8); transform: rotate(4deg); }
.mag--whimsy .ob-no { font: 900 9cqw/1 var(--f-head); color: rgba(226,85,63,.16); right: 2cqw !important; }
.mag--whimsy .ob-k { font-family: var(--f-ui); }
.mag--whimsy .ob-v { font: 700 4.4cqw/1.02 var(--f-hand); }
.mag--whimsy .ico { color: var(--m-accent); }
.mag--whimsy .ob-chart li { border-bottom: 1px dashed var(--m-rule); }
.mag--whimsy .ob-cn { font: 700 3cqw/1 var(--f-hand); }

/* ---------- в цифрах: крафт + риографический сдвиг ---------- */
.mag--whimsy .pg-numbers .pg-in { background: var(--w-noise), linear-gradient(160deg, #d3b386, #bf9a6a); }
.mag--whimsy .pg-numbers .kicker { background: var(--m-ink); color: #f8f2e4; }
.mag--whimsy .nb { border-top: .25cqw dashed currentColor; }
.mag--whimsy .nb-v { font-weight: 900; color: #fffdf8; text-shadow: .7cqw .7cqw 0 var(--m-accent); letter-spacing: -.04em; }
.mag--whimsy .nb-0 .nb-l { font: 700 4.2cqw/1 var(--f-hand); }
.mag--whimsy .nb-bar { height: 1.2cqw; border-radius: 99px; background: rgba(255,255,255,.45); overflow: hidden; }
.mag--whimsy .nb-bar > span { border-radius: 99px; }
.mag--whimsy .nb-note { font: 700 2.2cqw/1.1 var(--f-hand); opacity: .85; }

/* ---------- таймлайн: пунктир-«верёвочка» ---------- */
.mag--whimsy .tl::before { width: 0; border-left: .3cqw dashed var(--m-ink2); background: none; }
.mag--whimsy .tl-i::after { border: 0; background: var(--m-accent); width: 2.4cqw; height: 2.4cqw; clip-path: polygon(50% 100%, 0 38%, 12% 8%, 35% 4%, 50% 22%, 65% 4%, 88% 8%, 100% 38%); border-radius: 0; }
.mag--whimsy .tl-cap { font-family: var(--f-ui); }
.mag--whimsy .tl-cap b { font: 700 3.4cqw/1 var(--f-hand); color: var(--m-accent); }

/* ---------- друзья: стикеры-записки 2×2 ---------- */
.mag--whimsy .fr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4cqw; align-content: start; padding-top: 1cqw; }
.mag--whimsy .fr-list.n-1 { grid-template-columns: 1fr; }
.mag--whimsy .fr, .mag--whimsy .fr:first-child {
  display: flex; flex-direction: column; border: 0; padding: 2.6cqw 2.6cqw 2.4cqw;
  background: #fff3a8; box-shadow: 0 1.2cqw 1.6cqw -1cqw rgba(60,40,20,.45);
}
.mag--whimsy .fr-1 { background: #ffd3dc; transform: rotate(2deg); }
.mag--whimsy .fr-0 { transform: rotate(-2deg); }
.mag--whimsy .fr-2 { background: #cfe6c8; transform: rotate(1.2deg); }
.mag--whimsy .fr-3 { background: #cde0f4; transform: rotate(-1.4deg); }
.mag--whimsy .fr-word { font: 700 2.7em/.95 var(--f-hand); letter-spacing: 0; color: var(--m-accent); margin-bottom: .3em; }
.mag--whimsy .fr-moment { font-style: normal; font-size: .95em; }
.mag--whimsy .fr-by { font-family: var(--f-ui); margin-top: auto; padding-top: .9em; }

/* ---------- моменты: коллаж ---------- */
.mag--whimsy .mo-grid { gap: 3.6cqw; padding: 1cqw; }
.mag--whimsy .mo-title { font: 900 11cqw/.85 var(--f-head); font-style: normal; letter-spacing: -.04em; }

/* ---------- словарь: маркер по заглавным словам ---------- */
.mag--whimsy .dc-guide { font-family: var(--f-ui); border-top: .25cqw dashed var(--m-ink); border-bottom: .25cqw dashed var(--m-ink); }
.mag--whimsy .dc-hw { font-weight: 800; background: linear-gradient(transparent 55%, rgba(242,177,52,.6) 55% 92%, transparent 92%); padding: 0 .1em; }
.mag--whimsy .dc-e:nth-child(3n+2) .dc-hw { background: linear-gradient(transparent 55%, rgba(245,185,196,.75) 55% 92%, transparent 92%); }
.mag--whimsy .dc-e:nth-child(3n) .dc-hw { background: linear-gradient(transparent 55%, rgba(156,194,230,.7) 55% 92%, transparent 92%); }
.mag--whimsy .dc-cols { column-rule: 1px dashed var(--m-rule); }
.mag--whimsy .dc-joke { background: #fffdf8; padding: 1em; transform: rotate(-1deg); clip-path: var(--torn); }

/* ---------- прогнозы: горчичная бумага в горох ---------- */
.mag--whimsy .pg-predictions { background: var(--w-mustard); color: var(--m-ink); }
.mag--whimsy .pg-predictions .pg-in { background: var(--w-noise), radial-gradient(circle, rgba(255,255,255,.35) .5cqw, transparent .55cqw) 0 0 / 5cqw 5cqw; }
.mag--whimsy .pg-predictions .rh, .mag--whimsy .pg-predictions .folio, .mag--whimsy .pg-predictions .folio-n { color: var(--m-ink); }
.mag--whimsy .pg-predictions .kicker { color: var(--m-paper); }
.mag--whimsy .pd-title em { color: #fffdf8; }
.mag--whimsy .sb-st { border-color: var(--m-accent); color: var(--m-accent); }
.mag--whimsy .sb-p { font-family: var(--f-hand); font-size: 1.5em; line-height: 1.05; font-weight: 700; }

/* ---------- разворот: полароид на крафте ---------- */
.mag--whimsy .pg-unfPhoto { background: var(--w-kraft); color: var(--m-ink); }
.mag--whimsy .pg-unfPhoto .pg-in { background: var(--w-noise), linear-gradient(160deg, #d3b386, #bf9a6a); }
.mag--whimsy .pg-unfPhoto .pg-in::after { display: none; }
.mag--whimsy .uf-photo { inset: 10cqw 9cqw 30cqw 9cqw; padding: 2cqw 2cqw 2cqw; transform: rotate(2deg); }
.mag--whimsy .uf-tag { color: var(--m-ink); bottom: 11cqw; }
.mag--whimsy .uf-tag b { font: 700 6.4cqw/1 var(--f-hand); transform: rotate(-2deg); margin-bottom: 1.2cqw; }
.mag--whimsy .uf-tag .kicker { color: var(--m-paper); }
.mag--whimsy .pg-unfPhoto .folio, .mag--whimsy .pg-unfPhoto .folio-n { color: var(--m-ink); }
.mag--whimsy .pg-unfQuote .pg-in { background: var(--w-noise), linear-gradient(160deg, #d3b386, #bf9a6a); }
.mag--whimsy .uf-q {
  background: #fffdf8; padding: 1em 1.1em 1.2em; clip-path: var(--torn); transform: rotate(-1.2deg);
  font: 700 calc(var(--fs) * var(--fit, 1))/1.08 var(--f-hand); --fs: 4.4cqw; align-self: start; max-height: 100%;
}
.mag--whimsy .uf-mark { font: 900 30cqw/.6 var(--f-head); color: var(--m-accent); height: 12cqw; }
.mag--whimsy .uf-by { font-family: var(--f-ui); }

/* ---------- письмо: тетрадный лист с рваным верхом ---------- */
.mag--whimsy .lt-paper {
  background: #fffdf8; padding: 4.4cqw 4cqw 3cqw 9cqw; position: relative;
  clip-path: var(--torn-top); box-shadow: 0 1cqw 2cqw rgba(0,0,0,.1);
}
.mag--whimsy .lt-paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: 6.4cqw; width: .18cqw; background: #e79a9a; }
.mag--whimsy .lt-body {
  font-family: var(--f-hand); font-weight: 500; --fs: 3.3cqw; line-height: 1.3;
  background: repeating-linear-gradient(transparent 0 calc(1.3em - 1px), #bcd2ea calc(1.3em - 1px) 1.3em);
}
.mag--whimsy .lt-body p + p { margin-top: 1.3em; }
.mag--whimsy .letter--type .lt-body { font-family: var(--f-body); line-height: 1.5; background: none; }

/* ---------- голоса: QR на карточке со скотчем ---------- */
.mag--whimsy .vc-qr { position: relative; transform: rotate(-2deg); border: 0; box-shadow: 0 1.4cqw 2.4cqw -1cqw rgba(60,40,20,.4); }
.mag--whimsy .vc-qr::before {
  content: ""; position: absolute; top: -1.6cqw; left: 50%; width: 14cqw; height: 3.2cqw; transform: translateX(-50%) rotate(3deg);
  background: rgba(169,195,162,.85); mix-blend-mode: multiply;
}
.mag--whimsy .vc-wave { fill: var(--m-accent); }
.mag--whimsy .vc-url { font-family: var(--f-ui); }

/* ---------- чаты: вырезанные «пузыри» ---------- */
.mag--whimsy .pg-chats .pg-in { background: var(--w-noise), radial-gradient(circle, rgba(90,60,30,.16) .13cqw, transparent .17cqw) 0 0 / 3.6cqw 3.6cqw, #fbe9e6; }
.mag--whimsy .ch-head { border-bottom: .25cqw dashed var(--m-ink); }
.mag--whimsy .bub { background: #fffdf8; box-shadow: .3cqw .4cqw 0 rgba(0,0,0,.12); font-family: var(--f-hand) !important; font-weight: 700; font-style: normal !important; }
.mag--whimsy .is-mine > .bub, .mag--whimsy .bub.is-mine { background: var(--m-accent); }
.mag--whimsy .ch-msg:nth-child(odd) .bub { transform: rotate(-1.5deg); }
.mag--whimsy .ch-msg:nth-child(even) .bub { transform: rotate(1.6deg); }
.mag--whimsy .bub--first { transform: rotate(-1deg); font-size: 5cqw; }
.mag--whimsy .ch-k, .mag--whimsy .ch-meta { font-family: var(--f-ui); }

/* ---------- задняя обложка ---------- */
.mag--whimsy .bk-photo { margin: 2cqw 12cqw 6cqw; transform: rotate(-3deg); }
.mag--whimsy .bk-big { font: 900 9cqw/.9 var(--f-head); letter-spacing: -.03em; }
.mag--whimsy .bk-big em { font-family: var(--f-hand); font-weight: 700; color: var(--m-accent); font-size: 1.25em; }
.mag--whimsy .bk-foot { border-top: .25cqw dashed var(--m-ink); }
.mag--whimsy .bk-meta b { font: 700 5cqw/1 var(--f-hand); }
.mag--whimsy .pg-back .barcode { background: #fff; padding: .8cqw; transform: rotate(3deg); }

/* ---------- карточка «добавь слова» ---------- */
.mag--whimsy .ms-card { background: #fff3a8; border: 0; transform: rotate(-1.5deg); box-shadow: 0 1.4cqw 2cqw -1cqw rgba(60,40,20,.45); }
.mag--whimsy .ms-t { font: 700 5.6cqw/1 var(--f-hand); }
