:root {
  --fg: #111;
  --muted: #666;
  --bg: #fff;
  --max: 680px;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  margin: 0 auto;
  padding: 64px 20px 40px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 34px;
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 20px;
  margin: 34px 0 10px;
}

p { margin: 0 0 14px; }
ul { margin: 0 0 14px 18px; padding: 0; }
li { margin: 6px 0; }

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.card-wrapper {
  text-align: center;
  margin-top: auto;
}

.card {
  display: inline-block;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.card p:last-child { margin-bottom: 0; }

footer {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Homepage header */
.brand {
  text-align: center;
  margin-bottom: 34px;
}

.logo {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  outline: 1px solid #eee;
}

.tagline {
  max-width: 52ch;
  margin: 10px auto 0;
}

/* Apps section */
.apps-section {
  margin-bottom: 48px;
}

.apps-section h2 {
  text-align: center;
  margin: 0 0 20px;
}

.app-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.app-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.app-icon {
  width: 80px;
  height: 80px;
  background-size: 100% 100%;
  border-radius: 18px;
  border: 1px solid #999;
  transition: border-color 0.15s ease;
}

.app-card:hover .app-icon {
  border-color: #777;
}

.app-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.app-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}

.app-description {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #999;
}

.device-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 1px;
}

.device-icons svg {
  height: 12px;
  width: auto;
  fill: currentColor;
}

/* Mac glyph is intentionally 7/8 the height of the iPhone/iPad glyphs */
.device-icons svg.device-icon-mac {
  height: 10.5px;
}

.app-platforms {
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
  color: #999;
}

/* Content pages */
.page-title {
  margin-bottom: 24px;
}

@media (max-width: 420px) {
  main { padding: 52px 18px; }
  .logo { width: 92px; height: 92px; }
  h1 { font-size: 30px; }
}
