/* Always white: the drawings are black ink on a transparent background,
   so there is deliberately no dark mode. */
:root {
  color-scheme: light;
  --bg: #fff; --fg: #1d1b18; --muted: #807a70; --line: #e8e8e8; --accent: #a3201b;  /* rubric red, as in manuscript headings */
}
* { box-sizing: border-box; }
body {
  margin: 0 auto; max-width: 40rem; padding: 1.5rem 1rem 3rem;
  background: var(--bg); color: var(--fg);
  font: 1.125rem/1.7 Georgia, "Iowan Old Style", serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* A notebook label, not a site banner: one line, lowercase, no rule. */
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 1rem; margin-bottom: 2.5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-style: italic; font-size: 1.5rem; color: var(--fg); }
.brand:hover { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .95rem; }
nav .lang { color: var(--muted); }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 .25rem; }
h1 small { color: var(--muted); font-weight: normal; font-size: .6em; }
h2 { font-size: 1.1rem; color: var(--muted); font-weight: normal; margin-top: 2.5rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }

figure { margin: 0 0 1.5rem; text-align: center; }
figure img, article img { max-width: 100%; max-height: 70vh; height: auto; }

ul.list { list-style: none; padding: 0; }
ul.list li { padding: .2rem 0; }
.num { display: inline-block; width: 4.5rem; color: var(--fg); font-size: .9rem; letter-spacing: .05em; }
.mark { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 .25rem; vertical-align: middle; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }

footer { margin-top: 4rem; color: var(--muted); font-size: .85rem; }
footer .hand { font-style: italic; margin-right: .5rem; }
