:root {
  color-scheme: light;
  --ink: #263d34;
  --muted: #6f7a70;
  --cream: #f8f6ef;
  --paper: #fffdf8;
  --green: #355c49;
  --line: #e8e5da;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.site-header { height: 78px; border-bottom: 1px solid rgba(38, 61, 52, .08); background: rgba(248, 246, 239, .94); }
.header-inner { width: min(1160px, calc(100% - 64px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; color: #fff9e8; background: var(--green); border-radius: 11px 11px 11px 4px; font-family: var(--sans); font-size: 18px; }
.top-nav { display: flex; gap: 36px; margin-left: 80px; color: #59665c; font-size: 13px; }
.top-nav a:hover, .back-link:hover { color: #b3614c; }
.header-cta { padding: 11px 16px; border: 1px solid #d8ddcf; border-radius: 7px; color: var(--green); font-size: 12px; font-weight: 600; }
.header-cta span { padding-left: 8px; color: #b3614c; }
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; width: min(1160px, calc(100% - 64px)); min-height: 550px; margin: 0 auto; padding: 48px 0 64px; }
.hero-copy { position: relative; z-index: 1; padding: 0 0 8px 26px; }
.eyebrow { margin: 0 0 17px; color: #9a7555; font-size: 10px; font-weight: 700; letter-spacing: 1.65px; line-height: 1.5; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #d78a64; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .story-copy h1 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(48px, 5.4vw, 72px); font-weight: 500; letter-spacing: -3.2px; line-height: .99; }
.hero h1 em { color: #ba7157; font-weight: 500; }
.hero-lead { max-width: 385px; margin-bottom: 27px; color: #657369; font-size: 15px; line-height: 1.8; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 15px; padding: 0 19px; border: 0; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fffdf6; background: var(--green); }
.button-primary:hover { background: #284a39; }
.button-primary span { font-size: 16px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 29px; color: #85877a; font-size: 11px; }
.note-stars { color: #c28b56; letter-spacing: 5px; }
.hero-art { position: relative; width: min(100%, 495px); justify-self: end; padding: 16px; border: 1px solid rgba(89, 106, 77, .12); border-radius: 48% 44% 42% 46% / 42% 44% 48% 50%; background: #e4ead9; transform: rotate(2deg); }
.hero-art > img { width: 100%; border-radius: 46% 43% 43% 47% / 43% 45% 48% 49%; }
.hero-sun { position: absolute; z-index: -1; top: -30px; right: 3px; width: 130px; height: 130px; border-radius: 50%; background: #f3d9a1; }
.hero-sparkle { position: absolute; z-index: 2; color: #b67a46; }
.sparkle-one { top: 35px; left: -20px; font-size: 26px; }
.sparkle-two { right: 2px; bottom: 56px; font-size: 29px; }
.hero-sticker { position: absolute; right: -20px; bottom: 52px; display: grid; width: 90px; height: 90px; place-content: center; border: 5px solid var(--cream); border-radius: 50%; color: #fff9eb; background: #bd735b; font-family: var(--serif); font-size: 16px; line-height: 1.2; text-align: center; transform: rotate(9deg); }
.hero-caption { position: absolute; bottom: 17px; left: 36px; color: #fffdf2; font-family: var(--serif); font-size: 19px; font-style: italic; text-shadow: 0 1px 9px rgba(29, 47, 35, .55); }
.collection-section { padding: 70px max(32px, calc((100% - 1160px) / 2)) 98px; background: #f0efe6; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 27px; }
.section-heading .eyebrow, .picture-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2, .picture-heading h2, .how-copy h2 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 500; letter-spacing: -1.3px; }
.collection-count { padding-bottom: 6px; color: #888b7b; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card { overflow: hidden; border: 1px solid rgba(48, 69, 53, .07); border-radius: 9px; background: var(--paper); transition: transform .22s, box-shadow .22s; }
.story-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(57, 69, 48, .1); }
.story-card-art { position: relative; overflow: hidden; height: 200px; background: var(--story-bg); }
.story-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story-card:hover .story-card-art img { transform: scale(1.04); }
.story-emoji { position: absolute; top: 12px; right: 14px; display: grid; width: 39px; height: 39px; place-items: center; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(255,253,248,.88); font-size: 21px; }
.story-card-copy { padding: 19px 20px 14px; }
.story-subtitle { margin-bottom: 6px; color: #a07b5a; font-size: 10px; }
.story-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.story-summary { min-height: 43px; margin-bottom: 16px; color: #737d72; font-size: 11px; line-height: 1.65; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #eeece4; color: #929386; font-size: 10px; }
.card-arrow { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: var(--green); background: #eff2e9; font-size: 14px; transition: background .2s, color .2s; }
.story-card:hover .card-arrow { color: #fff; background: var(--green); }
.how-section { display: grid; grid-template-columns: .7fr 1.1fr 1fr; gap: 56px; align-items: center; width: min(1050px, calc(100% - 64px)); margin: 0 auto; padding: 90px 0 100px; }
.how-illustration { position: relative; display: grid; width: 155px; height: 155px; place-items: center; border-radius: 44% 56% 49% 51% / 52% 43% 57% 48%; background: #e8d9bf; transform: rotate(-8deg); }
.how-illustration span { font-size: 68px; transform: rotate(8deg); }
.how-illustration i { position: absolute; top: 2px; right: -7px; color: #b5754f; font-size: 31px; font-style: normal; }
.how-copy h2 { margin-bottom: 14px; font-size: 34px; line-height: 1.08; }
.how-copy > p:last-child { margin: 0; color: #747d72; font-size: 12px; line-height: 1.8; }
.how-steps { display: grid; gap: 13px; }
.how-steps > div { display: flex; align-items: center; gap: 14px; padding: 13px; border-bottom: 1px solid #e8e5da; }
.how-steps span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #a87450; background: #eee4d2; font-size: 10px; font-weight: 700; }
.how-steps p { margin: 0; color: #6d776c; font-size: 11px; }
.how-steps strong { color: var(--ink); }
.site-footer { display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 16px max(32px, calc((100% - 1160px) / 2)); border-top: 1px solid #e9e6dd; background: #f2f0e9; }
.footer-brand { font-size: 15px; }
.footer-brand .brand-mark { width: 26px; height: 26px; font-size: 15px; }
.site-footer > p { margin: 0; color: #81867b; font-size: 10px; }
.footer-heart { color: #c67c65; font-size: 14px; }

.story-page { width: min(1100px, calc(100% - 64px)); margin: 0 auto; padding: 30px 0 72px; }
.story-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 29px; }
.back-link { color: #647269; font-size: 12px; }
.back-link span { padding-right: 7px; }
.story-topline .eyebrow { margin: 0; }
.story-intro { display: grid; grid-template-columns: 1fr .95fr; gap: 55px; align-items: center; padding-bottom: 57px; }
.story-copy { padding: 0 0 0 12px; }
.story-copy .eyebrow { margin-bottom: 10px; }
.story-copy h1 { margin-bottom: 15px; font-size: clamp(44px, 5vw, 62px); }
.story-description { max-width: 470px; margin-bottom: 20px; color: #69766b; font-size: 14px; line-height: 1.8; }
.story-facts { display: flex; flex-wrap: wrap; gap: 17px; color: #7d8277; font-size: 10px; }
.story-facts span span { padding-right: 4px; color: #bc7959; }
.story-cover { position: relative; padding: 13px; border-radius: 47% 45% 43% 49% / 43% 43% 51% 49%; background: var(--story-bg); transform: rotate(1.5deg); }
.story-cover img { width: 100%; border-radius: inherit; }
.cover-note { position: absolute; right: -20px; bottom: 23px; display: grid; width: 92px; height: 92px; place-content: center; border: 4px solid var(--cream); border-radius: 50%; color: #fffdf5; background: var(--story-accent); font-family: var(--serif); font-size: 13px; text-align: center; transform: rotate(7deg); }
.picture-section { padding: 49px 0 0; border-top: 1px solid #e7e4da; }
.picture-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.picture-heading h2 { margin-bottom: 7px; font-size: 34px; }
.picture-heading > div:first-child > p:last-child { margin: 0; color: #737d72; font-size: 12px; }
.picture-actions { display: flex; gap: 8px; }
.button-outline, .button-quiet { min-height: 39px; border: 1px solid #d8dfd3; color: var(--green); background: transparent; }
.button-outline:hover { background: #edf0e7; }
.button-quiet { border-color: transparent; color: #788075; }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.scene-card { overflow: hidden; border: 1px solid #e8e5dc; border-radius: 8px; background: var(--paper); }
.scene-image { position: relative; overflow: hidden; aspect-ratio: 1.55; background: #e8e4d7; }
.scene-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.scene-card:hover .scene-image img { transform: scale(1.035); }
.scene-number { position: absolute; top: 10px; left: 10px; display: grid; width: 27px; height: 27px; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: #456a54; font-size: 10px; font-weight: 700; }
.scene-copy { padding: 13px 15px 16px; }
.scene-copy h3 { margin-bottom: 5px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.scene-copy p { margin: 0; color: #747d72; font-size: 10px; line-height: 1.6; }
.teacher-tip { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 14px 16px; border-radius: 6px; color: #657369; background: #edf0e6; font-size: 11px; }
.teacher-tip span { color: #ae7a4d; font-size: 17px; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; border: 0; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.js-control[hidden] { display: none; }
.theme-cervena-karkulka { --story-accent: #d96454; --story-bg: #f7e2d4; }
.theme-tri-prasatka { --story-accent: #d87568; --story-bg: #f4e3d6; }
.theme-pernikova-chaloupka { --story-accent: #bd7952; --story-bg: #f2e5d6; }
.theme-zlata-hvezda { --story-accent: #c19443; --story-bg: #f4edcf; }
.theme-osklive-kacatko { --story-accent: #7a9b91; --story-bg: #dfece7; }
.theme-budulinek { --story-accent: #d68a4d; --story-bg: #f5e5cd; }

@media (max-width: 800px) {
  .header-inner, .hero, .story-page { width: min(100% - 40px, 620px); }
  .top-nav { gap: 18px; margin-left: 0; }
  .hero { min-height: 0; grid-template-columns: 1fr 1fr; gap: 25px; padding: 62px 0 72px; }
  .hero-copy { padding-left: 0; }
  .hero h1 { font-size: clamp(42px, 7vw, 60px); }
  .hero-art { padding: 9px; }
  .hero-sticker { right: -12px; width: 74px; height: 74px; font-size: 13px; }
  .collection-section { padding: 60px 20px 72px; }
  .story-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .story-card-art { height: 175px; }
  .how-section { grid-template-columns: 130px 1fr; gap: 26px; width: min(100% - 40px, 620px); padding: 70px 0; }
  .how-illustration { width: 120px; height: 120px; }
  .how-illustration span { font-size: 54px; }
  .how-steps { grid-column: 2; }
  .story-intro { gap: 26px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-header { height: 65px; }
  .header-inner, .hero, .story-page { width: calc(100% - 36px); }
  .brand { font-size: 17px; }
  .brand-mark { width: 27px; height: 27px; }
  .top-nav { display: none; }
  .header-cta { padding: 9px 11px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding: 54px 0 58px; }
  .hero-copy { max-width: 440px; }
  .hero h1 { font-size: 55px; }
  .hero-lead { max-width: 360px; font-size: 14px; }
  .hero-art { width: 87%; justify-self: center; margin-right: 8px; }
  .hero-caption { bottom: 12px; left: 24px; }
  .collection-section { padding: 52px 18px 62px; }
  .section-heading { align-items: start; gap: 10px; }
  .section-heading h2 { font-size: 31px; }
  .collection-count { max-width: 88px; padding-top: 8px; font-size: 8px; line-height: 1.5; text-align: right; }
  .story-grid { grid-template-columns: 1fr; gap: 13px; }
  .story-card { display: grid; grid-template-columns: 38% 1fr; }
  .story-card-art { height: 100%; min-height: 183px; }
  .story-card-art img { height: 100%; object-fit: cover; }
  .story-card-copy { padding: 15px 13px 11px; }
  .story-card h3 { font-size: 19px; }
  .story-summary { display: -webkit-box; overflow: hidden; min-height: 0; margin-bottom: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .story-emoji { top: 8px; right: 8px; width: 31px; height: 31px; font-size: 17px; }
  .card-footer { padding-top: 8px; font-size: 9px; }
  .card-arrow { width: 24px; height: 24px; }
  .how-section { grid-template-columns: 1fr; gap: 24px; width: calc(100% - 42px); padding: 58px 0; }
  .how-illustration { width: 110px; height: 110px; margin: 0 auto; }
  .how-copy { text-align: center; }
  .how-copy h2 { font-size: 32px; }
  .how-steps { grid-column: auto; }
  .site-footer { min-height: 74px; padding: 14px 19px; }
  .site-footer > p { max-width: 155px; text-align: center; line-height: 1.5; }
  .story-page { padding-top: 23px; }
  .story-topline .eyebrow { max-width: 120px; font-size: 8px; text-align: right; }
  .story-intro { grid-template-columns: 1fr; gap: 29px; padding-bottom: 42px; }
  .story-copy { padding-left: 0; }
  .story-copy h1 { font-size: 46px; }
  .story-description { font-size: 13px; }
  .story-cover { width: 83%; justify-self: center; }
  .picture-section { padding-top: 38px; }
  .picture-heading { align-items: start; flex-direction: column; }
  .picture-heading h2 { font-size: 31px; }
  .picture-heading > div:first-child > p:last-child { max-width: 320px; line-height: 1.6; }
  .picture-actions { flex-wrap: wrap; }
  .scene-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scene-copy { padding: 11px 11px 13px; }
  .scene-copy h3 { font-size: 15px; }
  .scene-copy p { font-size: 9px; }
  .scene-number { top: 7px; left: 7px; width: 24px; height: 24px; }
  .teacher-tip { align-items: flex-start; font-size: 10px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
