/* Trang pomimo.vn (việc 23a). Màu theo src/theme/colors.ts (Design System Pomimo). */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("/fonts/bvp-400Regular.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("/fonts/bvp-600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("/fonts/bvp-700Bold.woff2") format("woff2"); }

:root {
  --bg: #FBF7EC; --surface: #FFFFFF; --sunken: #F3EEDF; --line: #E4DDCB;
  --ink: #1E2A22; --muted: #5A6458; --primary: #2C6B3F; --primary-soft: #DCEFD8;
  --leaf: #A8D5A2; --sprout: #F2B33D;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.top { border-bottom: 1px solid var(--line); background: var(--bg); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.top a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 18px; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--ink); }

.hero { padding: 56px 0 32px; text-align: center; }
.hero img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 3px 3px 0 var(--ink); }
.hero h1 { font-size: 40px; line-height: 1.2; margin: 24px 0 12px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 560px; }
.badge { display: inline-block; margin-top: 24px; padding: 8px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 15px; }

.pillars { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 24px 0 8px; }
@media (min-width: 680px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h2 { font-size: 18px; margin: 0 0 4px; }
.card .en { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.card p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }

.story { display: flex; align-items: center; gap: 20px; margin: 32px 0; padding: 20px; background: var(--sunken); border-radius: 16px; }
.story img { width: 96px; height: 96px; flex: none; }
.story p { margin: 0; font-size: 16px; }

main.doc { padding-top: 40px; padding-bottom: 24px; }
main.doc h1 { font-size: 32px; line-height: 1.25; margin: 0 0 8px; }
main.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
main.doc h2 { font-size: 21px; margin: 36px 0 8px; }
main.doc h3 { font-size: 17px; margin: 24px 0 4px; }
main.doc ul, main.doc ol { padding-left: 22px; }
main.doc li { margin: 4px 0; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sprout); border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 16px 0 8px; }
.contact a.mail { font-size: 20px; font-weight: 700; text-decoration: none; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > *:not(summary) { margin-top: 0; }
details[open] { padding-bottom: 12px; }

footer.bottom { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.bottom a { color: var(--muted); margin-right: 16px; }

@media (max-width: 520px) {
  nav.top a { margin-left: 12px; font-size: 14px; }
  nav.top a.hide-sm { display: none; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 18px; }
  .story { flex-wrap: wrap; justify-content: center; text-align: center; }
  .story p { order: -1; flex-basis: 100%; }
  .story img { width: 80px; height: 80px; }
}
