/* ============================================================
   Bedrok Labs — Base
   Typography, links, focus, shared element defaults.
   ============================================================ */

/* Inter is expected to be self-hosted in /assets/fonts.
   Drop the woff2 files in and these declarations activate;
   until then the system-font fallback stack renders. */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background-color: var(--color-canvas);
}

/* ---- Headings ---- */
h1,
.h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3,
.h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4,
.h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.text-display {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

/* ---- Body text ---- */
.lead {
  font-size: var(--text-body-lg);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-meta {
  font-size: var(--text-meta);
  color: var(--color-text-meta);
}

.text-small {
  font-size: var(--text-small);
}

/* ---- Eyebrow label above headings ---- */
.eyebrow {
  display: block;
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

/* ---- Links ---- */
a {
  text-decoration: none;
}

.link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}

.link:hover {
  text-decoration-color: currentColor;
}

/* Arrow link ("Learn more →") */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-small);
}

.link-arrow .icon {
  transition: transform var(--dur-fast) var(--ease-out);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ---- Focus ---- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  font-weight: 600;
}

.skip-link:focus-visible {
  top: var(--space-4);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.icon-muted {
  color: var(--color-text-meta);
}

.accent {
  color: var(--color-primary);
}
