/* Bytestone, in the brand of life-weaver story 011: the Delft ink, paper of
   tin glaze, copper for the stone's band. Hand-written; nothing is built. */
:root {
  --paper: #fefdfb;
  --ink: #0f1953;
  --muted: #546380;
  --rule: #c8d9ef;
  --panel: #ebf3fc;
  --link: #2151bb;
  --copper: #b4662f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #070d25;
    --ink: #d8e6f9;
    --muted: #909fb8;
    --rule: #2e3a55;
    --panel: #101834;
    --link: #99c0f8;
    --copper: #eea471;
  }
}
html { font: 17px/1.55 Georgia, "Times New Roman", serif; color: var(--ink); background: var(--paper); }
body { margin: 0 auto; padding: 0 1rem 3rem; max-width: 44rem; }
a { color: var(--link); }

header.site { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: system-ui, sans-serif; font-size: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
header.site .home { display: flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; letter-spacing: .02em; }
.mark { width: 1.5rem; height: 1.5rem; flex: none; }
.mark .stone { fill: var(--link); }
.mark .band { fill: none; stroke: var(--copper); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
header.site nav a:hover { color: var(--link); }

h1 { font-size: 2.2rem; line-height: 1.15; font-weight: normal; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; border-bottom: 1px solid var(--rule); padding-bottom: .2rem; margin-top: 2.5rem; }
.slogan { font-size: 1.2rem; font-style: italic; color: var(--muted); margin: 0 0 2rem; }
.front .slogan { margin-bottom: .5rem; }
.count { font-family: system-ui, sans-serif; font-size: .95rem; color: var(--muted); margin: 0 0 2rem; }
.count a { text-decoration: none; }
.count strong { font-size: 1.1rem; }

.search label { display: block; font-family: system-ui, sans-serif; font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }
.search .row { display: flex; gap: .5rem; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: .5rem .75rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); color: var(--ink); }
.search button { font: inherit; font-size: 1rem; padding: .5rem 1rem; border: 1px solid var(--link); border-radius: 4px; background: var(--link); color: var(--paper); cursor: pointer; }
.hint { font-size: .95rem; color: var(--muted); margin: .5rem 0 0; }

.card { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1rem 1.25rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; }
.card img { width: 6rem; height: auto; flex: none; border: 1px solid var(--rule); border-radius: 4px; }
.card h3 { margin: 0; font-size: 1.25rem; font-weight: normal; }
.card h3 a { text-decoration: none; }
.card p { margin: .5rem 0 0; }
.lifespan { color: var(--muted); margin: 0; }
.card .lifespan { margin: 0; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.card.compact { gap: 1rem; padding: .75rem 1rem; }
.card.compact img { width: 4.5rem; }
.card.compact h3 { font-size: 1.1rem; }
.card.compact p { font-size: .95rem; }
.lives { list-style: none; padding: 0; margin: 0; }
.lives li { padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.lives a { text-decoration: none; }
.lives .years { font-family: system-ui, sans-serif; font-size: .85rem; color: var(--muted); }
.recent .all { font-size: .95rem; color: var(--muted); margin-top: .75rem; }

.about figure { float: right; width: 14rem; margin: 0 0 1rem 1.5rem; }
.about figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 4px; }
figcaption { font-family: system-ui, sans-serif; font-size: .8rem; color: var(--muted); margin-top: .35rem; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--copper); }
.history { width: 100%; border-collapse: collapse; }
.history td { vertical-align: top; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.history td:first-child { white-space: nowrap; padding-right: 1rem; font-family: system-ui, sans-serif; font-size: .9rem; color: var(--muted); }
.links { padding-left: 1.2rem; }

footer { margin-top: 3rem; padding-top: .75rem; border-top: 1px solid var(--rule); font-family: system-ui, sans-serif; font-size: .85rem; color: var(--muted); }
footer a { color: var(--muted); }

@media (max-width: 40rem) {
  .columns { grid-template-columns: 1fr; }
  .card { flex-direction: column; }
  .card.compact { flex-direction: row; }
  .about figure { float: none; width: auto; margin: 1rem 0; }
  header.site { flex-wrap: wrap; }
}
