:root {
    --bg: #fbfaf7;
    --fg: #23262b;
    --muted: #5d636b;
    --accent: #1f6f6b;
    --rule: #dcd8cf;
    --code-bg: #efece5;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17191c;
        --fg: #e4e2dc;
        --muted: #9ba1a8;
        --accent: #62c1ba;
        --rule: #32363b;
        --code-bg: #22252a;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.site-header, main, .site-footer {
    max-width: 46rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--fg);
    text-decoration: none;
}
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
nav a { text-decoration: none; }
nav a[aria-current] { font-weight: 700; text-decoration: underline; }
main { padding-top: 1.5rem; padding-bottom: 2rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
img { max-width: 100%; height: auto; }
code, pre { background: var(--code-bg); border-radius: 4px; font-size: .95em; }
code { padding: .1em .3em; }
pre { padding: .75rem 1rem; overflow-x: auto; }
pre code { padding: 0; background: none; }
.app-list { margin: 0 0 1.5rem; padding: .75rem 1rem; border: 1px solid var(--rule); border-radius: 6px; }
.app-list ul { margin: 0; gap: .25rem 1.25rem; }
.site-footer { padding-top: 1rem; padding-bottom: 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }

/* Contact form */
form .form-field { margin-bottom: 1rem; }
form label, form .form-label { display: block; font-weight: 600; margin-bottom: .25rem; }
form input[type="text"], form input[type="email"], form textarea {
    width: 100%;
    padding: .55rem .7rem;
    font: inherit;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 6px;
}
form input:focus, form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form button, form input[type="submit"] {
    padding: .55rem 1.4rem;
    font: inherit;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.notices { margin: 0 0 1rem; padding: .6rem 1rem; border-left: 4px solid var(--accent); background: var(--code-bg); }
.notices p { margin: 0; }
