/* =================================================================
   ninth-paradigm.com — one-page layer over the PKG palette.
   tokens-shared.css, tokens-pkg.css, global.css, fonts.css and
   components.css are copies of pkg_systems_com's (via david_nilsen_com);
   this file holds only what the page adds.
   ================================================================= */

html { font-size: 100%; }
body { overflow-wrap: break-word; }

.np-skip { position: absolute; left: 1rem; top: -6rem; z-index: 20; padding: 0.8rem 1rem; background: var(--accent); color: var(--bg-base); }
.np-skip:focus { top: 1rem; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

.site-nav { gap: 2rem; flex-wrap: wrap; }
.np-wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-primary); font: 600 1.125rem/1 var(--font-body); letter-spacing: -0.01em; }
.np-wordmark:hover { color: var(--text-primary); text-decoration: none; }
.np-wordmark span { color: var(--accent); font: 700 1rem/1 var(--font-mono); }
.site-nav .nav-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.9375rem; }
.site-footer .footer-links { flex-wrap: wrap; gap: 1rem 1.5rem; }

.np-kicker { color: var(--accent); font: 500 0.8125rem/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; }

.np-hero { padding-top: 6rem; padding-bottom: 5rem; }
.np-hero > * { max-width: 52rem; }
.np-hero h1 { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.05em; margin-bottom: 2rem; }
.np-lede { font-size: 1.375rem; line-height: 1.55; color: var(--text-secondary); }
.np-turn { margin-top: 1.75rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--accent); }

.np-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.np-soft { background: var(--bg-surface); border-block: 1px solid var(--border-subtle); }
.np-narrow { max-width: 50rem; }
.np-section p { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.7; }
.np-section p strong { color: var(--text-primary); }
.np-section h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.2; letter-spacing: -0.03em; margin: 3rem 0 1.25rem; }
.np-section h2:first-child { margin-top: 0; }

.np-sequence { margin-bottom: 2.5rem; font-size: 1rem; border: 1px solid var(--border-default); border-radius: 0.75rem; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.np-sequence th, .np-sequence td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-subtle); }
.np-sequence th { background: var(--bg-elevated); }
.np-sequence td:first-child, .np-sequence th:first-child { width: 3rem; text-align: right; font-family: var(--font-mono); color: var(--text-tertiary); }
.np-sequence td { color: var(--text-secondary); }
.np-sequence tr:last-child td { border-bottom: none; }
.np-sequence .np-ninth td { background: #142725; color: var(--text-primary); font-weight: var(--weight-semibold); }
.np-sequence .np-ninth td:first-child { color: var(--accent); }

.np-links { list-style: none; }
.np-links li { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--border-default); }
.np-links li a { font-weight: var(--weight-semibold); }
.np-links li span { color: var(--text-secondary); }
.np-section .np-credit { margin-top: 2.5rem; font-size: 1rem; }

@media (max-width: 650px) {
  .site-nav { padding: 1.25rem; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .np-hero { padding-top: 3rem; padding-bottom: 3rem; }
  .np-lede { font-size: 1.2rem; }
  .np-section { padding-top: 3rem; padding-bottom: 3rem; }
  .np-sequence th, .np-sequence td { padding: 0.6rem 0.6rem; }
  .np-sequence td:first-child, .np-sequence th:first-child { width: 2rem; }
  .np-links li { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
