/* Shared stylesheet for every app on peepsoapps.com: one dark theme */

:root {
    color-scheme: dark;
    --bg: #0d0f13;
    --surface: #15181e;
    --border: #262a33;
    --text: #d9dde4;
    --heading: #f4f6f9;
    --muted: #8a919e;
    --accent: #7cb4ff;
    --accent-hover: #a6ccff;
    --wrap: 760px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Header and footer */

.site-header {
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    color: var(--heading);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand:hover {
    color: var(--heading);
    text-decoration: none;
}

.by {
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 56px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    padding-bottom: 32px;
}

/* Document */

.doc {
    padding: 48px 0 0;
}

.doc h1 {
    color: var(--heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.doc .updated {
    color: var(--muted);
    font-size: 15px;
    margin: -12px 0 32px;
}

.doc h2 {
    color: var(--heading);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 10px;
}

.doc p {
    margin: 0 0 14px;
}

.doc section {
    margin: 0 0 16px;
    padding: 24px 0 10px;
    border-top: 1px solid var(--border);
}

.doc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    overflow-wrap: anywhere;
}

.doc img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px 0 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .doc {
        padding-top: 32px;
    }

    .doc h1 {
        font-size: 26px;
    }
}
