/* Brand manuál, časť Ceruzka (emzak.sk/brand#ceruzka). Stavia na site.css a brand.css, ťahy kreslí
   ceruzka-20261019.js. Súbor má v názve dátum: cache je rok. Bez inline štýlov (CSP). */

/* Shantell Sans ako statický rez pre ceruzku: hrúbka 460, neformálnosť 100, poskakovanie 25 (OFL). Len znaky z poznámok
   a malá abeceda so slovenskou a českou diakritikou (P8, tools/fonts.py); unicode-range je presne to, čo súbor má,
   check_site.py stráži, aby poznámka nepoužila iný znak. Bez prednačítania: poznámky sú skryté, kým sa nedopíšu. */
@font-face { font-family: "Shantell Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/shantell-ceruzka-20261030b.woff2) format("woff2");
  unicode-range: U+0020, U+002C-002E, U+0030, U+0034, U+004F, U+0053, U+0056, U+0061-007A, U+00DA, U+00E1, U+00E4, U+00E9, U+00ED, U+00F3-00F4, U+00FA, U+00FD, U+010D, U+010F, U+011B, U+013A, U+013E, U+0148, U+0155, U+0159, U+0161, U+0165, U+016F, U+017E; }

/* ťah v tóne značkovača, písmo ceruzkou tmavšie (kontrast 5 : 1 na bielom) */
:root { --pen-stroke: #22b5ea; --pen-ink: #0f789e; }
.c-pencil { background: #0f789e; }

.cz-hand { font: 400 var(--hs, 1.45rem)/1.15 "Shantell Sans", cursive; letter-spacing: 0; color: var(--pen-ink); }
.cz-on .cz-hand { -webkit-mask-image: var(--cz-grain); mask-image: var(--cz-grain); -webkit-mask-size: 96px; mask-size: 96px; }
.cz-hand.wait { clip-path: inset(-40% 104% -40% -12%); }
.cz-hand.wait.on { clip-path: inset(-40% -12% -40% -12%); }

.cz-scope { position: relative; }
.cz-t { position: relative; display: inline-block; white-space: nowrap; }
.cz-pen { position: absolute; left: 0; top: 0; width: 1px; height: 1px; max-width: none; overflow: visible; pointer-events: none; z-index: 2; }
.cz-pen path { fill: none; stroke: url(#cz-graphite) var(--pen-stroke); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1.1; stroke-dashoffset: 0; }
.cz-defs { position: absolute; width: 0; height: 0; }
.cz-g-base { fill: var(--pen-stroke); }
.cz-g-dots { fill: #fff; opacity: .6; }

/* zošitový list: biela karta s linajkami a okrajom */
.tile.cz-sheet { position: relative; padding-left: 50px; background-color: #fff; box-shadow: inset 0 0 0 1px var(--line);
  background-image: linear-gradient(#dbecf5 1px, transparent 1px); background-size: 100% 32px; background-position: 0 31px; }
.tile.cz-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 26px; width: 2px; background: var(--marker); opacity: .4; }
.tile.cz-plain { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* ťahy */
.cz-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cz-grid > .tile { display: flex; flex-direction: column; }
.cz-demo { display: flex; flex-direction: column; justify-content: center; min-height: 150px; margin: 0 0 14px; font-size: 1.12rem; }
.cz-demo p { margin: 0; }
.cz-grid b { font: 750 1.3rem/1.1 var(--display); font-stretch: 85%; }
.cz-grid .cap { margin-top: 6px; }
.cz-arrow { justify-content: space-between; min-height: 170px; }
.cz-arrow .cz-hand { align-self: flex-start; transform: rotate(-4deg); }
.cz-arrow .approve { align-self: flex-end; padding: 14px 40px; }
.cz-checks { margin: 0; padding: 0 0 0 44px; list-style: none; display: grid; gap: 10px; }
.cz-fix-new { display: block; margin: 0 0 2px 14px; transform: rotate(-2deg); --hs: 1.4rem; }
.cz-fix-old { color: var(--graphite); }

/* písmo a farba */
.cz-pal { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cz-pal { grid-template-columns: 2fr 1fr 1fr; } }
.cz-type { display: flex; flex-direction: column; gap: 12px; }
.cz-type .cz-big { --hs: 2rem; }
.cz-type .cz-dia { --hs: 1.3rem; letter-spacing: .04em; }
.cz-aside { max-width: 62ch; margin-top: 20px; color: var(--graphite); }

/* v kontexte */
.cz-ctx { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.cz-ctx .cap.cz-out { display: block; margin-top: 10px; font-size: .88rem; color: var(--graphite); }
.cz-logo { display: grid; place-items: center; min-height: 320px; }
.cz-logo .wm { font-size: clamp(3.4rem, 8vw, 5rem); }
.cz-logo .cz-hand { position: absolute; right: 22px; bottom: 26px; transform: rotate(-3deg); --hs: 1.25rem; max-width: 15ch; }
.cz-web { min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cz-web .cz-title { font: 800 clamp(2.1rem, 4.6vw, 3.1rem)/1 var(--display); font-stretch: 75%; letter-spacing: -.02em; margin: 0 0 10px; }
.cz-web .cz-lead { color: var(--graphite); font-size: 1.1rem; margin: 0 0 22px; }
.cz-web .btn svg { flex: none; }
.cz-web .cz-hand { position: absolute; right: 26px; bottom: 30px; transform: rotate(-5deg); --hs: 1.5rem; }

/* ako nie */
.cz-donts { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.cz-donts .tile { display: flex; flex-direction: column; }
.cz-no { font-size: .85rem; font-weight: 600; color: var(--graphite); margin-bottom: 8px; }
.cz-donts .cz-demo { min-height: 130px; }
.approve.cz-hand-btn { font: 400 1.3rem/1.1 "Shantell Sans", cursive; color: #fff; align-self: flex-start; }

@media (prefers-reduced-motion: reduce) { .cz-hand.wait, .cz-hand.wait.on { clip-path: none; } }
