/* One page, system fonts, light and dark from the system setting. No web fonts, no images. */

:root {
  --bg: #fbfbfa;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --rule: #e6e6e3;
  --link: #1c1c1e;
  --accent: #2f6f5e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131314;
    --text: #e9e9eb;
    --muted: #9a9aa1;
    --rule: #2a2a2d;
    --link: #e9e9eb;
    --accent: #7cc4ad;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0 auto;
  max-width: 50rem;
  padding: 6rem 1.5rem 3rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The label column, shared by the header and every section. */
header,
section {
  display: grid;
  grid-template-columns: 11rem 1fr;
  column-gap: 2rem;
}

header > * {
  grid-column: 2;
}

header {
  margin-bottom: 4rem;
}

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

h1::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 1.25rem;
  background: var(--accent);
}

.lede {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

section {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0;
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

dd:last-child {
  margin-bottom: 0;
}

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

.list li {
  padding: 0.125rem 0;
}

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

a:hover {
  color: var(--accent);
}

.fine {
  color: var(--muted);
  font-size: 0.9375rem;
}

footer {
  display: grid;
  grid-template-columns: 11rem 1fr;
  column-gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  grid-column: 2;
}

@media (max-width: 40rem) {
  body {
    padding-top: 3rem;
  }

  header,
  section,
  footer {
    display: block;
  }

  header {
    margin-bottom: 2.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    margin-bottom: 0.75rem;
  }
}
