/* ================================
   BASE
   ================================ */

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

p {
    margin: 0;
}

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

/* ================================
   LAYOUT
   ================================ */

.block {
    padding: 4rem 0;
}

.block-inner {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    padding: 0 2rem;
}

.block-inner--narrow {
    max-width: var(--wp--style--global--content-size);
}

/* ================================
BUTTONS
================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.85;
}

.btn--secondary {
    background: transparent;
    color: var(--wp--preset--color--primary);
    border: 2px solid var(--wp--preset--color--primary);
}

.btn--secondary:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* ================================
PROSE
================================ */

.prose h1, .prose h2, .prose h3,
.prose h4, .prose h5, .prose h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose h1:first-child, .prose h2:first-child, .prose h3:first-child,
.prose h4:first-child, .prose h5:first-child, .prose h6:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 1em;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose ul, .prose ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose li + li {
    margin-top: 0.35em;
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 0.75em 1.25em;
    border-left: 4px solid var(--wp--preset--color--primary);
    font-style: italic;
    color: var(--wp--preset--color--muted);
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.prose img {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    border-radius: 2px;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--wp--preset--color--neutral);
    margin: 2em 0;
}


/* ================================
ACCESSIBILITY
================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 999;
}

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

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

:focus:not(:focus-visible) {
    outline: none;
}