/*
Theme Name: My Biography Maker FSE Theme
Theme URI:
Author: Ruud Laan <ruud@6th-avenue.nl>
Description: Minimal FSE theme for the MBM project. Managed via the MBM plugin.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.3
License: GPL-2.0-or-later
Text Domain: mbm-theme
*/

/* ==========================================================================
   Global base
   theme.json sets font-family/size/weight/line-height on body via
   styles.typography. These rules ensure every element inherits those
   values rather than falling back to browser UA defaults (Arial,
   grey buttons, etc.).
   ========================================================================== */

html {
    scrollbar-gutter: stable; /* reserves scrollbar space */
}

body {
    overflow-x: hidden;        /* prevent horizontal scroll from absolute-positioned elements */
}

/* Sticky footer: push footer to bottom when content is short */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-bar .wp-site-blocks {
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

.wp-site-blocks > main {
    flex: 1;
}

*, *::before, *::after {
    font-family: inherit;
}

.wp-site-blocks h1 {
    margin-top: 0;
    margin-bottom: 22px;
}

.wp-site-blocks h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

h3, h4, h5, h6 {
    margin: 0;
}

h1 em, h2 em {
    font-style: italic;
    color: var(--wp--preset--color--deep);
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

a {
    color: inherit;
    text-decoration: underline;
}
