@import "tailwindcss";

@theme {
  --color-navy: #0b1b36;
  --color-navy2: #13294d;
  --color-brand: #1d4ed8;
  --color-brand-dark: #1e40af;
  --color-brand-tint: #eff4ff;
  --color-brand-light: #60a5fa;
  --color-accent: #f59e0b;
  --color-accent-soft: #fef3c7;
  --color-accent-dark: #b45309;
  --color-ink: #1e293b;
  --color-body: #334155;
  --color-muted: #64748b;
  --color-faint: #94a3b8;
  --color-line: #e2e8f0;
  --color-canvas: #f1f5f9;
  --color-paper: #f8fafc;
  --color-herosub: #cbd5e1;
  --color-footsub: #a9b8d6;
  --color-success: #0f6b37;
  --color-success-bg: #dff5e8;

  --font-sans: var(--font-plex-sans), system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-sora), var(--font-plex-sans), system-ui, sans-serif;
  --font-mono: var(--font-plex-mono), ui-monospace, monospace;

  --shadow-card: 0 12px 32px rgba(11, 27, 54, 0.12);
  --shadow-soft: 0 4px 16px rgba(11, 27, 54, 0.06);
  --shadow-hero: 0 30px 80px rgba(0, 0, 0, 0.4);

  --radius-card: 14px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--color-body);
  background: #fff;
  overflow-x: clip;
  padding-top: env(safe-area-inset-top, 0);
}

@layer base {
  h1,
  h2,
  h3 {
    font-family: var(--font-display);
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.12;
  }

  /* Headings on dark backgrounds default to white;
     explicit text-* utilities still override these */
  .bg-navy :is(h1, h2, h3),
  .bg-brand :is(h1, h2, h3) {
    color: #fff;
  }

  .mx-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand);
  }
}

[id] {
  scroll-margin-top: 84px;
}

::selection {
  background: #1d4ed8;
  color: #fff;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.mx-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 32px;
}
@media (max-width: 900px) {
  .mx-container {
    padding-inline: 24px;
  }
}
@media (max-width: 600px) {
  .mx-container {
    padding-inline: 18px;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--color-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus-visible {
  top: 12px;
}

/* Logo marquee — smooth infinite scroll, pauses on hover */
@keyframes mx-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.mx-marquee {
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.mx-marquee-track {
  animation: mx-marquee 45s linear infinite;
  will-change: transform;
}
.mx-marquee:hover .mx-marquee-track {
  animation-play-state: paused;
}

/* Deterministic scrollbar hiding (marquee rows, chip rails) */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
@keyframes mx-marquee-rev {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.mx-marquee-rev {
  animation: mx-marquee-rev 70s linear infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .mx-marquee-track,
  .mx-marquee-rev {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mx-marquee-track {
    animation: none;
  }
}

/* Dashboard mockup progress bars */
.mx-bar {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #e6ebf4;
  margin-top: 4px;
  overflow: hidden;
}
.mx-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--v, 50%);
  background: var(--color-brand);
  border-radius: inherit;
}
.mx-bar.amber::after {
  background: var(--color-accent);
}
.mx-bar.green::after {
  background: var(--color-success);
}

/* (stepper connectors are rendered per-item in StepsFlow; no global line) */

/* Article body typography (resources/[slug] — curated HTML) */
.article-body {
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.75;
}
.article-body > * + * {
  margin-top: 1em;
}
.article-body h2,
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.3;
}
.article-body h2 {
  font-size: 24px;
  margin-top: 1.6em;
}
.article-body h3 {
  font-size: 19px;
  margin-top: 1.5em;
}
.article-body a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--color-brand-dark);
}
.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}
.article-body ul {
  list-style: disc;
}
.article-body ol {
  list-style: decimal;
}
.article-body li + li {
  margin-top: 0.5em;
}
.article-body strong {
  color: var(--color-ink);
}
.article-body img {
  border-radius: 12px;
  border: 1px solid var(--color-line);
}
.article-body table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.article-body th,
.article-body td {
  border: 1px solid var(--color-line);
  padding: 8px 12px;
  text-align: left;
}
.article-body th {
  background: var(--color-canvas);
  font-weight: 700;
  color: var(--color-ink);
}
.article-body section[id] {
  scroll-margin-top: 96px;
}
