/* The About page: the game's colours and type, on a page that scrolls. */

:root {
  --ink: #1d3a4a;
  --cream: #fff8ec;
  --teal: #1f7a7a;
  --teal-dark: #155b5b;
  --shadow: 0 6px 18px rgba(20, 50, 70, 0.22);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: #8fd3f4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: calc(env(safe-area-inset-top) + 16px) calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 24px) calc(env(safe-area-inset-left) + 16px);
  background: linear-gradient(#8fd3f4, #d6f0fa 70%);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.sheet {
  max-width: 36rem;
  margin: 0 auto;
  padding: 16px 20px 22px;
  border-radius: 24px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.back,
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 2px solid var(--teal); /* 5:1 against the cream, as on the game's buttons */
  background: #e9f1ee;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.head {
  margin: 18px 0 8px;
  text-align: center;
}

.face {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--teal-dark);
}

h2 {
  margin: 22px 0 4px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--teal-dark);
}

p {
  margin: 0 0 10px;
  font-size: 16px;
}

.lede {
  font-size: 18px;
  text-align: center;
  text-wrap: balance;
}

a { color: var(--teal-dark); }

.download {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

.link {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 700;
}

.link a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.foot {
  max-width: 36rem;
  margin: 18px auto 0;
  text-align: center;
  font-size: 14px;
}

.foot p {
  font-size: 14px;
  text-wrap: balance; /* where supported: no lone "· 2026" on a narrow phone */
}
.foot .fine { font-size: 13px; }

:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
}
