/*
 * Metric-matched fallbacks for the two web fonts, so text occupies the same
 * space before and after the swap (no layout shift on slow connections).
 * Percentages measured against the actual woff2 files rendered next to Arial.
 */
@font-face {
    font-family: "Quicksand Fallback";
    src: local("Arial");
    size-adjust: 103.46%;
    ascent-override: 96.66%;
    descent-override: 24.16%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Oleo Script Fallback";
    src: local("Arial");
    size-adjust: 86.25%;
    ascent-override: 115.94%;
    descent-override: 44.06%;
    line-gap-override: 0%;
}

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

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(
        74deg,
        rgba(226, 244, 251, 1) 0%,
        rgba(255, 255, 255, 1) 14%,
        rgba(255, 255, 255, 1) 27%,
        rgba(255, 239, 245, 1) 49%,
        rgba(255, 255, 255, 1) 68%,
        rgba(255, 255, 255, 1) 78%,
        rgba(226, 244, 251, 1) 100%
    );
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--base);
    font-weight: 600;
    border-radius: var(--wp--custom--border-radius);
    text-decoration: none;
}

.skip-to-content:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    overflow: visible;
}

main.wp-block-group {
    padding-top: var(--wp--preset--spacing--70);
    padding-bottom: var(--wp--preset--spacing--50);
}

::selection {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}

@keyframes gelatine {
    from, to { transform: scale(1, 1); }
    25% { transform: scale(0.9, 1.1); }
    50% { transform: scale(1.1, 0.9); }
    75% { transform: scale(0.95, 1.05); }
}

/* ==========================================================================
   Reduced motion — kill decorative animation for users who ask for it.
   The gelatine/float keyframes are brand garnish, not information.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important; /* Sanctioned: motion-preference override must beat every animation shorthand. */
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
