/* Reusable components. One block per component, BEM-style names. */

/* App themes: set on any element to scope --app */

.theme-unitsnap {
  --app: #0f7f83;
}

.theme-tic-tac-toe {
  --app: #5468ff;
}

.theme-voidcore {
  --app: #7a3fe0;
}

.theme-starprobe {
  --app: #0b86a3;
}

.theme-dodger {
  --app: #d12f6a;
}

.theme-ashborn {
  --app: #c2571a;
}

@media (prefers-color-scheme: dark) {
  .theme-unitsnap {
    --app: #3fc2c6;
  }

  .theme-tic-tac-toe {
    --app: #8c9bff;
  }

  .theme-voidcore {
    --app: #b28cff;
  }

  .theme-starprobe {
    --app: #45d0ec;
  }

  .theme-dodger {
    --app: #ff7aa8;
  }

  .theme-ashborn {
    --app: #f29a5c;
  }
}

/* Button */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s, border-color 0.18s, color 0.18s;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Arrow icons nudge in their direction on hover */
.button__icon {
  transition: transform 0.2s;
}

.button:hover .button__icon--right {
  transform: translateX(3px);
}

.button:hover .button__icon--down {
  transform: translateY(3px);
}

.button--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 6px 16px -8px color-mix(in srgb, var(--ink) 70%, transparent);
}

.button--primary:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 12px 26px -10px color-mix(in srgb, var(--ink) 70%, transparent);
}

.button--ghost {
  border-color: var(--line);
  background: var(--surface);
}

.button--ghost:hover {
  border-color: var(--ink);
}

.button--sm {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.button--sm svg {
  width: 16px;
  height: 16px;
}

.button[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Store button: "Get it on Google Play" */

.store-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-4);
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 6px 16px -8px color-mix(in srgb, var(--ink) 70%, transparent);
  transition: transform 0.18s, box-shadow 0.18s;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 12px 26px -10px color-mix(in srgb, var(--ink) 70%, transparent);
}

.store-button:active {
  transform: translateY(0) scale(0.98);
}

.store-button svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-button__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-button__text small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-button__text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-button--sm {
  min-height: 44px;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-3);
  border-radius: 12px;
}

.store-button--sm svg {
  width: 22px;
  height: 22px;
}

.store-button--sm .store-button__text small {
  font-size: 0.5625rem;
}

.store-button--sm .store-button__text strong {
  font-size: 1rem;
}

.store-button[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
  transform: none;
}

.store-button[aria-disabled="true"] svg {
  filter: grayscale(1);
  opacity: 0.5;
}

/* Round icon button (gallery arrows, back to top) */

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, opacity 0.18s;
}

.icon-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.icon-button:active:not(:disabled) {
  transform: scale(0.94);
}

.icon-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.to-top.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Badge */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge--live {
  color: var(--success);
}

.badge--soon {
  color: var(--warning);
}

/* App icon */

.app-icon {
  border-radius: var(--icon-radius);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  background: var(--surface);
}

/* Home hero */

.hero {
  position: relative;
  padding-block: var(--space-8) var(--space-7);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  max-width: 720px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-7);
}

.hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  max-width: 34ch;
  margin-bottom: var(--space-6);
  color: var(--muted);
  font-size: var(--text-xl);
  line-height: 1.45;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: var(--text-sm);
}

.hero__stats strong {
  margin-right: var(--space-1);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 440px;
}

.hero__phone {
  position: absolute;
  width: min(220px, 46%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

.hero__phone:first-child {
  left: 8%;
  top: 8%;
  transform: rotate(-6deg);
}

.hero__phone:last-child {
  right: 8%;
  top: 0;
  transform: rotate(5deg);
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__art {
    min-height: 360px;
  }

  .hero__phone {
    width: min(180px, 44%);
  }
}

/* Shelf: every game and app as an icon row under the hero.
   A grid on wide screens, a sideways-scrolling row on phones. */

.shelf {
  position: relative;
  margin-top: var(--space-7);
}

.shelf__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
}

.shelf__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-4) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.shelf__item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--app) 45%, var(--line));
  box-shadow: var(--shadow);
}

.shelf__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-2);
  transition: transform 0.2s;
}

.shelf__item:hover .shelf__icon {
  transform: scale(1.06);
}

.shelf__name {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.25;
}

.shelf__kind {
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 860px) {
  .shelf {
    margin-top: var(--space-6);
    padding-inline: 0;
  }

  /* .shelf prefix beats the ul[role="list"] padding reset */
  .shelf .shelf__list {
    display: flex;
    overflow-x: auto;
    padding: var(--space-1) var(--gutter) var(--space-3);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .shelf__list::-webkit-scrollbar {
    display: none;
  }

  .shelf__list li {
    flex: none;
    width: 112px;
    scroll-snap-align: start;
  }
}

/* App card (home page) */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--space-5);
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--app) 45%, var(--line));
  box-shadow: var(--shadow-lift);
}

/* Show focus on the whole card when its stretched link is focused */
.app-card:has(.app-card__link:focus-visible),
.game-tile:has(.game-tile__title:focus-visible) {
  outline: 2px solid var(--app);
  outline-offset: 3px;
}

.app-card__link:focus-visible,
.game-tile__title:focus-visible {
  outline: none;
}

.app-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
}

.app-card__icon {
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-2);
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

.app-card h3 {
  font-size: var(--text-xl);
}

.app-card__link {
  text-decoration: none;
}

/* Whole card is clickable through the title link */
.app-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.app-card__text {
  color: var(--muted);
}

.app-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: color-mix(in srgb, var(--app) 12%, transparent);
  color: var(--app);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}

.app-card__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.app-card:hover .app-card__more,
.game-tile:hover .app-card__more {
  background: var(--app);
  color: var(--accent-ink);
}

.app-card:hover .app-card__more svg,
.game-tile:hover .app-card__more svg {
  transform: translateX(3px);
}

.app-card__shot {
  align-self: end;
  width: 168px;
  padding-right: var(--space-5);
  padding-top: var(--space-6);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--app) 18%, transparent),
    transparent 75%
  );
}

.app-card__shot img {
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow);
}

/* Featured card: full row, two screenshots */

.app-card--wide {
  grid-column: 1 / -1;
}

.app-card--wide .app-card__body {
  padding: var(--space-7) var(--space-6);
}

.app-card--wide h3 {
  font-size: var(--text-2xl);
}

.app-card--wide .app-card__text {
  max-width: 46ch;
  font-size: var(--text-lg);
}

.app-card--wide .app-card__shot {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  width: auto;
  padding-inline: var(--space-6);
}

.app-card--wide .app-card__shot img {
  width: 180px;
}

.app-card--wide .app-card__shot img + img {
  margin-bottom: var(--space-6);
}

@media (max-width: 860px) {
  .app-card--wide .app-card__shot img + img {
    display: none;
  }

  .app-card--wide .app-card__shot img {
    width: 168px;
  }
}

@media (max-width: 520px) {
  .app-card {
    grid-template-columns: 1fr;
  }

  .app-card__shot,
  .app-card--wide .app-card__shot {
    display: none;
  }

  .app-card--wide .app-card__body {
    padding: var(--space-6);
  }
}

.app-grid--apps {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

@media (max-width: 860px) {
  .app-grid--apps {
    grid-template-columns: 1fr;
  }
}

/* Game tile: games without their own page yet */

/* Two columns so four tiles make an even 2x2 block */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}

@media (max-width: 680px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.game-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--app) 45%, var(--line));
  box-shadow: var(--shadow-lift);
}

.game-tile:target {
  box-shadow: 0 0 0 2px var(--app), var(--shadow-lift);
}

.game-tile__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 55%, rgb(255 255 255 / 0.28), transparent 45%),
    radial-gradient(circle at 85% -10%, rgb(0 0 0 / 0.3), transparent 60%),
    linear-gradient(135deg, var(--app), color-mix(in srgb, var(--app) 50%, #10121a));
}

/* Faint arcade grid that fades out toward the top */
.game-tile__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(255 255 255 / 0.14) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(255 255 255 / 0.14) 1px, transparent 1px) 0 0 / 24px 24px;
  mask-image: linear-gradient(to top, #000, transparent 85%);
  pointer-events: none;
}

.game-tile__icon {
  position: relative;
  width: 96px;
  height: 96px;
  box-shadow:
    0 0 0 6px rgb(255 255 255 / 0.14),
    0 14px 34px rgb(0 0 0 / 0.4);
  transition: transform 0.3s;
}

.game-tile:hover .game-tile__icon {
  transform: scale(1.06) rotate(-3deg);
}

.game-tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.game-tile h3 {
  font-size: var(--text-xl);
}

.game-tile__title {
  text-decoration: none;
}

/* Whole tile is clickable through the title link */
.game-tile__title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* The store button sits above the tile link */
.game-tile .store-button {
  position: relative;
  z-index: 1;
}

/* margin-left: auto keeps it on the right even when the row wraps */
.game-tile__links .app-card__more {
  margin-top: 0;
  margin-left: auto;
  padding-inline: var(--space-3);
}

.game-tile p {
  color: var(--muted);
}

/* Store button on the left, "Learn more" pushed to the right */
.game-tile__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

/* Idea card: invites suggestions next to the apps */

.idea-card {
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
}

.idea-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.idea-card svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.idea-card h3 {
  font-size: var(--text-xl);
}

.idea-card p {
  margin-bottom: var(--space-2);
  color: var(--muted);
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-5);
}

.principle {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.principle svg {
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.principle h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.principle p {
  color: var(--muted);
}

/* Contact */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--bg);
}

.contact h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.contact p {
  opacity: 0.75;
}

.contact .button {
  background: var(--bg);
  color: var(--ink);
}

.contact .button--outline {
  border-color: color-mix(in srgb, var(--bg) 35%, transparent);
  background: transparent;
  color: var(--bg);
}

.contact .button--outline:hover {
  border-color: var(--bg);
}

@media (max-width: 560px) {
  .contact {
    padding: var(--space-6) var(--space-5);
  }
}

/* App page hero */

.app-hero {
  padding-block: var(--space-7);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--app) 10%, var(--bg)),
    var(--bg)
  );
}

.app-hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-6);
}

.app-hero__icon {
  width: 132px;
  height: 132px;
}

.app-hero h1 {
  font-size: var(--text-3xl);
  margin-block: var(--space-2) var(--space-3);
}

.app-hero__tagline {
  max-width: 46ch;
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: var(--text-xl);
  line-height: 1.45;
}

.app-hero__note {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .app-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .app-hero__icon {
    width: 96px;
    height: 96px;
  }
}

.breadcrumb {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}

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

.breadcrumb a:hover {
  color: var(--ink);
}

/* Screenshot gallery: horizontal scroll with snap */

.gallery {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-block: var(--space-2) var(--space-4);
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}

.gallery img {
  flex: none;
  width: clamp(180px, 42vw, 240px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

.gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* In-development note, shown instead of screenshots */

.dev-note {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 2px dashed color-mix(in srgb, var(--app) 40%, var(--line));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--app) 6%, transparent);
}

.dev-note svg {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--app);
}

.dev-note h2 {
  margin-bottom: var(--space-1);
  font-size: var(--text-xl);
}

.dev-note p {
  color: var(--muted);
}

@media (max-width: 520px) {
  .dev-note {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
  }
}

/* Feature list */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-4) var(--space-6);
}

.feature {
  padding-left: var(--space-4);
  border-left: 3px solid var(--app);
}

.feature h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: var(--space-1);
}

.feature p {
  color: var(--muted);
}

/* Chip list (supported units, modes) */

.chips--small li {
  padding: var(--space-1) var(--space-3);
  background: var(--surface-2);
  font-size: 0.8125rem;
}

/* Scroll reveal: site.js adds .reveal to cards and .js-reveal to <html> */

/* Uses translate, not transform, so card hover lifts still work */
.js-reveal .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s ease, transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  translate: none;
}

.app-card .chips {
  margin-top: var(--space-1);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chips li {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Fact table */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-4);
}

.facts div {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.facts dt {
  color: var(--muted);
  font-size: var(--text-sm);
}

.facts dd {
  font-weight: 650;
}

.facts a {
  color: var(--app);
}

/* Long-form text (privacy policies) */

.prose {
  padding-block: var(--space-7) var(--space-8);
}

.prose h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.prose h2 {
  font-size: var(--text-lg);
  margin-block: var(--space-6) var(--space-2);
}

.prose p,
.prose ul {
  margin-bottom: var(--space-4);
}

.prose a {
  color: var(--accent);
}

.prose .muted {
  color: var(--muted);
}

/* 404 */

.not-found {
  padding-block: var(--space-9);
  text-align: center;
}

.not-found h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.not-found p {
  margin-bottom: var(--space-6);
  color: var(--muted);
}

.not-found .button-row {
  justify-content: center;
}

.contact__email {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.nowrap {
  white-space: nowrap;
}
