/* Explain: Base reset, typography, and page-wide defaults for the website. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text-color);
    background: var(--background-color);
}

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

::selection {
    color: #ffffff;
    background: var(--primary-color);
}

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

/* Visually hidden until focused: lets keyboard and screen-reader users jump
   straight past the header navigation to the page content. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: var(--secondary-color);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* Respect the visitor's "reduce motion" system preference. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Base button resets to match daisyUI / theme */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}
.prose h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    line-height: 1.3;
}
.prose h3:first-child {
    margin-top: 0;
}
.prose p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.prose li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}