:root {
  --bg: #fbfaf7;
  --fg: #2c2a26;
  --muted: #6d6962;
  --rule: #e2ddd4;
  --accent: #4a6b52;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --fg: #e6e2da;
    --muted: #9a948a;
    --rule: #333129;
    --accent: #8fb79a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

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

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

header.site h1 {
  font-size: 1.4rem;
  margin: 0 0 .35rem;
  letter-spacing: .01em;
}

header.site h1 a { color: inherit; text-decoration: none; }

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

nav a:hover, nav a.on { color: var(--accent); }

h2 { font-size: 1.15rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1.6rem 0 .4rem; }

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

p { margin: 0 0 1rem; }

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

time, .meta {
  color: var(--muted);
  font-size: .85rem;
  font-family: var(--mono);
}

ul.posts { list-style: none; padding: 0; margin: 0; }

ul.posts li {
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}

ul.posts a { text-decoration: none; }
ul.posts a:hover { text-decoration: underline; }

table.readings {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: .85rem;
  margin: 1rem 0;
}

table.readings th, table.readings td {
  text-align: left;
  padding: .4rem .5rem .4rem 0;
  border-bottom: 1px solid var(--rule);
}

table.readings th { color: var(--muted); font-weight: normal; }

figure.chart {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

figure.chart figcaption {
  color: var(--muted);
  font-size: .8rem;
  margin-top: .6rem;
}

blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(128, 128, 128, .13);
  padding: .1em .35em;
  border-radius: 3px;
}

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