/* The site of the app: three static pages, no scripts, no web fonts, no outside requests.
   The colours are the ones of the app (app/lib/core/theme/app_colors.dart). */
:root {
  --paper: #faf7f0;
  --ink: #1f1d1a;
  --muted: #6b655d;
  --rule: #cfc8bc;
  --accent: #a8352a;
  --mark: #fff1a8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1917;
    --ink: #f1ece2;
    --muted: #a39c91;
    --rule: #3a3733;
    --accent: #e8826f;
    --mark: #5a4d12;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.top,
main,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 14px;
  border-bottom: 3px double var(--ink);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.mark {
  display: inline-flex;
  gap: 3px;
}

.mark i {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--muted);
}

.mark i:nth-child(1) {
  background: var(--ink);
}

.mark i:nth-child(2) {
  background: #be4630;
}

.top nav {
  display: flex;
  gap: 20px;
  font-size: 16px;
}

main {
  padding-top: 28px;
  padding-bottom: 40px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  margin: 36px 0 6px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 22px;
  line-height: 1.25;
}

p,
ul {
  margin: 10px 0;
}

li {
  margin: 6px 0;
}

.lead {
  font-size: 21px;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 16px;
}

.games {
  display: grid;
  gap: 14px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.games li {
  margin: 0;
  padding: 14px 16px;
  border: 2px solid var(--ink);
}

.games strong {
  display: block;
  font-size: 20px;
  text-transform: uppercase;
}

/* The badge "Download on the App Store" is Apple's own file, unchanged (web/app-store-badge.svg):
   not recoloured, not rotated, at least 40 px high, and a free space of at least a quarter of its
   height (12 px at 48 px) around it, which the margins give. */
.store {
  margin: 24px 0;
  line-height: 0;
}

.store a {
  display: inline-block;
}

.store img {
  display: block;
  width: auto;
  height: 48px;
}

/* A place that the owner still has to fill in. The site is not published while one is left. */
mark.todo {
  background: var(--mark);
  color: inherit;
  padding: 0 4px;
}

footer {
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

footer a {
  color: var(--muted);
}

footer .legal {
  margin: 10px 0 0;
  font-size: 13px;
}
