/* One stylesheet, no framework, no web fonts (a web font is a third party and
   an IP address handed to someone else). The system font stack is what the
   reader already has. */

:root {
  --ink: #1d2320;
  --muted: #5b6460;
  --rule: #e2e6e3;
  --green: #1e8449;
  --green-dark: #186a3b;
  --bg: #ffffff;
  --panel: #f6f8f7;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- header / footer ---- */

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 0.95rem;
}

nav.site a:first-child {
  margin-left: 0;
}

nav.site a:hover,
nav.site a:focus {
  color: var(--green-dark);
  text-decoration: underline;
}

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding: 1.75rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site a {
  color: var(--muted);
}

/* ---- typography ---- */

main {
  padding-top: 2.5rem;
}

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

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.6rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.4rem;
}

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

ul,
ol {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--green-dark);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 2rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--panel);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ---- blocks ---- */

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  background: #e8f3ec;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover,
.btn:focus {
  background: var(--green-dark);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0.7rem 0.6rem 0;
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* The privacy policy is long; let it breathe on a phone. */
@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 1.6rem;
  }
  table,
  th,
  td {
    font-size: 0.9rem;
  }
}
