/*
  Global typography and baseline layout styles.
  Author: Alfonso Shytani
  Created: 2026-01-30
*/

:root {
  --brand-blue: #004b87;
  /* Single knob to control typography scale across browsers/pages. */
  --br-base-font-size: clamp(16px, 0.8vw + 12px, 22px);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  /* Base font size: drives all `rem` values (Bootstrap + our CSS). */
  font-size: var(--br-base-font-size);
  -webkit-text-size-adjust: 100%; /* Prevent mobile auto scaling. */
  text-size-adjust: 100%; /* Standard text size adjust. */
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #ffffff; /* White background. */
  color: #000000;
  font-family: "Bai Jamjuree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  /* Keep body aligned to the root font-size for consistent scaling. */
  font-size: 1rem;
  max-width: 100%;
  overflow-x: hidden;
}

p,
li,
span,
a,
input,
button,
textarea {
  font-family: inherit;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.heading,
.display-title {
  font-family: "kallisto", "Bai Jamjuree", system-ui, sans-serif;
  font-weight: 500;
}

:where(h1, h2, h3, h4, h5, h6, p, li) {
  overflow-wrap: anywhere;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

.text-brand {
  color: var(--brand-blue) !important;
}

.bg-brand {
  background-color: var(--brand-blue) !important;
}

.border-brand {
  border-color: var(--brand-blue) !important;
}

#root {
  min-height: 100vh;
}
