:root {
  color-scheme: light dark;
  --bg: #fafaf8;
  --fg: #16181d;
  --muted: #676c75;
  --rule: #e2e2dc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --fg: #ecece8;
    --muted: #979ca5;
    --rule: #2a2d34;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

main,
footer {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

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

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Home */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

/* The narrow line */
.mark {
  border-left: 1px solid var(--fg);
  padding: 0.5rem 0 0.5rem 1.75rem;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 span {
  color: var(--muted);
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.facts {
  margin: 3.5rem 0 0;
  padding-left: calc(1.75rem + 1px);
  display: grid;
  gap: 1.5rem;
}

.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0.25rem 0 0;
}

/* Legal pages */

.legal {
  flex: 1;
  padding: 4rem 0;
}

.legal .back {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.legal .back:hover {
  color: var(--fg);
}

.legal h1 {
  margin-top: 2rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.legal .updated {
  margin: 0.75rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal p {
  margin: 0 0 1rem;
}

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

footer nav {
  display: flex;
  gap: 1.25rem;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--fg);
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}
