/* Thai text on the CV uses Sarabun: its tone marks and vowels are drawn by positioning, not
   by swapping in private glyphs, so the PDF's text layer stays readable for ATS/copy-paste
   (Prompt, used on the story pages, loses marks like ้ ี ็ when Chrome prints it to PDF).
   The woff2 files are fetched by GitHub Actions (@fontsource/sarabun); local() covers a Mac
   that has Sarabun installed. */
@font-face { font-family: "CV Thai"; font-weight: 300; font-display: swap; src: local("Sarabun Light"), local("Sarabun-Light"), url("/vendor/fonts/Sarabun-300-thai.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "CV Thai"; font-weight: 400; font-display: swap; src: local("Sarabun Regular"), local("Sarabun-Regular"), local("Sarabun"), url("/vendor/fonts/Sarabun-400-thai.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "CV Thai"; font-weight: 500; font-display: swap; src: local("Sarabun Medium"), local("Sarabun-Medium"), url("/vendor/fonts/Sarabun-500-thai.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "CV Thai"; font-weight: 600; font-display: swap; src: local("Sarabun SemiBold"), local("Sarabun-SemiBold"), url("/vendor/fonts/Sarabun-600-thai.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
html[lang="th"] body.cvpage { font-family: "Poppins", "CV Thai", "Sarabun", "Prompt", Arial, sans-serif; }
/* Quick CV · one page, no motion, prints to A4 */
:root { --ink: #111; --muted: #6f6c67; --rule: #ddd7cc; --pen: #1f45d6; --paper: #f6f3ee; }
html[lang="th"] body { font-family: "Poppins", "Prompt", Arial, sans-serif; line-height: 1.6; }
body.cvpage { background: var(--paper); color: var(--ink); font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: 14.5px; line-height: 1.5; padding: 0 clamp(16px, 5vw, 48px) 64px; }
.cv__nav { display: flex; justify-content: space-between; align-items: center; max-width: 820px; margin: 0 auto; padding: 20px 0; font-size: 0.8rem; font-weight: 500; }
.cv__nav .button { background: #000; color: #fff; padding: 9px 20px; border-radius: 999px; }
.cv { max-width: 820px; margin: 0 auto; background: #fff; padding: clamp(24px, 5vw, 56px); box-shadow: -6px 6px 14px rgba(0,0,0,.08); }
.cv__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.cv h1 { font-size: 1.7rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.cv h1 span { color: var(--muted); font-size: 1.2rem; }
.cv__role { margin: 6px 0 0; font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pen); }
.cv__contact { list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 0.8rem; text-align: right; display: grid; gap: 2px; }
.cv__summary { margin: 18px 0 6px; font-size: 1rem; }
.cv h2 { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); color: var(--muted); }
.xp { margin-bottom: 12px; break-inside: avoid; }
.xp__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.xp h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.xp__head span { font-size: 0.78rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp__org { margin: 0; color: var(--muted); font-size: 0.85rem; }
.xp ul, .cv__list { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.cv__list li span { color: var(--muted); }
.cv__list b, .xp b { font-weight: 500; }
.cv__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cv__lang { font-size: 0.85rem; margin: 8px 0 0; }
@media (max-width: 640px) { .cv__cols { grid-template-columns: 1fr; } .cv__contact { text-align: left; } }
@page { size: A4; margin: 12mm 12mm; }
@media print {
  body.cvpage { background: #fff; padding: 0; font-size: 10.5px; }
  .cv__nav { display: none; }
  .cv { box-shadow: none; padding: 0; max-width: none; }
  .cv h2 { margin-top: 14px; }
  a { color: inherit; text-decoration: none; }
}
