/* views/site.css — one stylesheet for selenian.net and delvereel.com (2026-11-22). System fonts, one measure, one accent per host
   (set on <body data-host>), light and dark. Nothing here is per page: a page that needs more adds a <style> in its own view. */
:root { --fg: #1a1a1a; --bg: #fbfaf7; --muted: #6b6b6b; --line: #e3e0d8; --accent: #4b5fa8; --code: #f1efe9; --measure: 42rem; }
@media (prefers-color-scheme: dark) { :root { --fg: #e8e6e1; --bg: #16171a; --muted: #9a9a9a; --line: #2c2e33; --accent: #9fb0ea; --code: #22242a; } }
body[data-host="delvereel.com"] { --accent: #b0563a; } @media (prefers-color-scheme: dark) { body[data-host="delvereel.com"] { --accent: #e59a7f; } }
* { box-sizing: border-box; }
html { font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; }
header.top, main, footer, .cols { width: min(var(--measure), 100% - 2.5rem); margin-inline: auto; }
/* the front: a main column and a right-hand column; the page is wider than the measure, the main column keeps it */
.cols { width: min(var(--measure) + 20rem, 100% - 2.5rem); display: grid; grid-template-columns: minmax(0, var(--measure)) 17rem; gap: 3rem; align-items: start; }
.cols > main { width: auto; margin: 0; min-width: 0; }
.cols > aside { padding: 1.5rem 0 3rem; font-size: .92rem; }
@media (max-width: 60rem) { .cols { grid-template-columns: 1fr; gap: 0; } }
body:has(.cols) header.top, body:has(.cols) footer { width: min(var(--measure) + 20rem, 100% - 2.5rem); }
aside h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.5rem 0 .5rem; }
aside h2:first-child { margin-top: 0; }
aside ul { list-style: none; padding: 0; margin: 0 0 1rem; } aside li { padding: .3rem 0; border-bottom: 1px solid var(--line); } aside li:last-child { border-bottom: 0; }
aside li a.item { display: block; color: var(--fg); text-decoration: none; } aside li a.item strong { display: block; font-weight: 600; } aside li a.item .muted { display: block; font-weight: 400; }
aside li a.item:hover strong { color: var(--accent); } aside li a.item:hover .muted { color: var(--fg); }
aside a.item.thumb { display: grid; grid-template-columns: 4.5rem 1fr; gap: .6rem; align-items: start; } aside a.item.thumb img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 4px; }
header.top nav a.rss { display: inline-flex; align-items: center; color: var(--muted); } header.top nav a.rss:hover { color: var(--accent); }
/* entries on the front and the post page */
.entry { padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); } .entry:last-child { border-bottom: 0; }
.entry h2 { margin: 0 0 .25rem; font-size: 1.35rem; } .entry h2 a { color: var(--fg); text-decoration: none; } .entry h2 a:hover { color: var(--accent); }
.entry .meta { color: var(--muted); font-size: .9rem; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.entry .body > :last-child { margin-bottom: 0; }
.tag { font-size: .8rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0 .55rem; } .tag:hover { color: var(--accent); border-color: var(--accent); }
.dateline { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 1rem; }
form.subscribe { display: flex; flex-wrap: wrap; gap: .5rem; } form.subscribe input[type=email] { flex: 1 1 14rem; font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
form.subscribe button { font: inherit; font-weight: 600; padding: .5rem 1rem; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; }
header.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; padding: 1.25rem 0 .75rem; border-bottom: 1px solid var(--line); }
header.top .brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; margin-right: auto; }
header.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a[aria-current] { color: var(--fg); border-bottom: 2px solid var(--accent); }
header.top nav a:hover { color: var(--accent); }
main { padding: 1.5rem 0 3rem; }
footer { padding: 1rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
a { color: var(--accent); } a:hover { text-decoration-thickness: 2px; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; } h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
p, ul, ol, blockquote, pre, table, figure { margin: 0 0 1rem; }
.lede, .muted, time, small { color: var(--muted); }
.lede { font-size: 1.1rem; }
blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: 1rem; color: var(--muted); }
code, pre, kbd { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code); border-radius: 4px; }
code { padding: .1em .3em; } pre { padding: .8rem 1rem; overflow-x: auto; } pre code { padding: 0; background: none; }
img, video { max-width: 100%; height: auto; border-radius: 4px; }
figure figcaption { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
/* the Selenian's visuals (cli/selenian render.ts, 11-26): a pull-quote is the eye's stop, not a quoted passage (that stays a blockquote);
   a diagram is a mermaid SVG on a light card, so its dark lines read in dark mode too; a picture is a signed painting */
figure.pull { margin: 2rem 0; padding: 1rem 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
figure.pull blockquote { border: 0; padding: 0; margin: 0; color: var(--fg); font: italic 1.4rem/1.35 Georgia, "Iowan Old Style", "Times New Roman", serif; letter-spacing: -.005em; }
figure.pull blockquote p { margin: 0; } figure.pull blockquote p::before { content: "\201C"; color: var(--accent); } figure.pull blockquote p::after { content: "\201D"; color: var(--accent); }
figure.pull figcaption { margin-top: .6rem; font-size: .9rem; } figure.pull figcaption::before { content: "\2014\2009"; }
figure.diagram img { display: block; margin-inline: auto; background: #fff; padding: .75rem; border: 1px solid var(--line); border-radius: 6px; }
figure.picture, figure.diagram { margin: 1.75rem 0; } figure.picture img { display: block; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; } th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; } th { color: var(--muted); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
/* lists of things: posts, feeds, items */
.list { list-style: none; padding: 0; } .list > li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.list .title { font-weight: 600; } .list .title a { color: var(--fg); text-decoration: none; } .list .title a:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; } .tags a { font-size: .85rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .05rem .6rem; }
.tags a:hover { color: var(--accent); border-color: var(--accent); }
/* a wide page (maps, galleries) opts out of the measure */
.wide { width: min(72rem, 100% - 2.5rem); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.notice { background: var(--code); border-radius: 6px; padding: .75rem 1rem; }
.staging { background: #c33; color: #fff; text-align: center; padding: .3rem; font-weight: 600; }

p.privacy { width: min(var(--measure), 100% - 2.5rem); margin: -1.25rem auto 1.25rem; font-size: .8rem; color: var(--muted); }
p.privacy a { color: inherit; }
/* the Selenian landing + archive (landing-proto, 11-29) */
.lead { padding: 0 0 1.5rem; margin: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
.lead h2 { margin: 0 0 .25rem; font-size: 1.7rem; line-height: 1.2; } .lead h2 a { color: var(--fg); text-decoration: none; } .lead h2 a:hover { color: var(--accent); }
.lead .meta, .arch .meta { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.lead > p:not(.meta) { font-size: 1.08rem; } .lead .more { font-weight: 600; text-decoration: none; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; padding: 0 0 1.25rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .lists { grid-template-columns: 1fr; } }
.lists h2, .stream-head { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6rem; font-weight: 600; }
.titles { margin: 0 0 1rem; padding-left: 1.3rem; } .titles li { margin: 0 0 .45rem; line-height: 1.35; } .titles a { color: var(--fg); text-decoration: none; } .titles a:hover { color: var(--accent); }
.titles .muted { font-size: .82rem; white-space: nowrap; }
.stream-head { margin-bottom: 1.25rem; }
.archive-link { font-weight: 600; margin: 0 0 1rem; }
.month { margin: 0 0 2rem; } .month > h2 { font-size: 1.15rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; margin: 0 0 1rem; }
.arch { margin: 0 0 1.25rem; } .arch h3 { margin: 0 0 .2rem; font-size: 1.1rem; } .arch h3 a { color: var(--fg); text-decoration: none; } .arch h3 a:hover { color: var(--accent); }
.arch > p:not(.meta) { margin: 0; color: var(--fg); }

/* the foot of a piece: earlier pieces on the same subject, picked by hand (post_related, 11-30) */
.related { margin: 1.25rem 0 1.5rem; }
.related h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .75rem; font-weight: 600; }
.related ul { list-style: none; padding: 0; margin: 0; } .related li { margin: 0 0 .9rem; line-height: 1.35; }
.related li > a { font-weight: 600; color: var(--fg); text-decoration: none; } .related li > a:hover { color: var(--accent); }
.related li .muted { font-size: .82rem; white-space: nowrap; } .related li p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
