/* ==========================================================================
   base.css — reset, document typography, defaults, accessibility
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: #F8F7F2;
}

body {
    margin: 0;
    min-height: 100vh;
}

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding: 0;
}

.lp-site {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--c-text);
    background: var(--c-ivory);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga";
}

.lp-site h1,
.lp-site h2,
.lp-site h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: var(--lh-heading);
    letter-spacing: var(--tracking-display);
    color: var(--c-forest);
    text-wrap: balance;
}

.lp-site h1 em,
.lp-site h2 em,
.lp-site h3 em {
    font-style: italic;
    font-weight: 500;
}

.lp-site p {
    text-wrap: pretty;
}

.lp-site strong {
    font-weight: 700;
}

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

img {
    height: auto;
}

.lp-site a {
    color: var(--c-forest-muted);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}

.lp-site a:hover {
    color: var(--c-forest);
}

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

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

textarea {
    resize: vertical;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Focus: visible, distinct from hover */
.lp-site :focus {
    outline: none;
}

.lp-site :focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
    border-radius: var(--r-xs);
}

[hidden] {
    display: none !important;
}

/* Anchor targets clear the sticky header */
.lp-site [id] {
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

main:focus {
    outline: none;
}

/* Screen-reader-only text */
.lp-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.lp-skip-link {
    position: absolute;
    top: var(--s-3);
    left: var(--s-3);
    z-index: var(--z-skip);
    padding: var(--s-3) var(--s-5);
    background: var(--c-forest);
    color: var(--c-white);
    font-weight: 600;
    border-radius: var(--r-sm);
    transform: translateY(-160%);
    transition: transform var(--t-fast) var(--ease);
}

.lp-site .lp-skip-link:focus-visible,
.lp-site .lp-skip-link:focus {
    transform: translateY(0);
    color: var(--c-white);
    outline: 2px solid var(--c-white);
    outline-offset: -5px;
}

::selection {
    background: var(--c-sage, #D9E3D8);
    color: var(--c-forest, #172A24);
}

@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;
    }
}
