/*
    .wrap keeps content aligned and gives it space on the left and right.
    .hero arranges the homepage introduction and Kaeli’s portrait side by side. The @media rule near the bottom stacks them on smaller screens.
    --forest is a CSS variable holding the dark green color. Change its value under :root, save, and refresh. You’ll see the buttons and green section change together.

    Mobile notes:
    - Sizes use rem/em so they follow the visitor's own text-size setting.
    - Links and buttons are at least --tap (2.75rem, about 44px) tall so they are easy to tap.
    - Images and the map can never be wider than their container.
*/

:root {
    --ink: #253c36;
    --forest: #253c36;
    --forest-dark: #17382f;
    --cream: #faf7ee;
    --paper: #fffdf6;
    --line: #c9cabc;
    --sage: #e4eada;
    --gutter: clamp(1.25rem, 6vw, 6.875rem);
    --tap: 2.75rem;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 1.05rem/1.65 system-ui, sans-serif;
    overflow-wrap: break-word; /* long words/URLs wrap instead of pushing the page wider */
    overflow-x: clip; /* safety net: no sideways scrollbar */
}

/* Media never wider than its container */
img, svg, video, iframe {
    max-width: 100%;
}

img, svg, video {
    height: auto;
}

a {
    color: inherit;
    text-underline-offset: .23em;
}

    a:focus-visible, summary:focus-visible {
        outline: 3px solid #ae6629;
        outline-offset: 4px;
    }

.wrap {
    max-width: 105rem;
    margin: auto;
    padding-inline: var(--gutter);
}

.row, nav, .actions, .footlinks {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.row {
    justify-content: space-between;
    padding-block: 1.2rem;
}

header {
    border-bottom: 1px solid var(--line);
}

.brand {
    font: 1.7rem Georgia, serif;
    text-decoration: none;
}

    .brand span {
        display: block;
        font: .72rem system-ui;
        text-transform: uppercase;
        letter-spacing: .28em;
        margin-top: .4rem;
    }

/* Nav links and footer links: bigger tap area, same look */
nav a, .footlinks a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
}

nav a {
    font-size: 1rem;
    text-decoration: none;
}

    nav a[aria-current], nav a:hover {
        text-decoration: underline;
    }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    background: var(--forest);
    color: white;
    border-radius: 2rem;
    padding: .7rem 1.5rem;
    text-decoration: none;
    font-weight: 550;
}

    .button:hover {
        background: var(--forest-dark);
    }

/* Standalone text links (not inside a paragraph) get a bigger tap area too */
main :not(p) > a:not(.button) {
    display: inline-block;
    padding-block: .55rem;
}

.hero, .columns {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
}

.hero {
    padding-block: clamp(3rem, 6vw, 6rem);
}

    .hero > *, .columns > * {
        flex: 1;
        min-width: 0;
    }

h1, h2, h3, blockquote {
    font-family: Georgia, serif;
    font-weight: 400;
    line-height: 1.08;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.75rem, 6.3vw, 7rem);
    margin: .2em 0;
    letter-spacing: -.055em;
}

h2 {
    font-size: clamp(2rem, 3.4vw, 4rem);
    margin: 0 0 .5em;
    letter-spacing: -.04em;
}

h3 {
    font-size: 1.65rem;
    margin: .5em 0;
}

p {
    max-width: 62ch;
}

.kicker {
    font-size: .8rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .16em;
}

figure {
    margin: 0;
}

    figure img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 46% 46% 1rem 1rem;
    }

figcaption {
    font: italic 1rem Georgia;
    margin-top: .7rem;
    text-align: center;
}

.band {
    padding-block: clamp(3rem, 5vw, 6rem);
}

.green {
    color: var(--paper);
    background: var(--forest);
}

.sage {
    background: var(--sage);
}

.columns {
    align-items: flex-start;
}

.card {
    background: var(--paper);
    padding: clamp(1.4rem, 3vw, 3.4rem);
    border-top: 3px solid #879778;
    align-self: stretch;
}

details {
    border-top: 1px solid var(--line);
    padding: .5rem 0;
}

summary {
    cursor: pointer;
    font-weight: 600;
    padding-block: .6rem;
    min-height: var(--tap);
}

iframe {
    width: 100%;
    height: clamp(17.5rem, 36vw, 29rem);
    display: block;
    border: 0;
}

/* Crisis assistance notice */
.crisis-notice {
    background: var(--sage);
    border-left: 3px solid #879778;
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

    .crisis-notice h2 {
        font-size: 1.35rem;
        margin: 0 0 .5rem;
    }

    .crisis-notice p {
        font-size: .95rem;
        max-width: none;
        margin: 0;
    }

    .crisis-notice a {
        font-weight: 600;
    }

footer {
    background: #edeadd;
    padding-block: 2rem;
}

.footlinks {
    gap: .25rem 1.4rem;
    font-size: .95rem;
}

.skip {
    position: absolute;
    left: -9999px;
}

    .skip:focus {
        left: .6rem;
        background: white;
        padding: .6rem;
    }

/* QR code container */
.footer-qr {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

    /* Individual QR code links */
    .footer-qr .qr {
        display: block;
        min-width: 0;
    }

    /* QR code images */
    .footer-qr img {
        display: block;
        width: 136px;
        max-width: 100%;
        height: auto;
    }

/* Phones and small tablets: stack side-by-side layouts (48em = 768px at default text size) */
@media (max-width: 48em) {
    .hero, .columns {
        flex-direction: column;
        align-items: stretch;
        gap: 1.8rem;
    }

    nav {
        gap: .25rem 1rem;
    }

    .row {
        gap: .9rem;
    }

    figure {
        max-width: 29rem;
    }

    .actions {
        gap: .8rem;
    }

    footer .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    footer .footlinks {
        gap: .25rem 1.4rem;
    }

    .footer-qr {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

        .footer-qr img {
            width: 120px;
        }
}

/* Contextual appointment information */
#appointment-message:not([hidden]) {
    border-left: 3px solid #879778;
    padding-left: 1rem;
    margin-top: 1.5rem;
}

/* ========================================
   Legal page formatting
   ======================================== */

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Legal page accordion
   ======================================== */

.legal-page .acc {
    padding: 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 100px;
}

    .legal-page .acc:last-child {
        border-bottom: 1px solid var(--line);
    }

    .legal-page .acc summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.1rem 0;
        list-style: none;
    }

.legal-page .acc-title {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

/* Arrow */
.legal-page .acc summary::after {
    content: "";
    flex: 0 0 auto;
    width: .6rem;
    height: .6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}

.legal-page .acc[open] summary::after {
    transform: rotate(-135deg);
}

.legal-page .acc-body {
    padding-bottom: 1.5rem;
}

    .legal-page .acc-body h2 {
        font-size: 1.35rem;
        letter-spacing: normal;
        margin: 1.5rem 0 .75rem;
    }
/* Respect visitor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .legal-page .acc summary::after {
        transition: none;
    }
}