/* The style of the two sites. The colours are `palette.dart`'s, light and
   dark, and they switch palette with the phone like the game: no switch,
   because the page is looked at once and not lived in. `--border` is the
   floor, `--goal` the boulder on its goal. `test/sites_test.dart` holds every
   token to the palette: copied by hand, four had drifted, and the faint
   text and the dark filled labels had fallen under 4.5:1. */

@font-face {
  font-family: 'Petrona';
  src: url('/fonts/Petrona.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --background: #F2EDE4;
  --paper: #FBF7F1;
  --ink: #4A433B;
  --text2: #6B6157;
  --text3: #71675B;
  --filled: #C97B5A;
  --on-filled: #FBF7F1;
  --goal: #7E9A6E;
  --border: #E7DFD2;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1E1B18;
    --paper: #262220;
    --ink: #EDE5D8;
    --text2: #BDB2A4;
    --text3: #9D948B;
    --filled: #B86F50;
    --on-filled: #1E1B18;
    --goal: #6E8A60;
    --border: #4B4138;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 400 1.0625rem/1.6 'Nunito', system-ui, sans-serif;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem 1rem 3rem;
}

h1, h2 {
  font-family: 'Petrona', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.375rem; margin: 2.25rem 0 0.5rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.25rem; }

a { color: inherit; text-decoration-color: var(--text3); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }

.secondary { color: var(--text2); }

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--filled);
  color: var(--on-filled);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
}
.button:hover { filter: brightness(1.05); }

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text3);
  font-size: 0.9375rem;
}
footer a { color: var(--text2); }
footer p { margin: 0 0 0.25rem; }
