:root {
  color-scheme: light dark;
  --background: #FAF8F5;
  --primary: #3A5A4C;
  --text: #1F2A24;
  --text-secondary: #5C6B63;
  --border: #D8D2C8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141614;
    --primary: #8FBFA8;
    --text: #ECEFEA;
    --text-secondary: #A3ADA6;
    --border: #343936;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 0 1rem 3rem;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  font-weight: 600;
  text-decoration: none;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
}

article {
  padding-top: 1rem;
}

h1 {
  margin: 0.5rem 0;
  font-size: 1.75rem;
  line-height: 1.25;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.35;
}

p,
ul {
  margin: 0.5rem 0;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.375rem 0;
}

.lead {
  font-size: 1.125rem;
}

.meta,
.note {
  color: var(--text-secondary);
}

.meta {
  font-size: 0.875rem;
}
