/* The look of the app's two web pages: its paper and ink, in the reader's
   own system font. Nothing is loaded from another site. */

:root {
  color-scheme: light dark;
  --paper: #f9f6f2;
  --ink: #161a1f;
  --muted: #5b616b;
  --line: #e3ddd4;
  --tile: #ffffff;
  --link: #0b7a41;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1115;
    --ink: #f0eeea;
    --muted: #a3a8b0;
    --line: #272c34;
    --tile: #161a1f;
    --link: #2bd67b;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

/* The icon with the app's name next to it. */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

/* The light icon has the page's own paper as its background and the dark one
   has none, so a tile and a hairline give both an edge. */
.icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 22.5%;
  background: var(--tile);
}

.brand a .icon {
  width: 2.25rem;
  height: 2.25rem;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.brand h1 span {
  display: block;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  margin: 2.75rem 0 0.5rem;
  font-size: 1.3125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
  line-height: 1.4;
}

p,
ul {
  margin: 0.625rem 0;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.25rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

.note {
  color: var(--muted);
}

/* Where to write to, set apart from the text around it. */
.contact {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  background: var(--tile);
  font-size: 1.1875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 30rem) {
  main {
    padding: 2.25rem 1.25rem 3rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}
