:root {
  --bg: #000000;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --line: #333333;
  color-scheme: dark;
}

html,
body {
  margin: 0;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Etusivu on pitkä: sisältö alkaa ylhäältä eikä keskitetä pystysuunnassa. */
main.page {
  justify-content: flex-start;
  padding: 4rem 1.5rem 3rem;
}

h1,
.label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.page h1 {
  color: var(--text);
}

.label {
  font-size: 0.8125rem;
}

.page .label {
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.25rem;
}

p {
  margin: 0 0 0.5rem;
}

.page p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.5rem;
  line-height: 1.35;
}

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

a:hover,
a:focus-visible {
  text-decoration-color: var(--text);
}

section,
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.terms {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.terms li {
  margin: 0 0 0.5rem;
}

.page footer p {
  margin-bottom: 0.5rem;
}
