/* ============================================================
   Katya and Friends — storybook landing page
   ============================================================ */

:root {
  --cream:      #fff7e8;
  --cream-deep: #fdeccb;
  --peach:      #ffd9b3;
  --peach-deep: #ffb877;
  --gold:       #f6c453;
  --gold-deep:  #eaa92e;
  --green:      #8fc77a;
  --green-deep: #5b9d52;
  --leaf:       #3f7c42;
  --ink:        #4a3a2c;
  --ink-soft:   #6f5b48;
  --white:      #fffdf8;
  --shadow:     0 14px 34px rgba(120, 80, 30, 0.16);
  --shadow-sm:  0 6px 16px rgba(120, 80, 30, 0.12);
  --radius:     26px;
  --radius-sm:  16px;
  --maxw:       1120px;
  --display:    'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --body:       'Nunito', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 80% -10%, #fff2d2 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 8%, #ffe6c9 0%, transparent 55%),
    var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .4em;
}

p { margin: 0 0 1em; }

a { color: var(--green-deep); text-decoration: none; }

.amp {
  font-family: var(--display);
  font-weight: 400;
  color: var(--gold-deep);
  font-style: italic;
}

/* decorative scalloped top band */
.topbar {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 28px,
    var(--peach-deep) 28px 56px,
    var(--green) 56px 84px
  );
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
  padding: .82em 1.5em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #5a3d12;
  box-shadow: 0 10px 22px rgba(234, 169, 46, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(234, 169, 46, 0.5); }
.btn-ghost {
  background: var(--white);
  color: var(--leaf);
  border: 2px solid var(--green);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); background: #f4fbef; }
.btn-yt {
  display: grid; place-items: center;
  width: 1.5em; height: 1.5em;
  background: #ff5252; color: #fff;
  border-radius: 7px;
  font-size: .72em;
  padding-left: 1px;
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.2rem);
  background: rgba(255, 250, 238, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(234, 169, 46, 0.18);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.32rem; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.5rem); }
.site-nav a { font-family: var(--display); font-weight: 500; color: var(--ink-soft); }
.site-nav a:hover { color: var(--green-deep); }
.site-nav .nav-cta {
  background: var(--gold); color: #5a3d12;
  padding: .45em 1em; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.site-nav .nav-cta:hover { background: var(--gold-deep); color: #5a3d12; }

/* ============ Hero ============ */
.hero { position: relative; }
.hero-art { position: relative; line-height: 0; }
.hero-art img {
  width: 100%; height: clamp(280px, 46vw, 560px);
  object-fit: cover; object-position: center 30%;
  display: block;
}
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,247,232,0) 45%, rgba(255,247,232,.55) 78%, var(--cream) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: -90px auto 0;
  padding: 0 clamp(1.1rem, 5vw, 2rem) 2rem;
  text-align: center;
  z-index: 2;
}
.eyebrow {
  display: inline-block;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--display); font-weight: 500;
  padding: .35em 1.1em; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: .8rem; font-size: .98rem;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 700;
  text-shadow: 0 3px 0 #fff, 0 12px 26px rgba(120,80,30,.14);
  margin-bottom: .15em;
}
.hero-tagline {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin-bottom: 1.1rem;
}
.hero-langs {
  font-family: var(--display); font-weight: 500;
  color: var(--ink-soft); letter-spacing: .01em;
  font-size: .98rem; margin: 0;
}

/* ============ Section scaffolding ============ */
section { padding: clamp(2.6rem, 7vw, 4.6rem) clamp(1.1rem, 5vw, 2rem); }
.section-title { text-align: center; font-size: clamp(1.8rem, 5vw, 2.7rem); }
.section-sub {
  text-align: center; color: var(--ink-soft);
  font-family: var(--display); font-weight: 400;
  max-width: 36ch; margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
  font-size: 1.1rem;
}

/* ============ About ============ */
.about { display: flex; justify-content: center; }
.about-card {
  max-width: 760px;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 5vw, 3rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(234,169,46,.16);
  text-align: center;
  position: relative;
}
.about-card::before {
  content: "🌻";
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-size: 2.6rem;
  filter: drop-shadow(0 6px 8px rgba(120,80,30,.2));
}
.about-card h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-top: .3rem; }
.about-card p { color: var(--ink-soft); font-size: 1.08rem; }
.value-pills {
  list-style: none; padding: 0; margin: 1.4rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
}
.value-pills li {
  background: var(--cream-deep);
  color: var(--ink);
  font-family: var(--display); font-weight: 500;
  padding: .5em 1.1em; border-radius: 999px;
  font-size: .98rem;
}

/* ============ Friends grid ============ */
.friends { background:
  radial-gradient(700px 360px at 100% 0%, #fdebc6 0%, transparent 60%), transparent; }
.friend-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: clamp(1rem, 3vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.friend-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0 0 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(234,169,46,.14);
  overflow: hidden;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.friend-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.friend-photo {
  aspect-ratio: 4 / 3;
  background-color: var(--cream-deep);
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid var(--gold);
  overflow: hidden;
}
.friend-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.friend-card h3 { margin: 1rem 0 .25rem; font-size: 1.4rem; }
.friend-card p {
  margin: 0; padding: 0 1.1rem; color: var(--ink-soft);
  font-size: .98rem; line-height: 1.55;
}

/* cropped close-ups from the cast illustration */
.crop-katya    { background-image: url('assets/cast.png'); background-size: 320%; background-position: 58% 40%; }
.crop-olga     { background-image: url('assets/cast.png'); background-size: 300%; background-position: 86% 34%; }
.crop-tortilla { background-image: url('assets/cast.png'); background-size: 360%; background-position: 47% 52%; }
.crop-bunny    { background-image: url('assets/cast.png'); background-size: 360%; background-position: 36% 50%; }

/* ============ Episodes ============ */
.episode-row {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: clamp(1rem, 3vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.episode-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(234,169,46,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.episode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.episode-art {
  aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
}
.episode-body { padding: 1.1rem 1.3rem 1.4rem; }
.lesson-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--display); font-weight: 600;
  font-size: .82rem; letter-spacing: .03em;
  padding: .3em .9em; border-radius: 999px;
  margin-bottom: .55rem;
}
.episode-body h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.episode-body p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.episodes-cta { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); }

/* ============ Languages ============ */
.langs { text-align: center; }
.lang-badges {
  list-style: none; padding: 0;
  max-width: 820px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
}
.lang-badges li {
  display: flex; align-items: center; gap: .5em;
  background: var(--white);
  border: 2px solid var(--cream-deep);
  font-family: var(--display); font-weight: 500;
  padding: .6em 1.2em; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}
.lang-badges .flag { font-size: 1.3em; line-height: 1; }
.lang-badges .more {
  background: transparent; border-style: dashed; border-color: var(--peach-deep);
  color: var(--ink-soft); font-style: italic;
}

/* ============ Closing banner ============ */
.closing {
  background-size: cover; background-position: center;
  text-align: center;
  position: relative;
  padding: 0;
}
.closing-overlay {
  background: linear-gradient(180deg, rgba(74,58,44,.18), rgba(74,58,44,.5));
  padding: clamp(3.5rem, 10vw, 7rem) clamp(1.1rem, 5vw, 2rem);
}
.closing h2 {
  color: #fff; font-size: clamp(1.9rem, 6vw, 3.2rem);
  text-shadow: 0 3px 18px rgba(0,0,0,.4);
}
.closing p {
  color: #fff8ec; font-family: var(--display);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: 1.6rem;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--leaf);
  color: #f3ffe9;
  text-align: center;
  padding: clamp(2.4rem, 6vw, 3.4rem) 1.2rem 2.4rem;
}
.footer-logo {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--gold); object-fit: cover;
  margin-bottom: .6rem;
}
.footer-name { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: #fff; margin: 0 0 .2rem; }
.footer-name .amp { color: #ffe6a8; }
.footer-love { font-family: var(--display); color: #d8f0c9; margin: 0 0 .9rem; }
.footer-yt { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-yt:hover { color: #ffe6a8; }
.footer-fine { margin: 1.4rem 0 0; font-size: .85rem; color: #b7d6a6; }

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-inner { margin-top: -64px; }
  .brand-name { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
