/* HolaOla Stories: Pingwinek Kajo w czterech językach.
   Układ: jedna przewijana strona na język. Lód i noc polarna jak na okładkach,
   tytuł serii białymi literami z niebieskim obrysem (znak rozpoznawczy okładek),
   pomarańcz dzioba Kaja tylko na głównym przycisku. */

:root {
  --bg: #eef3f8;          /* lód, z palety Kaja (White-Grey #E8ECF0) */
  --surface: #ffffff;
  --surface-2: #e2eaf3;
  --ink: #1f2e45;         /* granat, cień Kaja */
  --ink-soft: #4a5a72;
  --line: #d3dce7;
  --blue: #2a6bc4;        /* niebieski obrys z okładek (#327CD5), przyciemniony dla kontrastu */
  --blue-ink: #ffffff;
  --blue-soft: #dce8f8;
  --stroke: #3378d8;
  --orange: #e8943c;      /* dziób Kaja */
  --orange-ink: #1f2e45;
  --night: #24344d;       /* stopka */
  --night-ink: #e8ecf0;
  --font-display: "Baloo 2", "Noto Sans Devanagari", ui-rounded, system-ui, sans-serif;
  --font-body: "Montserrat", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101a28; --surface: #182435; --surface-2: #203048; --ink: #e8edf3; --ink-soft: #b4c0cf;
    --line: #2b3b55; --blue: #7fb2f6; --blue-ink: #0f1a2a; --blue-soft: #1f3557; --stroke: #3378d8;
    --orange: #f0a452; --orange-ink: #141c28; --night: #0b131f; --night-ink: #dfe6ee; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101a28; --surface: #182435; --surface-2: #203048; --ink: #e8edf3; --ink-soft: #b4c0cf;
  --line: #2b3b55; --blue: #7fb2f6; --blue-ink: #0f1a2a; --blue-soft: #1f3557; --stroke: #3378d8;
  --orange: #f0a452; --orange-ink: #141c28; --night: #0b131f; --night-ink: #dfe6ee; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
:lang(hi) { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); color: var(--ink); }
h2:lang(hi), h3:lang(hi) { line-height: 1.35; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* Nagłówek z przełącznikiem języka, zawsze u góry */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
@media (max-width: 560px) { .brand__name { display: none; } }
.langs ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.langs a {
  display: block; padding: 6px 11px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-size: 0.875rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.langs a:hover { background: var(--blue-soft); }
.langs a[aria-current="page"] { background: var(--blue); color: var(--blue-ink); }
@media (max-width: 380px) { .langs a { padding: 6px 8px; font-size: 0.8125rem; } }

/* Otwarcie */
.hero { padding-block: 20px 40px; }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.hero__art { margin: 0; order: -1; }
.hero__art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 64% 60%; border-radius: var(--radius); }
.hero__text { display: grid; gap: 14px; max-width: 34rem; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow:lang(hi) { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.wordmark {
  font-size: clamp(2.6rem, 1.6rem + 5.2vw, 4.6rem);
  color: #ffffff;
  -webkit-text-stroke: 0.14em var(--stroke);
  paint-order: stroke fill;
  letter-spacing: 0.01em;
  text-shadow: 0 0.06em 0 color-mix(in srgb, var(--stroke) 55%, transparent);
}
.wordmark:lang(hi) { line-height: 1.3; -webkit-text-stroke-width: 0.12em; }
.slogan { font-weight: 700; font-style: italic; font-size: 1.15rem; color: var(--blue); }
.slogan:lang(hi) { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.lead { font-size: 1.125rem; color: var(--ink); max-width: 60ch; }
.hero__actions { display: grid; gap: 14px; justify-items: start; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 26px;
  border-radius: 999px; font-weight: 700; font-size: 1.0625rem; text-decoration: none;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--orange); color: var(--orange-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--orange) 55%, #000); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--orange) 55%, #000); }
.series-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9375rem; color: var(--ink-soft); }
.series-links a { font-weight: 600; }
@media (min-width: 900px) {
  .hero { padding-block: 40px 64px; }
  .hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
  .hero__art { order: 0; }
  .hero__art img { aspect-ratio: 4 / 3; }
}

/* Sekcje */
section { padding-block: 40px; }
.section-note { color: var(--ink-soft); margin-top: 6px; }
.start h2, .more h2 { margin-bottom: 4px; }
.more h2 { margin-bottom: 20px; }
.start .ep { margin-top: 20px; }

/* Karta odcinka */
.ep {
  scroll-margin-top: 84px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas: "cover head" "summary summary" "listen listen" "langs langs";
  gap: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  align-content: start;
}
.ep:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.ep__cover { grid-area: cover; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.ep__head { grid-area: head; align-self: center; display: grid; gap: 6px; min-width: 0; }
.ep__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-soft); }
.pill {
  display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue);
  font-family: var(--font-display); font-weight: 800; font-size: 0.9375rem;
}
.ep__time { font-variant-numeric: tabular-nums; }
.ep__title { font-size: 1.375rem; color: var(--ink); }
.ep__summary { grid-area: summary; max-width: 62ch; }
.ep__listen { grid-area: listen; display: flex; flex-wrap: wrap; gap: 8px; }
.pbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--blue); border-radius: 999px; color: var(--blue); background: var(--surface);
  font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
}
.pbtn svg { width: 20px; height: 20px; flex: none; }
.pbtn:hover { background: var(--blue); color: var(--blue-ink); }
.pbtn--sm { min-height: 36px; padding: 4px 11px; gap: 6px; font-size: 0.8125rem; border-width: 1.5px; }
.pbtn--sm svg { width: 16px; height: 16px; }

.ep__langs { grid-area: langs; border-top: 1px dashed var(--line); padding-top: 4px; }
.ep__langs summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: 12px; min-height: 44px; padding-block: 6px;
}
.ep__langs summary::-webkit-details-marker { display: none; }
.ep__langs summary::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg) translateY(-3px);
  transition: transform 0.15s ease;
}
.ep__langs[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .ep__langs summary::after { transition: none; } }
.ep__langs summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.ep__langs-h { grid-column: 1; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.ep__langs-h:lang(hi) { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.ep__langs-list { grid-column: 1; font-weight: 700; color: var(--blue); font-size: 0.9375rem; }
.ep__langs ul { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 10px; }
.lrow { font-size: 0.9375rem; line-height: 1.4; }
.lname { font-weight: 700; }
.ltitle { color: var(--ink-soft); }
.ltitle::before { content: "· "; }
.lbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ep { grid-template-columns: 136px minmax(0, 1fr); padding: 20px; }
}

/* Odcinek 1, wyróżniony: duża okładka */
.ep.ep--featured { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "head" "summary" "listen" "langs"; }
.ep--featured .ep__cover { max-width: 420px; }
.ep--featured .ep__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); }
.ep--featured .ep__summary { font-size: 1.0625rem; }
@media (min-width: 760px) {
  .ep.ep--featured {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    grid-template-areas: "cover head" "cover summary" "cover listen" "cover langs";
    gap: 14px 32px; padding: 24px;
  }
  .ep--featured .ep__head { align-self: end; }
}

/* Słuchanie w dwóch językach */
.bilingual { background: var(--surface-2); }
.bilingual__grid { display: grid; gap: 28px; }
.bilingual__text { display: grid; gap: 14px; max-width: 62ch; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 10px; align-items: start; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--blue); color: var(--blue-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1;
}
.names { align-self: center; }
.names__note { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 10px; }
.names ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.names li { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.names__hero {
  font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1.2;
  color: #ffffff; -webkit-text-stroke: 0.13em var(--stroke); paint-order: stroke fill;
}
.names__lang { font-size: 0.875rem; color: var(--ink-soft); font-weight: 600; }
@media (min-width: 900px) {
  .bilingual__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
}

/* Twórcy */
.creators__grid { display: grid; gap: 28px; align-items: center; }
.creators__text { display: grid; gap: 14px; max-width: 62ch; }
.voice { padding: 12px 16px; background: var(--blue-soft); border-radius: 14px; }
.creators__art { margin: 0; }
.creators__art img { border-radius: var(--radius); width: 100%; }
@media (min-width: 900px) { .creators__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

/* Kontakt */
.contact__box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 12px; max-width: 760px;
}
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.contact__mail a { font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.copy {
  font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer;
}

/* Stopka */
.foot { background: var(--night); color: var(--night-ink); padding-block: 36px 28px; margin-top: 24px; }
.foot a { color: var(--night-ink); }
.foot__grid { display: grid; gap: 22px; }
.foot ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.foot__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.foot__h { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.foot__h:lang(hi) { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.foot__copy { margin-top: 24px; font-size: 0.8125rem; opacity: 0.75; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }

/* Strona startowa z wyborem języka */
.chooser { min-height: 100%; padding-block: 48px; }
.chooser__inner { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 640px; }
.chooser__logo { width: 96px; height: 96px; border-radius: 50%; }
.chooser__site { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.chooser__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; width: 100%; }
.chooser__list a {
  display: grid; gap: 2px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.chooser__list a:hover { border-color: var(--blue); }
.chooser__series {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.25;
  color: #ffffff; -webkit-text-stroke: 0.13em var(--stroke); paint-order: stroke fill;
}
.chooser__lang { color: var(--ink-soft); font-weight: 600; }
.chooser__note { font-size: 0.875rem; color: var(--ink-soft); max-width: 46ch; margin-top: 8px; }
