/**
 * ฟอนต์ของเว็บ — โฮสต์ไว้ในเซิร์ฟเวอร์ตัวเอง ไม่เรียกจาก Google Fonts
 *
 * เหตุผล (PDPA): การโหลดฟอนต์จาก fonts.googleapis.com / fonts.gstatic.com
 * ทำให้เบราว์เซอร์ของผู้เข้าชมส่งหมายเลข IP ไปยังเซิร์ฟเวอร์ของ Google ทุกครั้งที่เปิดหน้าเว็บ
 * โดยผู้เข้าชมไม่ได้ทำอะไรเลย ซึ่งขัดกับที่นโยบายความเป็นส่วนตัวประกาศไว้ว่า
 * ไม่ติดตามพฤติกรรมข้ามเว็บไซต์ และไม่ได้ระบุ Google เป็นผู้รับข้อมูลในข้อ 3
 *
 * ไฟล์ .woff2 อยู่ใน assets/fonts/ (subset latin เท่านั้น — ข้อความไทยใช้ฟอนต์ระบบเหมือนเดิม)
 * Nunito และ Open Sans เป็น variable font จึงใช้ไฟล์เดียวครอบทุกน้ำหนัก (400–700)
 *
 * ถ้าจะเพิ่มฟอนต์/น้ำหนักใหม่: ดาวน์โหลด .woff2 มาไว้ใน assets/fonts/ แล้วเพิ่ม @font-face ที่นี่
 * **ห้ามกลับไปใช้ <link> ของ Google Fonts** โดยไม่แก้นโยบายความเป็นส่วนตัวข้อ 1 และ 3 ให้ตรงก่อน
 */

/* unicode-range = ชุดอักขระละติน ตรงกับที่ Google Fonts ให้มา
   หน้าที่มีแต่ข้อความไทยล้วนเบราว์เซอร์จะไม่โหลดไฟล์ฟอนต์เลย */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;              /* variable font — ไฟล์เดียวครอบทุกน้ำหนัก */
  font-display: swap;
  src: url(../fonts/open-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/nunito.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins เป็นฟอนต์ static — ต้องแยกไฟล์ตามน้ำหนัก */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/poppins-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
