:root {
  color-scheme: dark;
  --ink: #071019;
  --surface: #0d1b28;
  --surface-raised: #132535;
  --line: #2f4657;
  --text: #f4fbff;
  --muted: #b8c9d4;
  --signal: #69f0cf;
  --signal-ink: #03271f;
  --blue: #5ca7ff;
  --max: 78rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(92, 167, 255, 0.06) 1px, transparent 1px) 0 0 / 4rem 4rem,
    linear-gradient(rgba(92, 167, 255, 0.06) 1px, transparent 1px) 0 0 / 4rem 4rem,
    var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  color: var(--signal-ink);
  background: var(--signal);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: var(--signal-ink);
  background: var(--signal);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.hero {
  min-height: 40rem;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3.5rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
}

.eyebrow,
.product-card__kind {
  margin: 0 0 1rem;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.75rem;
  font-size: clamp(3.4rem, 7vw, 5.5rem);
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  letter-spacing: -0.03em;
}

.hero__lede {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero__actions,
.product-card__links,
.support__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.button,
.text-link,
.product-card__links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.button {
  padding: 0.8rem 1.1rem;
  color: var(--signal-ink);
  background: var(--signal);
  text-decoration: none;
}

.button:hover {
  background: #9affe8;
}

.text-link,
.product-card__links a {
  color: var(--text);
  text-underline-offset: 0.3rem;
}

.launch-note {
  padding: 1.5rem;
  border-top: 4px solid var(--signal);
  background: var(--surface);
}

.launch-note p {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status--accent {
  border-color: var(--signal);
  color: var(--signal);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.section__header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.65fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section__header > p {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-card {
  position: relative;
  min-height: 27rem;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--surface);
}

.product-card--wide {
  grid-column: 1 / -1;
  grid-template-columns: 2.5rem minmax(0, 46rem) 1fr;
  min-height: 22rem;
}

.product-card > .status {
  grid-column: 2;
  align-self: end;
}

.product-card--wide > .status {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.product-card__index {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.product-card__body > p:not(.product-card__kind, .price) {
  max-width: 40rem;
  color: var(--muted);
}

.price {
  margin-block: 2rem 1rem;
  font-size: 1.4rem;
  font-weight: 850;
}

.price span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card__links a {
  font-size: 0.88rem;
}

.themes {
  border-top-color: var(--blue);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.theme-card {
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  color: #06111a;
}

.theme-card--benchline {
  background: #f3c955;
}

.theme-card--turnbook {
  background: #9ebee8;
}

.theme-card .product-card__kind,
.theme-card .price span {
  color: #1f3545;
}

.theme-card > div > p:not(.product-card__kind) {
  max-width: 34rem;
  font-size: 1.1rem;
}

.theme-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
}

.theme-card__links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: #06111a;
  font-weight: 800;
  text-underline-offset: 0.3rem;
}

.theme-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.theme-card .status {
  border-color: #243e50;
  color: #0b2637;
  background: rgba(255, 255, 255, 0.35);
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
}

.support > div > p:not(.eyebrow) {
  max-width: 45rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.support__links {
  align-items: flex-start;
  flex-direction: column;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-block: 2.5rem 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 48rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 1rem;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    justify-content: center;
  }

  .hero,
  .section__header,
  .support,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5.3rem);
  }

  .product-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .product-card--wide {
    grid-column: auto;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    min-height: 27rem;
  }

  .product-card--wide > .status {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }

  .theme-card {
    min-height: 25rem;
  }
}

@media (max-width: 30rem) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .brand {
    font-size: 0.82rem;
  }

  .hero__actions,
  .support__links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions a,
  .support__links a {
    justify-content: center;
  }

  .product-card,
  .product-card--wide {
    grid-template-columns: 1fr;
  }

  .product-card > .status,
  .product-card--wide > .status {
    grid-column: 1;
  }

  .theme-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-card__links {
    align-items: stretch;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
