:root {
  color-scheme: light dark;
  --paper: #f8f4ec;
  --text: #1b171d;
  --muted: #595057;
  --rule: #e2dcd2;
  --link: #3c4163;
  --focus: #5796b3;
  --honey: #f2a34d;
  --rose: #d16e7d;
  --sky: #5796b3;
  --plum: #6e578f;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0c10;
    --text: #f6f1e7;
    --muted: #bab0b3;
    --rule: #2a2629;
    --link: #a8b0e3;
    --focus: #6ba8c4;
    --honey: #e8994d;
    --rose: #d67a91;
    --sky: #6ba8c4;
    --plum: #9c80bd;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lights {
  display: flex;
  height: 0.4rem;
}
.lights span:nth-child(1) { background: var(--honey); flex: 3; }
.lights span:nth-child(2) { background: var(--rose); flex: 2; }
.lights span:nth-child(3) { background: var(--sky); flex: 3; }
.lights span:nth-child(4) { background: var(--plum); flex: 1; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  color: var(--text);
  z-index: 1;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.brand img { border-radius: 22%; }

.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }

main { padding-bottom: 3rem; }
main:focus { outline: none; }

h1, h2.platform {
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
}

h1 {
  font-size: 2.35rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 1rem 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h2.platform {
  font-size: 1.6rem;
  line-height: 1.2;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 2.75rem;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 1.75rem 0 0.4rem;
}

.page-index ul { list-style: none; padding-left: 0; }
.page-index li { margin-bottom: 0.25rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.lede { font-size: 1.25rem; }
.updated, .note { color: var(--muted); }

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}
footer a { color: var(--muted); }
