/* The system's own fonts, light or dark as the system is set. */
:root {
  color-scheme: light dark;
  --background: #f7f8f9;
  --text: #0e1a24;
  --muted: #5b6b78;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b1218;
    --text: #e6edf2;
    --muted: #8b9ba7;
  }
}

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

html {
  background: var(--background);
  color: var(--text);
}

/* The footer stays at the bottom of the window, however short the page. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* A text page's column: about 70 characters a line. */
main {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.125rem;
}

p,
ul {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

/* The landing page: the wordmark alone, in the middle of a wider column. */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 64rem;
}

.wordmark {
  width: 52%;
  margin: 0;
  line-height: 0;
}

.wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 40rem) {
  .wordmark {
    width: 64%;
  }
}

/* A text page's way back to the landing page, over its column. */
header {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  font-weight: 600;
}

footer {
  padding: 1.5rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

header a,
footer a {
  text-decoration: none;
}

header a:hover,
footer a:hover {
  text-decoration: underline;
}
