/* HCC 5.0: typography refresh / Vietnamese-first layout.
   Be Vietnam Pro is loaded via Google Fonts; native/system fonts remain fallback offline.
   Kanji/Japanese study fonts are intentionally left unchanged. */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root { --hcc-viet-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
body, button, input, select, textarea { font-family: var(--hcc-viet-font); }
body { font-weight: 400; letter-spacing: 0; line-height: 1.66; font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
/* Main headers: generous line height keeps Vietnamese tone marks readable. */
.hcc-brand-lines strong { font-family:var(--hcc-viet-font); font-weight:800; line-height:1.30; letter-spacing:-.025em; }
.hcc-brand-lines > span { font-family:var(--hcc-viet-font); font-weight:400; line-height:1.55; letter-spacing:0; }
.hcc-personal-welcome h1 { font-family:var(--hcc-viet-font); font-weight:800; line-height:1.40; letter-spacing:-.027em; text-wrap:pretty; }
.hcc-personal-welcome p { font-family:var(--hcc-viet-font); font-weight:500; letter-spacing:0; line-height:1.65; }
.hcc-start-brand strong { font-family:var(--hcc-viet-font); font-weight:800; line-height:1.34; letter-spacing:-.025em; }
.hcc-start-eyebrow { font-family:var(--hcc-viet-font); font-weight:700; letter-spacing:.005em; line-height:1.6; }
.hcc-start-body h1 { font-family:var(--hcc-viet-font); font-weight:800; line-height:1.48; letter-spacing:-.026em; }
.hcc-start-body p, .hcc-start-note, .hcc-start-brand span { font-family:var(--hcc-viet-font); line-height:1.8; letter-spacing:0; }
.hcc-start-yes { font-family:var(--hcc-viet-font); font-weight:750; letter-spacing:0; }
/* Homepage and course tiles: softer, less compressed Vietnamese headings. */
.hero3 h1, .hero h1, .v50welcome h2, .v50hero h2,
.next3 h2, .section3 h2, .header h1, .tile3 b,
.card h2, .card h3, .module h3, .hcc-sidebrand b { font-family:var(--hcc-viet-font); letter-spacing:-.02em; line-height:1.47; }
.hero3 h1, .hero h1, .v50welcome h2 { font-weight:800; letter-spacing:-.03em; line-height:1.40; }
.tile3 b, .card h2, .module h3 { font-weight:700; }
.hero3 p, .hero p, .v50welcome p, .v50hero p { line-height:1.9; letter-spacing:0; }
.nav, .btn, .level button, .hcc-lang, .hcc-profile-action,
.quicknav button { font-family:var(--hcc-viet-font); letter-spacing:0; }
.nav, .btn, .level button { font-weight:600; }
.nav.active, .nav:hover, .btn.primary, .level button.active {font-weight:700;}
.tiny, .navlabel, .tag { letter-spacing:.065em; line-height:1.65; }
/* Vietnamese notes and short labels should be easy to read on phones. */
.hcc-personal-welcome, .hcc-start-card { overflow-wrap:break-word; }
@media(max-width:760px) {
 .hcc-brand-lines strong { font-size:clamp(15px,4.45vw,19px); line-height:1.32; letter-spacing:-.025em; }
 .hcc-brand-lines>span { font-size:clamp(10px,2.85vw,12px); }
 .hcc-personal-welcome h1 { font-size:clamp(27px,6.6vw,34px); line-height:1.44; letter-spacing:-.025em; }
 .hcc-personal-welcome p {font-size:17px;}
 .hcc-start-body h1 {font-size:clamp(25px,6.65vw,33px);line-height:1.48;}
 .hero3 h1 {letter-spacing:-.03em;line-height:1.43;}
}
/* Protect legibility of the Japanese syllabus and kanji grids. */
.jp, .largejp, .kanjibox, .memory-layout .kanjibox, .f40glyph, .v50passage,
.v50lesson strong, .v50q h3, .v50audio h2,
[lang="ja"], ruby { font-family:'Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic','Noto Sans CJK JP','Noto Sans JP',sans-serif; }
/* Programmatic focus restores screen-reader context after welcome; suppress the
   browser's black default focus rectangle on a non-interactive heading. */
#hcc-greeting h1[tabindex="-1"]:focus {outline:none;}
