/* Mirooland: the storybook site („Carte de povești”).
   Cream paper and teal ink; chapters; the owner's letter set as a page of a picture book (an open
   two-page spread on wide screens); scalloped edges, stitched cards, Miroo's polka dots, hand-drawn
   hearts and sprigs. Built for the production CSP: no inline styles or scripts anywhere, every asset
   path root-absolute. Motion: none that loops; hover lifts only, and none at all with reduced motion.
   Breakpoints: 400, 600, 768, 900, 1100 (min-width, mobile first). */

/* ---------- Fonts (self-hosted, OFL; licences beside the files) ---------- */
/* Fraunces is an instance of brand/kit/fonts/Fraunces-VF.woff2 with SOFT fixed at 100 and weights 380-620
   (fontTools varLib.instancer): 66 KB instead of 147 KB. For a weight outside 380-620, instance it again. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-VF.febdbd11.woff2") format("woff2");
  font-weight: 380 620;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-VF.09a00227.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
/* Caveat: one static weight (600), subset to Latin + Romanian + punctuation (19 KB). Only for the
   handwritten lines; a new handwritten line needs no other characters than those. */
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/Caveat-600.b5e9712a.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks: while the web fonts load, local Arial and Georgia are scaled to take the
   same room as Nunito and Fraunces, so the first screen does not jump when the fonts swap in.
   Values computed from the font files (average advance of the page's own text, typo ascent/descent). */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 200 649;
  size-adjust: 99%;
  ascent-override: 102.1%;
  descent-override: 35.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 650 1000;
  size-adjust: 98.9%;
  ascent-override: 102.2%;
  descent-override: 35.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  font-weight: 100 549;
  size-adjust: 106.8%;
  ascent-override: 91.6%;
  descent-override: 23.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold");
  font-weight: 550 900;
  size-adjust: 90%;
  ascent-override: 108.7%;
  descent-override: 28.3%;
  line-gap-override: 0%;
}

/* ---------- Tokens (sampled from the logo) ---------- */
:root {
  --ink: #023B36;          /* ring + wordmark: all text, 11.6:1 on paper */
  --ink-deep: #0B4D46;
  --cup: #7EADA1;
  --mist: #D3E7E4;
  --mist-deep: #C3DDD8;
  --paper: #FBF6EE;
  --paper-light: #FDFBF8;
  --latte: #E6CDAA;
  --latte-wash: #F4E9DA;
  --caramel: #D49B65;
  --coral: #F4704B;
  --pink: #EF7F78;         /* the hearts of the Little Pandas post (decorative) */
  --mustard: #F2B530;
  --leaf: #66823A;
  --sage: #BBCFA6;
  --blush: #F9B182;
  --sky: #8DB8E8;
  --sky-wash: #E3EEFA;
  --night: #14243A;
  /* text-safe shades (AA checked) */
  --coral-ink: #B3401F;    /* 5.3:1 on paper */
  --caramel-ink: #7F4D22;  /* 6.5:1 on paper, 5.5:1 on mist */
  --leaf-ink: #4E6A2A;     /* 5.7:1 on paper */
  --stitch: rgba(212, 155, 101, .7);

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Nunito", "Nunito Fallback", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --gutter: 16px;
  --max: 1180px;
  --sc: 13px;              /* scallop radius */
  --focus: var(--ink);
  --shadow-soft: 0 1px 2px rgba(2, 59, 54, .06), 0 14px 34px -16px rgba(2, 59, 54, .3);
  --page-stack:
    0 1px 0 #ECE1CE,
    0 4px 0 -1px var(--paper-light), 0 5px 0 -1px #E5D7C0,
    0 8px 0 -2px var(--paper-light), 0 9px 0 -2px #DDCCB2,
    0 28px 46px -24px rgba(2, 59, 54, .5);
}
@media (min-width: 768px) { :root { --gutter: 28px; --sc: 16px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; --sc: 18px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 460;
  line-height: 1.62;
  font-optical-sizing: auto;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
strong { font-weight: 800; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--sage); color: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.125rem, 1.45rem + 2.9vw, 3.5rem); }
h3 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.625rem); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.chapters a:focus-visible { outline-offset: 0; }
#main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -120px; z-index: 100;
  padding: .8rem 1.1rem; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Buttons (a transparent border keeps their shape in forced-colors mode) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 54px; padding: .75rem 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 800 1.0625rem/1.2 var(--font-body);
  text-decoration: none; text-align: center;
  transition: background-color .2s ease, transform .2s ease;
}
.btn__icon { width: 1.25em; height: 1.25em; flex: none; }
.btn__icon--small { width: 1em; height: 1em; opacity: .85; }
.btn--primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 12px 24px -14px rgba(2, 59, 54, .8);
}
/* a stitched felt-patch seam inside the button */
.btn--primary::after {
  content: ""; position: absolute; inset: 3px; border-radius: inherit;
  border: 1.5px dashed rgba(251, 246, 238, .42); pointer-events: none;
}
.btn--primary:hover { background: var(--ink-deep); }
.btn--ghost { background: var(--paper-light); color: var(--ink); border-color: var(--ink); }
.btn--ghost .btn__icon { color: var(--mustard); }
.btn--ghost:hover { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- Chapter heads ---------- */
.chapter-head { margin: 0 0 1.25rem; }
.chapter-head--center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 .65rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600; font-size: .9375rem; line-height: 1.2;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--caramel-ink);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 38px; height: 17px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 106 46'%3E%3Cpath d='M5 35C30 33 58 26 90 11' fill='none' stroke='%2366823A' stroke-width='4' stroke-linecap='round'/%3E%3Cg fill='%2366823A'%3E%3Cpath d='M0 0C5-5.2 13-6 19-1.2 13 3.6 5 3.4 0 0Z' transform='translate(28.7 31.8) rotate(-51) scale(1.15)'/%3E%3Cpath d='M0 0C5-5.2 13-6 19-1.2 13 3.6 5 3.4 0 0Z' transform='translate(28.7 31.8) rotate(29) scale(1.15 -1.15)' fill-opacity='.6'/%3E%3Cpath d='M0 0C5-5.2 13-6 19-1.2 13 3.6 5 3.4 0 0Z' transform='translate(49.2 26.7) rotate(-56) scale(1.08)' fill-opacity='.6'/%3E%3Cpath d='M0 0C5-5.2 13-6 19-1.2 13 3.6 5 3.4 0 0Z' transform='translate(49.2 26.7) rotate(24) scale(1.08 -1.08)'/%3E%3Cpath d='M0 0C5-5.2 13-6 19-1.2 13 3.6 5 3.4 0 0Z' transform='translate(69.5 19.8) rotate(-61)'/%3E%3Cpath d='M0 0C5-5.2 13-6 19-1.2 13 3.6 5 3.4 0 0Z' transform='translate(69.5 19.8) rotate(19) scale(1 -1)' fill-opacity='.6'/%3E%3Cpath d='M0 0C5-5.2 13-6 19-1.2 13 3.6 5 3.4 0 0Z' transform='translate(88.5 11.6) rotate(-24) scale(.9)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.eyebrow::before { transform: scaleX(-1); }
.chapter-head:not(.chapter-head--center) .eyebrow::before { display: none; }

/* ---------- Scalloped page edges ---------- */
.band { position: relative; z-index: 1; }
.band--top::before, .band--bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--sc);
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: calc(var(--sc) * 1.9) var(--sc);
  background-position: 50% 0;
}
.band--top::before {
  bottom: calc(100% - 1px);
  background-image: radial-gradient(circle at 50% 100%, var(--band) calc(var(--sc) - .6px), transparent var(--sc));
}
.band--bottom::after {
  top: calc(100% - 1px);
  background-image: radial-gradient(circle at 50% 0, var(--band) calc(var(--sc) - .6px), transparent var(--sc));
}

/* ---------- Header: the book's chapter tabs (one nav, no JS) ---------- */
.site-header { position: relative; z-index: 5; padding-top: 8px; }
.site-header__inner { display: flex; align-items: center; justify-content: center; }
.site-header::after {
  content: ""; display: block; height: 0; margin: 0 var(--gutter);
  border-bottom: 1.5px dashed var(--stitch);
}
.brand { display: none; }
.chapters { width: 100%; }
.chapters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px; }
/* the tabs share the row and wrap only when even their narrowest labels cannot fit (larger text) */
.chapters li { flex: 1 1 0; }
/* a minimum height that already fits the labels, so the row does not grow when the fonts swap in,
   but can grow for larger text */
.chapters a {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
  min-height: 58px; padding: 6px 3px 4px;
  color: var(--ink); text-decoration: none; text-align: center;
  border-radius: 14px;
}
.chapters__num {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600; font-size: .75rem; line-height: 1; letter-spacing: .1em;
  color: var(--caramel-ink);
}
.chapters__label { font-weight: 800; font-size: .875rem; line-height: 1.12; }
.chapters a:hover .chapters__label { text-decoration: underline; text-decoration-style: wavy; text-decoration-color: var(--coral); text-underline-offset: .28em; }
/* five chapters on small phones (up to 379 px): a touch smaller, so the row fits and "Unde ne găsești"
   keeps to two lines (the row wraps only with larger text) */
@media (max-width: 379px) {
  .chapters ul { gap: 0; }
  .chapters a { padding: 6px 1px 4px; }
  .chapters__label { font-size: .8125rem; }
}
@media (min-width: 400px) {
  .chapters a { min-height: 50px; }
  .chapters__label { font-size: .9375rem; }
}
@media (min-width: 768px) {
  .site-header { padding-top: 12px; }
  .site-header__inner { justify-content: space-between; gap: 24px; padding-bottom: 8px; }
  .brand { display: flex; align-items: center; gap: 10px; flex: none; border-radius: 12px; text-decoration: none; }
  .brand__badge { width: 46px; height: 46px; border-radius: 50%; }
  .brand__word { width: 104px; }
  .chapters { width: auto; }
  .chapters ul { gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
  .chapters li { flex: 0 1 auto; }
  .chapters a { flex-direction: row; align-items: center; gap: 6px; min-height: 48px; padding: 12px 6px; }
  .chapters__label { font-size: .9375rem; }
}
/* tablets: five chapter tabs need the room, so only the badge shows; the wordmark stays readable to
   screen readers (it carries the link's name, the badge's alt is empty) */
@media (min-width: 768px) and (max-width: 1023px) {
  .brand__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (min-width: 900px) {
  .chapters a { padding: 12px 10px; }
  .chapters__label { font-size: 1rem; }
  .brand__word { width: 116px; }
}
@media (min-width: 1100px) {
  .brand__badge { width: 52px; height: 52px; }
  .brand__word { width: 136px; }
  .chapters a { padding: 12px 15px; }
  .chapters__label { font-size: 1.0625rem; }
}

/* ---------- Cover (hero) ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding: 18px 0 44px; }
@supports not (overflow: clip) { .hero, .prolog { overflow-x: hidden; } }
.hero__inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.hero__art { position: relative; width: min(80vw, 300px); aspect-ratio: 1; }
/* watercolour washes behind the badge */
.hero__art::before {
  content: ""; position: absolute; inset: -18%; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(211, 231, 228, .95), rgba(211, 231, 228, .5) 62%, rgba(211, 231, 228, 0)) 22% 30% / 72% 70% no-repeat,
    radial-gradient(closest-side, rgba(230, 205, 170, .8), rgba(230, 205, 170, .35) 60%, rgba(230, 205, 170, 0)) 82% 68% / 64% 62% no-repeat,
    radial-gradient(closest-side, rgba(187, 207, 166, .6), rgba(187, 207, 166, 0)) 16% 88% / 46% 44% no-repeat,
    radial-gradient(closest-side, rgba(249, 177, 130, .42), rgba(249, 177, 130, 0)) 88% 10% / 38% 36% no-repeat;
}
/* Miroo's bow as a rosette: one scalloped shape, polka-dotted, with a stitched cream plate */
.hero__rosette { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(2, 59, 54, .13)); }
.hero__badge { position: absolute; left: 14%; top: 14%; width: 72%; border-radius: 50%; }
.doodle { position: absolute; pointer-events: none; }
/* a soft sprig tucked behind the rosette, rising out of its lower-left side like the logo's */
.doodle--sprig { z-index: -1; width: 40%; left: -14%; bottom: 14%; color: var(--leaf); transform: scaleX(-1) rotate(-16deg); }
.doodle--rays { width: 14%; top: -3%; right: 4%; color: var(--mustard); transform: rotate(16deg); }
.doodle--heart { width: 11%; left: -3%; top: 16%; color: var(--coral); transform: rotate(-14deg); }
.doodle--star { width: 7%; right: 1%; bottom: 20%; color: var(--mustard); }

.hero h1 {
  font-size: clamp(2.5rem, 1.35rem + 5.6vw, 5.25rem);
  font-weight: 620;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero__name { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.hero__name::after {
  content: ""; position: absolute; z-index: -1;
  left: 1%; right: -3%; bottom: -.05em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'%3E%3Cpath d='M4 17.5C58 7 140 2.2 236 6.8c1.6.1 1.7 2 .1 2.1C150 7.6 70 11.2 7.6 20.4 3.4 21 1.6 18.3 4 17.5z' fill='%23F4704B'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: .9;
}
.hero__tagline {
  max-width: 19.2em; margin: 14px auto 0; text-wrap: balance;
  font-size: clamp(1.125rem, .95rem + .8vw, 1.4375rem); line-height: 1.5;
  color: var(--ink-deep);
}
/* the tagline's two halves, for children and for parents, each start a line */
.hero__for { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 0; }
@media (max-width: 599px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero__art { width: 340px; }
}
@media (min-width: 900px) {
  .hero { padding: 36px 0 88px; }
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: "text art";
    align-items: center; justify-items: start; gap: 40px; text-align: left;
  }
  .hero__text { grid-area: text; }
  .hero__art { grid-area: art; justify-self: center; width: min(100%, 540px); }
  .hero__tagline { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
}

/* ---------- Prolog: Little Pandas ---------- */
.prolog { position: relative; overflow-x: clip; padding: 20px 0 76px; }
.prolog__inner { display: grid; gap: 40px; }
.note-card {
  position: relative; margin: 0;
  padding: 28px 24px 24px;
  background: var(--paper-light);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  font-size: 1.125rem; line-height: 1.6;
}
.note-card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1.75px dashed var(--stitch); border-radius: 19px;
}
/* the post's pair of outline hearts, pink and green */
.note-card::after {
  content: ""; position: absolute; right: 14px; top: -20px; width: 66px; height: 42px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'%3E%3Cpath d='M15.6 27.2C9 21.6 3.2 16.4 3.2 10.2 3.2 6 6.2 3.2 9.9 3.2c2.9 0 4.9 1.9 6.1 4.8 1.2-3 3.4-5 6.4-5 3.8 0 6.4 2.9 6.4 6.9 0 6.7-6.6 11.9-14.2 18.1' fill='none' stroke='%23EF7F78' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 4px / 34px 32px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'%3E%3Cpath d='M15.6 27.2C9 21.6 3.2 16.4 3.2 10.2 3.2 6 6.2 3.2 9.9 3.2c2.9 0 4.9 1.9 6.1 4.8 1.2-3 3.4-5 6.4-5 3.8 0 6.4 2.9 6.4 6.9 0 6.7-6.6 11.9-14.2 18.1' fill='none' stroke='%2366823A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 100% 0 / 28px 26px;
  transform: rotate(8deg);
}
.note-card p { margin: 0 0 .55em; }
.note-card p:first-child { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 480; font-size: 1.25em; line-height: 1.32; margin-bottom: .6em; }
.note-card p:last-child { margin-bottom: 0; }

.polaroid {
  position: relative; justify-self: center;
  width: min(100%, 312px); margin: 0;
  padding: 12px 12px 18px;
  background: var(--paper-light);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(2, 59, 54, .1), 0 20px 40px -18px rgba(2, 59, 54, .42);
  transform: rotate(-2.2deg);
}
.polaroid img { width: 100%; border-radius: 3px; background: var(--latte-wash); }
.polaroid figcaption {
  margin-top: 12px; padding: 0 4px;
  font-family: var(--font-hand); font-weight: 600;
  font-size: 1.5625rem; line-height: 1.15; text-align: center;
  color: var(--ink);
}
/* the post's own sage highlight strip */
.hl {
  padding: 0 .12em;
  background: linear-gradient(transparent 52%, rgba(187, 207, 166, .85) 52%, rgba(187, 207, 166, .85) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* washi tape: one plain mustard strip, one with Miroo's polka dots */
.polaroid::before, .polaroid::after {
  content: ""; position: absolute; top: -13px; width: 96px; height: 28px;
  clip-path: polygon(0 12%, 5% 0, 95% 0, 100% 14%, 96% 34%, 100% 52%, 96% 70%, 100% 88%, 95% 100%, 5% 100%, 0 88%, 4% 68%, 0 50%, 4% 32%);
}
.polaroid::before { left: 14px; background: rgba(242, 181, 48, .55); transform: rotate(-9deg); }
.polaroid::after {
  right: 14px; transform: rotate(8deg);
  background:
    radial-gradient(circle, rgba(79, 122, 87, .75) 2.1px, transparent 2.6px) 0 0 / 11px 11px,
    radial-gradient(circle, rgba(79, 122, 87, .75) 2.1px, transparent 2.6px) 5.5px 5.5px / 11px 11px,
    rgba(253, 251, 248, .94);
}
@media (min-width: 900px) {
  .prolog { padding: 28px 0 112px; }
  .prolog__inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "photo text"; align-items: center; gap: 72px; }
  .prolog__text { grid-area: text; }
  .polaroid { grid-area: photo; width: min(100%, 400px); }
  .note-card { padding: 36px 40px 32px; font-size: 1.1875rem; }
}

/* ---------- Capitolul I: the letter, a page of a picture book ---------- */
.story {
  --band: var(--mist);
  background-color: var(--mist);
  padding: 48px 0 60px;
}
.book { position: relative; max-width: 760px; margin: 0 auto; }
.book__title .chapter-head { margin-bottom: .6rem; }
.story__lead {
  width: fit-content; max-width: min(100%, 9.9em);
  margin: 0 auto;
  font-family: var(--font-hand); font-weight: 600;
  font-size: 1.875rem; line-height: 1.12; text-align: center; text-wrap: balance;
  color: var(--ink);
  transform: rotate(-2deg);
}
.book__art { display: none; }
/* the page (phones and tablets): paper with a stack of pages under it, Miroo's bow pinned on top */
.book__page {
  position: relative;
  margin: 58px -8px 0;
  padding: 48px 16px 26px;
  background: var(--paper-light);
  border-radius: 10px 10px 14px 14px;
  box-shadow: var(--page-stack);
}
.book__bow {
  position: absolute; top: -40px; left: 50%; z-index: 3;
  width: 108px; height: 78px;
  transform: translateX(-50%) rotate(-5deg);
  filter: drop-shadow(0 6px 6px rgba(2, 59, 54, .16));
}

/* the letter's own rhythm; the words are the owner's, byte for byte */
.letter { font-size: 1rem; line-height: 1.66; color: var(--ink); }
.letter p { margin: 0 0 .9em; }
.letter__hello {
  margin-bottom: .15em !important;
  font-family: var(--font-hand); font-weight: 600;
  font-size: 2.25rem; line-height: 1.1;
  color: var(--coral-ink);
}
.letter__thesis {
  margin-bottom: .1em !important;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 560; font-size: 1.5em; line-height: 1.22; letter-spacing: -.005em;
  text-wrap: balance;
}
.letter__thesis--last { margin-bottom: .85em !important; }
.phrase { display: inline-block; text-wrap: balance; }
.letter__turn { display: flex; justify-content: center; margin: .2em 0 1.05em; }
.letter__turn svg { width: 184px; height: 30px; }
.letter__thanks {
  margin: 1.3em -6px 1.3em !important;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  background: var(--mist);
}
.letter__invite {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 380; font-size: 1.1em; line-height: 1.5;
}
.letter__signature {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  margin: .9rem 0 0;
  font-family: var(--font-hand); font-weight: 600;
  font-size: 1.875rem; line-height: 1.1; color: var(--ink);
  text-align: right;
  transform: rotate(-2deg);
}
.letter__signature::after {
  content: ""; flex: none; width: 26px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath d='M20 33C13.4 28.4 4.4 21.6 3.2 13.6 2.2 7 6.6 2.8 11.8 3.2c3.8.3 6.6 3 8.2 6.4 1.8-3.8 5-6.4 9.2-6.2 5.4.3 9 5.2 7.4 11.6C34.8 22.2 26.4 28.4 20 33Z' fill='%23EF7F78'/%3E%3C/svg%3E") no-repeat center / contain;
}
.story__next { display: flex; justify-content: center; margin: 40px 0 0; }

@media (min-width: 400px) {
  .letter { font-size: 1.0625rem; line-height: 1.7; }
  .book__page { padding: 50px 20px 28px; }
}
@media (min-width: 600px) {
  .book__page { margin-inline: 0; padding: 60px 40px 36px; }
  .letter__thanks { margin-inline: -8px !important; padding: 20px 24px; }
}
@media (min-width: 768px) {
  /* the cup's speckles around the page, kept away from the chapter title (a clear top) */
  .story {
    padding: 72px 0 88px;
    background-image:
      linear-gradient(var(--mist), var(--mist) 340px, rgba(211, 231, 228, 0) 420px),
      radial-gradient(circle, rgba(138, 85, 38, .2) 1px, transparent 1.6px),
      radial-gradient(circle, rgba(2, 59, 54, .1) 1.1px, transparent 1.7px);
    background-size: 100% 100%, 61px 53px, 89px 83px;
    background-position: 0 0, 0 0, 40px 25px;
    background-repeat: no-repeat, repeat, repeat;
  }
  .story__lead { max-width: none; font-size: 2.125rem; }
  .book__page { padding: 66px 64px 44px; }
  .letter { font-size: 1.1875rem; line-height: 1.72; }
  .letter__hello { font-size: 2.625rem; }
  .letter__thesis { font-size: 1.55em; }
  .letter__signature { font-size: 2.25rem; }
}
/* wide screens: an open book. The left page is the chapter's title page (it stays in view while
   you read); the letter fills the right page in one column, so nobody scrolls back up between pages.
   A coral ribbon bookmark lies in the gutter, with Miroo's bow tied at its top. */
@media (min-width: 1100px) {
  .story { padding: 96px 0 104px; }
  .book {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: none;
    background: var(--paper-light);
    border-radius: 10px 10px 14px 14px;
    box-shadow: var(--page-stack);
    isolation: isolate;
  }
  .book::before {
    content: ""; position: absolute; z-index: 2; top: 0; left: calc(50% - 11px);
    width: 22px; height: calc(100% + 46px);
    background: linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(255, 255, 255, .14) 35%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .12)), var(--coral);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 15px), 0 100%);
  }
  .book::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
    background:
      linear-gradient(90deg, transparent calc(50% - 64px), rgba(2, 59, 54, .05) calc(50% - 16px), rgba(2, 59, 54, .13) 50%, rgba(2, 59, 54, .05) calc(50% + 16px), transparent calc(50% + 64px)),
      radial-gradient(130% 90% at 50% 40%, transparent 62%, rgba(212, 155, 101, .08));
  }
  /* the left page: an endpaper with Miroo's polka dots, and a stitched title card that stays in view */
  .book__title {
    padding: 64px 52px 64px 56px;
    border-radius: 10px 0 0 14px;
    background:
      radial-gradient(circle, rgba(169, 194, 146, .42) 2.5px, transparent 3px) 0 0 / 26px 26px,
      radial-gradient(circle, rgba(169, 194, 146, .42) 2.5px, transparent 3px) 13px 13px / 26px 26px;
  }
  .book__title-inner {
    position: sticky; top: 48px;
    padding: 40px 30px 34px;
    background: var(--paper-light);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
  }
  .book__title-inner::before {
    content: ""; position: absolute; inset: 8px; pointer-events: none;
    border: 1.75px dashed var(--stitch); border-radius: 17px;
  }
  .book__title .chapter-head { margin-bottom: .9rem; }
  .book__title h2 { font-size: clamp(2.5rem, 1.2rem + 1.9vw, 3rem); }
  .book__art { display: block; width: min(100%, 320px); height: auto; margin: 30px auto 0; }
  .book__page { margin: 0; padding: 72px 52px 60px 56px; background: none; box-shadow: none; border-radius: 0; }
  .book__bow { top: -44px; left: 0; width: 120px; height: 86px; transform: translateX(-50%) rotate(-4deg); }
  .letter { font-size: 1.125rem; line-height: 1.72; }
  .story__next { margin-top: 84px; }
}

/* ---------- Capitolul II: what you find ---------- */
.offer { padding: 76px 0 28px; }
.section-intro {
  max-width: 20.4em; margin: 0 auto;
  font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); line-height: 1.5; text-align: center; text-wrap: balance;
  color: var(--ink-deep);
}
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
/* phones: compact cards, picture on the left */
.card {
  position: relative; flex: 1 1 100%;
  display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 18px 18px 18px 12px;
  background: var(--paper-light);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.card::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1.5px dashed var(--stitch); border-radius: 18px;
}
.card__art { grid-row: 1 / span 2; position: relative; isolation: isolate; width: 76px; height: 76px; }
.card__art svg { width: 100%; height: 100%; }
.card__art::before {
  content: ""; position: absolute; inset: -10px -12px; z-index: -1;
  background:
    radial-gradient(closest-side, var(--w1), rgba(255, 255, 255, 0)) 30% 40% / 86% 88% no-repeat,
    radial-gradient(closest-side, var(--w2), rgba(255, 255, 255, 0)) 76% 70% / 66% 66% no-repeat;
}
.card--cup { --w1: rgba(211, 231, 228, 1); --w2: rgba(230, 205, 170, .85); }
.card--play { --w1: rgba(249, 177, 130, .55); --w2: rgba(242, 181, 48, .42); }
.card--stage { --w1: rgba(141, 184, 232, .55); --w2: rgba(249, 177, 130, .45); }
.card--robot { --w1: rgba(187, 207, 166, .8); --w2: rgba(211, 231, 228, 1); }
.card--party { --w1: rgba(242, 181, 48, .42); --w2: rgba(244, 112, 75, .3); }
.card h3 { align-self: end; margin: 0 0 .2rem; font-size: 1.25rem; }
.card p { align-self: start; margin: 0; color: var(--ink-deep); font-size: 1rem; line-height: 1.5; }
@media (min-width: 400px) {
  .card { grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; padding: 20px 20px 20px 14px; }
  .card__art { width: 88px; height: 88px; }
  .card h3 { font-size: 1.3125rem; }
}
@media (min-width: 600px) {
  .cards { gap: 22px; margin-top: 44px; }
  .card { flex: 0 1 calc(50% - 11px); display: block; padding: 30px 24px 32px; border-radius: 28px; text-align: center; }
  .card::after { inset: 8px; border-radius: 21px; }
  .card__art { width: 120px; height: 120px; margin: 0 auto 16px; }
  .card h3 { margin-bottom: .45rem; font-size: clamp(1.375rem, 1.2rem + .7vw, 1.625rem); }
  .card p { font-size: inherit; }
}
@media (min-width: 900px) {
  .offer { padding: 104px 0 40px; }
}
@media (min-width: 1100px) {
  .cards { gap: 26px; }
  .card { flex: 0 1 calc((100% - 52px) / 3); padding: 34px 30px 36px; }
  .card__art { width: 132px; height: 132px; }
}

.divider { display: flex; justify-content: center; padding: 8px 0 0; }
.divider svg { width: 184px; height: 30px; }

/* ---------- Capitolul IV: events ---------- */
.events { position: relative; padding: 36px 0 84px; }
/* A ticket: the facts first (body), then a perforation, then the stub with the poster.
   The theme is a few custom properties with defaults, so a copied event without a theme still
   looks finished; ticket--night and ticket--sky only change them. */
.tickets { display: grid; gap: 24px; margin-top: 32px; }
.ticket {
  --stub: var(--latte-wash);
  --stub-pattern: radial-gradient(circle, rgba(102, 130, 58, .22) 2.2px, transparent 2.8px) 0 0 / 22px 22px;
  --chip: var(--latte-wash);
  --chip-ink: var(--caramel-ink);
  --deco: var(--mustard);
  --cut: var(--paper);
  --notch: 13px;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-radius: 26px;
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
}
.ticket--night {
  --stub: var(--night);
  --stub-pattern:
    radial-gradient(circle, rgba(251, 246, 238, .9) .9px, transparent 1.5px) 11px 23px / 97px 89px,
    radial-gradient(circle, rgba(251, 246, 238, .55) .7px, transparent 1.2px) 37px 5px / 53px 61px,
    radial-gradient(circle, rgba(242, 181, 48, .85) 1.1px, transparent 1.8px) 70px 44px / 151px 137px;
  --chip: var(--night);
  --chip-ink: var(--mustard);
}
.ticket--sky {
  --stub: var(--sky);
  --stub-pattern: radial-gradient(circle, rgba(251, 246, 238, .34) 2.2px, transparent 2.8px) 0 0 / 24px 24px;
  --chip: var(--sky-wash);
  --chip-ink: var(--ink);
}
.ticket__body { padding: 24px 22px 26px; }
.ticket__date {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  margin: 0; padding: 6px 14px 6px 10px;
  border-radius: 14px;
  background: var(--chip); color: var(--chip-ink);
  font-weight: 800; font-size: 1rem; line-height: 1.3;
}
.ticket__date svg { width: 20px; height: 20px; flex: none; }
/* each part of the date stays whole while it fits, and wraps inside only when it does not */
.ticket__date .nowrap { white-space: normal; display: inline-block; }
/* narrow phones: the calendar goes above the date, so both parts of the date stay whole */
@media (max-width: 22em) { .ticket__date { flex-wrap: wrap; } }
.ticket__title { margin: 14px 0 10px; font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem); line-height: 1.08; }
.ticket__text { margin: 0; font-size: 1.0625rem; color: var(--ink-deep); }
.ticket__meta { margin: 18px 0 0; }
/* an admission ticket for the price, notched on both sides */
.price {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 24px 9px 20px;
  border-radius: 8px;
  background: var(--mustard); color: var(--night);
  font-weight: 900; font-size: 1.125rem; line-height: 1.2;
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px) right / 51% 100% no-repeat;
  transform: rotate(-2deg);
}
.price svg, .place svg { width: 18px; height: 18px; flex: none; }
.place {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font-weight: 800;
}
.place svg { color: var(--coral-ink); }
.ticket__stub {
  position: relative; z-index: 0;
  display: grid; place-items: center;
  padding: 30px 22px 28px;
  background: var(--stub);
}
.ticket__stub::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--stub-pattern);
}
/* the perforation: two notches and a dashed line along the stub's top edge */
.ticket__stub::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: 0; right: 0; top: calc(-1 * var(--notch)); height: calc(2 * var(--notch));
  padding: 0 calc(var(--notch) + 8px);
  background:
    radial-gradient(circle at 0 50%, var(--cut) calc(var(--notch) - .5px), transparent var(--notch)) border-box,
    radial-gradient(circle at 100% 50%, var(--cut) calc(var(--notch) - .5px), transparent var(--notch)) border-box,
    linear-gradient(90deg, rgba(2, 59, 54, .3) 0 7px, transparent 7px 13px) content-box center / 13px 2px repeat-x;
}
.ticket__poster { display: block; width: min(100%, 248px); border-radius: 12px; }
.ticket__poster img {
  width: 100%; border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .55);
  transform: rotate(1.6deg);
}
.ticket:nth-child(even) .ticket__poster img { transform: rotate(-1.6deg); }
.ticket--night .ticket__poster img { background: #22344F; }
.ticket--night .ticket__stub { --focus: var(--mustard); }
.ticket--sky .ticket__poster img { background: #C9DDF4; }
.ticket__deco { position: absolute; z-index: 0; width: 26px; height: 26px; color: var(--deco); pointer-events: none; }
.ticket__deco--wide { width: 66px; height: 53px; }
@media (max-width: 379px) { .ticket__deco--wide { display: none; } }
.ticket__deco--tl { top: 22px; left: 18px; transform: rotate(-10deg); }
.ticket__deco--tr { top: 24px; right: 20px; width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(242, 181, 48, .7)); }
.ticket__deco--bl { bottom: 26px; left: 22px; width: 14px; height: 14px; }
@media (min-width: 600px) {
  .ticket { grid-template-columns: 236px minmax(0, 1fr); grid-template-areas: "stub body"; }
  .ticket__body { grid-area: body; align-self: center; padding: 30px 30px 32px 34px; }
  .ticket__stub { grid-area: stub; padding: 28px 18px; }
  .ticket__stub::after {
    left: auto; top: 0; bottom: 0; right: calc(-1 * var(--notch));
    width: calc(2 * var(--notch)); height: auto;
    padding: calc(var(--notch) + 8px) 0;
    background:
      radial-gradient(circle at 50% 0, var(--cut) calc(var(--notch) - .5px), transparent var(--notch)) border-box,
      radial-gradient(circle at 50% 100%, var(--cut) calc(var(--notch) - .5px), transparent var(--notch)) border-box,
      linear-gradient(rgba(2, 59, 54, .3) 0 7px, transparent 7px 13px) content-box center / 2px 13px repeat-y;
  }
  .ticket__poster { width: 100%; }
  .ticket__deco { z-index: 2; }
  .ticket__deco--wide { display: none; }
  .ticket__deco--tr { top: 14px; right: 10px; }
}
@media (min-width: 1100px) {
  .tickets { grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 28px; }
  .ticket { justify-self: center; width: 100%; max-width: 640px; }
  .ticket__title { font-size: 1.875rem; }
}

.events__fallback {
  max-width: 19.75em; margin: 8px auto 0; padding: 10px 0;
  text-align: center; text-wrap: balance;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: 1.5rem; line-height: 1.35;
}

/* the ongoing robotics programme: a stitched card */
.programme {
  position: relative; margin-top: 28px;
  display: grid; gap: 22px;
  padding: 32px 22px 28px;
  background: var(--paper-light);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}
.programme::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1.75px dashed var(--stitch); border-radius: 22px;
}
.programme h3 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem); }
.programme__motto {
  margin: .35rem 0 1rem;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500; font-size: 1.375rem; line-height: 1.3; color: var(--coral-ink);
}
.programme__label {
  margin: 1.2rem 0 .5rem;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600; font-size: .9375rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--caramel-ink);
}
.programme__skills { list-style: none; margin: 0; padding: 0; }
.programme__skills li { position: relative; padding-left: 30px; margin-bottom: .4em; }
.programme__skills li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.9 7.2 3.8 10.1 11 11-7.2.9-10.1 3.8-11 11-.9-7.2-3.8-10.1-11-11 7.2-.9 10.1-3.8 11-11z' fill='%23F2B530'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* phones: the facts are pastel toy blocks with a pressed bottom edge */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 13px 14px;
  border-radius: 16px;
  background: var(--tile, var(--latte-wash));
  box-shadow: inset 0 -4px 0 rgba(2, 59, 54, .09);
}
.fact--mustard { --tile: #FBE6B2; }
.fact--sky { --tile: #DCE9F8; }
.fact--sage { --tile: #E2EBD5; }
.fact--blush { --tile: #FCE0CF; }
.fact--latte { --tile: #F1E2CC; }
.fact:last-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
.fact__k { font-size: .9375rem; font-weight: 800; line-height: 1.25; color: var(--ink-deep); }
.fact__k, .fact__v { text-wrap: balance; }
.fact__dots { display: none; }
.fact__v {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600; font-size: 1.1875rem; line-height: 1.2;
}
@media (max-width: 399px) {
  .fact { padding: 10px 11px 13px; }
  .fact__v { font-size: 1.0625rem; }
}
.programme__with { margin: 18px 0 10px; }
.programme__call { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-weight: 800; }
.phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 6px 18px 6px 14px; border-radius: 999px;
  border: 2px solid transparent;
  background: var(--mist); color: var(--ink);
  font-weight: 900; text-decoration: none; letter-spacing: .02em;
}
.phone svg { width: 20px; height: 20px; flex: none; }
.phone:hover { background: var(--mist-deep); }
.programme__closing {
  margin: 0; text-align: center; text-wrap: balance;
  font-family: var(--font-hand); font-weight: 600;
  font-size: 1.875rem; line-height: 1.15; color: var(--ink);
}
@media (min-width: 900px) {
  .programme { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 26px 56px; padding: 48px 56px 40px; }
  .programme__closing { grid-column: 1 / -1; }
  /* wide screens: the facts read like a menu, with dotted leaders */
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fact, .fact:last-child {
    flex-direction: row; align-items: baseline; gap: 8px;
    padding: 9px 0; border-radius: 0; background: none; box-shadow: none;
  }
  .fact__dots { display: block; flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted rgba(2, 59, 54, .3); transform: translateY(-5px); }
  .fact__v { margin-left: auto; text-align: right; }
}

/* ---------- Capitolul III: the menu (a stitched menu card with dotted leaders) ---------- */
.menu { --band: #EDF2E4; background: var(--band); padding: 72px 0 80px; }
.menu__card {
  position: relative; max-width: 860px; margin: 30px auto 0;
  padding: 34px 22px 28px;
  background: var(--paper-light);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.menu__card::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1.75px dashed var(--stitch); border-radius: 22px;
}
.menu__art { width: 78px; height: 78px; margin: -4px auto 2px; }
.menu__art svg { width: 100%; height: 100%; }
/* one line at a size that fits 320 px even in the fallback font, so Caveat swapping in never moves the list */
.menu__tagline {
  margin: 0 0 14px; white-space: nowrap;
  font-family: var(--font-hand); font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 1.875rem); line-height: 1.15; color: var(--coral-ink);
}
.menu__lists { display: grid; gap: 4px; text-align: left; }
.menu__list { margin: 0; }
.menu__list + .menu__list { padding-top: 14px; border-top: 1.5px dashed var(--stitch); margin-top: 10px; }
.menu__item { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.menu__item dt {
  display: flex; flex: 1 1 auto; align-items: baseline; gap: 10px; min-width: 0;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600; font-size: 1.1875rem; line-height: 1.3;
}
.menu__item dt::after {
  content: ""; flex: 1 1 18px; min-width: 18px;
  border-bottom: 2px dotted rgba(2, 59, 54, .3); transform: translateY(-5px);
}
.menu__item dd {
  margin: 0; white-space: nowrap;
  font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; color: var(--ink-deep);
}
.menu__note { font-family: var(--font-body); font-variation-settings: normal; font-weight: 600; font-size: .9375rem; color: var(--ink-deep); }
.menu__printed { margin: 18px 0 0; font-weight: 800; }
.menu + .divider { padding-top: calc(var(--sc) + 14px); }
.menu__printed a { display: inline-block; padding: 11px 6px; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
@media (min-width: 720px) {
  .menu { padding: 96px 0 104px; }
  .menu__card { padding: 44px 52px 36px; }
  .menu__lists { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; }
  .menu__list + .menu__list { padding-top: 0; border-top: 0; margin-top: 0; }
  .menu__item dt { font-size: 1.25rem; }
}

/* ---------- Capitolul V: visit ---------- */
.visit {
  --band: var(--latte-wash);
  background: var(--latte-wash);
  padding: 64px 0 80px;
}
.visit__inner { display: grid; gap: 28px; }
.visit__card {
  position: relative;
  margin: 6px 0 0; padding: 28px 24px 26px;
  background: var(--paper-light);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}
.visit__card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1.75px dashed var(--stitch); border-radius: 19px;
}
.visit__address {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600; font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.375rem); line-height: 1.12;
}
.visit__address svg { width: 30px; height: 30px; flex: none; color: var(--coral-ink); }
.visit__hours { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--ink-deep); }
.visit__hours > svg { width: 22px; height: 22px; flex: none; margin-top: .2em; color: var(--leaf-ink); }
/* Weekly hours (from Google Maps). site.js marks today's row with aria-current="date". */
.hours { flex: 1; min-width: 0; container-type: inline-size; }
.hours__title {
  margin: 0 0 6px;
  font-family: var(--font-body); font-variation-settings: normal;
  font-size: 1.0625rem; font-weight: 800; letter-spacing: .01em; line-height: 1.4; color: var(--ink);
}
.hours__list { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.hours__row {
  display: grid; grid-column: 1 / -1;
  grid-template-columns: 7.25em minmax(0, 1fr);
  grid-template-columns: subgrid;
  column-gap: 14px; align-items: baseline;
  margin: 0 -10px; padding: 5px 10px; border-radius: 10px;
}
.hours__row dt { font-weight: 750; color: var(--ink); }
.hours__row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours__row[aria-current="date"] { background: var(--mist); }
.hours__row[aria-current="date"] dt::after {
  content: "azi"; display: inline-block; margin-left: 8px; padding: 1px 8px 2px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4; vertical-align: .12em;
}
/* phones: the "azi" badge sits under the day name, so it never narrows the hours column */
@media (max-width: 599px) {
  .hours__row[aria-current="date"] dt::after { display: block; width: fit-content; margin: 2px 0 0; }
}
/* larger text in a narrow card: each day above its hours */
@container (max-width: 12em) {
  .hours__list { grid-template-columns: minmax(0, 1fr); }
}
.hours__note { margin: 10px 0 0; font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--caramel-ink); }
.visit__map { margin: 24px 0 0; }
/* The <!-- CONTACT --> pills under the Maps button: the café's phone, e-mail and Waze. Add Instagram or
   Facebook as another <li><a …>…</a></li> when the pages exist. */
.visit__contact { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; }
.visit__contact a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px;
  color: var(--ink); font-weight: 800; text-decoration: none;
}
.visit__contact a:hover { background: var(--mist); }
.visit__contact svg { width: 20px; height: 20px; flex: none; }
.visit__contact li { min-width: 0; max-width: 100%; }
.visit__contact a { max-width: 100%; }
@media (max-width: 359px) { .visit__contact a { padding-inline: 14px; } }
.visit__art { justify-self: center; width: min(100%, 290px); }
.visit__art svg { width: 100%; height: auto; }
.visit__invite {
  width: min(100% - 2 * var(--gutter), 14.5em);
  margin: 36px auto 0;
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 560; font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.12;
  text-align: center; text-wrap: balance;
}
@media (min-width: 600px) {
  .visit__card { padding: 36px 36px 32px; }
}
@media (min-width: 900px) {
  .visit { padding: 92px 0 112px; }
  .visit__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
  .visit__art { width: 100%; max-width: 480px; }
  .visit__invite { margin-top: 56px; }
}

/* ---------- Footer: the back cover ---------- */
.site-footer {
  --band: var(--ink);
  --focus: var(--mustard);
  z-index: 2;
  background: var(--ink); color: var(--paper);
  padding: 46px 0 40px;
  text-align: center;
}
.site-footer__inner { display: grid; justify-items: center; }
.site-footer__mark { width: 168px; margin-bottom: 14px; }
.site-footer p { margin: 0 0 6px; }
.site-footer__addr a { display: inline-block; padding-block: 11px; }
.site-footer__tag { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 500; font-size: 1.3125rem; }
.site-footer__small { margin-top: 18px !important; padding-top: 18px; border-top: 1.5px dashed rgba(251, 246, 238, .3); font-size: 1rem; color: #E4EEEA; }

/* ---------- 404 ---------- */
.lost { padding: 36px 0 96px; text-align: center; }
.lost__art { position: relative; width: 210px; aspect-ratio: 1; margin: 0 auto 6px; }
.lost__trail { width: 220px; height: 64px; margin: 0 auto 18px; }
.lost h1 { font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem); font-variation-settings: "SOFT" 100, "WONK" 1; max-width: 11.85em; margin: 0 auto; }
.lost p { max-width: 18em; margin: 18px auto 28px; font-size: 1.25rem; color: var(--ink-deep); }

/* ---------- Reduced motion: switch every transition and animation off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
