/* Sheep Shop Ostrava — tokens first, colours are late-swappable */
:root {
  --ink: #3F2726;
  --ink-deep: #2C1A19;
  --cheese: #F4BF3F;
  --cheese-d: #DE9F27;
  --cream: #FFECB3;
  --paper: #FFF9EA;
  --white: #FFFDF5;
  --accent: #CC5A5A;
  --heart: #FF2BD6;

  /* three fonts only: headings, body, details */
  --f-display: 'Life Savers', Georgia, serif;
  --f-body: 'Apfel Grotezk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Shantell Sans', 'Segoe Script', cursive;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --sec: 112px;
  --top-h: 78px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --blob: 26px 18px 30px 16px / 18px 28px 16px 30px;
  --sticker: drop-shadow(5px 7px 0 rgba(63, 39, 38, .2));
}
@media (min-width: 900px) { :root { --top-h: 104px; --sec: 156px; } }
/* more room after the cheese kinds before the next band (mentor: about 200 px) */
@media (min-width: 900px) { .shop { padding-bottom: 200px; } }

*, *::before, *::after { box-sizing: border-box; }
/* iOS rubber-banding shows the canvas behind the page: the header colour at the top, the footer colour once the
   reader is in the lower half (site.js sets .is-low). The bounce itself stays, it is how people pull to refresh. */
html { background: var(--cheese); overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); }
html.is-low { background: var(--ink); }
/* body stays transparent: Safari paints the overscroll area from the body when it has a colour, so the paper sits on main and html alone decides the bounce colour */
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; font-variation-settings: 'INFM' 100, 'BNCE' 45; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
main { overflow-x: clip; background: var(--paper); }
.defs { position: absolute; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sec { padding-block: var(--sec); position: relative; }
.cols { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s6); } }
.dark { background: var(--ink); color: var(--cream); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: var(--gutter); top: -80px; z-index: 300; background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h1, .h2, .h3, .hero__h { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.hero__h { font-size: clamp(3rem, 8.4vw, 6.5rem); line-height: .98; }
.h1 { font-size: clamp(3.1rem, 9vw, 7rem); line-height: .95; }
.h2 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); line-height: 1.02; }
.h3 { font-size: clamp(1.75rem, 3.4vw, 2.625rem); line-height: 1.06; }

/* ---------- cheese holes ---------- */
.hole { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: calc(var(--s) * .86); background: var(--cheese-d); border: 3px solid var(--ink); border-radius: 58% 42% 63% 37% / 45% 60% 40% 55%; box-shadow: inset calc(var(--s) * .07) calc(var(--s) * .08) 0 rgba(63, 39, 38, .1); rotate: 8deg; pointer-events: none; will-change: transform; }
/* no two holes the same shape: real cheese holes are lopsided, not ellipses */
.hole:nth-of-type(3n+1) { border-radius: 43% 57% 38% 62% / 55% 41% 59% 45%; rotate: -14deg; height: calc(var(--s) * .8); }
.hole:nth-of-type(3n+2) { border-radius: 61% 39% 52% 48% / 38% 57% 43% 62%; rotate: 24deg; height: calc(var(--s) * .9); }
@media (max-width: 899px) { .hole { width: calc(var(--s) * .62); height: calc(var(--s) * .53); border-width: 2.5px; } }
.hh1 { --x: -9%; --y: 52%; --s: 190px; }
.hh2 { --x: 78%; --y: 88%; --s: 92px; }
.hh3 { --x: 84%; --y: 30%; --s: 110px; }
.hh4 { --x: 4%; --y: 93%; --s: 60px; }
.hh5 { --x: 58%; --y: 96%; --s: 46px; }
@media (min-width: 900px) {
  .hh1 { --x: -3%; --y: 66%; }
  .hh2 { --x: 34%; --y: 80%; }
  .hh3 { --x: 91%; --y: 20%; --s: 150px; }
  .hh4 { --x: 56%; --y: 12%; --s: 66px; }
  .hh5 { --x: 40%; --y: 15%; }
}

/* ---------- buttons: a slab of cheese whose holes blink ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 70px 0 28px; background: var(--cheese); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--blob); box-shadow: 4px 5px 0 var(--ink); font: 700 1.0625rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn::before, .btn::after { content: ''; position: absolute; background: var(--cheese-d); border: 2.5px solid var(--ink); border-radius: 58% 42% 55% 45% / 46% 58% 42% 54%; }
.btn::before { width: 17px; height: 15px; right: 36px; top: 13px; }
.btn::after { width: 12px; height: 11px; right: 17px; bottom: 12px; }
.btn:hover { transform: translate(-1px, -3px) rotate(-1.4deg); box-shadow: 6px 9px 0 var(--ink); }
.btn:hover::before, .btn:hover::after { animation: holeblink .55s; }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn--s { min-height: 52px; padding: 0 56px 0 18px; font-size: 1rem; }
.btn--s::before { right: 30px; top: 10px; width: 14px; height: 12px; }
.btn--s::after { right: 13px; bottom: 10px; }
.dark .btn { box-shadow: 4px 5px 0 var(--ink-deep); }
@keyframes holeblink { 0%, 100% { transform: scaleY(1); } 35%, 55% { transform: scaleY(.08); } }

.soc { display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 4px 24px 4px 10px; border: 3px solid currentColor; border-radius: var(--blob); font: 600 1.375rem/1 var(--f-hand); text-decoration: none; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.soc svg { width: 46px; height: 46px; overflow: visible; }
.soc:hover { background: var(--cheese); color: var(--ink); border-color: var(--ink); transform: rotate(-2deg); }
.soc:hover svg { animation: wag .5s var(--ease); }
.soc--s { padding: 4px; min-height: 0; border-radius: 50%; }
@keyframes wag { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top-h); transition: transform .45s var(--ease), background-color .3s, box-shadow .3s; }
.top.is-solid { background: var(--cheese); box-shadow: 0 3px 0 var(--ink); }
.top.is-solid { --top-h: 72px; }
@media (min-width: 900px) { .top.is-solid { --top-h: 84px; } }
.top.is-hidden { transform: translateY(-110%); }
.top__in { height: 100%; display: flex; align-items: center; gap: 12px; }
.top__logo { margin-right: auto; display: block; }
.top__logo img { height: calc(var(--top-h) - 34px); width: auto; transition: transform .25s var(--ease); }
.top__logo:hover img { transform: rotate(-2deg) scale(1.03); }
.nav { display: none; gap: 10px; }
.nav a, .top__tel { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; background: var(--cheese-d); border: 3px solid var(--ink); border-radius: 58% 40% 54% 44% / 64% 52% 46% 38%; rotate: -1deg; box-shadow: inset 5px 6px 0 rgba(63, 39, 38, .1); font-weight: 700; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.nav a:nth-child(even) { border-radius: 42% 60% 46% 56% / 50% 40% 62% 54%; rotate: 1.2deg; }
.nav a:nth-child(3n) { border-radius: 52% 44% 62% 40% / 40% 60% 50% 58%; rotate: -.4deg; }
.top__tel { border-radius: 46% 56% 42% 58% / 56% 44% 60% 42%; rotate: .8deg; }
.nav a:hover, .nav a.is-current, .top__tel:hover { background: var(--white); transform: rotate(-2.5deg) scale(1.05); }
.top__tel { display: none; background: var(--white); }
.top__cart, .burger { position: relative; width: 50px; height: 46px; flex: none; display: grid; place-items: center; padding: 0; background: var(--cheese-d); border: 3px solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 54% 46% 52%; box-shadow: inset 4px 5px 0 rgba(63, 39, 38, .1); cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.top__cart:hover, .burger:hover { background: var(--white); transform: rotate(-4deg); }
.top__cart svg { width: 28px; height: 28px; }
.top__cart b { position: absolute; right: -8px; top: -8px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; background: var(--accent); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font: 700 .8125rem/1 var(--f-body); }
.top__cart b[hidden] { display: none; }
.burger { gap: 0; align-content: center; row-gap: 6px; }
.burger i { width: 20px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .top__tel { display: inline-flex; }
  .burger { display: none; }
}

.menu { position: fixed; inset: 0; z-index: 40; background: var(--cheese); padding: calc(var(--top-h) + 32px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; clip-path: circle(0 at calc(100% - var(--gutter) - 25px) calc(var(--top-h) / 2)); transition: clip-path .6s var(--ease); }
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 25px) calc(var(--top-h) / 2)); visibility: visible; }
.menu nav { position: relative; display: grid; gap: var(--s2); }
.menu nav a { font: 800 clamp(2.4rem, 11vw, 3.5rem)/1.1 var(--f-display); text-decoration: none; opacity: 0; transform: translateY(24px) rotate(-3deg); transition: opacity .5s var(--ease), transform .5s var(--spring); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .06s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .18s; }
.menu__tel { position: relative; font: 800 1.75rem/1 var(--f-display); text-decoration: none; }
body.menu-open { overflow: hidden; }
body.menu-open .top { background: transparent; box-shadow: none; transform: none; }

/* ---------- animals ---------- */
.animal { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.animal .a-svg { width: 100%; height: auto; overflow: visible; filter: var(--sticker); }
.animal__fallback { width: 100%; }
.a-body, .a-lidfill { fill: var(--white); }
.a-line, .a-part, .a-pupil { fill: #3D1A12; }
.a-lash { fill: none; stroke: #3D1A12; stroke-width: 8; stroke-linecap: round; }
.a-mouth { fill: #6E241B; stroke: #3D1A12; stroke-width: 7; opacity: 0; }
.bubble { position: absolute; z-index: 2; left: var(--bx, 60%); top: var(--by, 0%); width: max-content; max-width: min(240px, 62vw); padding: .85em 1.3em .95em; background: var(--white); color: #3D1A12; border: 3px solid var(--ink); border-radius: 52% 44% 55% 46% / 60% 52% 48% 44%; box-shadow: 4px 5px 0 var(--ink); font: 600 1.3125rem/1.08 var(--f-hand); text-align: center; text-wrap: balance; opacity: 0; transform: scale(.2) rotate(-8deg); transform-origin: var(--bo, 0% 100%); transition: opacity .2s, transform .45s var(--spring); pointer-events: none; }
.bubble::before, .bubble::after { content: ''; position: absolute; background: var(--white); border: 3px solid var(--ink); border-radius: 56% 44% 52% 48% / 48% 58% 42% 52%; box-shadow: 2px 3px 0 var(--ink); }
.bubble::before { width: 22px; height: 18px; left: var(--d1x, 6%); top: calc(100% + 6px); }
.bubble::after { width: 13px; height: 11px; left: var(--d2x, -2%); top: calc(100% + 30px); }
.bubble.on { opacity: 1; transform: none; }
.animal--goat { --bx: 2%; --by: -34%; --bo: 40% 100%; --d1x: 46%; --d2x: 40%; }
.animal--sheep .bubble, .animal--cow .bubble { left: auto; right: var(--br); }
.animal--sheep { --br: -2%; --by: -26%; --bo: 0% 100%; --d1x: 12%; --d2x: 4%; }
.animal--cow { --br: 56%; --by: -34%; --bo: 100% 100%; --d1x: 84%; --d2x: 96%; }
.heart { position: absolute; left: 66%; top: 4%; width: 38px; height: 36px; overflow: visible; pointer-events: none; }
.a-rev { fill: none; stroke: #fff; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.heart__rim { fill: var(--white); stroke: var(--white); stroke-width: 9; stroke-linejoin: round; }
.heart__ink { fill: var(--heart); stroke: #3D1A12; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }


/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--cheese); display: grid; place-items: center; overflow: hidden; --r: 0; -webkit-mask: radial-gradient(circle at 50% 46%, transparent calc(var(--r) * 1px), #000 calc(var(--r) * 1px + 1.5px)); mask: radial-gradient(circle at 50% 46%, transparent calc(var(--r) * 1px), #000 calc(var(--r) * 1px + 1.5px)); }
html:not(.js) .intro { display: none; }
/* The bubble sits in the flow above the animal (beside it on a low, wide screen), never positioned off it,
   so it cannot be cut off. --w is the animal's width: as wide as the screen allows and as tall as is left
   after the bubble and the skip button; --ratio is the height each story needs per unit of width. */
.intro { padding: 16px 16px 76px; --ratio: 1.2; --w: max(110px, min(78vw, 540px, calc((100svh - 262px) / var(--ratio)))); }
.intro--sheep { --ratio: .92; }
.intro--cow { --ratio: 1.2; --w: max(110px, min(56vw, 400px, calc((100svh - 262px) / var(--ratio)))); }
.intro__stage { position: relative; width: 100%; display: grid; justify-items: center; }
.intro__stage .animal { cursor: default; display: grid; justify-items: center; width: 100%; }
.intro__stage .a-svg { width: var(--w); }
.intro__stage .bubble { position: relative; left: auto; right: auto; top: auto; order: -1; margin-bottom: 30px; min-height: 2.9em; display: grid; place-items: center; max-width: min(440px, 100%); font-size: clamp(1.75rem, 7vw, 2.5rem); transform-origin: 50% 100%; --d1x: 46%; --d2x: 40%; }
.intro__cheese { position: absolute; left: 50%; top: 100%; width: calc(var(--w) * .34); margin: calc(var(--w) * -.06) 0 0 calc(var(--w) * -.17); opacity: 0; filter: var(--sticker); }
@media (max-height: 520px) and (orientation: landscape) {
  .intro { padding: 12px 16px 12px; --w: max(110px, min(34vw, calc((100svh - 110px) / var(--ratio)))); }
  .intro--cow { --w: max(110px, min(28vw, calc((100svh - 60px) / var(--ratio)))); }
  .intro__stage { width: fit-content; max-width: 100%; }
  .intro__cheese { left: calc(var(--w) / 2); }
  .intro__stage .animal { width: auto; grid-template-columns: auto minmax(0, 22rem); justify-content: center; align-items: center; column-gap: 44px; }
  .intro__stage .bubble { order: 2; margin: 0; max-width: 100%; font-size: clamp(1.5rem, 4.4vw, 2.25rem); transform-origin: 0 60%; }
  .intro__stage .bubble::before { left: -24px; top: 58%; }
  .intro__stage .bubble::after { left: -40px; top: 76%; }
}
.intro__skip { position: absolute; right: var(--gutter); bottom: max(20px, env(safe-area-inset-bottom)); padding: 10px 18px; background: none; border: 3px solid var(--ink); border-radius: var(--blob); font: 600 1.125rem/1 var(--f-hand); cursor: pointer; }
.intro__skip:hover { background: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--cheese); padding-block: var(--sec); }
.hero__in { position: relative; display: grid; gap: var(--s5); }
.hero__h em { font-style: normal; display: block; color: var(--white); -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill; }
.hero__btn { margin-top: var(--s4); min-height: 68px; padding-left: 20px; background: var(--white); font-size: 1.1875rem; box-shadow: 5px 7px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s, color .2s; }
.hero__btn svg { width: 34px; height: 34px; flex: none; transition: transform .3s var(--spring); }
.hero__btn::before, .hero__btn::after { background: var(--cheese); }
/* the most important way on from the top of the page, so it reacts the most: it turns ink and the pin hops */
.hero__btn:hover, .hero__btn:focus-visible { background: var(--ink); color: var(--white); box-shadow: 6px 9px 0 var(--cheese-d); }
.hero__btn:hover svg, .hero__btn:focus-visible svg { transform: translateY(-5px) rotate(-8deg); }
.hero__pic { position: relative; width: 54%; margin-inline: auto 4%; margin-top: var(--s5); }
.hero__tower { width: 100%; rotate: 2deg; filter: var(--sticker); will-change: transform; }
.hero__goat { position: absolute; width: 112%; left: -82%; bottom: 0; }
.drips { position: absolute; left: 0; top: calc(100% - 2px); width: 100%; height: clamp(64px, 10vw, 140px); z-index: 3; transform-origin: 50% 0; pointer-events: none; filter: drop-shadow(2px 7px 0 rgba(63, 39, 38, .16)); }
.drips__fill { fill: var(--cheese); }
.drips__ink { fill: none; stroke: var(--ink); stroke-width: 4; vector-effect: non-scaling-stroke; }
/* phone: heading, button, tower and goat all on the first screen; the tower shrinks when the screen is short */
@media (max-width: 899px) {
  .hero { padding-bottom: var(--s4); }
  .hero__in { gap: var(--s3); }
  .hero__btn { margin-top: var(--s3); }
  .hero__pic { margin-top: 0; width: clamp(80px, calc((100svh - var(--hero-text, 400px)) * var(--ar, .55)), 54%); }
}
@media (max-width: 899px) and (max-height: 600px) { .hero { --hero-text: 440px; } }
@media (min-width: 900px) {
  .hero { min-height: 100svh; display: grid; align-items: center; }
  .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
  .hero__pic { width: min(100%, 39vh, 370px); margin: 0 0 0 auto; }
  .hero__goat { width: 106%; left: -68%; bottom: 2%; }
}

/* ---------- shop ---------- */
.shop { background: var(--paper); }
.shop__in { align-items: center; padding-top: clamp(40px, 7vw, 96px); }
.kinds { margin-top: var(--s4); display: flex; flex-wrap: wrap; column-gap: .42em; font: 800 clamp(2.75rem, 5.2vw, 4.5rem)/1.04 var(--f-display); letter-spacing: -.02em; }
.kinds span:nth-child(even) { color: var(--accent); }
.goods { margin-top: var(--s3); display: flex; flex-wrap: wrap; font: 700 clamp(1.125rem, 1.6vw, 1.375rem)/1.6 var(--f-body); }
.goods span { display: inline-flex; align-items: center; }
.goods span:not(:last-child)::after { content: ''; width: .45em; height: .4em; margin-inline: .5em; background: var(--cheese); border: 2px solid var(--ink); border-radius: 50%; }

.stage { position: relative; aspect-ratio: 1 / 1.04; }
.stage img { filter: var(--sticker); }
.stage__shelves { position: absolute; width: 82%; left: -2%; top: 0; will-change: transform; }
.stage__shelves img { width: 100%; }
.stage__lukas { position: absolute; width: 52%; right: -4%; bottom: 0; padding: 0; border: 0; background: none; cursor: pointer; will-change: transform; }
.stage__lukas img { width: 100%; }
.stage__jump { position: absolute; will-change: transform; }
.stage__jump--a { width: 20%; left: 6%; bottom: 3%; rotate: -8deg; }
.stage__jump--b { width: 30%; left: 26%; bottom: -1%; rotate: 6deg; }

.lab { display: grid; gap: var(--s2); }
.lab__tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 460px; }
.tool { display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 84px; padding: 10px 6px 10px; background: var(--cheese); border: 3px solid var(--ink); border-radius: var(--blob); box-shadow: 3px 4px 0 var(--ink); font: 700 .9375rem/1.15 var(--f-body); text-align: center; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s; }
.tool:nth-child(2) { border-radius: 18px 28px 16px 30px / 28px 16px 30px 18px; }
.tool svg { width: 38px; height: 38px; overflow: visible; }
.tool:hover { transform: translate(-1px, -2px) rotate(-1.5deg); box-shadow: 5px 7px 0 var(--ink); }
.tool:active, .tool[aria-pressed="true"] { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.tool[aria-pressed="true"] { background: var(--white); }
/* the question, the three buttons and the whole cheese fit one phone screen (iPhone SE 375 x 667) */
.lab__stage { position: relative; width: 100%; max-width: min(460px, calc((100svh - 260px) * 1.07)); min-width: 220px; margin-inline: auto; padding-top: 54px; }
.lab__tip { order: 1; width: 100%; max-width: 460px; padding: 14px 20px 16px; background: var(--cream); border: 3px solid var(--ink); border-radius: 26px 18px 30px 16px / 18px 28px 16px 30px; box-shadow: 4px 5px 0 var(--ink); rotate: -.6deg; }
.lab__tip[hidden] { display: none; }
.lab__tip b { display: block; font: 600 1.3125rem/1.1 var(--f-hand); color: var(--accent); }
.lab__tip span { display: block; margin-top: 4px; }
.lab__pop { position: absolute; z-index: 3; left: 50%; top: 56%; width: max-content; max-width: 92%; translate: -50% -50%; padding: 16px 24px 18px; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--blob); box-shadow: 5px 6px 0 var(--ink); text-align: center; cursor: pointer; }
.lab__pop[hidden] { display: none; }
.lab__pop b { display: block; font: 800 clamp(2rem, 6vw, 2.75rem)/1 var(--f-display); }
.lab__pop span { display: block; margin-top: 6px; font-weight: 700; }
.lab__pop em { display: inline-block; margin-top: 12px; padding: 6px 14px; background: var(--cheese); border: 2.5px solid var(--ink); border-radius: 999px; font: 600 1.125rem/1 var(--f-hand); }
.lab__say { left: auto; right: 0; top: 0; max-width: min(240px, 70%); transform-origin: 30% 100%; --d1x: 22%; --d2x: 14%; }
.tool { position: relative; }
.tool__count { position: absolute; right: -12px; top: -14px; min-width: 46px; padding: 5px 9px 6px; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 56% 44% 52% 48% / 50% 58% 42% 50%; box-shadow: 2px 3px 0 var(--ink); font: 700 1.125rem/1 var(--f-body); rotate: 8deg; }
.tool__count[hidden] { display: none; }
.lab__toy { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lab__toy svg { width: 100%; overflow: visible; }
@media (min-width: 900px) {
  .lab { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s6); row-gap: var(--s3); }
  .lab { row-gap: var(--s3); }
  .lab__stage { grid-column: 1; grid-row: 1 / span 3; justify-self: center; align-self: center; max-width: 460px; padding-top: 58px; }
  .lab__tip { order: 0; grid-column: 2; min-height: 7.4em; }
  .lab__h { grid-column: 2; align-self: end; }
  .lab__tools { grid-column: 2; align-self: start; }
}

/* ---------- quote ---------- */
.quote { position: relative; overflow: clip; padding-block: clamp(64px, 8vw, 120px); display: grid; align-items: center; color: var(--ink-deep); text-align: center; }
.quote__bg { position: absolute; inset: -22% 0; width: 100%; height: 144%; max-width: none; object-fit: cover; will-change: transform; }
.quote::after { content: ''; position: absolute; inset: 0; background: rgba(255, 249, 234, .22); }
.quote .wrap { position: relative; z-index: 1; }
/* the quote is a sticker stuck on the row of drawn cheeses */
.quote blockquote { display: inline-block; max-width: 980px; padding: clamp(18px, 2.4vw, 30px) clamp(22px, 3.4vw, 46px); background: var(--white); border: 3px solid var(--ink); border-radius: 26px 18px 30px 16px / 18px 28px 16px 30px; box-shadow: 6px 8px 0 var(--ink); rotate: -1.2deg; }
.quote:nth-of-type(even) blockquote { rotate: 1deg; }
.quote__t { display: block; font: 800 clamp(1.5rem, 3.6vw, 2.75rem)/1.1 var(--f-display); text-wrap: balance; }
.quote__t::before { content: '„'; }
.quote__t::after { content: '“'; }

/* ---------- markets ---------- */
.trhy__in { align-items: start; }
.follow { margin-top: var(--s5); }
.follow__btns { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }
.route { position: relative; padding-right: 76px; }
.route__title { font: 600 clamp(1.375rem, 2.08vw, 1.6875rem)/1.1 var(--f-hand); color: var(--cheese); margin-bottom: var(--s2); }
.route__rail { position: absolute; right: 26px; top: 70px; bottom: 34px; width: 0; }
.route__rail::before { content: ''; position: absolute; left: -5px; top: 0; bottom: 0; width: 6px; background: radial-gradient(circle, rgba(255, 236, 179, .32) 2.4px, transparent 2.9px) 50% 0 / 6px 13px repeat-y; }
.route__fill { position: absolute; left: -4px; top: 0; width: 4px; height: 100%; background: var(--cheese); transform-origin: top; transform: scaleY(var(--q, 0)); }
.walker { position: absolute; left: -32px; top: -40px; width: 68px; will-change: transform; }
.walker svg { width: 100%; overflow: visible; filter: drop-shadow(3px 5px 0 rgba(0, 0, 0, .35)); }
.route__stops li { display: grid; grid-template-columns: 4.4em 1fr; align-items: baseline; gap: var(--s2); padding-block: clamp(14px, 2vw, 22px); background: radial-gradient(circle, rgba(255, 236, 179, .26) 1.7px, transparent 2.2px) 0 100% / 11px 4px repeat-x; opacity: .4; transition: opacity .4s var(--ease), transform .5s var(--spring); transform: translateX(-10px); }
.route__stops li.is-on { opacity: 1; transform: none; }
.route__stops time { font-weight: 700; font-variant-numeric: tabular-nums; }
.route__stops span { font: 800 clamp(1.75rem, 4.2vw, 3rem)/1.05 var(--f-display); }
.route__stops small { display: block; margin-top: 4px; font: 600 1.125rem/1.1 var(--f-hand); color: var(--cheese); }
html:not(.js) .route__stops li { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .trhy__head { position: sticky; top: calc(var(--top-h) + 24px); }
  .route { padding-right: 0; }
  .route__rail { right: auto; left: -54px; }
  .walker { width: 84px; left: -42px; top: -48px; }
}

/* ---------- gifts ---------- */
.gifts { background: var(--cream); }
.gifts__head { align-items: end; }
.gifts__cow { width: min(46%, 190px); margin-left: auto; }
.gifts__list { margin-top: var(--s4); }
.gift { row-gap: var(--s3); padding-block: var(--s3); background: radial-gradient(circle, rgba(63, 39, 38, .32) 2px, transparent 2.6px) 0 0 / 13px 5px repeat-x; align-items: center; }
.gift:last-child { background: radial-gradient(circle, rgba(63, 39, 38, .32) 2px, transparent 2.6px) 0 0 / 13px 5px repeat-x, radial-gradient(circle, rgba(63, 39, 38, .32) 2px, transparent 2.6px) 0 100% / 13px 5px repeat-x; }
.gift__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.gift h3 { font: 800 clamp(1.75rem, 3.6vw, 2.75rem)/1.05 var(--f-display); }
.gift__img { flex: none; width: 116px; filter: var(--sticker); }
.gift__img--tall { width: 72px; }
.gift__img--ticket { width: 140px; }
.gift__img img { width: 100%; }
.gift__buy { display: grid; gap: var(--s2); }
.step { display: inline-grid; grid-template-columns: 56px 1fr 56px; align-items: center; background: var(--white); border: 3px solid var(--ink); border-radius: var(--blob); overflow: hidden; }
.step button { height: 56px; border: 0; background: var(--cheese); font: 700 1.5rem/1 var(--f-body); cursor: pointer; transition: background-color .15s; }
.step button:hover { background: var(--cheese-d); }
.step button:first-child { border-right: 3px solid var(--ink); }
.step button:last-child { border-left: 3px solid var(--ink); }
.step output { min-width: 5.2em; padding-inline: 14px; text-align: center; font: 700 1.375rem/1 var(--f-body); white-space: nowrap; }
.gift__buy .btn { justify-content: center; }
@media (min-width: 900px) {
  .gifts__cow { width: 210px; margin: 0 0 -8px auto; }
  .gift { padding-block: var(--s4); }
  .gift__img { width: 190px; }
  .gift__img--tall { width: 112px; }
  .gift__img--ticket { width: 250px; }
  .gift__buy { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: var(--s3); }
}

/* ---------- contact ---------- */
.contact { background: var(--cheese); overflow: clip; }
.contact__in { position: relative; align-items: end; }
.contact__addr { margin-top: var(--s4); font: 800 clamp(1.875rem, 4.4vw, 3.25rem)/1.08 var(--f-display); }
.contact__main .btn { margin-top: var(--s3); }
.contact__tel { display: table; margin-top: var(--s4); font: 800 clamp(2.125rem, 6.4vw, 4rem)/1.05 var(--f-display); text-decoration: none; white-space: nowrap; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 4px no-repeat; transition: background-size .4s var(--ease); }
.contact__tel:hover { background-size: 0 4px; background-position: 100% 100%; }
.contact__soc { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }
.contact__soc .soc { background: var(--white); border-color: var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.contact__sheep { width: 92%; margin-top: 84px; margin-bottom: var(--s3); --by: -44%; }
@media (min-width: 900px) { .contact__sheep { margin-top: 0; --by: -26%; } }
.week { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 3px solid var(--ink); border-radius: var(--blob); overflow: hidden; box-shadow: 5px 6px 0 var(--ink); }
.week th, .week td { text-align: left; padding: 13px 20px; background: radial-gradient(circle, rgba(63, 39, 38, .26) 1.7px, transparent 2.2px) 0 100% / 11px 4px repeat-x; vertical-align: baseline; }
.week tr:last-child:not(.is-today) th, .week tr:last-child:not(.is-today) td { background: none; }
.week th { font-weight: 700; width: 38%; }
.week small { display: block; font: 600 1rem/1.1 var(--f-hand); color: var(--accent); }
.week tr.is-today th, .week tr.is-today td { background: var(--cream); }
.week tr.is-today th::after { content: attr(data-today); margin-left: 8px; font: 600 1rem/1 var(--f-hand); color: var(--accent); }

.foot { padding-block: var(--s5) var(--s3); font-size: .9375rem; }
.bigfoot { display: grid; gap: var(--s4); padding-bottom: 80px; }
.bigfoot__brand img { width: min(240px, 70%); filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, .35)); rotate: -2deg; }
.bigfoot__nav { display: grid; gap: 4px; align-content: start; justify-items: start; }
.bigfoot__nav a { font: 700 1.125rem/1.6 var(--f-body); text-decoration: none; transition: color .2s; }
.bigfoot__nav a:hover { color: var(--cheese); }
.bigfoot__up { justify-self: start; align-self: start; font: 600 1.0625rem/1 var(--f-hand); color: var(--cheese) !important; text-decoration: none; }
.bigfoot__up:hover { text-decoration: underline; }
.bigfoot__legal { padding-top: var(--s3); background: radial-gradient(circle, rgba(255, 236, 179, .3) 1.7px, transparent 2.2px) 0 0 / 11px 4px repeat-x; font-size: .875rem; opacity: .85; }
.foot a:not(.soc) { color: inherit; }
@media (min-width: 900px) {
  .bigfoot { grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--s5); padding-bottom: 0; }
  .bigfoot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px var(--s4); }
  .bigfoot__up { align-self: center; }
  .bigfoot__legal { grid-column: 1 / -1; }
}

/* ---------- phone: everything on one centre line ---------- */
@media (max-width: 899px) {
  .hero__in, .shop__text, .lab, .trhy__head, .route__title, .gifts__head, .contact__main, .bigfoot { text-align: center; }
  .hero__btn, .contact__main .btn { margin-inline: auto; }
  .kinds, .goods, .follow__btns, .contact__soc { justify-content: center; }
  .lab { justify-items: center; }
  .route { padding-inline: 60px; }
  .route__stops li { grid-template-columns: 1fr; justify-items: center; gap: 2px; text-align: center; transform: translateY(8px); }
  .gifts__head { justify-items: center; }
  .gifts__cow { margin-inline: auto; }
  .gifts__cow .bubble { right: auto; left: 50%; translate: -50% 0; }  /* centred cow: the bubble sits above it, not to its left */
  .gifts__cow { margin-top: 64px; --bo: 50% 100%; --d1x: 50%; --d2x: 56%; }
  .gift__head { flex-direction: column-reverse; justify-content: center; text-align: center; gap: var(--s2); }
  .contact__tel { margin-inline: auto; }
  .bigfoot { justify-items: center; }
  .bigfoot__brand img { margin-inline: auto; }
  .bigfoot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px var(--s3); }
  .bigfoot__up { justify-self: center; }
}

/* ---------- phone dock ---------- */
.dock { position: fixed; z-index: 30; left: var(--gutter); right: var(--gutter); bottom: max(14px, env(safe-area-inset-bottom)); min-height: 56px; padding: 0 24px; display: flex; align-items: center; justify-content: center; background: var(--cheese); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--blob); box-shadow: 4px 5px 0 var(--ink); font-weight: 700; text-decoration: none; transform: translateY(180%); transition: transform .5s var(--ease); }
.dock.is-on { transform: none; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- cart ---------- */
.cart { width: min(480px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 4px solid var(--ink); background: var(--paper); color: var(--ink); }
.cart::backdrop { background: rgba(44, 26, 25, .55); }
.cart[open] { animation: cartin .45s var(--ease); }
@keyframes cartin { from { transform: translateX(100%); } }
.cart__in { position: relative; min-height: 100%; padding: var(--s4) var(--s3) var(--s4); display: grid; align-content: start; gap: var(--s3); }
.cart__x { position: absolute; right: 16px; top: 16px; width: 48px; height: 44px; background: var(--cheese); border: 3px solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 54% 46% 52%; font: 800 1.5rem/1 var(--f-display); cursor: pointer; }
.cart__list { display: grid; gap: 0; }
.cart__list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s2); padding-block: 14px; background: radial-gradient(circle, rgba(63, 39, 38, .3) 1.7px, transparent 2.2px) 0 100% / 11px 4px repeat-x; }
.cart__list b { font: 700 1.125rem/1.2 var(--f-body); }
.cart__list span { font-weight: 700; white-space: nowrap; }
.cart__list button { width: 40px; height: 40px; border: 2.5px solid var(--ink); border-radius: 50%; background: none; font: 700 1.125rem/1 var(--f-body); cursor: pointer; }
.cart__list button:hover { background: var(--accent); color: #fff; }
.cart__empty { font: 600 1.375rem/1.1 var(--f-hand); color: var(--accent); }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cart__sum strong { font: 800 2.25rem/1 var(--f-display); }
.cart__form { display: grid; gap: var(--s2); }
.cart__form label { display: grid; gap: 6px; font-weight: 700; }
.cart__form input { height: 52px; padding: 0 14px; background: var(--white); border: 3px solid var(--ink); border-radius: 14px 10px 16px 9px / 10px 15px 9px 16px; font: 400 1.0625rem var(--f-body); color: var(--ink); }
.cart__form input:focus-visible { outline-offset: 2px; }
.cart__note { font: 600 1.1875rem/1.1 var(--f-hand); }
.cart__form .btn { justify-content: center; }
.cart__demo { padding: var(--s2); background: var(--cream); border: 3px solid var(--ink); border-radius: 26px 18px 30px 16px / 18px 28px 16px 30px; box-shadow: 3px 4px 0 var(--ink); }
.cart.is-empty .cart__form, .cart.is-empty .cart__sum { display: none; }
.cart:not(.is-empty) .cart__empty { display: none; }

.fly { position: fixed; z-index: 120; width: 54px; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover::before, .btn:hover::after, .soc:hover svg, .cart[open] { animation: none; }
  .route__stops li { transform: none; }
}

/* ---------- admin preview, plain pages ---------- */
.previewbar { position: fixed; z-index: 400; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 10px 18px; background: var(--ink); color: var(--cream); border-radius: 999px; font-weight: 700; font-size: .9375rem; text-align: center; pointer-events: none; }
.plain { background: var(--cheese); min-height: 100vh; display: flex; flex-direction: column; }
.plain__main { background: none; position: relative; flex: 1; overflow: clip; padding-block: calc(var(--top-h) + var(--s5)) var(--sec); }
.plain__in { position: relative; max-width: 720px; display: grid; gap: var(--s3); justify-items: start; }
.plain__goat { width: 190px; }
.plain .top__tel { display: inline-flex; }

/* ---------- soft wavy joins between sections, drawn with the same ink line ---------- */
.edge { position: absolute; left: 0; width: 100%; height: clamp(22px, 3.4vw, 48px); z-index: 2; pointer-events: none; overflow: visible; }
.edge--top { top: -1px; }
.edge--bottom { bottom: -1px; }
.edge__fill { stroke: none; }
.edge__ink { fill: none; stroke: var(--ink); stroke-width: 4; vector-effect: non-scaling-stroke; }
.edge--paper .edge__fill { fill: var(--paper); }
.edge--dark .edge__fill { fill: var(--ink); }
.edge--cream .edge__fill { fill: var(--cream); }
.edge--cheese .edge__fill { fill: var(--cheese); }
