/* love story · the album creator: the interface, then the page templates (drawn after the sample album). */

/* ========== the interface ========== */
.mk { background: var(--bg); min-height: 100svh; }
.mk-main > [hidden] { display: none !important; }
.mk-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding-inline: var(--gut);
  background: rgb(247 242 235 / 0.94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mk-bar__progress { position: absolute; inset: auto 0 -1px 0; height: 2px; }
.mk-bar__progress span { display: block; height: 100%; background: var(--accent); transform-origin: 100% 50%; transform: scaleX(0); transition: transform 500ms var(--ease-out); }
.mk-bar__step { font-weight: 600; font-size: 15px; margin-inline-start: auto; }
.mk-bar__saved { font-size: 13px; color: var(--muted); }
.mk-main { padding: 40px var(--gut) 64px; }
.mk-lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.6; max-width: 40rem; }
.mk-muted { color: var(--muted); font-weight: 400; }
.mk-small { font-size: 13px; }

/* intro */
.mk-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; max-width: 1320px; margin: 0 auto; min-height: calc(100svh - 170px); }
.mk-intro__text { display: grid; gap: 28px; justify-items: start; }
.mk-intro h1 { font-size: clamp(56px, 4vw + 24px, 104px); }
.mk-how { display: grid; gap: 14px; }
.mk-how li { display: grid; gap: 2px; padding-inline-start: 18px; border-inline-start: 2px solid var(--accent); }
.mk-how b { font-weight: 600; }
.mk-how span { color: var(--ink-2); }
.mk-intro__art { position: relative; aspect-ratio: 1; }
.mk-intro__art img { position: absolute; width: 52%; border-radius: 3px; box-shadow: var(--shadow-book); }
.mk-intro__art img:nth-child(1) { inset: 6% 6% auto auto; transform: rotate(4deg); z-index: 3; }
.mk-intro__art img:nth-child(2) { inset: 18% auto auto 26%; transform: rotate(-6deg); z-index: 2; }
.mk-intro__art img:nth-child(3) { inset: 2% auto auto 0; transform: rotate(-12deg); }

/* fields */
.mk-field { display: grid; gap: 8px; width: 100%; }
.mk-field label, .mk-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.mk-field input[type="text"], .mk-field input[type="date"], .mk-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 16px/1.5 var(--f-text); color: var(--ink);
  background: var(--surface); border: 1px solid rgb(28 23 21 / 0.22); border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.mk-field textarea { resize: vertical; min-height: 140px; }
.mk-field input:focus-visible, .mk-field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(163 22 26 / 0.15); }
.mk-field input::placeholder, .mk-field textarea::placeholder { color: #9a8f87; }
.mk-count { font-size: 12px; color: var(--muted); text-align: end; }
.mk-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.mk-toggle input { width: 20px; height: 20px; accent-color: var(--accent); }

/* the editor */
.mk-edit {
  display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 56px;
  max-width: 1440px; margin: 0 auto;
  grid-template-areas: "panel stage" "strip strip";
}
.mk-stage { grid-area: stage; position: sticky; top: 88px; align-self: start; }
.mk-stage__pages { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; align-items: start; }
.mk-preview, .mk-sample { margin: 0; display: grid; gap: 10px; }
.mk-preview figcaption, .mk-sample figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.mk-preview__page { width: min(100%, calc((100svh - 220px) * 0.75)); justify-self: center; }
.mk-preview__page > .pg { box-shadow: var(--shadow-book); border-radius: 3px; }
.mk-sample img { width: 100%; border-radius: 3px; box-shadow: var(--shadow-page); opacity: 0.95; }
.mk-hint { color: var(--muted); }
.mk-panel { grid-area: panel; display: grid; gap: 14px; align-content: start; }
.mk-panel__num { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.mk-panel__name { font-size: clamp(48px, 2vw + 28px, 68px); }
.mk-panel__tip { color: var(--ink-2); font-size: 17px; }
.mk-form { display: grid; gap: 22px; margin-top: 10px; }
.mk-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.mk-nav .btn:disabled { opacity: 0.4; cursor: default; }

.mk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.mk-slot { position: relative; aspect-ratio: 1; }
.mk-slot__pick {
  width: 100%; height: 100%; padding: 0; overflow: hidden; position: relative;
  border: 1.5px dashed rgb(28 23 21 / 0.3); border-radius: 8px; background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--accent); font-size: 28px; line-height: 1;
  transition: border-color 160ms ease, transform 160ms var(--ease-out);
}
.mk-slot__pick:active { transform: scale(0.97); }
.mk-slot.has .mk-slot__pick { border-style: solid; border-color: transparent; }
.mk-slot__pick img { width: 100%; height: 100%; object-fit: cover; }
.mk-slot__pick small { position: absolute; bottom: 4px; inset-inline-start: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.mk-slot.has small { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }
.mk-slot__del {
  position: absolute; top: -8px; inset-inline-end: -8px; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--bg); font-size: 18px; line-height: 1; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .mk-slot__pick:hover { border-color: var(--accent); } }

.mk-chat { display: grid; gap: 10px; }
.mk-chat li { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: #ece9e4; width: 88%; }
.mk-chat li.is-me { background: #ddd7cf; margin-inline-start: auto; }
.mk-chat textarea { min-height: 56px !important; }
.mk-chat__tools { display: flex; gap: 8px; }
.mk-chip { min-height: 32px; padding: 0 12px; border: 1px solid rgb(28 23 21 / 0.2); border-radius: 999px; background: var(--surface); font-size: 13px; cursor: pointer; }

.mk-strip { grid-area: strip; overflow-x: auto; padding-block: 8px 4px; border-top: 1px solid var(--line); }
.mk-strip ol { display: flex; gap: 10px; padding-top: 16px; }
.mk-strip button {
  position: relative; display: grid; gap: 4px; justify-items: center; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.mk-strip img { width: 56px; height: auto; border-radius: 2px; box-shadow: var(--shadow-page); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 160ms ease, transform 200ms var(--ease-out); }
.mk-strip button.is-done span::after { content: " ✓"; color: #2f7a3a; }
.mk-strip button.is-cur img { outline-color: var(--accent); transform: translateY(-3px); }
.mk-strip button.is-cur span { color: var(--accent); }
.mk-strip__end { width: 64px; height: 75px; border-radius: 4px !important; background: var(--accent) !important; color: #fff !important; font-size: 12px; line-height: 1.3; }

/* review */
.mk-review { max-width: 1320px; margin: 0 auto; display: grid; gap: 48px; }
.mk-review__head { display: grid; gap: 22px; justify-items: start; }
.mk-review h1 { font-size: clamp(52px, 3vw + 26px, 92px); }
.mk-send { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
.mk-send li { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mk-send b { font-size: 19px; font-weight: 600; }
.mk-send span { color: var(--ink-2); }
.mk-back { background: none; border: 0; font: 500 16px var(--f-text); padding: 10px 0; cursor: pointer; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.mk-grid button { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: start; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.mk-grid button > .pg { box-shadow: var(--shadow-page); border-radius: 2px; transition: transform 240ms var(--ease-out); }
.mk-grid em { font-style: normal; color: var(--accent); font-size: 12px; }
@media (hover: hover) and (pointer: fine) { .mk-grid button:hover > .pg { transform: translateY(-4px); } }

@media (max-width: 1023px) {
  .mk-intro { grid-template-columns: 1fr; min-height: 0; }
  .mk-intro__art { max-width: 420px; width: 80%; justify-self: center; order: -1; }
  .mk-edit { grid-template-columns: 1fr; grid-template-areas: "stage" "panel" "strip"; gap: 28px; }
  .mk-stage { position: static; }
  .mk-preview__page { width: min(100%, 460px); }
  .mk-send { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .mk-bar { gap: 12px; height: 56px; }
  .mk-bar__saved { display: none; }
  .mk-bar__step { font-size: 13px; }
  .mk-main { padding-top: 24px; }
  .mk-stage__pages { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; }
  .mk-nav .btn { flex: 1; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========== the pages (container units: 1cqw = 1% of the page's width) ========== */
.pg {
  --pf-serif: "Bellefair", "Frank Ruhl Libre", serif;
  --pf-script: "Great Vibes", "Playpen Sans Hebrew", cursive;
  --pf-bold: "Bebas Neue", "Karantina", sans-serif;
  --pf-hand: "Playpen Sans Hebrew", "Assistant", cursive;
  --red: #b3141b;
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 210 / 280;
  container-type: inline-size;
  background: #fff; color: #161414;
  font-family: var(--f-text); direction: ltr;
  user-select: none;
}
.pg * { box-sizing: border-box; }
.ph { position: absolute; overflow: hidden; background: #e9e5df; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: auto; cursor: grab; }
.ph.is-panning img { cursor: grabbing; }
.ph--empty { background: repeating-linear-gradient(135deg, #efebe5 0 6px, #e7e2db 6px 12px); cursor: pointer; }
.ph__hint { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #a3161a; font: 600 6cqw/1 var(--f-text); }
.ph__hint small { font-size: 2.4cqw; color: #8d827a; font-weight: 500; margin-top: 1cqw; }
.mk-print .ph--empty, .mk-grid .ph--empty { background: #efebe5; }
.pg-ghost { color: #b7aea6; }
.pg [dir], .pg-story__text, .pg-red__text, .pg-letter__text, .msg__b { unicode-bidi: plaintext; }
.pg-brush { position: absolute; background: var(--red); width: 34cqw; height: 22cqw; clip-path: polygon(0 18%, 22% 6%, 48% 14%, 71% 0, 100% 9%, 96% 38%, 100% 64%, 78% 92%, 52% 84%, 30% 100%, 8% 86%, 3% 55%); opacity: 0.95; }
.pg-brush--bl { left: -6cqw; bottom: -4cqw; transform: rotate(-24deg); }
.pg-brush--tr { right: -8cqw; top: -6cqw; transform: rotate(18deg); }
.pg-brush--tl { left: -10cqw; top: -8cqw; transform: rotate(-12deg) scale(0.8); }

/* 1 cover */
.pg-cover__title { position: absolute; top: 6.5cqw; inset-inline: 0; text-align: center; font: 11.5cqw/1 var(--pf-serif); letter-spacing: 0.02em; }
.pg-cover__ph { left: 15%; top: 20.5%; width: 70%; height: 58%; }
.pg-cover__ph.is-bw img { filter: grayscale(1) contrast(1.05); }
.pg-cover__names { position: absolute; bottom: 7cqw; inset-inline: 0; text-align: center; font: 7.5cqw/1 var(--pf-script); }

/* 2 dedication */
.pg-ded__small { position: absolute; top: 44%; inset-inline: 0; text-align: center; font: 5cqw/1 var(--pf-script); }
.pg-ded__date { position: absolute; bottom: 7cqw; inset-inline: 0; text-align: center; font: 500 3cqw/1 var(--f-text); letter-spacing: 0.2em; }

/* 3 chat */
.pg--chat { background: #f5f5f3; }
.pg-chat__head { position: absolute; top: 4cqw; right: 8cqw; display: grid; justify-items: end; line-height: 0.9; }
.pg-chat__head .a { font: 5.5cqw/1 var(--pf-serif); color: #555; letter-spacing: 0.04em; }
.pg-chat__head .b { font: 12cqw/0.9 var(--pf-bold); color: var(--red); }
.pg-chat__head .c { font: 9cqw/0.9 var(--pf-bold); color: #111; }
.pg-chat__msgs { position: absolute; top: 30cqw; inset-inline: 12cqw; bottom: 6cqw; display: flex; flex-direction: column; gap: 2.2cqw; overflow: hidden; }
.msg { display: flex; align-items: flex-end; gap: 1.8cqw; }
.msg--me { justify-content: flex-end; }
.msg__av { width: 4.2cqw; height: 4.2cqw; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #777 0 28%, #333 30%); flex: none; }
.msg__b { max-width: 68%; padding: 1.6cqw 2.6cqw; border-radius: 3cqw; font: 500 2.7cqw/1.35 var(--f-text); direction: rtl; text-align: right; }
.msg--them .msg__b { background: #e2e2e0; color: #222; }
.msg--me .msg__b { background: #6b6b6b; color: #fff; }

/* 4 calendar */
.pg-cal__paper { position: absolute; left: 42%; top: 0; bottom: 0; width: 44%; background: #fbf8e9; }
.pg-cal__title { position: absolute; top: 22cqw; inset-inline: 10cqw; text-align: center; font: 7.6cqw/1.05 var(--pf-serif); }
.pg-cal__sub { position: absolute; top: 40cqw; inset-inline: 0; text-align: center; font: 6cqw/1 var(--pf-script); color: var(--red); }
.pg-cal__grid { position: absolute; top: 54cqw; inset-inline: 12cqw; display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3.6cqw; text-align: center; font: 2.4cqw/1 var(--f-text); }
.pg-cal__grid b { font-weight: 600; }
.pg-cal__grid .is-day { position: relative; }
.pg-cal__grid .is-day::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6.4cqw; height: 5.4cqw; border: 0.35cqw solid var(--red); border-radius: 50%; transform: translate(-50%, -50%) rotate(-8deg); }

/* 5 story with film strip */
.pg-story__head { position: absolute; top: 4cqw; left: 6cqw; right: 6cqw; }
.pg-story__head .a { font: 9cqw/1 var(--pf-serif); letter-spacing: 0.02em; }
.pg-story__head .b { font: 11cqw/1 var(--pf-script); color: var(--red); margin-inline-start: -2cqw; position: relative; top: 2.5cqw; }
.pg-story__text { position: absolute; top: 18cqw; inset-inline: 6cqw; height: 58cqw; overflow: hidden; direction: rtl; text-align: right; font: 2.55cqw/1.55 var(--pf-hand); }
.pg-film { position: absolute; left: 0; right: 0; bottom: 3cqw; height: 50cqw; background: #111; }
.pg-film::before, .pg-film::after { content: ""; position: absolute; left: 0; right: 0; height: 5cqw; background: repeating-linear-gradient(90deg, transparent 0 2cqw, #f4f4f4 2cqw 5.6cqw, transparent 5.6cqw 7.4cqw); background-size: 7.4cqw 3cqw; background-repeat: repeat-x; background-position: 0 50%; z-index: 1; }
.pg-film::before { top: 0; } .pg-film::after { bottom: 0; }
.pg-film .ph { left: 0; right: 0; top: 6cqw; bottom: 6cqw; }

/* 6 red text */
.pg--redtext { background: var(--red); color: #fff; }
.pg-red__head { position: absolute; top: 6cqw; left: 8cqw; right: 8cqw; text-align: center; line-height: 0.9; }
.pg-red__head .a { display: block; font: 12cqw/0.8 var(--pf-script); text-align: left; padding-left: 4cqw; }
.pg-red__head .b { display: block; font: 12cqw/0.95 var(--pf-bold); letter-spacing: 0.02em; }
.pg-red__text { position: absolute; top: 40cqw; inset-inline: 8cqw; bottom: 16cqw; overflow: hidden; direction: rtl; text-align: center; font: 2.7cqw/1.6 var(--pf-hand); }
.pg-red__text .pg-ghost { color: rgb(255 255 255 / 0.55); }
.pg-red__date { position: absolute; bottom: 7cqw; right: 10cqw; font: 5cqw/1 var(--pf-bold); letter-spacing: 0.04em; }

/* 7 collage on red */
.pg--collage { background: #a8151b; }
.tp { position: absolute; background: #fff; padding: 1.2cqw; box-shadow: 0 1cqw 2.4cqw rgb(0 0 0 / 0.35); }
.tp .ph { position: relative; width: 100%; height: 100%; }
.tp .tape, .pol .tape { position: absolute; width: 14cqw; height: 4.4cqw; background: rgb(238 226 196 / 0.86); top: -2cqw; left: 50%; transform: translateX(-50%) rotate(-4deg); box-shadow: 0 0.3cqw 0.6cqw rgb(0 0 0 / 0.12); }
.tp--0 { left: 5cqw; top: 6cqw; width: 46cqw; height: 52cqw; transform: rotate(-5deg); }
.tp--1 { right: 6cqw; top: 4cqw; width: 40cqw; height: 50cqw; transform: rotate(6deg); }
.tp--2 { left: 6cqw; top: 64cqw; width: 46cqw; height: 40cqw; transform: rotate(4deg); }
.tp--3 { right: 5cqw; top: 59cqw; width: 40cqw; height: 44cqw; transform: rotate(-7deg); }
.pg-collage__cap { position: absolute; bottom: 6cqw; inset-inline: 10cqw; text-align: center; color: #fff; font: 3.4cqw/1.3 var(--pf-serif); letter-spacing: 0.04em; }
.pg-collage__cap .heart { display: block; font-size: 4cqw; margin-top: 1cqw; }

/* 8 black-and-white collage */
.pg--bwcollage { background: #d6d6d6; }
.bw img { filter: grayscale(1) contrast(1.05); }
.bw--0 { left: 4cqw; top: 4cqw; width: 44cqw; height: 40cqw; }
.bw--1 { right: 4cqw; top: 4cqw; width: 44cqw; height: 40cqw; }
.bw--2 { left: 0; right: 0; top: 47cqw; height: 40cqw; }
.bw--3 { left: 4cqw; bottom: 4cqw; width: 44cqw; height: 40cqw; }
.bw--4 { right: 4cqw; bottom: 4cqw; width: 44cqw; height: 40cqw; }
.pg-bw__cap { position: absolute; top: 61cqw; inset-inline: 0; text-align: center; font: 7cqw/1 var(--pf-script); color: #fff; text-shadow: 0 0.4cqw 1.6cqw rgb(0 0 0 / 0.55); z-index: 2; }

/* 9-10 polaroids */
.pg--polaroid { background: radial-gradient(120% 90% at 30% 20%, #f7f5f0, #e4e0d8); }
.pol { position: absolute; width: 36cqw; height: 42cqw; padding: 2cqw 2cqw 8cqw; background: #fff; box-shadow: 0 0.8cqw 2.4cqw rgb(0 0 0 / 0.25); }
.pol .ph { position: relative; width: 100%; height: 100%; }
.pol--0 { left: 6cqw; top: 6cqw; transform: rotate(-4deg); }
.pol--1 { left: 46cqw; top: 3cqw; transform: rotate(3deg); }
.pol--2 { left: 30cqw; top: 46cqw; transform: rotate(-2deg); z-index: 1; }
.pol--3 { left: 4cqw; top: 86cqw; transform: rotate(5deg); }
.pol--4 { left: 48cqw; top: 88cqw; transform: rotate(-5deg); }
.pol.alt.pol--0 { left: 4cqw; } .pol.alt.pol--2 { left: 22cqw; }
.pg-pol__title { position: absolute; left: 3cqw; top: 50%; transform: translateY(-50%) rotate(-90deg) translateX(-50%); transform-origin: 0 0; font: 15cqw/1 var(--pf-bold); color: var(--red); white-space: nowrap; letter-spacing: 0.02em; z-index: 2; }
.pg-pol__title.is-alt { left: auto; right: -12cqw; transform: translateY(-50%) rotate(-90deg); transform-origin: 50% 50%; top: 66%; }

/* grids */
.pg-grid__cells { position: absolute; inset: 0; display: grid; gap: 1cqw; background: #fff; }
.pg-grid__cells .ph { position: relative; }
.pg-grid__cells.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pg-grid__cells.n6 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.pg--grid-label .pg-grid__label { position: absolute; left: 50%; top: 33.3%; transform: translate(-50%, -50%) rotate(-3deg); padding: 1cqw 3cqw; background: #fff; color: var(--red); font: 6cqw/1 var(--pf-bold); letter-spacing: 0.04em; box-shadow: 0 0.6cqw 1.6cqw rgb(0 0 0 / 0.2); }
.pg--grid-dark { background: #1c1c1c; }
.pg--grid-dark .pg-grid__cells { inset: 14cqw 0 0; background: #1c1c1c; }
.pg-grid__script { position: absolute; top: 3cqw; inset-inline: 0; text-align: center; font: 8cqw/1 var(--pf-script); color: #fff; }
.pg--grid-quote .pg-grid__cells { bottom: 9cqw; }
.pg-grid__quote { position: absolute; bottom: 2.8cqw; inset-inline: 6cqw; text-align: center; font: 3.4cqw/1.2 var(--pf-script); }
.pg--grid-title .pg-grid__cells { top: 0; }
.pg-grid__title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 1.4cqw 3.4cqw; background: rgb(0 0 0 / 0.55); color: #fff; font: 9cqw/1 var(--pf-bold); letter-spacing: 0.06em; white-space: nowrap; }

/* 16 scattered */
.pg--scatter { background: #f2f1ed; }
.pg-scatter__title { position: absolute; top: 4cqw; right: 6cqw; font: 8cqw/0.9 var(--pf-bold); color: var(--red); text-align: right; width: 34cqw; z-index: 2; }
.sc { position: absolute; width: 40cqw; height: 34cqw; padding: 1.4cqw; background: #fff; box-shadow: 0 0.8cqw 2cqw rgb(0 0 0 / 0.22); }
.sc .ph { position: relative; width: 100%; height: 100%; }
.sc--0 { left: 4cqw; top: 6cqw; transform: rotate(-6deg); }
.sc--1 { left: 44cqw; top: 26cqw; transform: rotate(4deg); }
.sc--2 { left: 6cqw; top: 44cqw; transform: rotate(3deg); }
.sc--3 { left: 50cqw; top: 62cqw; transform: rotate(-4deg); }
.sc--4 { left: 3cqw; top: 82cqw; transform: rotate(-3deg); }
.sc--5 { left: 46cqw; top: 98cqw; transform: rotate(5deg); }

/* strips */
.pg-strips__cells { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(3, 1fr); gap: 1.4cqw; padding: 4cqw 4cqw; background: #fff; }
.pg-strips__cells .ph { position: relative; }
.pg--strips-dark .pg-strips__cells { background: #121212; }
.pg--strips .pg-brush--tl { z-index: 2; transform: rotate(-12deg) scale(0.6); }

/* 19 letter */
.pg--letter { background: radial-gradient(120% 100% at 50% 40%, #f4e7d1, #e5cfac); color: #7a1a12; }
.pg-letter__title { position: absolute; top: 8cqw; inset-inline: 0; text-align: center; font: 7cqw/1 var(--pf-script); color: var(--red); }
.pg-letter__meta { position: absolute; top: 20cqw; left: 10cqw; right: 10cqw; display: flex; justify-content: space-between; font: 3.4cqw/1 var(--pf-script); color: var(--red); }
.pg-letter__meta u { text-decoration-thickness: 0.2cqw; text-underline-offset: 1cqw; }
.pg-letter__text { position: absolute; top: 28cqw; inset-inline: 9cqw; bottom: 8cqw; overflow: hidden; direction: rtl; text-align: right; font: 2.5cqw/1.75 var(--pf-hand); }

/* 26 final */
.pg-final__ph { left: 13%; top: 18%; width: 74%; height: 44%; }
.pg-final__text { position: absolute; top: 68%; inset-inline: 0; text-align: center; font: 8.6cqw/1 var(--pf-serif); letter-spacing: 0.04em; }

/* ========== printing: one page per sheet, 21 × 28 cm ========== */
.mk-print { display: none; }
@page { size: 210mm 280mm; margin: 0; }
@media print {
  body.mk > *:not(.mk-print) { display: none !important; }
  body::after { display: none !important; }
  .mk-print { display: block; }
  .mk-print > .pg { width: 210mm; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mk-print .pg-ghost, .mk-print .ph__hint { display: none; }
}
