@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --navy: #13294b;
  --yellow: #ffc20e;
  --bg: #f5f6f3;
  --text: #22272b;
  --card: #ffffff;
  --muted: #5a6470;
  --line: #dfe2dd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1b33;
    --text: #f5f6f3;
    --card: #13294b;
    --muted: #aab4c4;
    --line: #26416b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}
h1, h2, h3 { font-family: "Montserrat", "Segoe UI", system-ui, sans-serif; line-height: 1.2; text-wrap: balance; margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }

.hero { background: var(--navy); color: #f5f6f3; padding-block: 1.5rem 4rem; }
.hero .logo { display: block; width: min(16rem, 70%); height: auto; }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 6vw, 3.25rem); margin-top: 3.5rem; max-width: 18ch; }
.hero p { font-size: 1.1875rem; max-width: 40rem; margin: 1.25rem 0 0; color: #d6dcea; }
.badge {
  display: inline-block; margin-top: 2rem; padding: 0.7rem 1.25rem;
  background: var(--yellow); color: var(--navy); border-radius: 0.75rem;
  font-family: "Montserrat", "Segoe UI", sans-serif; font-weight: 700;
}

section { padding-block: 3rem; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.25rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; min-width: 0; }
.card h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); }
.note { color: var(--muted); max-width: 42rem; }

footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }

.doc { max-width: 42rem; padding-block: 2.5rem 4rem; }
.doc h1 { font-weight: 800; font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
.doc p, .doc li { margin: 0.5rem 0; }
.doc .updated { color: var(--muted); margin-bottom: 2rem; }
.topbar { background: var(--navy); padding-block: 1rem; }
.topbar img { display: block; width: 11rem; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: #d6dcea; }
.nav a:hover { color: var(--yellow); }
.pill { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--yellow); color: var(--navy); margin-bottom: 0.6rem; }
.alt { background: var(--card); border-block: 1px solid var(--line); }
.alt .card { background: var(--bg); }
.lead { font-size: 1.1875rem; max-width: 44rem; margin: 0 0 1.5rem; }
.list { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.list li { margin: 0.3rem 0; }
.series h3 { margin-bottom: 0.5rem; }
.btn { display: inline-block; margin-top: 1.25rem; padding: 0.75rem 1.4rem; background: var(--navy); color: #f5f6f3; border-radius: 0.75rem; text-decoration: none; font-family: "Montserrat", "Segoe UI", sans-serif; font-weight: 700; }
@media (prefers-color-scheme: dark) { .btn { background: var(--yellow); color: var(--navy); } }
.two { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }
.three { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.about-note { margin-top: 1rem; }

.navbtn { background: var(--yellow); color: var(--navy) !important; padding: 0.3rem 0.8rem; border-radius: 0.6rem; }
.navbtn:hover { filter: brightness(0.95); color: var(--navy) !important; }
a.badge { text-decoration: none; }
.alt-badge { margin-left: 0.75rem; background: transparent; color: #f5f6f3; border: 2px solid var(--yellow); }
.alt-badge:hover { background: rgba(255, 194, 14, 0.15); }
@media (max-width: 520px) { .alt-badge { margin-left: 0; margin-top: 0.75rem; display: inline-block; } }
