/* The website's text pages (src/views/page.ejs): the privacy policy and help. Written by hand, not built.
   The app's look: its greens, and text in black on light and white on dark, following the device. */
:root {
    color-scheme: light dark;
    --pg-background: #ffffff;
    --pg-text: #000000;
    --pg-link: #15803d; /* 5.0:1 on white */
    --pg-line: #d4d4d4;
    --pg-surface: #f5f5f4;
}

@media (prefers-color-scheme: dark) {
    :root {
        --pg-background: #121212;
        --pg-text: #ffffff;
        --pg-link: #4ade80;
        --pg-line: #3f3f3f;
        --pg-surface: #1e1e1e;
    }
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--pg-background);
    color: var(--pg-text);
    font-family: system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

a {
    color: var(--pg-link);
    text-underline-offset: 0.15em;
}

a:focus-visible {
    outline: 2px solid var(--pg-link);
    outline-offset: 3px;
    border-radius: 4px;
}

.pg-header,
.pg-main,
.pg-footer {
    max-width: 44rem;
    margin: 0 auto;
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.pg-header {
    padding-block: 20px 0;
}

.pg-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--pg-text);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}

.pg-brand img {
    border-radius: 9px;
}

.pg-main {
    padding-block: 28px 8px;
    overflow-wrap: break-word;
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem);
    line-height: 1.15;
    text-wrap: balance;
}

h2 {
    margin: 36px 0 8px;
    font-size: 1.25rem;
    line-height: 1.3;
    text-wrap: balance;
}

p {
    margin: 0 0 12px;
}

.pg-lead {
    font-size: 1.125rem;
}

ul {
    margin: 0 0 12px;
    padding-inline-start: 1.25rem;
}

li {
    margin-bottom: 8px;
}

.pg-contact {
    margin: 4px 0 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--pg-surface);
    font-style: normal;
}

.pg-updated {
    margin-top: 36px;
    font-size: 0.9375rem;
}

.pg-footer {
    margin-top: 28px;
    padding-block: 20px max(28px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--pg-line);
    font-size: 0.9375rem;
}

.pg-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.pg-footer li {
    margin: 0;
}

/* Links in the footer are at least 24 px high to tap. */
.pg-footer a {
    display: inline-block;
    padding-block: 3px;
}

.pg-footer a[aria-current] {
    color: var(--pg-text);
    font-weight: 700;
    text-decoration: none;
}

@media print {
    .pg-footer {
        display: none;
    }
}
