/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--brand-bg); color: var(--text); font-family: var(--font-sans); font-size: var(--fs-m); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* === Type === */
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; color: var(--brand-heading); font-weight: var(--brand-heading-weight); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-l); }
p, ul, ol, figure, blockquote { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--brand-accent-hover); }
strong, b { font-weight: 700; color: var(--brand-heading); }
hr { border: 0; border-top: 1px solid var(--brand-border); margin: 2em 0; }
.accent { color: var(--brand-accent); }

/* === Script-specific typography === */
:lang(th), :lang(km) { line-height: 1.85; }
:lang(th) :is(h1, h2, h3, h4, .hero__title, .country-hero__title), :lang(km) :is(h1, h2, h3, h4, .hero__title, .country-hero__title) { line-height: 1.5; letter-spacing: 0; }
:lang(ja), :lang(zh-HK), :lang(zh-CN), :lang(zh-TW) { line-break: strict; }
:lang(ja) :is(h1, h2, h3, .hero__title, .country-hero__title), :lang(zh-HK) :is(h1, h2, h3, .hero__title, .country-hero__title), :lang(zh-CN) :is(h1, h2, h3, .hero__title, .country-hero__title) { line-height: 1.3; letter-spacing: 0.02em; }
:lang(ko) { word-break: keep-all; }

/* === Accessibility === */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; padding: 10px 16px; clip: auto; background: var(--brand-accent); color: var(--brand-accent-contrast); border-radius: var(--radius-s); }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
