/* Document defaults and the small shared pieces: links, buttons, icons, eyebrow labels. */
html {
  scroll-behavior: smooth;
}

html,
body {
  font-family: var(--sp-font-primary);
  color: var(--sp-content-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

a {
  color: var(--sp-content-primary);
  text-decoration: none;
}

a:hover {
  color: var(--kp-accent);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--kp-accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

/* Mono eyebrow label above headings */
.eyebrow {
  font-family: var(--sp-font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sp-content-secondary);
  font-weight: 500;
}

.eyebrow--muted {
  color: var(--sp-content-tertiary);
}

.eyebrow--dark {
  color: #b5b5b3;
}

/* Buttons: pill shape, ink fill is the primary action */
.btn {
  appearance: none;
  font: 500 16px/20px var(--sp-font-primary);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 8px;
  transition: transform 0.08s var(--sp-ease-elegant), background-color 0.15s var(--sp-ease-elegant);
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--pill {
  border-radius: var(--sp-r-pill);
}

.btn--sm {
  padding: 10px 14px;
  font-size: 14px;
}

.btn--primary {
  background: var(--kp-deep);
  color: #fff;
  font-weight: 600;
}

.btn--primary:hover {
  color: #fff;
  box-shadow: inset 999px 999px 0 rgba(255, 255, 255, 0.12);
}

.btn--ghost {
  background: var(--sp-bg-secondary);
  color: var(--sp-content-primary);
  font-weight: 600;
}

.btn--ghost:hover {
  color: var(--sp-content-primary);
  box-shadow: inset 999px 999px 0 rgba(0, 0, 0, 0.04);
}
