/* Site-wide styles: reset, base, and the shared header/footer layout. */

:root {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --focus-ring: rgba(255, 129, 89, .45);
}

/* Reset. Kept in a layer so any page's own CSS always wins over it. */
@layer reset {
    *, ::before, ::after, ::backdrop, ::file-selector-button {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        border: 0 solid;
    }

    html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        tab-size: 4;
        font-family: var(--font-sans);
        -webkit-tap-highlight-color: transparent;
    }

    hr { height: 0; color: inherit; border-top-width: 1px; }
    h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
    a { color: inherit; text-decoration: inherit; }
    b, strong { font-weight: bolder; }
    code, kbd, samp, pre { font-family: var(--font-mono); font-size: 1em; }
    small { font-size: 80%; }
    sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; }
    sub { bottom: -.25em; }
    sup { top: -.5em; }
    table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
    ol, ul, menu { list-style: none; }
    img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
    img, video { max-width: 100%; height: auto; }

    button, input, select, optgroup, textarea, ::file-selector-button {
        font: inherit;
        font-feature-settings: inherit;
        font-variation-settings: inherit;
        letter-spacing: inherit;
        color: inherit;
        border-radius: 0;
        background-color: transparent;
        opacity: 1;
    }

    button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button { appearance: button; }
    ::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
    textarea { resize: vertical; }
    [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
}

body {
    margin: 0;
    background: #f7f4ec;
    color: #17251e;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Shared page-width container */
.site-container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .site-container { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
    .site-container { padding-inline: 2rem; }
}

/* Header and footer */
.site-header,
.site-footer {
    background: #f7f4ec;
    color: #17251e;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-header { padding-block: 1rem; }

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #17251e;
    font-size: .875rem;
    line-height: 1.4286;
    font-weight: 800;
    letter-spacing: -.03em;
    text-decoration: none;
    outline-offset: 3px;
}

.site-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: .75rem;
    background: #d9f275;
    color: #15462f;
    font-size: 23px;
    font-weight: 900;
    box-shadow: inset 0 -2px 0 rgba(21, 70, 47, .12);
}

.site-footer .site-brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 17px;
}

.site-button {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding-inline: .875rem;
    border-radius: 9999px;
    background: #1e5b3d;
    color: #fff;
    font-size: .875rem;
    line-height: 1.4286;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s cubic-bezier(.4, 0, .2, 1), transform .15s cubic-bezier(.4, 0, .2, 1);
}

@media (hover: hover) {
    .site-button:hover {
        background: #15462f;
        transform: translateY(-.125rem);
    }
}

.site-footer {
    padding: 26px 0 34px;
    border-top: 1px solid #dce1d8;
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    color: #627069;
    font-size: .75rem;
    line-height: 1.3333;
}

.site-footer-links {
    display: flex;
    gap: 22px;
}

.site-footer-links a {
    color: #627069;
    text-decoration: none;
}

@media (hover: hover) {
    .site-footer-links a:hover { color: #1e5b3d; }
}

.site-brand:focus-visible,
.site-button:focus-visible,
.site-footer-links a:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

@media (min-width: 701px) {
    .site-header { padding-block: 22px; }
    .site-header .site-brand { font-size: 1rem; line-height: 1.5; }
    .site-button { min-height: 2.75rem; padding-inline: 19px; }
    .site-footer-inner { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    .site-button { transition: none; }
}
