/* dilemma's site. The colors are stile's (packages/stile/src/tokens.ts),
   copied because plain HTML can't import them; a test keeps them in step. */
:root {
  --bg: #16131f;
  --bg-elev: #1d1830;
  --fg: #f4f1fb;
  --tile-border: #3a2f57;
  --correct: #6f4bb3;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* The game's watermark (pattern.svg) over the background, a tile centered. */
  background: url('/pattern.svg') center / 120px 120px, var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
}

/* The support and privacy pages: their column (header, text, and footer)
   keeps the plain background, the watermark only around it. */
.page header,
.page main,
.page footer {
  background: var(--bg);
}

/* The support and privacy pages' bar: the icon and the name, to Home. */
header {
  width: 100%;
  max-width: 36rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--tile-border);
}

header a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

header .icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.35rem;
  border-radius: 0.55rem;
  background: var(--bg-elev);
  border: 1px solid var(--tile-border);
}

header .name {
  font-size: 1.25rem;
  font-weight: 700;
}

main {
  flex: 1;
  width: 100%;
  max-width: 36rem;
  padding: 3rem 1.5rem 2rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--fg);
  text-decoration-color: var(--correct);
  text-underline-offset: 0.2em;
}

.home {
  text-align: center;
}

.home .icon {
  width: 6rem;
  height: 6rem;
  padding: 1rem;
  border-radius: 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--tile-border);
}

.home h1 {
  margin-top: 1.5rem;
  font-size: 2.5rem;
}

.badge img {
  height: 3rem;
  margin-top: 1rem;
}

/* The home page's screenshots: rows of one or two, centered. */
.shots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.shots + .shots {
  margin-top: 0;
}

/* A screenshot cut to its top, as wide as the two below it. */
.shots .wide {
  width: 100%;
  max-width: 33rem;
}

.shots img {
  width: calc(50% - 0.5rem);
  max-width: 16rem;
  height: auto;
  border: 1px solid var(--tile-border);
  border-radius: 1.5rem;
}

/* Until launch, in the App Store badge's place: a label the badge's height. */
.soon {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  margin: 1rem 0 0;
  padding: 0 1.25rem;
  border: 1px solid var(--tile-border);
  border-radius: 0.75rem;
  background: var(--bg-elev);
  font-weight: 600;
}

.dated {
  opacity: 0.7;
}

footer {
  width: 100%;
  max-width: 36rem;
  padding: 1.5rem;
  border-top: 1px solid var(--tile-border);
  text-align: center;
}

footer .badge img {
  height: 2.5rem;
  margin: 0 0 1rem;
}

footer .soon {
  height: 2.5rem;
  margin: 0 0 1rem;
}

/* Home, Support, and Privacy, always; the page you're on as plain text. */
nav > * + * {
  margin-left: 1.5rem;
}
