/* Korerium — Global Tokens & Base */

:root {
  --kr-bg:             #0D0D0F;
  --kr-surface:        #131315;
  --kr-surface-raised: #1D1D20;
  --kr-border:         #2A2A2E;
  --kr-text:           #F2F2F2;
  --kr-text-muted:     #8A8A8E;
  --kr-accent:         #008AB8;
  --kr-accent-hover:   #0099CC;

  --kr-radius:         10px;
  --kr-radius-sm:      6px;
  --kr-transition:     0.18s ease;

  --kr-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --kr-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --kr-font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --kr-max: 1280px;
  --kr-max-narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--kr-bg);
  color: var(--kr-text);
  font-family: var(--kr-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--kr-font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--kr-text);
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); text-wrap: balance; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--kr-text); }

.kr-lede {
  color: var(--kr-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

a {
  color: var(--kr-accent);
  text-decoration: none;
  transition: color var(--kr-transition);
}
a:hover, a:focus-visible { color: var(--kr-accent-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--kr-accent);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

::selection {
  background: #008AB8;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
::-moz-selection {
  background: #008AB8;
  color: #fff !important;
}

a::selection,
.kr-eyebrow::selection,
.kr-lede::selection,
.kr-p-tagline::selection,
.kr-featured-tagline::selection {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #0099CC;
}
a::-moz-selection,
.kr-eyebrow::-moz-selection,
.kr-lede::-moz-selection,
.kr-p-tagline::-moz-selection,
.kr-featured-tagline::-moz-selection {
  color: #fff !important;
  background: #0099CC;
}

body {
  width: 100%;
  overflow-x: hidden;
}

.kr-container {
  width: 100%;
  max-width: var(--kr-max);
  margin: 0 auto;
  padding: 0 24px;
}

.kr-container-narrow {
  width: 100%;
  max-width: var(--kr-max-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .kr-container,
  .kr-container-narrow {
    padding: 0 18px;
  }
}

.kr-eyebrow {
  display: inline-block;
  font-family: var(--kr-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kr-text-muted);
  margin-bottom: 1em;
}

.kr-page-hero { padding: 100px 0 64px; }
.kr-page-hero h1 { max-width: 780px; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.kr-page-hero .kr-lede { max-width: 640px; }

.kr-article-hero { padding: 100px 0 48px; }
.kr-article-hero h1 { max-width: 780px; font-size: clamp(2rem, 3.6vw, 2.75rem); }

section { padding: 96px 0; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
  body { font-size: 16px; }
}
