:root {
  --sky: #8fd3f4;
  --cream: #fff8ea;
  --surface: #ffffff;
  --line: #e6dfd0;
  --brown: #3e2415;
  --ink: #2e3a3f;
  --muted: #5b6770;
  --primary: #2f7fc4;
  --rambutan: #e8412e;
  --leaf: #5bb443;
  --mango: #f5aa1e;
  --button: #f1cd89;
  --button-ring: #925727;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

h1, h2, .wordmark { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; line-height: 1.25; }

header {
  background: var(--sky);
  padding: 14px 16px 10px;
  border-bottom: 4px solid var(--brown);
}

.bar { max-width: 820px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--brown); background: var(--sky); }

.wordmark {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
  -webkit-text-stroke: 1.6px var(--brown);
  paint-order: stroke fill;
}
.wordmark .c { color: var(--rambutan); }
.wordmark .a { color: var(--leaf); font-size: 0.92em; -webkit-text-stroke-width: 1.2px; margin: 0 2px; }
.wordmark .x { color: var(--mango); }

.switch {
  display: inline-flex;
  background: var(--button);
  border: 3px solid var(--button-ring);
  border-radius: 999px;
  padding: 3px;
}
.switch button {
  border: 0; background: transparent; color: var(--brown);
  font: 800 15px "Nunito", system-ui, sans-serif;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 2px 0 var(--button-ring); }

nav { max-width: 820px; margin: 8px auto 0; font-weight: 700; }
nav a { color: var(--brown); text-decoration: none; margin-right: 18px; }
nav a:hover { text-decoration: underline; }

[data-lang="en"] { display: none; }
html[data-show="en"] [data-lang="en"] { display: revert; }
html[data-show="en"] [data-lang="vi"] { display: none; }

main { max-width: 820px; margin: 24px auto; padding: 0 16px 48px; }

.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--brown);
  margin-bottom: 24px;
  background: var(--sky);
}
.hero img { display: block; width: 100%; height: auto; }
.hero .caption {
  position: absolute; right: 5%; top: 32%;
  font: 800 clamp(20px, 4.2vw, 36px)/1.2 "Baloo 2", system-ui, sans-serif;
  color: var(--brown);
  text-shadow: 0 0 6px var(--cream), 0 0 12px var(--cream);
  max-width: 45%;
  text-align: center;
}

section {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 24px;
  padding: 22px 26px;
  margin-bottom: 20px;
  position: relative;
}

section.with-cast { padding-top: 26px; }
.cast { float: right; display: flex; align-items: flex-end; gap: 2px; margin: -8px -6px 8px 12px; }
.cast img { height: 96px; width: auto; }
.cast img + img { height: 70px; }

h1 { font-size: 32px; margin: 0 0 6px; color: var(--brown); }
h2 { font-size: 21px; margin: 26px 0 6px; color: var(--brown); }
p, li { color: var(--ink); }
ul { padding-left: 22px; }
li::marker { color: var(--mango); }
.muted { color: var(--muted); font-size: 15px; }
a { color: var(--primary); font-weight: 700; }

.pill {
  display: inline-block;
  background: var(--button);
  border: 3px solid var(--button-ring);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--brown);
  text-decoration: none;
  margin: 4px 8px 4px 0;
}
.pill:hover { background: #f6d99f; }

.mail { font: 800 22px "Baloo 2", system-ui, sans-serif; }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 16px 32px; }

@media (max-width: 560px) {
  .wordmark { font-size: 23px; }
  .brand img { width: 40px; height: 40px; }
  .cast img { height: 72px; }
  .cast img + img { height: 54px; }
  h1 { font-size: 27px; }
}
