/* The public landing page of the host (ops/caddy/site, served by Caddy itself, no app
   behind it). A plain reading page in the spirit of Tufte CSS, without its fonts: no
   file here is fetched from anywhere but this host. */

:root {
    --bg: #fffff8;
    --ink: #111111;
    --ink-2: #555555;
    --rule: #d6d6c8;
    --link: #111111;
    --mark: #fff1a8;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #151515;
        --ink: #dddddd;
        --ink-2: #a0a0a0;
        --rule: #3a3a3a;
        --link: #eeeeee;
        --mark: #4a4220;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html { font-size: 15px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

article {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 16px 4rem;
}

h1 {
    font-weight: 400;
    font-size: 3.2rem;
    line-height: 1;
    margin: 1.5rem 0 0.75rem;
}

.subtitle {
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0 0 2.5rem;
    color: var(--ink-2);
}

h2 {
    font-weight: 400;
    font-style: italic;
    font-size: 1.6rem;
    margin: 2.5rem 0 0.5rem;
}

p, li { font-size: 1.25rem; }

p { margin: 0 0 1.1rem; }

ul { padding-left: 1.4rem; margin: 0 0 1.1rem; }

li { margin: 0 0 0.6rem; }

.note {
    display: block;
    font-size: 1rem;
    color: var(--ink-2);
}

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover { background: var(--mark); }

a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

code {
    font-family: Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

.language-switcher a[aria-current="true"] {
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.rule {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 2.5rem 0 1.5rem;
}

.aside {
    font-size: 1.05rem;
    color: var(--ink-2);
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    article { padding-top: 1.5rem; }
    h1 { font-size: 2.6rem; }
}
