/* The one stylesheet of appanimal.ca. No build step: edit this file. Dark mode follows the device
   (prefers-color-scheme); the site has no script (bryan/cluster docs/plans/appanimal-site.md, D4). */

/* Nunito Sans, served from this host: the weight axis 200 to 1000, cut to Latin and Latin-1 for French by
   scripts/make-fonts.sh. OFL: fonts/OFL.txt. */
@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("/fonts/nunito-sans-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Nunito Sans";
    font-style: italic;
    font-weight: 200 1000;
    font-display: swap;
    src: url("/fonts/nunito-sans-latin-italic.woff2") format("woff2");
}

:root {
    color-scheme: light dark;
    --ink: #1f1a24;
    --muted: #5b5363;
    --ground: #ffffff;
    --card: #fbf1dc;
    --line: #e6dccb;
    --link: #2257a8;
    --brand: #382c43;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f1ecf4;
        --muted: #b9b0c0;
        --ground: #17131b;
        --card: #241e2a;
        --line: #3a3241;
        --link: #8fb6f2;
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ground);
    color: var(--ink);
    font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

header, main, footer {
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

/* The wordmark's name is dark ink, so it sits on a light ground in both modes. */
.brand {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    background: #fbf1dc;
}
.brand img { display: block; height: 2.25rem; width: auto; }

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
nav a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 700; }

main { flex: 1; padding-top: 2rem; padding-bottom: 2rem; }

h1 { font-size: 1.875rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
p, ul, address { margin: 0 0 1rem; }
address { font-style: normal; }

.lead { font-size: 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
.card {
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--card);
}
.card h2 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

footer {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9375rem;
}
