/* The app's own colours (constants/theme.ts), light and dark */
:root {
  color-scheme: light dark;
  --background: #f6f3ee;
  --text: #1e1a17;
  --text-secondary: #6b625a;
  --border: #e2dbd1;
  --accent: #7a1810;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151210;
    --text: #f3eee8;
    --text-secondary: #aba197;
    --border: #3a322d;
    --accent: #eba597;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

main {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* The logo is black on white, so it keeps a white tile in dark mode too */
.icon {
  width: 96px;
  height: 96px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
}

h1 {
  margin: 16px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--text-secondary);
}

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

/* Apple asks for clear space of a quarter of the badge's height around it */
.stores {
  --badge-height: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.stores img {
  display: block;
  width: auto;
  height: var(--badge-height);
}

/* Google's image has 41px of empty space around a 168px tall badge (250px in all). This shows the badge
   itself as tall as Apple's and lets the empty space fall within the gap. */
.stores .google-play {
  height: calc(var(--badge-height) * 250 / 168);
  margin: calc(var(--badge-height) * -41 / 168);
}
