/* 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; }
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; }
