/*
 * Deliberately minimal reset. Post/page content rendered from the block
 * editor relies on browser-default margins on p/headings/lists for
 * spacing — this theme has no typographic scale for arbitrary editor
 * content, so a full aggressive reset would collapse that spacing. Only
 * safe, non-visual-impact normalizations live here.
 */

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

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

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/*
 * Base document layout: keeps the header/footer stuck to the top/bottom
 * of the page (sticky footer via grid) and carries the light/dark
 * background + text colors.
 */

body {
    color-scheme: light;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    background-image: linear-gradient(to bottom, var(--crust), var(--base));
    color: var(--text);
    margin: 0;
    transition: background-color 0.5s, color 0.5s;
}

@media (min-width: 460px) {
    body {
        font-size: 1.1em;
    }
}

body.menu-open-no-scroll {
    overflow: hidden;
}

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