/* One stylesheet for the whole site. Each app page sets its own accent
   colours with a class on <body> (see the bottom of this file). */

:root {
  --bg: #f7f6fb;
  --card: #ffffff;
  --text: #1f1c2e;
  --soft: #5d5a70;
  --line: #e4e1ee;
  --accent: #5b47d6;
  --accent-ink: #ffffff;
  --shadow: 0 2px 14px rgba(30, 20, 70, .10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121f;
    --card: #1e1b2e;
    --text: #efecfa;
    --soft: #aaa6c0;
    --line: #322e48;
    --accent: #a898ff;
    --accent-ink: #14121f;
    --shadow: 0 2px 14px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem 3rem; }

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

/* ------------------------------------------------------------ top bar */

.bar { border-bottom: 1px solid var(--line); }
.bar div {
  max-width: 46rem; margin: 0 auto; padding: .8rem 1rem;
  display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap;
}
.bar a { text-decoration: none; color: var(--soft); font-size: .95rem; }
.bar a.home { color: var(--text); font-weight: 700; margin-right: auto; }
.bar a:hover { color: var(--accent); }

/* ------------------------------------------------------------ headings */

h1 { font-size: 2rem; line-height: 1.2; margin: 1.2rem 0 .3rem; text-wrap: balance; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 .5rem; color: var(--accent); }
.lead { font-size: 1.1rem; color: var(--soft); margin: 0; }
li { margin: .3rem 0; }

/* ------------------------------------------------------------ home page */

.studio { text-align: center; padding: 2.5rem 0 1rem; }
.studio h1 { font-size: 2.3rem; }

.apps { display: grid; gap: 1rem; margin-top: 1.5rem; }
.app-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 1rem; box-shadow: var(--shadow);
}
.app-card img { width: 88px; height: 88px; border-radius: 20px; display: block; }
.app-card h2 { margin: 0; font-size: 1.25rem; color: var(--text); }
.app-card h2 a { color: inherit; text-decoration: none; }
.app-card h2 a:hover { color: var(--accent); }
.app-card p { margin: .15rem 0 .5rem; color: var(--soft); }
.app-card .links { font-size: .95rem; display: flex; gap: .2rem 1rem; flex-wrap: wrap; }

/* ------------------------------------------------------------ app page */

.hero { text-align: center; padding-top: 2rem; }
.hero img.icon {
  width: 120px; height: 120px; border-radius: 27px; box-shadow: var(--shadow);
}

.store {
  display: inline-block; margin-top: 1.1rem; padding: .7rem 1.5rem;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
}
.store:hover { filter: brightness(1.08); }
.store.soon { background: transparent; color: var(--soft); border: 1px solid var(--line); font-weight: 600; }
.store.soon:hover { filter: none; }
.platform { font-size: .9rem; color: var(--soft); margin: .5rem 0 0; }

.shots { display: flex; gap: .75rem; overflow-x: auto; padding: 1.75rem 0 1rem; scroll-snap-type: x proximity; }
.shots img {
  height: 420px; width: auto; border-radius: 18px; box-shadow: var(--shadow);
  scroll-snap-align: center; flex: none;
}

.faq dt { font-weight: 700; margin-top: .9rem; }
.faq dd { margin: .15rem 0 0; color: var(--soft); }

footer {
  margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--soft); text-align: center;
}
footer p { margin: .3rem 0; }

/* ------------------------------------------------------------ privacy */

.doc h1 { font-size: 1.7rem; }
.doc .date { color: var(--soft); margin-top: 0; }

/* ------------------------------------------------------------ app colours */

body.stormgrid { --accent: #0a7fa3; }
body.jarlings { --accent: #4b2f9e; }
body.tiny-differences { --accent: #6a3fd0; }
body.screenfree { --accent: #1d47b0; }
body.rally { --accent: #b8430f; }
body.letter-loop { --accent: #6a2fb8; }

body.outlings { --accent: #2a3a8c; }
body.soundlings { --accent: #5b3fd0; }

@media (prefers-color-scheme: dark) {
  body.outlings { --accent: #ffe6a3; --bg: #101737; --card: #1a2350; --line: #2c3a78; --soft: #b9c3ee; }
  body.stormgrid { --accent: #6fe8ff; --bg: #05081a; --card: #0d1330; --line: #1f2850; }
  body.jarlings { --accent: #c9b8ff; }
  body.soundlings { --accent: #c4b5ff; }
  body.screenfree { --accent: #8fb6ff; }
  body.letter-loop { --accent: #ffb703; --bg: #14142c; --card: #22224a; --line: #34346a; }
  body.rally { --accent: #ff8a57; --bg: #0b0c0f; --card: #16181d; --line: #2a2d34; }
  body.tiny-differences { --accent: #ffd23f; --bg: #2a1c66; --card: #382888; --line: #4d3aa8; --soft: #d9cff2; }
}

@media (max-width: 30rem) {
  h1 { font-size: 1.6rem; }
  .studio h1 { font-size: 1.9rem; }
  .shots img { height: 340px; }
  .app-card { grid-template-columns: 64px 1fr; }
  .app-card img { width: 64px; height: 64px; border-radius: 15px; }
}
