/* The reset and the type rules. Widths: phone below 40rem (640px), tablet
   40rem to 63.99rem, desktop from 64rem (1024px); media queries cannot use
   custom properties, so the widths are written here in rem. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("/static/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Thai Looped"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/IBMPlexSansThaiLooped-Regular.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai Looped"; font-weight: 600; font-display: swap;
  src: url("/static/fonts/IBMPlexSansThaiLooped-SemiBold.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-normal);
  line-height: var(--leading);
  overflow-wrap: break-word;
}
:lang(th) { line-height: var(--leading-thai); letter-spacing: 0; }
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h1, h2, h3, h4, strong, th { font-weight: var(--weight-strong); }
small { font-size: var(--text-sm); }
a { color: var(--color-link); }
mark, ::selection { background: var(--color-mark); color: var(--color-on-mark); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-inline-size: 100%; block-size: auto; }
:focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }
