/* Useless by Design: a straight-faced corporate catalog. The joke is that it never winks. */
:root {
  --paper: #f5f3ee;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #5d6470;
  --rule: #dcd8ce;
  --brand: #1f4fd1;
  --brand-ink: #ffffff;
  --ok: #1d7a46;
  --warn: #9a6a00;
  --idea: #6b6f78;
  --radius: 6px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 "Helvetica Neue", Arial, system-ui, sans-serif;
}

.wrap {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 2;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo__mark {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand) 0 50%, var(--ink) 50% 100%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.hero {
  padding-block: clamp(2.5rem, 8vw, 5rem) 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.section-head h2,
.about h2 {
  margin: 0;
  font-size: 1.25rem;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.grid {
  list-style: none;
  margin: 1.5rem 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.sku {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--muted);
}

.badge {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--ok);
}

.badge[data-status="building"] {
  background: var(--warn);
}

.badge[data-status="idea"] {
  background: var(--idea);
}

.card__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.spec {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  font-size: 0.9rem;
}

.spec dt {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec dd {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  margin-top: auto;
  background: var(--brand);
  color: var(--brand-ink);
  border: 1px solid var(--brand);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(1.1);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.about {
  padding-bottom: 4rem;
}

.about p {
  max-width: 60ch;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
}

.footer a,
.prose a {
  color: var(--ink);
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

@media (max-width: 34rem) {
  .nav a {
    display: none;
  }
}
