/* Shared by all three sites. Each page sets --accent inline. */
:root {
  --bg: #fffdf8;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --rule: #e6e2d8;
  --code-bg: #f3f0e8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1b1e;
    --text: #e4e2dd;
    --muted: #9a9890;
    --rule: #33343a;
    --code-bg: #25262b;
  }
}

body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  font-family: Verdana, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

header { margin-bottom: 2rem; }
header .title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}
.glyph, .end { color: var(--accent); }
.glyph { font-size: 2.25rem; line-height: 1; }
.glyph svg, .end svg, .other-glyph svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}
.glyph svg { display: block; }
.tagline { margin: .25rem 0 0; color: var(--muted); }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.meta { margin-top: 0; color: var(--muted); }

ul.posts { list-style: none; padding: 0; }
ul.posts li { display: flex; gap: 1rem; margin-bottom: .5rem; }
ul.posts time { flex: 0 0 7.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }

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

code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--code-bg); }
code { padding: .1em .3em; border-radius: 3px; }
pre { padding: 1rem; overflow-x: auto; border-radius: 4px; }
pre code { padding: 0; }

img { display: block; max-width: 100%; height: auto; }

figure { margin: 1.75rem 0; }
figure img { width: 100%; border-radius: 4px; }
figcaption {
  margin-top: .5rem;
  font-size: .875rem;
  color: var(--muted);
  text-align: center;
}

.end { text-align: center; margin-top: 2.5rem; font-size: 2.5rem; line-height: 1; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--muted);
}
footer p { margin: .25rem 0; }
footer .other-glyph { font-size: 1.25rem; vertical-align: -0.15em; }

@media (max-width: 30rem) {
  ul.posts li { flex-direction: column; gap: 0; }
  ul.posts time { flex-basis: auto; }
}
