/* Swiparoo support and privacy pages. Colours from the app's SwiparooPalette (cream, plum,
   lavender); every text colour pair meets WCAG AAA (7:1) in light and dark mode. Lavender is
   decorative only (borders), never used for text. Used only by the pages in /swiparoo/. */

:root {
    color-scheme: light dark;
    --cream: #FAF5EB;
    --card: #FFFDF8;
    --plum: #3B1F47;
    --text: #3B1F47;
    --muted: #5E4B66;
    --link: #6A3591;
    --lavender: #BD96DB;
    --tint: #F1E8F8;
    --button-text: #FFFDF8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --cream: #261430;
        --card: #33203F;
        --text: #F4EEF7;
        --muted: #CDBFD4;
        --link: #D9C2F0;
        --lavender: #7E5C99;
        --tint: #33203F;
        --plum: #D9C2F0;
        --button-text: #261430;
    }
}

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

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    padding: 0.5rem 1rem;
    background: var(--card);
    color: var(--link);
    border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

header, main, footer {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

header img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    flex: none;
}

.app-name {
    margin: 0;
    font-family: "New York", Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
}

h1, h2, h3 {
    font-family: "New York", Georgia, "Times New Roman", serif;
    color: var(--plum);
    line-height: 1.25;
}
h1 { margin: 0; font-size: 2rem; }
h2 { margin: 2.25rem 0 0.5rem; font-size: 1.375rem; }
h3 { margin: 1.5rem 0 0.25rem; font-size: 1.125rem; }

p, ul { margin: 0.5rem 0 1rem; }
li { margin: 0.25rem 0; }

a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 3px;
    border-radius: 4px;
}

.card {
    background: var(--card);
    border: 1px solid var(--lavender);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 0.5rem;
    margin: 1.5rem 0;
}

.button {
    display: inline-block;
    margin: 0.25rem 0 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--plum);
    color: var(--button-text);
    font-weight: 600;
    text-decoration: none;
}
.button:hover { text-decoration: underline; }

.summary {
    background: var(--tint);
    border-left: 4px solid var(--lavender);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.small { font-size: 0.9375rem; color: var(--muted); }

/* Review notes: for the draft only, delete the whole block before publishing. */
.review {
    border: 2px dashed var(--link);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    background: var(--card);
}

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--lavender);
}
footer p { font-size: 0.9375rem; color: var(--muted); }
