/* Gạo Play site — palette and shadow idiom lifted from the app's own
   design tokens (src/theme/colors.ts): flat colour blocks, 3px ink border,
   hard offset shadow, no blur. */

:root {
  --ground:   #FFF7EC;
  --card:     #FFFDF7;
  --sunken:   #F6EEE0;
  --ink:      #3A2C23;
  --ink-soft: #6B594B;
  --ink-mute: #93826F;
  --line:     #3A2C23;
  --shadow:   #E2D3BE;
  --coral:    #E0523F;
  --mint:     #23856A;
  --mint-bg:  #DDF3EC;
  --lemon:    #FFD645;
  --on-lemon: #3A2C23;
  --sky:      #1E6FB8;
  --maxw:     740px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #201A14;
    --card:     #2D241C;
    --sunken:   #241D16;
    --ink:      #FBF2E4;
    --ink-soft: #CBB9A3;
    --ink-mute: #9A8874;
    --line:     #55453A;
    --shadow:   #14100C;
    --coral:    #FF9080;
    --mint:     #6FD9BC;
    --mint-bg:  #1D3A32;
    --lemon:    #FFD645;
    --on-lemon: #3A2C23;
    --sky:      #79BEF5;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 90px;
}

h1, h2, h3 {
  font-family: "Baloo 2", ui-rounded, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.14;
  text-wrap: balance;
  margin: 0;
}

a { color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 3px; }

/* ---------- top bar ---------- */

.topbar {
  border-bottom: 3px solid var(--line);
  background: var(--card);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2.5px solid var(--line);
  display: block;
}
.brand span {
  font-family: "Baloo 2", ui-rounded, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.langswitch { display: flex; gap: 6px; }
.langswitch button {
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--card);
  border: 2.5px solid var(--line);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--shadow);
  padding: 4px 12px;
  cursor: pointer;
}
.langswitch button[aria-pressed="true"] { background: var(--lemon); color: var(--on-lemon); }
.langswitch button:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }
.langswitch button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Both languages render without JS; the script hides one only once it runs. */
.js-ready [lang="en"].pane { display: none; }
.js-ready.show-en [lang="en"].pane { display: block; }
.js-ready.show-en [lang="vi"].pane { display: none; }

/* ---------- page head ---------- */

header.page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 52px 0 34px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}
header.page h1 { font-size: clamp(34px, 6vw, 48px); }
header.page p.sub { margin: 0; color: var(--ink-soft); }
.stamp {
  font-size: 13.5px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* ---------- content ---------- */

.pane > section { margin-bottom: 34px; }
.pane h2 {
  font-size: 23px;
  margin-bottom: 8px;
  display: flex;
  gap: 11px;
  align-items: baseline;
}
.pane h2 .n {
  font-size: 14px;
  font-weight: 800;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}
.pane p { margin: 0 0 12px; }
.pane ul { margin: 0 0 12px; padding-left: 22px; }
.pane li { margin-bottom: 6px; }
.pane li::marker { color: var(--coral); }

.callout {
  background: var(--mint-bg);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 18px 20px;
  margin-bottom: 34px;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 5px; }
.card p:last-child { margin-bottom: 0; }

.mail {
  display: inline-block;
  font-family: "Baloo 2", ui-rounded, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--on-lemon);
  background: var(--lemon);
  border: 3px solid var(--line);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 9px 20px;
  text-decoration: none;
}
.mail:hover { color: var(--on-lemon); transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--shadow); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 8px 0 34px;
}
.tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 18px 20px;
}
.tile:hover { color: var(--ink); transform: translate(1px, 1px); box-shadow: 4px 4px 0 var(--shadow); }
.tile strong {
  font-family: "Baloo 2", ui-rounded, system-ui, sans-serif;
  font-size: 19px;
  display: block;
  margin-bottom: 2px;
}
.tile span { font-size: 14.5px; color: var(--ink-soft); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.87em;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

footer.site {
  border-top: 3px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
  font-size: 14px;
  color: var(--ink-mute);
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .tile:hover, .mail:hover, .langswitch button:active { transform: none; }
}
