/* zaphare.ch: a short bibliography. One serif column, quiet, light and dark. */
:root {
  color-scheme: light dark;
  --bg: #fbfbf8;
  --fg: #222220;
  --muted: #77756e;
  --line: #e2e0d8;
  --accent: #1f4fb8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "P052", Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --fg: #e6e4dc;
    --muted: #9a978e;
    --line: #34332e;
    --accent: #93b2ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--serif);
}
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

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

.top {
  display: flex;
  justify-content: flex-end;
  gap: 0.35em;
  font: 0.8125rem/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.top a { text-decoration: none; }
.top a[aria-current] { color: var(--fg); font-weight: 600; }

h1 { margin: 3.5rem 0 0; font-size: 1.75rem; font-weight: 400; letter-spacing: 0.01em; line-height: 1.25; text-wrap: balance; }
.sub { margin: 0.2rem 0 0; color: var(--muted); font-style: italic; }
.intro { margin: 1.5rem 0 0; }
.intro p { margin: 0; }

h2 {
  margin: 3rem 0 0.75rem;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.note { margin: -0.25rem 0 1rem; font-size: 0.875rem; color: var(--muted); font-style: italic; }
h3 { margin: 1.5rem 0 0.4rem; font-size: 1rem; font-weight: 400; color: var(--muted); font-variant-numeric: oldstyle-nums; }

.refs { margin: 0; padding: 0; list-style: none; }
.refs li { padding-left: 1.5rem; text-indent: -1.5rem; margin-bottom: 0.45rem; }
cite { font-style: italic; }
.r { font-weight: 600; }
.r, .refs time { white-space: nowrap; }

/* Post pages */
.back { margin: 2.5rem 0 0; font: 0.875rem/1.4 var(--sans); }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--accent); }
.back + h1, .back + article h1 { margin-top: 1rem; }
.posts { margin-top: 1.5rem; }
.prose { margin-top: 1.5rem; }
.prose h2 { margin-top: 2.5rem; }
.prose p { margin: 0 0 1rem; hyphens: auto; }
.prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 2px;
}
.prose ul { padding-left: 1.25rem; }

footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font: 0.8125rem/1.6 var(--sans);
  color: var(--muted);
}
footer p { margin: 0; }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { margin-top: 2.5rem; }
  .refs li { padding-left: 1rem; text-indent: -1rem; }
}

footer .small { margin-top: 0.5rem; font-size: 0.75rem; }
.prose p strong { font-weight: 600; }
