/* ==========================================================================
   RentOS Microsite — base layer
   Load order: variables.css → fonts.css → base.css → utility.css →
               forms.css → popup.css → rentos-popup.css
   ========================================================================== */

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-weight: var(--fw-regular);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--page-bg-mobile);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
}

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

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

button {
    background: none;
}

a {
    color: inherit;
}

@media screen and (min-width: 992px) {
    body {
        background-color: var(--page-bg);
    }
}

/* --------------------------------------------------------------------------
   Focus.
   The previous rule (`button.button { outline: none }`) removed the focus
   ring outright with no replacement, which fails the brief's accessibility
   and States checks. :focus-visible keeps pointer clicks clean while leaving
   keyboard users a clear, high-contrast indicator.
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--brand-dark-green);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Only suppress the default ring where :focus-visible is supported, so
   unsupporting browsers keep the native ring rather than losing it. */
@supports selector(:focus-visible) {
    :focus:not(:focus-visible) {
        outline: none;
    }
}

/* On a dark background the green ring disappears — invert it there. */
.b-dark-green :focus-visible,
.b-black :focus-visible {
    outline-color: var(--brand-accent);
}

/* Skip link — first tab stop, visible only when focused */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 12px 20px;
    background-color: var(--brand-dark-green);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-100%);
}

.skip-link:focus {
    transform: translateY(0);
}
