/* Dora Studio: the "Storybook cosy" design Lukasz picked on #241 (art store studio/website-r2/site-4.png). */
@font-face { font-family: Fredoka; src: url(/fonts/fredoka-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Fredoka; src: url(/fonts/fredoka-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url(/fonts/fredoka-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f8f0dc;
  --ink: #1d3b22;
  --text: #3a3128;
  --gold: #f8c94a;
  --gold-edge: #e2a92b;
  --pill: #efe1c6;
  --pill-ink: #6e5537;
  --footer: #23401f;
  --round: Fredoka, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper) url(/img/paper.webp) 0 0 / 512px repeat;
  font: 18px/1.55 Georgia, "Iowan Old Style", "Times New Roman", serif;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.01em; }

/* ---- The hero: the painted meadow under a strip of paper with a torn edge ---- */
.hero { position: relative; text-align: center; }
/* (the painting carries the design's own torn-paper edges, top and bottom; it keeps its shape on wide screens and is
   cropped at the sides on narrow ones) */
.scene {
  position: relative;
  height: max(400px, 37.8vw); /* the painting's own shape (1522 × 576), never shorter than 400 px */
  background: url(/img/hero.webp) center top / cover no-repeat;
}
.bar {
  position: relative; z-index: 2;
  height: 66px; background: var(--paper) url(/img/paper.webp) 0 0 / 512px repeat;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px);
}
.logo { display: flex; align-items: center; gap: 2px; font: 700 clamp(26px, 3.4vw, 34px)/1 var(--round); color: var(--ink); text-decoration: none; }
.logo img { width: 30px; height: auto; margin: -26px -22px 0 2px; position: relative; z-index: 1; } /* the sprout on the D */
nav { display: flex; gap: clamp(16px, 3.4vw, 40px); }
nav a { font: 500 18px/1 var(--round); color: var(--ink); text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.intro { position: absolute; inset: 0; z-index: 1; padding: clamp(34px, 4.6vw, 70px) 16px 0; }
h1 { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.02; display: inline-block; position: relative; text-shadow: 0 2px 0 rgb(255 255 255 / 0.55), 0 0 28px rgb(255 255 255 / 0.65); }
.spark { position: absolute; }
.spark.l { left: -0.75em; top: 0.18em; width: 0.5em; height: auto; }
.spark.r { right: -0.6em; top: 0.25em; width: 0.42em; height: auto; }
.lead { font-family: var(--round); font-weight: 500; font-size: clamp(18px, 2vw, 23px); color: var(--ink); margin: 12px 0 24px; text-shadow: 0 0 12px rgb(255 255 255 / 0.9); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 18px/1 var(--round); color: #3b2c10; text-decoration: none;
  background: linear-gradient(#fbd666, var(--gold) 60%, #f3bb36); border-radius: 99px;
  padding: 16px 30px; box-shadow: 0 2px 0 var(--gold-edge), 0 8px 18px rgb(120 80 10 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.6);
}
.btn span { font-size: 26px; line-height: 0; margin-top: -3px; }
.btn:hover { filter: brightness(1.04); }

/* ---- Little props scattered as on the design ---- */
.deco { position: absolute; pointer-events: none; height: auto; }
.butterfly-a { left: 15%; top: 165px; width: 44px; transform: rotate(-12deg); }
.bee-a { left: 9%; top: 18px; width: 40px; }
.flower-a { right: 8%; top: 10px; width: 40px; transform: rotate(12deg); }
.bee-b { left: 46%; top: 128px; width: 30px; }
.flower-b { left: 3%; top: 420px; width: 34px; }
.butterfly-b { right: 18%; top: 36px; width: 40px; }

/* ---- Our games ---- */
main { position: relative; }
.games { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 0; text-align: center; }
.games h2 { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(36px, 4.4vw, 48px); margin-bottom: 30px; }
.sprig { width: 46px; height: auto; }
.sprig.r { transform: scaleX(-1); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.card { position: relative; }
.photo {
  position: relative; margin: 0 0 22px; padding: 10px; background: #fff9ee; border-radius: 18px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 12px 26px rgb(90 60 20 / 0.22), 0 2px 4px rgb(90 60 20 / 0.16);
}
.card.left .photo { transform: rotate(-2.2deg); }
.card.right .photo { transform: rotate(1.8deg); margin-top: 10px; }
.shot { width: 100%; height: auto; aspect-ratio: 1 / 0.86; object-fit: cover; border-radius: 10px; }
.tape { position: absolute; top: -16px; left: 50%; width: 104px; height: auto; transform: translateX(-50%) rotate(-3deg); z-index: 1; }
.corner { position: absolute; height: auto; z-index: 1; }
.daisies { left: -34px; bottom: -26px; width: 96px; }
.daisy { right: -30px; bottom: -22px; width: 78px; }
.card h3 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 4px; }
.card p { margin: 0 0 14px; font-size: 18px; }
.pill { display: inline-block; font: 600 16px/1 var(--round); color: var(--pill-ink); background: var(--pill); border-radius: 99px; padding: 10px 30px; box-shadow: inset 0 -1px 0 rgb(120 90 50 / 0.15), 0 1px 2px rgb(120 90 50 / 0.18); }

/* ---- About and contact over the cottage meadow ---- */
.about {
  /* the cottage meadow at its own shape (1536 × 616) under the words and the card, as on the design */
  position: relative; text-align: center;
  min-height: 40.1vw; padding: 7vw 16px 5vw; margin-top: -3vw;
  background: url(/img/meadow.webp) center bottom / 100% auto no-repeat;
}
.about h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.about > p { max-width: 25em; margin: 0 auto 26px; font-size: 18px; }
.hello {
  display: inline-flex; align-items: center; gap: 20px; text-align: left;
  background: #fbf4e4; border-radius: 34px; padding: 18px 40px 18px 30px;
  border: 2px dashed rgb(200 170 120 / 0.55); outline: 8px solid #fbf4e4;
  box-shadow: 0 14px 30px rgb(70 60 20 / 0.22);
}
.hello h3 { font-size: 30px; margin-bottom: 4px; }
.hello a { display: block; text-decoration: none; font-size: 18px; line-height: 1.6; }
.hello a:hover { text-decoration: underline; }
.env { width: 76px; height: auto; }

/* ---- Footer ---- */
footer {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--footer); color: #f6efdc; font-size: 16px; padding: 30px clamp(70px, 14vw, 170px);
}
footer .links { display: flex; gap: 34px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer i { font-style: normal; opacity: 0.8; }
.ff { position: absolute; bottom: 8px; width: 56px; height: auto; }
.ff.l { left: clamp(10px, 4vw, 54px); }
.ff.r { right: clamp(10px, 4vw, 54px); transform: scaleX(-1); }

/* ---- Phones ---- */
@media (max-width: 720px) {
  .bar { height: 60px; }
  nav { gap: 14px; }
  nav a { font-size: 15px; }
  .logo { font-size: 24px; }
  .scene { height: 470px; background-position: 30% top; }
  .about { background-size: auto 380px; background-position: 26% bottom; padding: 54px 16px 250px; }
  .cards { grid-template-columns: 1fr; gap: 46px; max-width: 460px; margin: 0 auto; }
  .daisies { left: -14px; width: 76px; }
  .daisy { right: -10px; width: 62px; }
  .hello { padding: 22px 26px; gap: 16px; }
  .env { width: 56px; }
  .hello h3 { font-size: 26px; }
  .hello a { font-size: 16px; }
  footer { flex-direction: column; padding: 26px 70px 30px; text-align: center; }
  .butterfly-a { left: 8%; top: 330px; width: 30px; }
  .bee-a { left: 3%; top: 0; width: 30px; }
  .flower-a { right: 3%; top: -4px; width: 30px; }
  .bee-b, .flower-b, .butterfly-b { display: none; }
}
@media (max-width: 420px) {
  nav a[href="/press.html"] { display: none; }
}

/* ---- The press kit and privacy pages ---- */
.pagebar { position: relative; background: var(--paper) url(/img/paper.webp) 0 0 / 512px repeat; border-bottom: 2px dashed rgb(200 170 120 / 0.5); }
.sheet { max-width: 760px; margin: 40px auto 60px; padding: 34px clamp(20px, 5vw, 56px) 40px; background: #fbf5e7; border-radius: 28px; box-shadow: 0 14px 30px rgb(70 60 20 / 0.16); }
.sheet h1 { font-size: clamp(36px, 5vw, 50px); }
.sheet .sub { font-family: var(--round); font-weight: 600; color: var(--ink); margin: 6px 0 22px; font-size: 20px; }
.sheet h2 { font-size: 26px; margin: 26px 0 8px; }
.sheet p { margin: 0 0 12px; }
.sheet a { color: var(--ink); }
.presscards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.presscards figure { margin: 0; }
.presscards img { width: 100%; height: auto; aspect-ratio: 1 / 0.86; object-fit: cover; border-radius: 14px; box-shadow: 0 8px 18px rgb(90 60 20 / 0.2); }
.presscards figcaption { margin-top: 10px; font-size: 16px; }
.note { font-size: 15px; opacity: 0.8; margin-top: 14px; }
@media (max-width: 720px) { .presscards { grid-template-columns: 1fr; } }
.sheet.lost { text-align: center; padding-bottom: 46px; }
.sheet.lost img { width: 64px; height: auto; margin: 0 auto 10px; }
.sheet.lost .sub { margin-bottom: 26px; }
body.page { min-height: 100vh; display: flex; flex-direction: column; }
body.page > main { width: calc(100% - 32px); }
body.page > footer { margin-top: auto; }

/* ---- A little life (#247, Lukasz: "add a bit of live to it and animate some elements like butterflies, bees") ----
   CSS only: each piece keeps its own turn or mirror (transform) and moves with the separate translate / rotate / scale
   properties, so the two add up. Visitors who ask for less motion get the page still. */
@media (prefers-reduced-motion: no-preference) {
  /* butterflies: the wings beat (a quick squash across the body) while it drifts on a lazy loop */
  .butterfly-a { animation: flap 0.34s ease-in-out infinite alternate, drift-a 16s ease-in-out infinite; }
  .butterfly-b { animation: flap 0.3s ease-in-out infinite alternate, drift-b 13s ease-in-out infinite; }
  /* bees: a small figure of eight, with a buzzing jitter */
  .bee-a { animation: hover-a 3.4s ease-in-out infinite, buzz 0.12s linear infinite alternate; }
  .bee-b { animation: hover-b 2.8s ease-in-out infinite, buzz 0.1s linear infinite alternate; }
  /* flowers, sprigs and daisies sway from their stems */
  .flower-a, .flower-b { transform-origin: 50% 85%; animation: sway 4.2s ease-in-out infinite; }
  .flower-b { animation-duration: 5s; animation-delay: -1.3s; }
  .sprig { transform-origin: 70% 95%; animation: sway-small 5.2s ease-in-out infinite; }
  .sprig.r { animation-delay: -2.1s; }
  .daisies { transform-origin: 70% 90%; animation: sway-small 6s ease-in-out infinite; }
  .daisy { transform-origin: 30% 95%; animation: sway-small 5.4s ease-in-out infinite -1.7s; }
  .ff { transform-origin: 50% 100%; animation: sway-small 4.8s ease-in-out infinite; }
  .ff.r { animation-delay: -2.4s; }
  /* the sparkle by the title twinkles; its little strokes pulse */
  .spark.l { animation: twinkle 2.6s ease-in-out infinite; }
  .spark.r { animation: pulse 2.6s ease-in-out infinite -1.3s; }
  /* the envelope gives a little wiggle now and then */
  .env { transform-origin: 50% 80%; animation: wiggle 5s ease-in-out infinite 1.5s; }
}
@keyframes flap { from { scale: 1 1; } to { scale: 0.32 1; } }
@keyframes drift-a {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25% { translate: 70px -30px; rotate: 10deg; }
  50% { translate: 150px 6px; rotate: -4deg; }
  75% { translate: 64px 34px; rotate: -12deg; }
}
@keyframes drift-b {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  30% { translate: -60px -22px; rotate: -10deg; }
  60% { translate: -110px 18px; rotate: 6deg; }
  80% { translate: -40px 30px; rotate: 12deg; }
}
@keyframes hover-a {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25% { translate: 14px -9px; rotate: 8deg; }
  50% { translate: 0 0; rotate: 0deg; }
  75% { translate: -14px -9px; rotate: -8deg; }
}
@keyframes hover-b {
  0%, 100% { translate: 0 0; }
  25% { translate: -12px 7px; }
  50% { translate: 0 0; }
  75% { translate: 12px 7px; }
}
@keyframes buzz { from { scale: 1 1; } to { scale: 1.03 0.97; } }
@keyframes sway { 0%, 100% { rotate: -7deg; } 50% { rotate: 7deg; } }
@keyframes sway-small { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes twinkle { 0%, 100% { scale: 0.86; rotate: -8deg; opacity: 0.8; } 50% { scale: 1.12; rotate: 10deg; opacity: 1; } }
@keyframes pulse { 0%, 100% { scale: 0.9; opacity: 0.7; } 50% { scale: 1.1; opacity: 1; } }
@keyframes wiggle { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -9deg; } 82% { rotate: 8deg; } 88% { rotate: -5deg; } 94% { rotate: 3deg; } }
