/* The site's only stylesheet. The CSP allows styles from same-origin files only, so no page
   carries a <style> block or a style= attribute (spec §7.3). */
:root {
  color-scheme: light dark;
  --text: #1f2421;
  --muted: #5b625d;
  --background: #fbfaf7;
  --accent: #3f6b57;
  --rule: #dcd9d1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ecebe6;
    --muted: #a9ada8;
    --background: #161a18;
    --accent: #8fc1a8;
    --rule: #333a36;
  }
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--background);
}

.site-header,
main,
.site-footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

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

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

.lede {
  font-size: 1.25rem;
}

.draft {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--rule);
  border-radius: 0.375rem;
  color: var(--muted);
}

code {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

button {
  font: inherit;
  padding: 0.5rem 1rem;
  min-height: 2.75rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  color: var(--muted);
}
