/* Space Grotesk (headings) and JetBrains Mono (labels), SIL Open Font License 1.1 (assets/fonts/LICENSE-*.txt) */
@font-face {
  font-family: 'Space Grotesk';
  src: url(../assets/fonts/space-grotesk-latin-var.woff2) format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(../assets/fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
/* Inter by The Inter Project Authors, SIL Open Font License 1.1 (assets/fonts/LICENSE-Inter.txt) */
@font-face {
  font-family: 'Inter';
  src: url(../assets/fonts/inter-latin-regular.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url(../assets/fonts/inter-latin-medium.woff2) format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url(../assets/fonts/inter-latin-semibold.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url(../assets/fonts/inter-latin-bold.woff2) format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url(../assets/fonts/inter-latin-italic.woff2) format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2a3441 var(--bg);
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body-lg)/1.6 var(--font-body);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}
h1 {
  max-width: 17ch;
  font-size: var(--fs-hero);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 {
  font-size: var(--fs-xl);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
h2.big {
  font-size: clamp(2rem, 3.4vw + 0.8rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
h3 {
  font-size: var(--fs-md);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
  max-width: 68ch;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
::selection {
  background: rgba(135, 212, 230, 0.3);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}
input,
textarea {
  caret-color: var(--brand);
}
.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: max(var(--margin), calc((100% - var(--content-max)) / 2), env(safe-area-inset-left, 0));
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #001e2c;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}
.small {
  font-size: var(--fs-sm);
  color: var(--text-mute);
}
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.site-footer {
  margin-top: auto;
}

/* Inter: numbers line up in columns (prices, totals, dates) */
.num,
.mono,
.amt,
.kes,
.kpi strong,
.bar-val,
.tbl td,
.price,
span.from,
.track-list .amt {
  font-variant-numeric: tabular-nums;
}
/* Real code (commands, recovery codes) keeps a fixed-width font */
code,
pre,
kbd,
.code {
  font-family: var(--font-code);
}

/* Long words (Kiswahili, web addresses) wrap instead of spilling out on small phones */
p,
li,
dd,
td,
figcaption,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

/* Anything marked hidden stays hidden, even if its own style sets a display */
[hidden] {
  display: none !important;
}
