:root {
  --bg: #fbfaf7;
  --text: #222;
  --muted: #6b6b6b;
  --rule: #e4e1da;
  --link: #b4471f;
  --code-bg: #f1eee8;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

a { color: var(--link); text-underline-offset: 2px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.25;
  font-weight: 650;
}
h1 { font-size: 2rem; margin: 0 0 .25rem; }
h2 { font-size: 1.3rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin-top: 2rem; }

.sub { color: var(--muted); margin-top: 0; }
.back { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: .9rem; }

code, pre {
  font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--code-bg);
  border-radius: 3px;
}
code { padding: .1em .3em; }
pre { padding: .8rem 1rem; overflow-x: auto; }

figure { margin: 2rem 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 4px; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1rem;
}
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

.table-wrap { overflow-x: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9rem;
  margin: 1rem 0;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .35rem .6rem .35rem 0;
  border-bottom: 1px solid var(--rule);
}
th { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 600; }

.chain {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  font: .85rem/1.3 -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 1.5rem 0;
}
.chain span {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .35rem .55rem;
  background: var(--code-bg);
}
.chain i { color: var(--muted); font-style: normal; }

ul.files { padding-left: 1.2rem; }

footer {
  margin-top: 4rem;
  color: var(--muted);
  font-size: .85rem;
}
