:root {
  color-scheme: dark;
  --bg: #06090f;
  --panel: #0d141d;
  --panel-hover: #121d2a;
  --ink: #f4f8ff;
  --muted: #8da0b6;
  --line: #1f2d3b;
  --blue: #2f66e8;
  --focus: rgba(47, 102, 232, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.4;
}

a {
  color: inherit;
}

.shell {
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0;
}

.masthead {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.site-logo {
  display: block;
  width: min(360px, 74vw);
  height: auto;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  min-height: 150px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  text-align: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  background: var(--panel-hover);
  border-color: rgba(47, 102, 232, 0.64);
  transform: translateY(-2px);
}

.app-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.app-icon {
  display: inline-grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.app-icon img {
  display: block;
  max-width: 48px;
  max-height: 48px;
}

.app-content {
  min-width: 0;
}

.app-title {
  display: block;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
}

@media (max-width: 760px) {
  .shell {
    padding: 52px 0;
  }

  .masthead {
    margin-bottom: 42px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}
