/* Moodhuggers' website: one stylesheet for every page, in the game's look (game/ui/theme.tres):
   the Baloo 2 font, ink on cream felt cards over the sky, soft rounded shapes. The game has no dark
   look, so the pages keep these light colors in a phone's dark mode too. */

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/Baloo2.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #3d3554;
  --ink-soft: #564e6e;
  --sky-top: #b4dbef;
  --sky-bottom: #e6f3f9;
  --card: #fffdf9;
  --lavender: #ece7f4;
  --gold: #ffe27a;
  --gold-deep: #f9cf55;
  --shadow: rgba(51, 38, 77, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%);
  color: var(--ink);
  font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

/* ---------- header: the logo, linking home ---------- */

.top {
  display: flex;
  justify-content: center;
  padding: 8px 0 18px;
}

.top a {
  display: block;
  width: min(100%, 300px);
  border-radius: 16px;
}

.top img,
.home-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- the felt card ---------- */

.card {
  background: var(--card);
  border-radius: 28px;
  padding: 24px 20px;
  box-shadow: 0 4px 0 rgba(51, 38, 77, 0.06), 0 12px 28px var(--shadow);
}

@media (min-width: 600px) {
  .card {
    padding: 36px 40px;
  }
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 1.6em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p,
ul {
  margin: 0 0 0.9em;
}

ul {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.35em;
}

li::marker {
  color: var(--ink-soft);
}

strong {
  font-weight: 700;
}

a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.date {
  color: var(--ink-soft);
  margin-top: -0.3em;
}

/* A box for each service in the policy, and for each answer on the support page. */
.box {
  background: var(--lavender);
  border-radius: 20px;
  padding: 16px 18px 6px;
  margin: 0 0 16px;
}

.box h3 {
  margin-top: 0;
}

/* A word the game shows on screen, as on its buttons: the support page names them exactly. */
b.ui {
  background: var(--gold);
  border-radius: 999px;
  padding: 0 0.45em;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

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

.home {
  text-align: center;
  padding-top: 7vh;
}

.home-logo {
  width: min(100%, 560px);
  margin: 0 auto 24px;
}

.home .card {
  max-width: 560px;
  margin: 0 auto;
}

.tagline {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 18px;
}

.soon {
  display: inline-block;
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

/* ---------- the footer ---------- */

.foot {
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
  padding: 24px 0 8px;
}

.foot nav {
  margin-bottom: 6px;
}

.foot nav a {
  margin: 0 6px;
}

.foot p {
  margin: 0;
}
