@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/SpaceGrotesk-400.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/SpaceGrotesk-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/SpaceGrotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk/SpaceGrotesk-700.woff2") format("woff2");
}

:root {
  --bg: 255 255 255;           /* white base */
  --tint: 255 255 255 / .65;   /* translucent */
  --ink: 20 24 28;             /* text color */
  --ink-weak: 80 90 100;
  --accent: 50 120 255;        /* slightly lighter blue for better readability */
  --ring: 50 120 255 / .25;
  --surface: 246,247,249;      /* light grey used across the app */
  --surface-dim: 240,242,245;  /* slightly darker variant */
  --header-pad-y: 20px;        /* increase for a taller bar */
  --logo-h: 36px;              /* increase logo size to match new height */
  
  /* Typography system */
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  
  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Line heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.keycloak-hidden-iframe {
  display: none !important;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: rgb(var(--ink));
  background: rgb(var(--surface));
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--leading-tight);
  color: rgb(var(--ink));
  margin: 0;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

/* Links */
a {
  color: rgb(var(--accent));
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: rgb(30 90 220);
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgb(var(--accent) / 0.08);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: rgb(var(--accent));
}

/* Strong */
strong {
  font-weight: 600;
  color: rgb(var(--ink));
}

/* Lists */
ul, ol {
  padding-left: 1.5em;
  line-height: var(--leading-relaxed);
}

li {
  margin-bottom: 0.5em;
  color: rgb(var(--ink-weak));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-3xl: 1.5rem;
  }
}
