Something went wrong. Try again.
Minimalist static .md → .html site generator. Declarative and highly customizable. Built with personal sites and the small web in mind!
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411/* Shared layout for the built-in themes. Palettes live in assets/themes/*.css and define the color variables.*/
:root { --max: 80ch;}
* { box-sizing: border-box;}
html { background: var(--bg); color: var(--fg); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 17px; line-height: 1.7; -webkit-text-size-adjust: 100%; font-synthesis: none;}
body { width: 100%; max-width: var(--max); margin: 0 auto; padding: 2.5rem clamp(1rem, 5vw, 2.5rem) 4rem; overflow-wrap: break-word;}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em;}
a:hover { color: var(--accent-dim);}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px;}
/* Skip link: off-screen until focused, then the first thing in the page. */
.skip { position: absolute; top: 0; left: -9999px; padding: 0.5rem 0.75rem; background: var(--bg); color: var(--fg);}
.skip:focus,.skip:focus-visible { top: 1rem; left: 1rem; outline: 2px solid var(--fg); outline-offset: 3px;}
.site { margin: 0 0 3rem; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;}
.site a { color: var(--accent); text-decoration: underline;}
.site a:hover { color: var(--accent-dim);}
h1,h2,h3 { font-weight: 400; line-height: 1.25;}
h1 { margin: 0 0 1.5rem; color: var(--heading); font-size: 1.55rem; letter-spacing: 0.02em;}
h2 { margin: 2.5rem 0 0.75rem; font-size: 1rem; letter-spacing: 0.08em;}
p { margin: 0 0 1.1rem;}
.words { margin: 0 0 2rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em;}
.page-date,.page-tags { margin: -0.75rem 0 1.5rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em;}
.page-date:empty,.page-tags:empty { display: none;}
.page-tags a + a::before { content: "·"; margin: 0 0.45rem; color: var(--muted);}
ul,ol { padding-left: 1.4rem;}
li { margin: 0.25rem 0;}
ul > li::marker { content: "† "; color: var(--marker, inherit);}
strong { font-weight: inherit; text-decoration: underline; text-decoration-style: double;}
em { font-style: normal; text-decoration: underline;}
blockquote { margin: 1.5rem 0; padding: 0.1rem 0 0.1rem 1rem; border-left: 2px solid var(--muted); color: var(--muted);}
blockquote p { margin: 0;}
code,pre { font-family: inherit;}
code { background: var(--code-bg); color: var(--code-fg); padding: 0.1em 0.3em;}
pre { margin: 1.5rem 0; padding: 0.8rem 1rem; background: var(--code-bg); color: var(--code-fg); border-left: 2px solid var(--accent-dim); overflow-x: auto;}
pre code { background: none; color: inherit; padding: 0;}
hr { border: 0; border-top: 1px solid var(--muted); margin: 2.5rem 0;}
img,svg,video { max-width: 100%; height: auto;}
table { width: 100%; border-collapse: collapse;}
th,td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--muted); font-weight: 400; text-align: left;}
::selection { background: var(--selection, var(--fg)); color: var(--selection-fg, var(--bg));}
/* Generated listings: title plus optional date. */
.listing,.tag-list,.plain-list { list-style: none; padding: 0;}
.listing { margin: 1.5rem 0 0;}
.listing li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0.4rem 0;}
.listing .date { margin-left: auto; color: var(--muted); font-size: 0.85rem; white-space: nowrap;}
.listing .date:empty { display: none;}
/* Pagination: previous/next and numbered links under a listing. */
.pagination { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-top: 2rem; font-size: 0.85rem;}
.pagination [aria-current="page"] { color: var(--muted); text-decoration: none;}
.tag-list,.plain-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.5rem 0 0;}
.tag-list li,.plain-list li { margin: 0;}
.tag-list .count { color: var(--muted); font-size: 0.8em;}
/* Backlinks: just the page titles. */
.backlinks { margin-top: 3rem;}
.backlinks h2 { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;}
.backlinks ul { list-style: none; padding: 0; margin: 0;}
.backlinks li { display: inline; margin: 0;}
.backlinks li + li::before { content: " · "; color: var(--muted);}
.backlinks .meta,.backlinks .count { display: none;}
.footer { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--muted); font-size: 0.8rem;}
.footer a { color: var(--accent);}
@media (max-width: 40rem) { table { display: block; overflow-x: auto; white-space: nowrap; }}
/* Respect a reduced-motion preference for anything added later. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }}
/* Paper: no chrome, no color, no decoration. */
@media print { :root { --bg: #fff; --fg: #000; --muted: #444; --accent: #000; --accent-dim: #000; --heading: #000; }
body { max-width: none; padding: 0; }
.site, .footer, .skip, .pagination, .page-date, .page-tags, .backlinks { display: none; }
a { color: #000; text-decoration: underline; }
code, pre { background: #f4f4f4; color: #000; }
pre { border: 1px solid #999; }}