:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --fg: #23201c;
  --muted: #6a645c;
  --accent: #9a5b2e;
  --rule: #e2ddd5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #e9e5df;
    --muted: #9a938a;
    --accent: #d08a51;
    --rule: #302d29;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 12vh 24px 8vh;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern";
}

.masthead,
main,
.site-foot {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* The wordmark itself (.wordmark, .mark) is defined once, in brand.css; the masthead is
   only the rule beneath it. */
.masthead {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

h1,
.statement {
  font-size: 1.6rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
}

h1 {
  font-weight: 600;
}

.statement {
  font-weight: 400;
  margin-bottom: 2rem;
}

/* Same treatment as the account area's section headings. */
h2 {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

section {
  margin-bottom: 2.25rem;
}

p {
  margin: 0 0 1.4rem;
}

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

.site-foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  text-decoration: none;
}

@media (max-width: 480px) {
  body {
    padding: 8vh 20px 6vh;
    font-size: 16px;
  }
}
