/* Self-hosted fonts (Inter regular/medium/semibold/bold; JetBrains Mono
   regular/medium) per §0.2 Design System Architecture. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/Inter/web/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/Inter/web/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/Inter/web/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/Inter/web/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/JetBrainsMono/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/JetBrainsMono/fonts/webfonts/JetBrainsMono-Medium.woff2') format('woff2');
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
button { font: inherit; cursor: pointer; }
code, kbd, pre, samp { font-family: var(--font-mono); }

/* Theme bodies */
body.theme-public { background: var(--bg-public); color: var(--ink); }
body.theme-auth { background: var(--bg-auth); color: var(--on-dark); }
/* Flash ink is dark for the cream theme; re-tint light on the navy theme so
   flash text stays readable over the semi-transparent dark backgrounds. */
body.theme-auth {
  --flash-error-ink: #FFCDC7;
  --flash-warning-ink: #EFDFA3;
  --flash-success-ink: #A9E9E0;
  --flash-info-ink: #A9E4EE;
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.site-main { flex: 1 0 auto; }
