:root {
  color-scheme: light;
  --ink: #090b09;
  --ink-soft: #151915;
  --paper: #f1f2ec;
  --surface: #ffffff;
  --muted: #5d655e;
  --line: #cbd1c9;
  --yellow: #f5c800;
  --acid: #b9ff38;
  --cyan: #39e2d0;
  --coral: #ff655d;
  --green: #38cb7b;
  --blue: #6ea8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; letter-spacing: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-weight: 900; letter-spacing: 0; }
h1, h2, h3, p, strong, code { overflow-wrap: anywhere; }

.header-inner, .registry-inner, .section-inner, .catalog-section, .footer-inner { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid #303530; background: rgba(9, 11, 9, 0.97); color: #ffffff; }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; color: inherit; font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-size: 17px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.wordmark b { margin-inline: 4px; color: var(--yellow); }
.site-header nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-header nav a { position: relative; color: #d8ddd9; font-size: 12px; font-weight: 760; text-decoration: none; }
.site-header nav a::after { position: absolute; inset: auto 0 -8px; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--yellow); content: ""; transition: transform 150ms ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); }
.npm-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #596059; border-radius: 3px; color: #ffffff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 800; text-decoration: none; }
.npm-link span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(56, 203, 123, 0.18); }

.registry-intro { background: var(--ink); color: #ffffff; }
.registry-inner { padding-block: 52px 42px; }
.registry-layout { display: grid; grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: 72px; }
.registry-copy, .registry-utility { min-width: 0; }
.registry-utility { padding-top: 28px; }
.registry-kicker, .eyebrow { margin-bottom: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.registry-kicker { display: flex; align-items: center; gap: 10px; color: #dce1dd; }
.registry-kicker span { color: var(--cyan); font-size: 14px; }
.registry-intro h1 { max-width: 520px; margin-bottom: 20px; font-size: 46px; line-height: 0.98; text-transform: uppercase; }
.registry-intro h1 > span { display: block; }
.registry-intro h1 strong { display: block; color: var(--yellow); font-weight: 900; }
.registry-summary { max-width: 500px; margin: 0; color: #bdc5bf; font-size: 15px; line-height: 1.65; }
.registry-search { width: 100%; }
.registry-search label { display: block; margin-bottom: 8px; color: #eef1ee; font-size: 12px; font-weight: 800; }
.registry-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 2px solid #ffffff; background: #ffffff; box-shadow: 7px 7px 0 var(--cyan); }
.registry-search input { min-width: 0; height: 58px; padding: 0 18px; border: 0; background: #ffffff; color: var(--ink); font-size: 17px; }
.registry-search input::placeholder { color: #757d77; }
.registry-search button { min-width: 82px; border: 0; border-left: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 850; }

.registry-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 38px 0 0; border-top: 1px solid #3a403b; }
.registry-ledger > div { min-width: 0; padding: 20px 22px 2px 0; border-right: 1px solid #3a403b; }
.registry-ledger > div + div { padding-left: 24px; }
.registry-ledger > div:last-child { border-right: 0; }
.registry-ledger dt { color: #8e9991; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.registry-ledger dd { margin: 5px 0 1px; color: #ffffff; font-size: 30px; font-weight: 850; line-height: 1.1; }
.registry-ledger .ledger-package { padding-top: 4px; color: var(--yellow); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; line-height: 1.35; }
.registry-ledger .ledger-note { margin: 0; color: #8e9991; font-size: 11px; }
.registry-ledger .ledger-note strong { color: #d8ddd9; }

.signal-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 2px solid var(--ink); background: var(--yellow); }
.signal-strip span { min-width: 0; padding: 14px 18px; border-right: 2px solid var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; font-weight: 900; text-align: center; text-transform: uppercase; }
.signal-strip span:last-child { border-right: 0; background: var(--acid); }

.catalog-section { padding-block: 72px 96px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.eyebrow { margin-bottom: 8px; color: #6e5700; }
.eyebrow.cyan { color: var(--cyan); }
.catalog-heading h2, .section-heading h2, .standards-heading h2 { margin: 0; font-size: 39px; line-height: 1.05; }
.catalog-heading output { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 750; }

.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.category-filter { display: flex; flex-wrap: wrap; gap: 7px; }
.category-filter button { min-height: 36px; padding: 0 11px; border: 1px solid #aeb6ae; border-radius: 2px; background: transparent; color: #424943; font-size: 11px; font-weight: 760; }
.category-filter button span { margin-left: 4px; color: #747d76; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.category-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.category-filter button[aria-pressed="true"] span { color: var(--cyan); }
.sort-control { display: grid; gap: 4px; min-width: 190px; }
.sort-control span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sort-control select { width: 100%; height: 38px; padding: 0 32px 0 10px; border: 1px solid #aeb6ae; border-radius: 2px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 720; }

.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.package-card { --package-accent: var(--yellow); min-width: 0; min-height: 374px; display: flex; flex-direction: column; padding: 20px; border: 1px solid #b8c0b8; border-top: 5px solid var(--package-accent); border-radius: 4px; background: var(--surface); box-shadow: 4px 4px 0 #d9ddd6; transition: transform 150ms ease, box-shadow 150ms ease; }
.package-card[data-category="ai"] { --package-accent: var(--cyan); }
.package-card[data-category="frameworks"] { --package-accent: var(--coral); }
.package-card[data-category="web"] { --package-accent: var(--blue); }
.package-card[data-category="data"] { --package-accent: var(--yellow); }
.package-card[data-category="source-maps"] { --package-accent: var(--acid); }
.package-card[data-category="node"] { --package-accent: var(--green); }
.package-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #cbd1c8; }
.package-card-header { display: flex; align-items: center; gap: 11px; }
.package-mark { flex: 0 0 44px; width: 44px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 2px; background: var(--package-accent); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; font-weight: 950; }
.package-card-labels { min-width: 0; display: flex; justify-content: space-between; gap: 10px; flex: 1; color: var(--muted); font-size: 10px; font-weight: 760; text-transform: uppercase; }
.package-card-labels strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.package-card h3 { min-height: 48px; margin: 18px 0 9px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; line-height: 1.35; }
.package-description { min-height: 68px; display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.package-activity { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: auto; padding-top: 18px; }
.package-activity > div { min-width: 0; }
.package-activity strong, .package-activity span { display: block; }
.package-activity strong { font-size: 18px; line-height: 1.15; }
.package-activity .new-release { color: #1d7447; }
.package-activity span, .package-activity time { color: #626a64; font-size: 9px; line-height: 1.35; }
.package-activity time { max-width: 92px; text-align: right; }
.install-command { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 17px; border: 1px solid var(--ink); background: var(--ink); }
.install-command code { min-width: 0; padding: 9px 10px; overflow: hidden; color: #e6ebe7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.install-command button { min-width: 54px; border: 0; border-left: 1px solid #5b635c; background: var(--ink); color: var(--yellow); font-size: 10px; font-weight: 850; }
.install-command button:hover { background: #242a25; }
.package-links { display: flex; gap: 17px; margin-top: 14px; }
.package-links a { color: #313832; font-size: 11px; font-weight: 800; text-decoration-color: #8b958d; text-underline-offset: 4px; }
.package-links a:hover { color: #006b64; }

.empty-state { padding: 50px 20px; border-block: 2px solid var(--ink); text-align: center; }
.empty-state strong { font-size: 20px; }
.empty-state p { margin: 7px 0 18px; color: var(--muted); }
.empty-state button { min-height: 40px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 2px; background: var(--yellow); font-weight: 820; }

.guide-section { padding-block: 92px; background: var(--ink-soft); color: #ffffff; }
.section-heading { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr); align-items: end; gap: 54px; margin-bottom: 34px; }
.section-heading > p { margin: 0; color: #aeb8b0; font-size: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #3b433d; }
.guide-grid a { min-width: 0; display: flex; flex-direction: column; padding: 16px; border-right: 1px solid #3b433d; color: #ffffff; text-decoration: none; }
.guide-grid a:last-child { border-right: 0; }
.guide-grid a:hover { background: #202620; }
.guide-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 18px; border: 1px solid #4a534c; object-fit: cover; }
.guide-grid span { margin-bottom: 8px; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.guide-grid strong { min-height: 70px; font-size: 16px; line-height: 1.4; }
.guide-grid p { margin: 8px 0 0; color: #aeb8b0; font-size: 12px; line-height: 1.5; }

.standards-section { padding-block: 94px; }
.standards-layout { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 76px; }
.standards-heading > p:last-child { max-width: 420px; margin: 18px 0 0; color: var(--muted); }
.standards-ledger { margin: 0; border-top: 3px solid var(--ink); }
.standards-ledger > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: start; gap: 20px; padding: 20px 0; border-bottom: 1px solid #b9c1b9; }
.standards-ledger dt { font-size: 13px; font-weight: 850; }
.standards-ledger dd { margin: 0; color: var(--muted); font-size: 13px; }
.standards-ledger .ledger-state { margin: 0; padding: 3px 6px; border: 1px solid #16814b; border-radius: 2px; color: #12663e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; font-weight: 850; text-transform: uppercase; }

footer { background: var(--ink); color: #ffffff; }
.footer-inner { min-height: 104px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-inner p { margin: 0; color: #9ca69e; font-size: 12px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a { color: #c9d1cb; font-size: 11px; font-weight: 720; }

@media (max-width: 1040px) {
  .registry-layout { grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr); gap: 44px; }
  .registry-intro h1 { font-size: 40px; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid a:nth-child(2) { border-right: 0; }
  .guide-grid a:nth-child(-n+2) { border-bottom: 1px solid #3b433d; }
  .standards-layout { gap: 46px; }
}

@media (max-width: 820px) {
  .site-header nav a:nth-child(-n+2) { display: none; }
  .registry-layout { grid-template-columns: 1fr; gap: 30px; }
  .registry-utility { padding-top: 0; }
  .registry-summary { max-width: 650px; }
  .registry-intro h1 { font-size: 42px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .sort-control { width: 220px; }
  .section-heading, .standards-layout { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .header-inner, .registry-inner, .section-inner, .catalog-section, .footer-inner { width: min(100% - 32px, 1200px); }
  .header-inner { min-height: 62px; gap: 14px; }
  .wordmark { font-size: 15px; }
  .site-header nav { margin-left: auto; }
  .site-header nav a { display: none; }
  .npm-link { padding: 7px 9px; }
  .registry-inner { padding-block: 38px 30px; }
  .registry-layout { gap: 26px; }
  .registry-intro h1 { font-size: 35px; line-height: 1; }
  .registry-summary { font-size: 14px; }
  .registry-search input { height: 54px; padding-inline: 13px; font-size: 14px; }
  .registry-search button { min-width: 65px; }
  .registry-search > div { box-shadow: 5px 5px 0 var(--cyan); }
  .registry-ledger { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .registry-ledger > div { padding: 17px 15px 4px 0; }
  .registry-ledger > div + div { padding-left: 15px; }
  .registry-ledger > div:nth-child(2) { border-right: 0; }
  .registry-ledger > div:last-child { grid-column: 1 / -1; padding-left: 0; padding-top: 19px; border-top: 1px solid #3a403b; }
  .registry-ledger dd { font-size: 25px; }
  .registry-ledger .ledger-package { font-size: 14px; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip span:nth-child(2) { border-right: 0; }
  .signal-strip span:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .catalog-section { padding-block: 54px 72px; }
  .catalog-heading { align-items: start; flex-direction: column; gap: 10px; }
  .catalog-heading h2, .section-heading h2, .standards-heading h2 { font-size: 31px; }
  .category-filter { display: grid; grid-template-columns: 1fr 1fr; }
  .category-filter button { min-width: 0; padding-inline: 8px; }
  .sort-control { width: 100%; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card { min-height: 355px; }
  .guide-section, .standards-section { padding-block: 70px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid a, .guide-grid a:nth-child(2) { border-right: 0; border-bottom: 1px solid #3b433d; }
  .guide-grid a:last-child { border-bottom: 0; }
  .guide-grid strong { min-height: 0; }
  .standards-ledger > div { grid-template-columns: 1fr auto; gap: 7px 14px; }
  .standards-ledger dd:not(.ledger-state) { grid-column: 1 / -1; grid-row: 2; }
  .footer-inner { grid-template-columns: 1fr auto; padding-block: 28px; }
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 360px) {
  .registry-intro h1 { font-size: 31px; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .footer-inner p { grid-column: 1; grid-row: auto; }
  .footer-inner nav { flex-wrap: wrap; }
}

@media (max-width: 300px) {
  .registry-intro h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header nav a::after, .package-card { transition: none; }
}
