/* Shared presentation foundations. Reference: projects/our-everlasting-moments/Reference.md#styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-page);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: var(--line-height-heading);
}

h2 {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    letter-spacing: -0.025em;
}

a {
    color: inherit;
}

button {
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:disabled {
    cursor: default;
    opacity: 0.65;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

.eyebrow {
    font-size: var(--font-size-compact);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.skip-link {
    position: absolute;
    z-index: 5;
    top: 0.5rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    background: white;
    transform: translateY(-200%);
}

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

.preview-caption {
    margin: 1rem 0 0;
    font-size: var(--font-size-support);
    color: var(--color-muted);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
