/* The project website: the landing page and every published Markdown page. Not the dashboard. */
:root {
  color-scheme: light dark;
  --bg: #f6f7fb; --panel: #fff; --text: #172033; --muted: #586174; --line: #e3e7ef; --link: #315ed5;
  --code-comment: #6b7385; --code-string: #1a7f37; --code-name: #8250df;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141d; --panel: #171e2b; --text: #e8edf7; --muted: #a8b3c7; --line: #30394a; --link: #9ab5ff;
    --code-comment: #8d98ad; --code-string: #7ee2a8; --code-name: #d2b3ff;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { width: min(100% - 32px, 760px); margin-inline: auto; padding: 3rem 0; }
img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
a { color: var(--link); }

/* Landing page */
.landing h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; letter-spacing: -.03em; }
.landing p { margin: 0 0 1rem; color: var(--muted); font-size: 1.08rem; }
.landing img { width: 100%; margin: 2rem 0; }
/* The app's own icon beside the name: the same picture as in the Dock and the dashboard. */
.landing h1, .site-header a { display: flex; align-items: center; gap: .5em; }
img.app-icon { width: 1.25em; height: 1.25em; margin: 0; border: 0; border-radius: 0; }
.site-links { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.site-links li { padding: .85rem 1.15rem; border-top: 1px solid var(--line); }
.site-links li:first-child { border-top: 0; }
.site-links a { display: block; font-weight: 600; text-decoration: none; }
.site-links a:hover { text-decoration: underline; }
.site-links span { color: var(--muted); font-size: .95rem; }

/* Published Markdown pages */
.site-header { margin-bottom: 2rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.site-header a { color: var(--muted); font-weight: 600; text-decoration: none; }
.site-header a:hover { color: var(--link); }
.site-footer { margin-top: 3rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
article { overflow-wrap: break-word; }
article h1 { margin: 0 0 1rem; font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; }
article h2 { margin: 2.25rem 0 .75rem; font-size: 1.4rem; line-height: 1.3; }
article h3 { margin: 1.75rem 0 .5rem; font-size: 1.1rem; }
article img { margin: 1.5rem 0; }
article li { margin: .25rem 0; }
code { padding: .1em .35em; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { margin: 1rem 0; padding: .9rem 1rem; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; line-height: 1.45; }
pre code { padding: 0; background: none; border: 0; font-size: .8em; }
/* display:block lets a wide table scroll inside the column on a phone instead of widening the page. */
table { display: block; max-width: 100%; margin: 1rem 0; overflow-x: auto; border-collapse: collapse; }
th, td { padding: .45rem .7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--panel); }

/* The token classes Jekyll's Rouge highlighter gives shell code blocks. */
.highlight .c, .highlight .c1 { color: var(--code-comment); }
.highlight .s, .highlight .s1, .highlight .s2 { color: var(--code-string); }
.highlight .nb, .highlight .nt, .highlight .nv, .highlight .k { color: var(--code-name); }
