@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/AtkinsonHyperlegibleNext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --page: #fbf7f2;
  --surface: #ffffff;
  --text: #3b3545;
  --quiet: #6f6879;
  --ink: #6a55c2;
  --edge: rgba(106, 85, 194, 0.25);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1d1a23;
    --surface: #2a2631;
    --text: #ede8f2;
    --quiet: #b3abbf;
    --ink: #c9bdf7;
    --edge: rgba(201, 189, 247, 0.25);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: clamp(16px, 0.5vw + 14px, 18px)/1.6 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) max(16px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

[hidden] {
  display: none !important;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

header img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

header a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

h1 {
  font-size: clamp(28px, 3vw + 18px, 46px);
  text-wrap: balance;
  line-height: 1.2;
  margin: 0 0 4px;
}

h2 {
  font-size: 21px;
  margin: 36px 0 8px;
}

.meta {
  color: var(--quiet);
  margin: 0 0 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 16px 20px;
}

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

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

footer {
  margin-top: 48px;
  color: var(--quiet);
  font-size: 15px;
}

.card p {
  margin: 0;
}

.download {
  margin: 28px 0 8px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  min-height: 56px;
  padding: 10px 20px 10px 16px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  transition: transform 0.15s ease;
}

.store:hover {
  transform: translateY(-1px);
}

.store:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

.store small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

#store-primary .store {
  min-width: 240px;
  padding: 14px 24px 14px 20px;
  font-size: 26px;
}

@media (max-width: 480px) {
  header img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  #store-primary .store {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

#store-primary .store svg {
  width: 34px;
  height: 34px;
}

.also {
  margin: 20px 0 8px;
  color: var(--quiet);
  font-size: 15px;
}

@media (prefers-color-scheme: dark) {
  .store {
    border-color: #a6a6a6;
  }
}

.hero-art {
  display: none;
}

@media (min-width: 900px) {
  main.home {
    max-width: 1000px;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    align-items: center;
  }

  .hero-art {
    display: block;
    width: 280px;
    height: 280px;
    border-radius: 64px;
    box-shadow: 0 24px 60px rgba(106, 85, 194, 0.25);
  }

  /* Keep the reading column comfortable once the page widens for the hero. */
  main.home > h2,
  main.home > ul,
  main.home > p {
    max-width: 680px;
  }
}

#in-app-hint {
  margin: 20px 0;
  border-color: var(--ink);
}

.steps {
  padding-left: 26px;
}

.steps li + li {
  margin-top: 20px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 220px;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
  text-decoration: none;
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .button {
    width: 100%;
  }
}
