/* fermasoft skin: one centred column, no JS, light/dark from the OS setting. */
/* Montserrat, self-hosted (SIL OFL, fonts/OFL-Montserrat.txt): headings only */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/montserrat-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/montserrat-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --fg: #222; --bg: #fff; --muted: #666; --link: #0645ad; --visited: #551a8b; --rule: #ddd; --code: #f5f5f5; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #ddd; --bg: #1b1b1b; --muted: #999; --link: #8ab4f8; --visited: #c58af9; --rule: #333; --code: #262626; }
}

html { color: var(--fg); background: var(--bg); }
body { max-width: 42rem; margin: 0 auto; padding: 0 1rem; font: 1rem/1.5 system-ui, sans-serif; overflow-wrap: break-word; }
a { color: var(--link); }
a:visited { color: var(--visited); }
h1, h2, h3, h4, .name { font-family: Montserrat, system-ui, sans-serif; font-weight: 400; line-height: 1.25; }
img { max-width: 100%; height: auto; }
pre, code { font-size: 0.9em; background: var(--code); }
pre { padding: 0.75rem; overflow-x: auto; }
table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
td, th { padding: 0.25rem 0.5rem; }
hr { border: 0; border-top: 1px solid var(--rule); }
input, textarea, select, button { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--rule); max-width: 100%; box-sizing: border-box; }

/* header: name, text menu, small search */
header.site { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
header.site .name { font-size: 1.5rem; color: var(--fg); text-decoration: none; }
header.site nav { order: 3; flex-basis: 100%; }
header.site nav ul { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0; padding: 0; list-style: none; }
header.site nav a { color: var(--link); }
header.site .search { margin-left: auto; }
header.site .search input { width: 7rem; padding: 0.1rem 0.4rem; font-size: 0.85em; }

/* blog posts (BlogIt templates) */
.article { margin-bottom: 2.5rem; }
.meta, .blogit-meta, .footer, .blogit-entry-date { color: var(--muted); font-size: 0.9em; }
p.meta { margin: -0.5rem 0 1.5rem; }
.article .footer { margin-top: 2rem; }
.article .footer p, .article .footer h4 { margin: 0.25rem 0; font: inherit; }
.article .footer br { display: none; }            /* BlogIt puts one tag per line */
.article .footer .meta a { margin-left: 0.3em; }  /* "tags: Linux, ZFS" */
.blogit-comment-form dd { margin: 0 0 0.75rem; }
.blogit-comment-form input[type=text], .blogit-comment-form textarea { width: 100%; max-width: 30rem; }
.blogit-comment-form textarea { max-width: none; }

/* home page: photo beside the intro, list below it */
.lfloat { float: left; margin: 0 1rem 0.5rem 0; }
.rfloat { float: right; margin-left: 1rem; }
.page-Main-HomePage .lfloat img { width: 120px; }
.page-Main-HomePage #wikitext ul { clear: both; }

footer.site { margin: 3rem 0 1rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.85em; }
footer.site .actions ul { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0; padding: 0; list-style: none; }

/* desktop: bigger type and a wider column, line length stays ~75-80 characters */
@media (min-width: 64rem) { html { font-size: 18px; } body { max-width: 48rem; } }
