:root {
    --page-background: #eef1e8;
    --panel-background: #fffdf7;
    --text-color: #17352e;
    --muted-text-color: #5d6f67;
    --accent-color: #cf5c36;
    --accent-dark-color: #a63d20;
    --border-color: #d6ddd2;
    --shadow-color: rgb(23 53 46 / 14%);
}

* {
    box-sizing: border-box;
}

body {
    min-width: 20rem;
    margin: 0;
    color: var(--text-color);
    background:
        radial-gradient(circle at top right, rgb(207 92 54 / 12%), transparent 30rem),
        var(--page-background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
    display: flex;
    flex-direction: column;
    width: min(76rem, calc(100% - 2rem));
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(0.75rem, 2.5vh, 1.5rem) 0;
}

.page-header {
    flex: 0 0 auto;
    max-width: 48rem;
    margin-bottom: clamp(0.6rem, 1.6vh, 1.1rem);
}

.page-eyebrow {
    margin: 0 0 0.45rem;
    color: var(--accent-dark-color);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}

h2 {
    margin-bottom: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.map-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 48rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--panel-background);
    box-shadow: 0 1.5rem 4rem var(--shadow-color);
}

.neighborhood-map {
    z-index: 0;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border-block: 1px solid var(--border-color);
    background: #dbe2d4;
}

.neighborhood-map:focus-visible {
    outline: 0.2rem solid var(--accent-color);
    outline-offset: -0.2rem;
}

.neighborhood-map-error {
    display: grid;
    place-items: center;
    padding: 2rem;
    color: #7f1d1d;
    background: #fef2f2;
    text-align: center;
}

.map-address-card {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    min-height: 5.5rem;
    padding: 1rem clamp(1.25rem, 4vw, 2rem);
}

.map-address-icon {
    position: relative;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50% 50% 50% 0;
    background: var(--accent-color);
    transform: rotate(-45deg);
}

.map-address-icon::after {
    position: absolute;
    top: 0.72rem;
    left: 0.72rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: var(--panel-background);
    content: "";
}

.map-address-status {
    margin-bottom: 0.25rem;
    color: var(--muted-text-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-address-output {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-style: normal;
    font-weight: 650;
    line-height: 1.5;
}

.map-error {
    margin: 0;
    padding: 1rem 2rem;
    color: #7f1d1d;
    background: #fef2f2;
}

.map-selection-marker {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    border: 0.22rem solid var(--panel-background);
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0.2rem 0.65rem rgb(23 53 46 / 35%);
}

@media (max-width: 40rem) {
    .site-shell {
        width: min(100% - 1rem, 76rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
