/* mrdirby.eu — look B, "coffee-shop menu": kraft paper, hand-lettered headings, prices chalked on a
   board, photos pinned up as polaroids, every frame and button drawn by hand (js/sketch.js). */

:root {
  --kraft: #E8D9BF;
  --kraft-deep: #DCC7A3;
  --paper: #FFFCF4;
  --ink: #3A2A1F;
  --muted: #6A5442;
  --teal: #1A6D68;
  --teal-press: #145854;
  --peach: #F4A985;
  --board: #2E3B37;
  --chalk: #F4EEE2;
  --wood: #8A5A3B;
  --ph: #B79E7A;
  --dirt: #8A6A45;
  --water: #9CCBC3;

  --letter: "Amatic SC", "Arial Narrow", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --text: "Nunito", system-ui, sans-serif;

  --h1: clamp(64px, 8.4vw, 140px);
  --h2: clamp(52px, 6vw, 96px);
  --h3: clamp(28px, 2.4vw, 36px);
  --note: clamp(22px, 1.8vw, 28px);
  --body: clamp(17px, 0.95rem + 0.25vw, 19px);
  --small: 15px;

  --gutter: clamp(18px, 4vw, 48px);
  --section: clamp(80px, 10vw, 150px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font-family: var(--text); font-size: var(--body); line-height: 1.55;
  background-color: var(--kraft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.24 0 0 0 0 0.12 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: clip;
}
html, main, footer { overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
::selection { background: var(--peach); color: var(--ink); }

[data-sk] { position: relative; isolation: isolate; }
.rough { position: absolute; left: -24px; top: -24px; z-index: -1; pointer-events: none; overflow: visible; }

.wrap { max-width: 1340px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 10px; }

/* ---------- type ---------- */
.letter { font-family: var(--letter); font-weight: 700; line-height: 0.88; letter-spacing: 0.01em; }
h1.letter { font-size: var(--h1); }
h2.letter { font-size: var(--h2); }
.hand { font-family: var(--hand); }
.note { font-family: var(--hand); font-size: var(--note); line-height: 1.15; }
.t { color: var(--teal); }
.lead { font-size: calc(var(--body) + 3px); max-width: 36ch; }
p { max-width: 64ch; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; font-weight: 700; font-size: 18px; transition: transform 140ms cubic-bezier(.22, 1, .36, 1); }
.btn:active { transform: scale(0.97) rotate(-0.5deg); }
.btn-main { color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: rotate(-1deg) translateY(-1px); } }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.link-hand { font-family: var(--hand); font-size: var(--note); color: var(--teal); display: inline-flex; align-items: center; gap: 10px; }
.link-hand .arrow { width: 54px; height: 22px; display: inline-block; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.mark { font-family: var(--letter); font-weight: 700; font-size: 50px; line-height: 1; letter-spacing: 0.02em; }
.bar nav { display: flex; gap: 30px; font-size: 17px; font-weight: 600; }
.bar nav a { padding: 6px 0; }
.bar nav a[aria-current="page"] { color: var(--teal); }
@media (hover: hover) and (pointer: fine) { .bar nav a:hover { color: var(--teal); } }
.call { min-height: 46px; padding: 0 20px; font-size: 17px; }

/* ---------- pinned things ---------- */
.polaroid { background: var(--paper); padding: 14px 14px 0; transform: rotate(var(--tilt, -2deg)); transition: transform 300ms cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (pointer: fine) { .polaroid:hover { transform: rotate(0deg) scale(1.01); } }
.polaroid figcaption { font-family: var(--hand); font-size: 28px; line-height: 1.1; padding: 8px 4px 12px; }
.ph { aspect-ratio: var(--ratio, 4 / 3); display: grid; place-items: center; overflow: hidden; }
.ph > img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.ph-note { font-family: var(--hand); font-size: 23px; line-height: 1.15; background: var(--paper); padding: 4px 12px; text-align: center; max-width: 84%; }
.ph:has(> img) .ph-note { display: none; }
.pin { position: absolute; left: 50%; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); transform: translateX(-50%); z-index: 2; }
.pin.peach { background: #D9785A; }
.tape { position: absolute; width: 96px; height: 28px; background: rgba(244, 169, 133, 0.6); z-index: 2; }
.tape-l { left: -24px; top: -4px; transform: rotate(-30deg); }
.tape-r { right: -24px; top: -4px; transform: rotate(28deg); }
.card { background: var(--paper); padding: 26px 26px 24px; }
.sticky { background: var(--peach); padding: 26px 26px 24px; transform: rotate(var(--tilt, 2deg)); }

/* ---------- the chalkboard ---------- */
.board { background: var(--board); color: var(--chalk); padding: 36px 40px 30px; }
.board h2, .board .board-title { font-family: var(--letter); font-weight: 700; font-size: 58px; line-height: 1; text-align: center; }
.menu { font-family: var(--hand); font-size: 29px; line-height: 1.35; margin-top: 14px; }
.menu li { display: flex; align-items: baseline; gap: 10px; }
.menu li::after { content: ""; order: 1; flex: 1; border-bottom: 3px dotted rgba(244, 238, 226, 0.45); transform: translateY(-6px); }
.menu .p { order: 2; font-weight: 700; font-variant-numeric: tabular-nums; }
.board .free { font-family: var(--hand); font-size: 26px; color: var(--peach); margin: 14px auto 0; text-align: center; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 8px; min-height: calc(100svh - 96px); }
.hero .lead { margin-top: 24px; }
.hero .actions { margin-top: 30px; }
.offer { font-family: var(--hand); font-size: 24px; line-height: 1.25; background: var(--peach); padding: 4px 12px; margin-top: 18px; display: inline-block; transform: rotate(-1deg); }
.promise { font-family: var(--hand); font-size: 28px; margin-top: 22px; display: inline-block; transform: rotate(-1.5deg); }
.hero-art { position: relative; height: min(680px, calc(100svh - 130px)); min-height: 560px; }
.hero-art .polaroid { position: absolute; left: 0; top: 0; width: 60%; --tilt: -3.5deg; z-index: 2; }

/* ---------- section heads ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 32px; }
.head .note { color: var(--teal); transform: rotate(-2deg); padding-bottom: 8px; max-width: 26ch; }

/* ---------- who we are (home) ---------- */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pair { position: relative; height: 520px; }
.pair .polaroid { position: absolute; width: 56%; }
.pair .polaroid:nth-child(1) { left: 0; top: 30px; --tilt: -4deg; }
.pair .polaroid:nth-child(2) { right: 0; top: 0; --tilt: 3deg; }
.pair .pair-note { position: absolute; left: 34%; bottom: 0; color: var(--teal); transform: rotate(-3deg); }
.who-text { display: flex; flex-direction: column; gap: 22px; }

/* ---------- the method, as a strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.panel { background: var(--paper); padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; transform: rotate(var(--tilt, 0deg)); }
.panel:nth-child(1) { --tilt: -1.2deg; }
.panel:nth-child(2) { --tilt: 0.8deg; }
.panel:nth-child(3) { --tilt: -0.6deg; }
.panel:nth-child(4) { --tilt: 1.3deg; }
.panel-step { font-family: var(--hand); font-size: 26px; color: var(--teal); line-height: 1; }
.panel h3 { font-family: var(--letter); font-weight: 700; font-size: 46px; line-height: 0.95; }
.panel .art { height: 132px; display: grid; place-items: center; }
.panel .art > div { width: 120px; height: 120px; }
.panel p { font-size: 17px; }
.strip-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 64px; }
.quote { font-family: var(--letter); font-weight: 700; font-size: clamp(40px, 4.2vw, 66px); line-height: 0.95; }
.honest { --tilt: 1.5deg; max-width: 460px; justify-self: end; }
.honest strong { font-family: var(--hand); font-size: 30px; font-weight: 700; display: block; line-height: 1; margin-bottom: 6px; }

/* ---------- stories ---------- */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; margin-top: 56px; padding: 40px; }
.story h3 { font-family: var(--hand); font-size: 44px; line-height: 1; }
.story-text { display: flex; flex-direction: column; gap: 16px; }
.story-text .note { color: var(--teal); }
.story-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.story-photos .polaroid { padding: 10px 10px 0; }
.story-photos .polaroid:nth-child(1) { --tilt: -3deg; }
.story-photos .polaroid:nth-child(2) { --tilt: 2deg; margin-top: 26px; }
.story-photos .polaroid:nth-child(3) { --tilt: -1.5deg; }
.story-photos figcaption { font-size: 24px; }
.story-photos .ph-note { font-size: 19px; }
.next-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.next { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: center; padding: 24px; }
.next .ph { --ratio: 1; }
.next .ph-note { font-size: 18px; }
.next h3 { font-family: var(--hand); font-size: 32px; line-height: 1.05; }
.next p { font-size: 16px; color: var(--muted); margin-top: 6px; }

/* ---------- questions ---------- */

/* ---------- footer: the board ---------- */
.foot { margin-top: var(--section); background: var(--board); color: var(--chalk); border-top: 14px solid var(--wood); padding-block: 72px 36px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.foot h2 { font-family: var(--letter); font-weight: 700; font-size: var(--h2); line-height: 0.9; }
.foot-number { display: inline-block; font-family: var(--letter); font-weight: 700; font-size: clamp(64px, 9vw, 150px); line-height: 1; margin-top: 18px; color: var(--chalk); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .foot-number:hover { color: var(--peach); } }
.foot .note { color: var(--peach); margin-top: 10px; }
.foot .actions { margin-top: 26px; }
.foot .btn-chalk { color: var(--chalk); }
.foot-areas { font-size: 16px; color: rgba(244, 238, 226, 0.85); }
.foot-areas strong { display: block; font-family: var(--hand); font-size: 28px; color: var(--chalk); font-weight: 700; margin-bottom: 6px; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-top: 20px; border-top: 2px dashed rgba(244, 238, 226, 0.3); font-size: 15px; color: rgba(244, 238, 226, 0.8); }
.foot-meta a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- за нас ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding-top: 24px; }
.about-hero .lead { margin-top: 22px; }
.about-hero .polaroid { --tilt: 2.5deg; }
.about-hero figcaption { font-size: 32px; }
.letter-card { max-width: 820px; margin: 56px auto 0; padding: 56px 64px 48px; background-color: var(--paper);
  background-image: linear-gradient(transparent calc(2.1em - 1px), rgba(26, 109, 104, 0.18) calc(2.1em - 1px), rgba(26, 109, 104, 0.18) 2.1em, transparent 2.1em);
  background-size: 100% 2.1em; background-position: 0 1.4em; font-family: var(--hand); font-size: 28px; line-height: 2.1em; transform: rotate(-0.6deg); }
.letter-card p + p { margin-top: 2.1em; }
.letter-card .sign { text-align: right; font-weight: 700; font-size: 34px; }
.letter-card p { max-width: none; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
.person { display: grid; grid-template-columns: 0.9fr 1fr; gap: 28px; align-items: center; }
.person .polaroid { --tilt: -2.5deg; }
.person:nth-child(2) .polaroid { --tilt: 2.5deg; }
.person h3 { font-family: var(--letter); font-weight: 700; font-size: 64px; line-height: 0.9; }
.person .role { font-family: var(--hand); font-size: 27px; color: var(--teal); line-height: 1.1; margin-top: 4px; }
.person p:last-child { margin-top: 12px; }
.rules { margin-top: 56px; padding: 48px 56px 44px; }
.rules ol { counter-reset: r; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 56px; margin-top: 28px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; align-items: baseline; }
.rules li::before { content: counter(r) "."; font-family: var(--hand); font-size: 36px; font-weight: 700; color: var(--peach); grid-row: span 2; }
.rules strong { font-family: var(--hand); font-size: 30px; font-weight: 700; line-height: 1.1; }
.rules span { font-size: 17px; color: rgba(244, 238, 226, 0.88); }
.day { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; margin-top: 56px; counter-reset: d; }
.day li { counter-increment: d; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.day .art { width: 96px; height: 88px; }
.day h3 { font-family: var(--hand); font-size: 32px; line-height: 1.05; }
.day h3::before { content: counter(d) ". "; color: var(--teal); }
.day p { font-size: 17px; margin-top: 4px; }
.invite { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 8px; }

/* ---------- booking bar (phones) ---------- */
.book-bar { display: none; }

/* ---------- tablets ---------- */
@media (max-width: 1080px) {
  .bar nav { gap: 20px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; }
  .next-stories { grid-template-columns: 1fr; }
  .rules ol { grid-template-columns: 1fr; }
  .day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .bar nav { display: none; }
  .hero, .who, .about-hero, .invite, .foot-grid, .strip-foot { grid-template-columns: 1fr; }
  .hero { min-height: 0; gap: 32px; }
  .hero-art { height: auto; min-height: 0; display: grid; gap: 26px; }
  .hero-art .polaroid { position: relative; width: 100%; left: auto; right: auto; top: auto; bottom: auto; }
  .hero-art .polaroid { --tilt: -1.5deg; }
  .honest { justify-self: start; }
  .duo { grid-template-columns: 1fr; }
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .bar { padding-block: 14px; }
  .mark { font-size: 42px; }
  .call { min-height: 42px; padding: 0 14px; font-size: 16px; }
  h1.letter { font-size: 17vw; }
  h2.letter { font-size: 14vw; }
  .lead { font-size: 18px; }
  .hero .actions { display: none; }
  .board { padding: 26px 22px 22px; }
  .board h2, .board .board-title { font-size: 46px; }
  .menu { font-size: 24px; }
  .pair { height: 380px; }
  .pair .polaroid { width: 62%; }
  .pair .pair-note { left: 4%; bottom: -6px; }
  .strip { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .story { padding: 24px 20px; gap: 28px; margin-top: 36px; }
  .story h3 { font-size: 36px; }
  .story-photos { gap: 10px; }
  .story-photos figcaption { font-size: 20px; }
  .story-photos .ph-note { font-size: 15px; padding: 2px 6px; }
  .next { grid-template-columns: 96px 1fr; padding: 18px; }
  .next h3 { font-size: 26px; }
  .foot { padding-block: 48px 28px; }
  .foot-number { font-size: 19vw; }
  .letter-card { padding: 32px 22px 28px; font-size: 23px; }
  .letter-card .sign { font-size: 28px; }
  .rules { padding: 30px 22px; }
  .rules li { grid-template-columns: 34px 1fr; }
  .day { grid-template-columns: 1fr; gap: 28px; }
  .day li { grid-template-columns: 76px 1fr; }
  .day .art { width: 76px; height: 70px; }
  .book-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--kraft); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 rgba(58, 42, 31, 0.12); }
  .book-bar .btn { min-height: 50px; padding: 0 6px; font-size: 16px; }
}

/* ---------- shorter home (Nov 2026): benefits, price section, folded FAQ, sticky desktop bar ---------- */
:root { --teal-text: #15605B; }
.head .note, .pair .pair-note, .story-text .note, .link-hand { color: var(--teal-text); }

/* desktop: the call button stays in reach */
@media (min-width: 601px) {
  .bar { position: sticky; top: 0; z-index: 25; background: var(--kraft); }
  main [id] { scroll-margin-top: 96px; }
}
.bar nav a { padding: 12px 0; }
.link-hand { min-height: 44px; }

/* hero */
.hero { min-height: 0; padding-block: 8px 0; }
.h-cta { margin-top: 22px; }
.water { display: grid; grid-template-columns: 84px 84px 1fr; gap: 6px 18px; align-items: end; margin-top: 22px; }
.water .jar { width: 84px; height: 104px; }
.water span { font-family: var(--hand); font-size: 22px; text-align: center; line-height: 1; }
.water .note { grid-row: 1; grid-column: 3; align-self: center; font-size: 26px; color: var(--teal-text); transform: rotate(-3deg); max-width: 12ch; }
.hero-art { height: auto; min-height: 0; }
.hero-art .polaroid { position: relative; width: 82%; margin-left: auto; }

/* benefits */
.gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.gets li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; }
.gets .ico { width: 70px; height: 80px; display: grid; place-items: center; font-family: var(--letter); font-size: 40px; font-weight: 700; }
.gets h3 { font-family: var(--hand); font-size: 31px; line-height: 1.05; }
.gets p { font-size: 17px; margin-top: 4px; }

/* who */
.who .lead + p { margin-top: -6px; }

/* method: four small cards */
.strip { gap: 28px; margin-top: 40px; }
.panel { padding: 18px 18px 20px; gap: 6px; }
.panel .art { height: 84px; }
.panel .art > div { width: 78px; height: 78px; }
.panel h3 { font-size: 38px; }
.panel h3 b { color: var(--teal); }
.panel p { font-size: 16px; }
.strip-foot { margin-top: 40px; }
.strip-quote { margin-top: 40px; max-width: 22ch; }

.price-group + .price-group { margin-top: 26px; }
.price-group h3 { font-family: var(--hand); font-size: 30px; color: var(--peach); line-height: 1; }
.menu { margin-top: 6px; }
.menu small { font-size: 0.7em; opacity: 0.85; }
.more { margin-top: 22px; font-family: var(--hand); font-size: 24px; }
.more summary { cursor: pointer; color: var(--peach); min-height: 44px; display: flex; align-items: center; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; margin-left: 6px; }
.more[open] summary::after { content: " −"; }
.more .menu { font-size: 22px; }

/* stories */
.story { margin-top: 40px; }
.next-stories { margin-top: 28px; }

/* FAQ as an accordion */
.faq { display: block; max-width: 860px; margin-top: 32px; }
.faq details { background: var(--paper); margin-bottom: 14px; padding: 4px 22px; }
.faq summary { font-family: var(--hand); font-size: 28px; line-height: 1.1; padding: 12px 0; min-height: 52px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--text); font-size: 26px; color: var(--teal-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; }

@media (max-width: 880px) {
  .gets { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .hero-art .polaroid { width: 100%; }
}
@media (max-width: 600px) {
  :root { --section: 64px; }
  .hero .lead { margin-top: 16px; }
  .h-cta { margin-top: 16px; }
  .water { margin-top: 14px; grid-template-columns: 60px 60px 1fr; gap: 4px 14px; }
  .water .jar { width: 60px; height: 74px; }
  .water span { font-size: 19px; }
  .hero .promise { font-size: 24px; margin-top: 16px; }
  .pair { height: 300px; }
  .pair .polaroid { width: 54%; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
  .panel { padding: 14px 12px 16px; }
  .panel .art { height: 64px; }
  .panel .art > div { width: 60px; height: 60px; }
  .panel h3 { font-size: 26px; }
  .panel p { font-size: 15px; line-height: 1.4; }
  .quote { font-size: 36px; }
  .story-text p:not(.note) + p { display: none; }
  .next-stories { grid-template-columns: 1fr 1fr; gap: 14px; }
  .next { grid-template-columns: 1fr; padding: 12px; gap: 10px; }
  .next p { display: none; }
  .next h3 { font-size: 22px; }
  .faq details { padding: 2px 16px; }
  .faq summary { font-size: 25px; }
  .foot-areas { font-size: 15px; }
}

/* ---------- the receipt (Nov 2026): what she ordered, what is included, what others charge ---------- */
.receipt { width: min(440px, 100%); background: var(--paper); padding: 34px 30px 44px; font-size: 17px; transform: rotate(-1.2deg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px)); }
.receipt-head { font-family: var(--letter); font-weight: 700; font-size: 44px; text-align: center; line-height: 1; }
.receipt-sub { text-align: center; font-size: 15px; color: var(--muted); margin-top: 4px; }
.receipt ul { display: flex; flex-direction: column; gap: 6px; }
.receipt li { display: flex; gap: 8px; align-items: baseline; }
.receipt li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted rgba(58, 42, 31, 0.35); transform: translateY(-5px); min-width: 12px; }
.receipt li > span:last-child { order: 2; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-items { margin-top: 22px; }
.r-items .empty { color: var(--muted); font-style: italic; }
.r-items .empty::after { content: none; }
.r-label { font-family: var(--hand); font-size: 24px; color: var(--teal); margin-top: 18px; line-height: 1; }
.r-incl { margin-top: 8px; font-size: 16px; }
.r-incl em { display: block; font-style: normal; font-size: 14px; color: var(--muted); line-height: 1.2; }
.r-incl s { text-decoration-thickness: 2px; text-decoration-color: rgba(58, 42, 31, 0.6); }
.r-sum { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(58, 42, 31, 0.45); }
.r-disc { color: var(--teal); }
.receipt .total { font-weight: 700; font-size: 22px; }
.receipt-thanks { font-family: var(--hand); font-size: 26px; text-align: center; margin-top: 16px; color: var(--teal); }
.r-fine { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.r-next { color: var(--teal-text); text-align: center; transform: rotate(-1.5deg); }
@media (max-width: 600px) { .receipt { padding: 28px 20px 40px; } }

/* ---------- prices: "+" on the board, the receipt slides in as a cart ---------- */
.prices { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; margin-top: 44px; }
.price-side { display: flex; flex-direction: column; gap: 26px; }
.incl { font-size: 17px; display: flex; flex-direction: column; gap: 8px; }
.incl li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.incl li::before { content: "✓"; font-family: var(--hand); font-size: 26px; font-weight: 700; color: var(--teal); line-height: 0.9; }
.guarantee { --tilt: -2deg; max-width: 520px; }
.guarantee .letter { font-size: 44px; }
.guarantee p { margin-top: 8px; font-weight: 600; }

.menu.shop li { align-items: center; }
.menu.shop .p { order: 2; }
.menu.shop .add { order: 3; flex: none; width: 44px; height: 44px; margin-left: 4px; border: 2px solid rgba(244, 238, 226, 0.55); border-radius: 50%; background: transparent; color: var(--chalk); font: 700 26px/1 var(--text); cursor: pointer; transition: transform 140ms cubic-bezier(.22, 1, .36, 1); }
.menu.shop .add:active { transform: scale(0.9); }
.menu.shop .add:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
.menu.shop li.in .nm { color: var(--peach); }
.menu.shop li.in .add { border-color: var(--peach); color: var(--peach); }
@media (hover: hover) and (pointer: fine) { .menu.shop .add:hover { border-color: var(--peach); color: var(--peach); } }
/* paper-sticker icons (Recraft), one per item; the second row of a pair keeps an empty slot so names line up */
.menu.shop .ic { flex: none; display: block; width: 48px; height: 48px; margin-right: 2px; transform: rotate(-3deg); }
.menu.shop li:nth-child(even) .ic { transform: rotate(2.5deg); }
.more .menu.shop .ic { width: 42px; height: 42px; }

/* floating cart button */
.cart-fab { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; border: 0; background: transparent; color: var(--ink); cursor: pointer; transform: rotate(-2deg); }
.cart-fab[hidden] { display: none; }
.fab-label { font-family: var(--hand); font-size: 26px; }
.fab-total { font: 700 19px/1 var(--text); font-variant-numeric: tabular-nums; }
.fab-count { position: absolute; top: -10px; right: -10px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--teal); color: #fff; font: 700 14px/26px var(--text); text-align: center; }
.cart-fab.bump { animation: bump 380ms cubic-bezier(.22, 1, .36, 1); }
@keyframes bump { 40% { transform: rotate(-2deg) scale(1.12); } }

/* the drawer */
.cart-shade { position: fixed; inset: 0; z-index: 40; background: rgba(46, 59, 55, 0.55); }
.cart-shade[hidden], .cart[hidden] { display: none; }
.cart { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(480px, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--kraft); padding: 28px 26px 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cart-close { align-self: flex-end; width: 44px; height: 44px; border: 0; background: transparent; font: 400 38px/1 var(--text); color: var(--ink); cursor: pointer; margin: -10px -6px -6px 0; }
.cart .receipt { width: 100%; }
.cart .r-items li { align-items: center; }
.cart .r-items .q { order: 1; display: inline-flex; align-items: center; margin-left: auto; }
.cart .r-items li::after { order: 0; }
.cart .r-items .nm { flex: 1; }
.cart .r-items li > span.sum { order: 2; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4.4em; text-align: right; }
.cart .r-items .q button { width: 36px; height: 36px; border: 0; background: transparent; font: 700 22px/1 var(--text); color: var(--teal); cursor: pointer; }
.cart .r-items .q output { min-width: 20px; text-align: center; font-weight: 700; }
.cart .r-items li::after { content: none; }
.r-more { margin-top: 10px; border: 0; background: transparent; font-family: var(--hand); font-size: 22px; color: var(--teal); cursor: pointer; padding: 6px 0; min-height: 44px; }
.cart .actions { justify-content: center; }
.cart { padding-bottom: 0; }
.cart-foot { position: sticky; bottom: 0; align-self: stretch; margin: 6px -26px 0; padding: 14px 26px 22px; background: var(--kraft); border-top: 2px dashed rgba(58, 42, 31, 0.35); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.foot-total { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
.foot-total span { font-family: var(--hand); font-size: 26px; }
.foot-total b { font: 700 26px/1 var(--text); font-variant-numeric: tabular-nums; }
.cart-foot .r-next { font-size: 20px; }
body.cart-open { overflow: hidden; }

/* the receipt slides in like a shop cart: from the right on desktop, from the bottom on phones */
.cart .receipt { transform: none; }
.cart { animation: cart-in 240ms cubic-bezier(.22, 1, .36, 1); }
.cart.closing { animation: cart-out 200ms ease-in both; }
.cart-shade { animation: shade-in 200ms ease; }
@keyframes cart-in { from { transform: translateX(100%); } }
@keyframes cart-out { to { transform: translateX(100%); } }
@keyframes shade-in { from { opacity: 0; } }
.cart-foot .btn { white-space: nowrap; }
@media (max-width: 600px) {
  @keyframes cart-in { from { transform: translateY(100%); } }
  @keyframes cart-out { to { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) { .cart, .cart.closing, .cart-shade { animation: none; } }
@media (prefers-reduced-motion: reduce) { .cart, .cart-fab.bump { animation: none; } }

@media (max-width: 880px) { .prices { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .prices .board { padding: 26px 18px 22px; }
  .menu.shop { font-size: 22px; }
  /* 36px icons that borrow 8px of the board's side padding take only 28px of the line, so every name
     stays on the same lines as before the icons; scale() draws them a little bigger without taking width */
  .menu.shop li { gap: 6px; }
  .menu.shop .ic, .more .menu.shop .ic { width: 36px; height: 36px; margin-left: -8px; margin-right: 0; transform: rotate(-3deg) scale(1.15); }
  .menu.shop li:nth-child(even) .ic { transform: rotate(2.5deg) scale(1.15); }
  .cart-fab { right: auto; left: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); min-height: 50px; padding: 0 14px; }
  .fab-label { font-size: 22px; }
  .fab-count { right: auto; left: -8px; }
  .cart { top: auto; width: 100%; max-height: 90vh; padding: 18px 16px 0; }
  .cart-foot { margin: 6px -16px 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cart .receipt { padding: 26px 18px 40px; transform: none; }
  .cart .actions .btn { flex: 1; }
}

/* ---------- the letter (Nov 2026): a romantic first screen, old-film photos, what stays after we leave ---------- */
.nb { white-space: nowrap; }

/* old film: every real photo gets faded colour, a warm light leak and grain; a drawing asks for it with .film */
.ph:has(> img), .film { position: relative; }
.film { background: #EAD9B8; }
.ph > img { filter: sepia(.34) saturate(.8) contrast(.9) brightness(1.06); }
.ph:has(> img)::before, .film::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(255, 150, 70, .36), transparent 46%),
    radial-gradient(80% 60% at 100% 100%, rgba(255, 205, 130, .22), transparent 60%),
    radial-gradient(farthest-corner, transparent 62%, rgba(58, 42, 31, .2)); }
.ph:has(> img)::after, .film::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .34; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* first screen: the letter on the left, one real photo and the ways to reach us on the right */
.hero-letter { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 60px; padding-top: 34px; }
.mail { position: relative; max-width: 780px; background: var(--paper); padding: 34px 56px 30px; transform: rotate(-.8deg); }
.mail-head { font-family: var(--hand); font-size: var(--note); line-height: 1.1; color: var(--teal-text); max-width: calc(100% - 190px); }
.mail h1 { margin-top: 12px; max-width: calc(100% - 170px); font-size: clamp(60px, 6.2vw, 96px); }
.mail-body { --line: 52px; margin-top: 22px; font-family: var(--hand); font-size: 29px; line-height: var(--line);
  background-image: linear-gradient(transparent calc(var(--line) - 2px), rgba(26, 109, 104, .2) calc(var(--line) - 2px), rgba(26, 109, 104, .2) var(--line));
  background-size: 100% var(--line); background-position: 0 -14px; }
.mail-body p { max-width: none; }
.mail-body p + p { text-indent: 1.4em; }
.mail-body .sign { text-align: right; font-weight: 700; font-size: 34px; text-indent: 0; }
.mail-body .ps { text-indent: 0; color: var(--teal-text); }
/* the stamp carries the price, the postmark the town */
.mail-post { position: absolute; right: 30px; top: 26px; width: 200px; height: 132px; }
.pstamp { --s: 12px; position: absolute; right: 0; top: 0; width: 96px; height: 120px; padding: 9px; background: var(--chalk); transform: rotate(4deg);
  -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - var(--s)) calc(100% - var(--s)) no-repeat, radial-gradient(circle, #0000 3.4px, #000 3.9px) calc(var(--s) / -2) calc(var(--s) / -2) / var(--s) var(--s);
  mask: linear-gradient(#000 0 0) center / calc(100% - var(--s)) calc(100% - var(--s)) no-repeat, radial-gradient(circle, #0000 3.4px, #000 3.9px) calc(var(--s) / -2) calc(var(--s) / -2) / var(--s) var(--s); }
.pstamp-in { height: 100%; border: 2px solid var(--teal); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 5px 2px 4px; color: var(--teal); background: var(--paper); }
.pstamp-in .art { width: 54px; height: 40px; }
.pstamp-in b { font: 700 24px/1 var(--text); font-variant-numeric: tabular-nums; }
.pstamp-in small { font: 700 8.5px/1.1 var(--text); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.postmark { position: absolute; left: 0; top: 18px; width: 172px; height: 104px; color: var(--ink); opacity: .62; transform: rotate(-9deg); }
.mail-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mail-side .polaroid { width: 88%; --tilt: 3deg; }
.mail-side .actions, .mail-side .offer, .mail-side .promise { margin-top: 0; }
.mail-side .offer { font-size: 21px; }

/* what stays after we leave: three small pictures */
.after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 48px; }
.moment { display: flex; flex-direction: column; gap: 18px; }
.moment .polaroid { padding: 12px 12px 0; }
.moment:nth-child(1) .polaroid { --tilt: -2deg; }
.moment:nth-child(2) .polaroid { --tilt: 1.5deg; }
.moment:nth-child(3) .polaroid { --tilt: -1deg; }
.moment .ph { --ratio: 1; }
.moment figcaption { font-size: 30px; }
.moment p { font-size: 17px; max-width: 30ch; }

@media (max-width: 880px) {
  .hero-letter { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .mail-side { align-items: center; }
  .mail-side .polaroid { width: min(74%, 360px); }
  .after { gap: 22px; }
}
@media (max-width: 600px) {
  .hero-letter { padding-top: 14px; }
  .mail { padding: 22px 20px 22px; }
  .mail-head { font-size: 21px; max-width: calc(100% - 132px); }
  .mail h1 { max-width: calc(100% - 92px); font-size: 15vw; margin-top: 10px; }
  .mail-body { --line: 42px; font-size: 23px; margin-top: 16px; background-position: 0 -12px; }
  .mail-body p + p { text-indent: 1.2em; }
  .mail-body .sign { font-size: 27px; text-indent: 0; }
  .mail-body .ps { text-indent: 0; }
  .mail-post { right: 12px; top: 14px; width: 130px; height: 96px; }
  .pstamp { --s: 9px; width: 72px; height: 90px; padding: 7px; }
  .pstamp-in .art { width: 38px; height: 28px; }
  .pstamp-in b { font-size: 19px; }
  .pstamp-in small { font-size: 6.5px; }
  .postmark { width: 112px; height: 68px; top: 16px; }
  .after { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 30px; }
  .moment { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 18px; align-items: center; }
  .moment .polaroid { padding: 8px 8px 0; }
  .moment figcaption { font-size: 21px; padding: 5px 2px 8px; }
}

/* ---------- no photos yet (16 Nov 2026) ----------
   The photo frames of Тони, Деан and the kindergarten were taken out until real photos exist.
   These rules only apply while a section has no photo, so putting a <figure> back restores the old layout. */
.who:not(:has(.pair)),
.about-hero:not(:has(.polaroid)),
.story:not(:has(.story-photos)),
.person:not(:has(.polaroid)) { grid-template-columns: minmax(0, 1fr); }
.who:not(:has(.pair)) .who-text,
.about-hero:not(:has(.polaroid)) > div { max-width: 760px; }
.story:not(:has(.story-photos)) { max-width: 820px; }
.person:not(:has(.polaroid)) { align-items: start; }
/* the kindergarten story has two photos (преди, водата), not three */
.story-photos:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
