/* kits.uppercut-labs.com. The tokens, type and header match the home page (redesign/src/index.css). */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'Hanken Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/hanken-grotesk-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
  color-scheme: dark;
  --brand-blue: #013896;
  --brand-blue-text: #86a8ff;
  --brand-red: #d80319;
  --background: #0a0a0c;
  --foreground: #f1efe9;
  --card: #131316;
  --muted: #1a1a1e;
  --muted-foreground: #a2a1a9;
  --accent: #202026;
  --border: #26262c;
  --radius: 0.875rem;
  --font-heading: 'Archivo Variable', system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk Variable', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--brand-blue-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
}

.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(38 38 44 / 0.8);
  background: rgb(10 10 12 / 0.85);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-sub {
  color: var(--muted-foreground);
  font-weight: 500;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-header nav a {
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  background: var(--accent);
  color: var(--foreground);
}

main {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

h1,
h2,
.kit-name {
  font-family: var(--font-heading);
  font-stretch: 118%;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
}

h2 {
  margin: 4rem 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.lede {
  max-width: 68ch;
  margin: 1.25rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.lede a,
section p a,
.note a,
.facts a,
.empty a {
  color: var(--foreground);
  text-underline-offset: 4px;
}

.facts {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}

.note {
  max-width: 72ch;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.crumb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.crumb a {
  color: var(--muted-foreground);
  text-underline-offset: 4px;
}

section > p {
  max-width: 72ch;
  color: var(--muted-foreground);
}

.kit-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .kit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kit-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.kit-card:hover {
  border-color: rgb(134 168 255 / 0.5);
  transform: translateY(-4px);
}

.kit-name {
  font-size: 1.75rem;
}

.kit-language {
  color: var(--brand-blue-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.kit-summary {
  color: var(--muted-foreground);
}

.kit-count {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.875rem;
}

.install-list {
  max-width: 72ch;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.install-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}

.install-list strong {
  color: var(--foreground);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--muted);
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.packages {
  border-top: 1px solid var(--border);
}

.package {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.package-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.package h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.package h3 a {
  text-decoration: none;
}

.package h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status {
  flex-shrink: 0;
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 500;
}

.status.released {
  border-color: rgb(134 168 255 / 0.4);
  color: var(--brand-blue-text);
}

.package p {
  max-width: 72ch;
  margin: 0.5rem 0 0;
}

.package .meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.package pre {
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.625rem 0.875rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

.links a {
  color: var(--muted-foreground);
  text-underline-offset: 4px;
}

.links a:hover {
  color: var(--foreground);
}

.empty {
  padding: 1.5rem 0;
  color: var(--muted-foreground);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--foreground);
}

@media (prefers-reduced-motion: reduce) {
  .kit-card,
  .kit-card:hover {
    transition: none;
    transform: none;
  }
}
