:root {
  color-scheme: dark;
  --night: #12122b;
  --night-light: #20204a;
  --ivory: #f7f2e9;
  --muted: #c0bdd0;
  --gold: #e6cd8b;
  --gold-dark: #c9a24b;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@font-face {
  font-family: "Inter";
  src: url("assets/InterVariable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { min-width: 280px; background: var(--night); }
body {
  margin: 0;
  color: var(--ivory);
  background: radial-gradient(ellipse at 50% 8%, var(--night-light) 0, var(--night) 66%);
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, 32rem);
  margin: 0 auto;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-icon {
  display: block;
  width: 5.75rem;
  height: 5.75rem;
  margin: 0 auto;
  border: 1px solid #e6cd8b26;
  border-radius: 1.5rem;
}
.brand-name {
  margin: 1rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--gold);
}

.download { width: 100%; margin-top: 2.5rem; }
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.intro {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.store-links {
  display: grid;
  gap: .875rem;
  margin-top: 2.25rem;
}
.store-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold-dark);
  border-radius: 1.125rem;
  color: var(--night);
  background: var(--gold);
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.store-link--play {
  background: #f7f2e909;
  color: var(--ivory);
  border-color: #e6cd8b55;
}
.store-icon { width: 1.875rem; height: 1.875rem; flex: 0 0 auto; }
.store-copy { flex: 1; min-width: 0; }
.store-caption { display: block; font-size: .875rem; line-height: 1.5; }
.store-name { display: block; font-size: 1.375rem; line-height: 1.4; font-weight: 650; }
.platform { font-size: .875rem; line-height: 1.4; }
.store-link[aria-disabled="true"] {
  color: var(--muted);
  background: #f7f2e906;
  border-color: #e6cd8b33;
}
.store-link[aria-disabled="true"] .store-caption { color: var(--gold); }
.store-link[href]:active { background: #f0dbab; color: var(--night); }
.store-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.footer { margin-top: 2.5rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }

[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
.text-button {
  padding: 0;
  border: 0;
  color: var(--gold);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .875rem;
  line-height: 1.6;
}
.text-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.privacy-settings { display: block; min-height: 2.75rem; margin: .375rem auto 0; }
.privacy-link { display: block; margin-top: .75rem; }

@media (hover: hover) {
  .store-link[href]:hover { background: #f0dbab; color: var(--night); }
}
@media (max-width: 360px) {
  .page { padding-inline: 1.125rem; }
  .platform { display: none; }
  .store-link { padding-inline: 1rem; }
}
@media (max-height: 720px) and (min-width: 361px) {
  .page { padding-top: 1.75rem; }
  .brand-icon { width: 4.75rem; height: 4.75rem; }
  .download { margin-top: 1.875rem; }
  .store-links { margin-top: 1.75rem; }
  .footer { margin-top: 1.75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .page { animation: appear .45s ease-out both; }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
}
