/* Tali & Plip — taliandplip.com. Plain CSS, phone first. Colours follow the show: sea blues, Plip yellow, shell pink. */

@font-face {
  font-family: "Tali Logo";
  src: url("../fonts/mplus-rounded-1c-black-latin.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* Font combos. Combo 1 is the default (:root below). Switch to 2 or 3 with <html data-fonts="2"> (or "3") on
   index.html, ko/index.html and 404.html, and change the font preload links there. A browser downloads only the
   fonts a page uses. Latin faces carry Latin glyphs only; Korean faces carry Hangul only (unicode-range), so on
   the Korean page English words keep the English font. Korean faces declare a weight range, so the browser picks
   the nearest real weight and never fakes bold. Korean files are subsets: re-run tools/subset-fonts.py after a
   Korean text change. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jua KO";
  src: url("../fonts/jua-ko.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

@font-face {
  font-family: "Gowun Dodum KO";
  src: url("../fonts/gowun-dodum-ko.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

/* NanumSquareRound R / B / EB subsets, renamed (see OFL-NanumSquareRound.txt). */
@font-face {
  font-family: "TP Square Round KO";
  src: url("../fonts/tp-squareround-ko-400.woff2") format("woff2");
  font-weight: 100 549;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

@font-face {
  font-family: "TP Square Round KO";
  src: url("../fonts/tp-squareround-ko-700.woff2") format("woff2");
  font-weight: 550 749;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

@font-face {
  font-family: "TP Square Round KO";
  src: url("../fonts/tp-squareround-ko-800.woff2") format("woff2");
  font-weight: 750 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

:root {
  color-scheme: light;

  --surface: #ecfaf9;
  --sea-50: #f2fbfb;
  --sea-100: #daf3f1;
  --sea-200: #b8e8e5;
  --sea-300: #8fd8d9;
  --sea-500: #3eaab9;
  --sea-700: #1d6f7e;
  --ink: #123f4c;
  --ink-soft: #3a6170;
  --yellow: #f7cf4a;
  --yellow-soft: #fff5cc;
  --shell: #f6cfc8;
  --shell-soft: #fdefeb;
  --coral: #f2735a;
  --orange: #ff9a3d;
  --white: #ffffff;
  --focus: #f2a900;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --shadow: 0 6px 24px rgba(18, 63, 76, 0.1);
  --wrap: 1120px;

  --font-fallback: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-logo: "Tali Logo", var(--font-head);

  /* Combo 1 (default): Fredoka + Nunito, Korean Jua (headings) + NanumSquareRound (text). */
  --font-head: "Fredoka", "Jua KO", var(--font-fallback);
  --font-body: "Nunito", "TP Square Round KO", var(--font-fallback);
  --w-head: 600;
}

/* Combo 2: Baloo 2 + Nunito, Korean NanumSquareRound ExtraBold (headings) + NanumSquareRound (text). */
html[data-fonts="2"] {
  --font-head: "Baloo 2", "TP Square Round KO", var(--font-fallback);
  --font-body: "Nunito", "TP Square Round KO", var(--font-fallback);
  --w-head: 800;
}

/* Combo 3: Quicksand, Korean Jua (headings) + Gowun Dodum (text). */
html[data-fonts="3"] {
  --font-head: "Quicksand", "Jua KO", var(--font-fallback);
  --font-body: "Quicksand", "Gowun Dodum KO", var(--font-fallback);
  --w-head: 700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  overflow-x: hidden;
}

:lang(ko) body,
html:lang(ko) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sea-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: var(--w-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  text-align: center;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

/* Copy rule: each sentence starts on its own line (<br> in the HTML, site.js for episode texts).
   Balance short headings and avoid a single orphan word on the last line of a sentence. */
h1,
h2,
h3,
.tagline {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

/* English pages: the "한국어" switch label uses the system font, so English pages download no Korean web font. */
html:lang(en) [lang="ko"] {
  font-family: var(--font-fallback);
}

/* Keep short quoted phrases on one line ("Are you okay?", “내 차례!”). */
q,
.nowrap {
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-s);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 250, 249, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(18, 63, 76, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.2rem;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(18, 63, 76, 0.2);
}

.site-nav {
  display: none;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--sea-100);
}

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--sea-200);
}

.lang-switch a {
  display: block;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
}

.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--white);
}

@media (min-width: 860px) {
  .site-nav {
    display: block;
  }
  .lang-switch {
    margin-left: 8px;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 88px;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #c4efeb 0%, #8fd8d9 62%, #6ac8d0 100%);
}

.hero::before {
  /* soft light shafts */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.28) 22%, transparent 30%),
    linear-gradient(98deg, transparent 52%, rgba(255, 255, 255, 0.22) 56%, transparent 63%),
    linear-gradient(110deg, transparent 72%, rgba(255, 255, 255, 0.18) 75%, transparent 80%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-art {
  justify-self: center;
  width: min(72vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 12px 40px rgba(18, 63, 76, 0.18);
  background: var(--sea-200);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  text-align: center;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(3rem, 2.2rem + 5vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: var(--orange);
  -webkit-text-stroke: 0.16em var(--white);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 rgba(29, 111, 126, 0.55);
}

.logo .amp {
  color: var(--coral);
}

.logo-sub {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--sea-700);
}

.tagline {
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 auto 12px;
  max-width: 30em;
}

.hero-meta {
  margin: 0 auto 24px;
  color: var(--ink-soft);
  font-weight: 700;
  max-width: 34em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 0 #0a2a33;
}

.btn-primary:hover {
  color: var(--white);
  background: #0f3540;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn-secondary:hover {
  color: var(--ink);
  background: var(--yellow-soft);
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

@media (min-width: 860px) {
  .hero {
    padding: 64px 0 120px;
  }
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
  .hero-text {
    text-align: left;
    order: -1;
  }
  .tagline,
  .hero-meta {
    margin-left: 0;
  }
  .btn-row {
    justify-content: flex-start;
  }
  .hero-art {
    width: 400px;
  }
}

/* floating bubbles (decorative) */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -60px;
  width: var(--s, 24px);
  height: var(--s, 24px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25) 35%, rgba(255, 255, 255, 0.08) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
  animation: rise var(--d, 16s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.bubbles span.gold {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 224, 122, 0.75) 35%, rgba(247, 207, 74, 0.5) 75%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 236, 170, 0.9);
}

@keyframes rise {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(12px, -55vh);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(-6px, -110vh);
    opacity: 0;
  }
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  width: 100%;
  color: var(--surface);
}

/* ---------- sections ---------- */

.section {
  padding: 56px 0;
}

.section-intro {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 32px;
  color: var(--ink-soft);
  font-weight: 700;
}

.eyebrow {
  display: block;
  text-align: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea-700);
  margin-bottom: 6px;
}

:lang(ko) .eyebrow {
  letter-spacing: 0.02em;
}

@media (min-width: 860px) {
  .section {
    padding: 80px 0;
  }
}

/* ---------- friends ---------- */

.friends-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .friends-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.friend {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 24px 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.friend-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.friend-photo {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--sea-100);
}

.friend--plip .friend-photo {
  border-color: var(--yellow-soft);
}

.friend-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend h3 {
  font-size: 2rem;
  margin: 0;
}

.friend-kind {
  margin: 2px 0 0;
  font-weight: 800;
  color: var(--ink-soft);
}

.light-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--shell-soft);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin: 4px 0 16px;
}

.friend--plip .light-box {
  background: var(--yellow-soft);
}

.light-box p {
  margin: 0;
}

.light-box strong {
  display: block;
}

.glow-dot {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-top: 2px;
  background: radial-gradient(circle, #ffd2c2 0%, #ff9f86 45%, rgba(255, 159, 134, 0) 72%);
}

.friend--plip .glow-dot {
  background: radial-gradient(circle, #fff3b0 0%, #f7cf4a 45%, rgba(247, 207, 74, 0) 72%);
}

.says-title {
  font-weight: 900;
  margin: 4px 0 8px;
}

.says {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.says li {
  position: relative;
  padding: 8px 14px;
  background: var(--sea-50);
  border: 2px solid var(--sea-200);
  border-radius: 18px;
  font-weight: 800;
  line-height: 1.35;
}

/* Korean page only: the Korean meaning of an English key phrase, as a small caption under the phrase.
   Same pattern everywhere (often-says chips, feeling and phrase chips, parent tip, episode cards). */
.gloss {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.pair-note {
  max-width: 44em;
  margin: 28px auto 0;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- heart light ---------- */

.light-band {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 28px 20px;
  margin-top: 40px;
  box-shadow: var(--shadow);
}

.light-band h3 {
  text-align: center;
  font-size: 1.6rem;
}

.light-band > p {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 20px;
  color: var(--ink-soft);
  font-weight: 700;
}

.light-scale {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .light-scale {
    grid-template-columns: repeat(5, 1fr);
  }
}

.light-scale li {
  text-align: center;
  background: var(--sea-50);
  border-radius: var(--radius-m);
  padding: 14px 8px;
}

.light-scale strong {
  display: block;
  font-weight: 900;
}

.light-scale span {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.swirl {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8eeee;
}

.swirl svg {
  width: 30px;
  height: 30px;
}

.swirl[data-level="0"] {
  background: #e3e9ea;
  color: #b9a39c;
}
.swirl[data-level="1"] {
  background: radial-gradient(circle, #fff 0%, #fbe1d8 60%, #eef3f3 100%);
  color: #f0a58f;
  animation: breathe 3.2s ease-in-out infinite;
}
.swirl[data-level="2"] {
  background: radial-gradient(circle, #fff 0%, #ffd9cb 55%, #f7e9e5 100%);
  color: #ff9f86;
}
.swirl[data-level="3"] {
  background: radial-gradient(circle, #fff6f1 0%, #ffc8b4 55%, #ffe6dc 100%);
  color: #ff8a6a;
  box-shadow: 0 0 16px rgba(255, 150, 120, 0.45);
}
.swirl[data-level="4"] {
  background: radial-gradient(circle, #fffaf6 0%, #ffbba3 55%, #ffd9cc 100%);
  color: #ff7a55;
  box-shadow: 0 0 24px rgba(255, 140, 105, 0.6);
}

@media (max-width: 719px) {
  .light-scale li:last-child {
    grid-column: span 2;
  }
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(255, 150, 120, 0.15);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 150, 120, 0.4);
  }
}

/* ---------- season 1 ---------- */

.season {
  background: linear-gradient(180deg, var(--surface) 0%, var(--sea-100) 100%);
}

.practice-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 860px) {
  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.practice {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.practice h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.practice-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}

.practice-icon svg {
  width: 24px;
  height: 24px;
}

.practice:nth-child(1) .practice-icon {
  background: var(--shell);
  color: #9b3d28;
}
.practice:nth-child(2) .practice-icon {
  background: var(--sea-200);
  color: var(--sea-700);
}
.practice:nth-child(3) .practice-icon {
  background: var(--yellow);
  color: #6b5200;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sea-50);
  border: 1.5px solid var(--sea-200);
  font-weight: 800;
  font-size: 0.98rem;
}

.chips li[lang="en"] {
  font-family: var(--font-body);
}

.chips--gloss li {
  border-radius: 14px;
  padding: 5px 12px 6px;
  line-height: 1.3;
}

.practice p {
  color: var(--ink-soft);
  font-weight: 600;
  margin: 10px 0 0;
}

.curve-title {
  text-align: center;
  font-size: 1.5rem;
}

.curve {
  counter-reset: stage;
  display: grid;
  gap: 14px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 560px;
}

@media (min-width: 860px) {
  .curve {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
    gap: 20px;
  }
}

.curve li {
  counter-increment: stage;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 18px 18px 18px 72px;
  box-shadow: var(--shadow);
}

.curve li::before {
  content: counter(stage);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: var(--w-head);
  font-size: 1.2rem;
  background: var(--yellow);
  color: var(--ink);
}

.curve li:nth-child(2)::before {
  background: var(--shell);
}
.curve li:nth-child(3)::before {
  background: var(--sea-200);
}
.curve li:nth-child(4)::before {
  background: #d9d4f2;
}

@media (min-width: 860px) {
  .curve li {
    padding: 72px 18px 20px;
  }
}

.curve strong {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.curve span {
  display: block;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}

.season-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 32px auto 0;
  text-align: center;
  font-weight: 800;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

/* ---------- episodes ---------- */

.episode-list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .episode-list {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.episode {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.episode-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sea-200);
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.episode-meta {
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--sea-700);
  font-size: 0.95rem;
}

.episode h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4em;
}

.say-box {
  background: var(--yellow-soft);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin: 4px 0 20px;
}

.say-box h4 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 1rem;
}

.say-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.say-box .en {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.35;
}

.episode .btn {
  margin-top: auto;
  align-self: flex-start;
}

.episodes-more {
  text-align: center;
  margin: 28px 0 0;
  font-weight: 800;
  color: var(--ink-soft);
}

/* ---------- parents ---------- */

.parents {
  background: var(--shell-soft);
}

.tips {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .tips {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .tips {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tip {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: var(--shadow);
}

.tip-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sea-100);
  color: var(--sea-700);
  margin-bottom: 10px;
}

.tip-icon svg {
  width: 24px;
  height: 24px;
}

.tip h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.tip p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.tip q {
  font-weight: 800;
  color: var(--ink);
  quotes: "\201C" "\201D";
}

.tip .tip-phrase {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px 7px;
  background: var(--sea-50);
  border: 2px solid var(--sea-200);
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.facts {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .facts {
    grid-template-columns: 1.4fr 1fr;
  }
}

.facts > div {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 22px 20px;
}

.facts h3 {
  font-size: 1.2rem;
}

.facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.facts li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23123f4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--yellow);
}

.facts .privacy li::before {
  background-color: var(--sea-200);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d8eef0;
  padding: 40px 0 32px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-logo {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 0 6px;
}

.site-footer p {
  margin: 0 0 6px;
}

.footer-small {
  font-size: 0.9rem;
  color: #a9cdd2;
}

.footer-small a {
  color: #d8eef0;
  font-weight: 700;
}

.site-footer :focus-visible {
  outline-color: var(--yellow);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bubbles,
  .swirl[data-level="1"] {
    animation: none;
  }
  .bubbles span {
    display: none;
  }
  .btn {
    transition: none;
  }
}

[hidden] {
  display: none !important;
}
