/* Otter Mail's landing page, pared down to a small front door: same neutral look, a list of apps. */
:root {
  color-scheme: dark;
  --bg: #070707;
  --fg: #f5f5f3;
  --dim: rgba(245, 245, 243, 0.62);
  --faint: rgba(245, 245, 243, 0.38);
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", Inter, "Segoe UI",
    system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--dim);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgba(245, 245, 243, 0.85);
  color: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 30rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}
header {
  text-align: center;
}
header img {
  display: block;
  width: 7.5rem;
  height: auto;
  margin: 0 auto 0.75rem;
  /* The picture's black melts into the page's. */
  mix-blend-mode: lighten;
}
h1 {
  margin: 0;
  color: var(--fg);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
header p {
  margin: 0.5rem 0 0;
  text-wrap: balance;
}

nav {
  display: grid;
  gap: 0.25rem;
  margin-top: 3rem;
}
nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  transition: background 0.15s;
}
nav a:hover,
nav a:focus-visible {
  background: rgba(245, 245, 243, 0.05);
  outline: none;
}
nav img {
  flex: none;
  border-radius: 7px;
}
nav div {
  flex: 1;
  min-width: 0;
}
nav b {
  display: block;
  color: var(--fg);
  font-weight: 550;
}
nav small {
  display: block;
  font-size: 0.8125rem;
}
nav span {
  color: var(--faint);
  transition:
    color 0.15s,
    transform 0.15s;
}
nav a:hover span,
nav a:focus-visible span {
  color: var(--fg);
  transform: translateX(2px);
}

footer {
  margin-top: 3rem;
  font-size: 0.8125rem;
  text-align: center;
}
footer a {
  color: var(--faint);
  transition: color 0.15s;
}
footer a:hover {
  color: var(--fg);
}

@media (max-width: 30rem) {
  main {
    padding-top: 4rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  header > *,
  nav > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }
  header > :nth-child(2) {
    animation-delay: 0.05s;
  }
  header > :nth-child(3) {
    animation-delay: 0.1s;
  }
  nav > :nth-child(1) {
    animation-delay: 0.15s;
  }
  nav > :nth-child(2) {
    animation-delay: 0.2s;
  }
  nav > :nth-child(3) {
    animation-delay: 0.25s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}
