:root {
    --ivory: #fff9f0;
    --paper: #fffdf8;
    --red: #9d1c20;
    --red-deep: #64151a;
    --gold: #c4a15a;
    --charcoal: #292524;
    --muted: #5c564e;
    --line: #e7d7c3;
    --card: #ffffff;
    --shadow: 0 10px 28px rgba(41, 37, 36, 0.05);
    --link: #9d1c20;
    color-scheme: light;
}

html[data-theme="dark"] {
    --ivory: #1c1917;
    --paper: #292524;
    --red: #e7b2a8;
    --red-deep: #f3d2cb;
    --gold: #e6c36a;
    --charcoal: #f5f0e8;
    --muted: #d6d3d1;
    --line: #44403c;
    --card: #292524;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    --link: #f0d48a;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --ivory: #1c1917;
        --paper: #292524;
        --red: #e7b2a8;
        --red-deep: #f3d2cb;
        --gold: #e6c36a;
        --charcoal: #f5f0e8;
        --muted: #d6d3d1;
        --line: #44403c;
        --card: #292524;
        --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
        --link: #f0d48a;
        color-scheme: dark;
    }
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}

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

a { color: var(--link); }

a:hover { text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

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

.ba-skip:focus {
    position: fixed;
    left: 0.75rem;
    top: 0.75rem;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    padding: 0.5rem 0.8rem;
    background: var(--paper);
    z-index: 50;
}

.ba-wrap {
    width: min(1120px, calc(100% - 1.5rem));
    margin-inline: auto;
}

.ba-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--ivory);
    background: color-mix(in srgb, var(--ivory) 92%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.ba-header-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 68px;
}

.ba-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    height: 52px;
    color: var(--red);
    text-decoration: none;
}

.ba-logo-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.ba-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ba-logo-full,
.ba-logo-short {
    font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--red);
    white-space: nowrap;
}

.ba-logo-short { display: none; }

.ba-logo-rule {
    width: 4.25rem;
    height: 2px;
    margin-top: 0.32rem;
    border-radius: 2px;
    background: var(--gold);
}

.ba-city-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 8.5rem;
    max-width: 13rem;
}

.ba-city-form select { min-width: 0; }

.ba-city-form button,
.ba-menu-panel button,
.ba-hero-search button {
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--charcoal);
    font: inherit;
    cursor: pointer;
}

.ba-header-tools,
.ba-desktop-nav-wrap { display: none; }

.ba-menu { margin-left: auto; position: relative; }

.ba-menu > summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    cursor: pointer;
    list-style: none;
}

.ba-menu > summary::-webkit-details-marker { display: none; }

.ba-menu > summary span {
    display: block;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
}

.ba-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: min(19rem, calc(100vw - 1.5rem));
    padding: 0.85rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.ba-menu-panel a,
.ba-menu-panel button,
.ba-menu-panel input {
    display: block;
    width: 100%;
    margin-top: 0.45rem;
}

.ba-menu-panel nav a {
    padding: 0.35rem 0;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
}

select,
input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--charcoal);
    font: inherit;
}

.ba-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.05rem;
    border: 1px solid #9d1c20;
    border-radius: 999px;
    background: #9d1c20;
    color: #fff;
    font: inherit;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.ba-button:hover { background: #64151a; color: #fff; }

.ba-button-secondary {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.ba-button-secondary:hover { background: #9d1c20; color: #fff; }

.ba-button-small { min-height: 40px; padding-inline: 0.85rem; }

.ba-theme {
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--charcoal);
    font: inherit;
    cursor: pointer;
}

.ba-hero { padding: 1.25rem 0 0.5rem; }

.ba-hero-panel {
    position: relative;
    padding: 1.4rem 1.1rem 1.3rem;
    background:
        radial-gradient(circle at 100% 100%, rgba(157, 28, 32, 0.06), transparent 28%),
        var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.ba-eyebrow {
    margin: 0 0 0.45rem;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1, h2, h3 {
    font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { margin: 0; font-size: clamp(1.85rem, 4vw, 2.8rem); max-width: 18ch; }

.ba-lead { max-width: 42rem; margin: 0.8rem 0 0; color: var(--muted); font-size: 1.05rem; }

.ba-hero-city,
.ba-hero-search { display: grid; gap: 0.55rem; margin-top: 0.95rem; }

.ba-hero-city label,
.ba-hero-search label { font-weight: 650; }

.ba-hero-secondary { margin: 0.9rem 0 0; }

.ba-note {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.85rem;
    border-left: 3px solid var(--gold);
    background: color-mix(in srgb, var(--gold) 12%, var(--paper));
    border-radius: 8px;
}

.ba-section { padding: 1.6rem 0; }

.ba-section h2 { margin: 0 0 0.9rem; font-size: clamp(1.45rem, 2.4vw, 2rem); }

.ba-divider {
    width: 4.5rem;
    height: 2px;
    margin: 0 0 0.9rem;
    background: var(--gold);
    border-radius: 2px;
}

.ba-city-grid,
.ba-card-grid,
.ba-benefit-grid,
.ba-listing-grid {
    display: grid;
    gap: 0.85rem;
}

.ba-city-card,
.ba-info-card,
.ba-benefit-grid article,
.ba-listing,
.ba-empty,
.ba-cta {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.ba-city-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.ba-city-card:hover { border-color: var(--gold); }

.ba-city-art {
    display: block;
    height: 104px;
    background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--gold) 18%, var(--paper)));
}

.ba-city-art svg { width: 100%; height: 100%; }

.ba-city-name,
.ba-city-hint { padding-inline: 0.9rem; }

.ba-city-name {
    padding-top: 0.8rem;
    font-family: Georgia, "Iowan Old Style", Palatino, serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.ba-city-hint {
    padding-bottom: 0.9rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.ba-info-card,
.ba-benefit-grid article,
.ba-listing { padding: 1rem 1rem 0.9rem; }

.ba-info-card h3,
.ba-benefit-grid h3,
.ba-listing h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }

.ba-info-card p,
.ba-benefit-grid p,
.ba-listing p { margin: 0.25rem 0 0; color: var(--muted); }

.ba-empty,
.ba-cta { padding: 1.15rem 1.1rem; }

.ba-empty h2,
.ba-cta h2 { margin-top: 0; }

.ba-badge {
    display: inline-block;
    margin: 0 0 0.6rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gold) 24%, var(--paper));
    color: var(--charcoal);
    font-size: 0.82rem;
    font-weight: 700;
}

.ba-cta-explain { color: var(--muted); }

.ba-cta-actions,
.ba-listing-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.ba-flag {
    display: inline-block;
    margin: 0;
    color: var(--red) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ba-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.ba-chips {
    display: flex;
    gap: 0.45rem;
    max-width: 100%;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.ba-chips a {
    flex: 0 0 auto;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.92rem;
}

.ba-view {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.ba-view button {
    min-height: 40px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--charcoal);
    font: inherit;
}

.ba-view button[aria-pressed="true"] {
    background: #9d1c20;
    border-color: #9d1c20;
    color: #fff;
}

.ba-view button:disabled {
    color: var(--muted);
    cursor: not-allowed;
}

.ba-videos p { max-width: 40rem; }

.ba-footer {
    margin-top: 1rem;
    background: #292524;
    color: #f5f0e8;
}

.ba-footer h2 {
    margin: 0 0 0.55rem;
    color: #f5f0e8;
    font-size: 1.05rem;
}

.ba-footer a { color: #f6e7c4; text-decoration: none; }

.ba-footer a:hover { text-decoration: underline; }

.ba-footer ul { margin: 0; padding: 0; list-style: none; }

.ba-footer li + li { margin-top: 0.35rem; }

.ba-footer-grid {
    display: grid;
    gap: 1.3rem;
    padding: 1.6rem 0 1rem;
}

.ba-footer-base {
    padding: 0.8rem 0 1.2rem;
    border-top: 1px solid rgba(196, 161, 90, 0.45);
    color: #e7e5e4;
    font-size: 0.92rem;
}

@media (min-width: 640px) {
    .ba-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-card-grid,
    .ba-benefit-grid,
    .ba-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 800px) {
    .ba-hero-panel { padding: 2rem 2rem 1.7rem; }
    .ba-hero-city,
    .ba-hero-search {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
    .ba-hero-city label,
    .ba-hero-search label { grid-column: 1 / -1; }
    .ba-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
    .ba-header-bar { min-height: 76px; gap: 0.8rem; }
    .ba-logo-full { font-size: 1.32rem; }
    .ba-logo { width: auto; max-width: 300px; }
    .ba-city-form { flex: 0 0 12.5rem; max-width: none; }
    .ba-header-tools {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-left: auto;
        min-width: 0;
    }
    .ba-header-search { width: 11.5rem; }
    .ba-text-link {
        color: var(--charcoal);
        font-weight: 650;
        text-decoration: none;
        white-space: nowrap;
    }
    .ba-menu { display: none; }
    .ba-desktop-nav-wrap { display: block; padding-bottom: 0.55rem; }
    .ba-desktop-nav {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        flex-wrap: wrap;
    }
    .ba-desktop-nav a {
        color: var(--charcoal);
        font-weight: 650;
        text-decoration: none;
    }
    .ba-desktop-nav .ba-theme { margin-left: auto; }
    .ba-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ba-city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ba-benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1079px) {
    .ba-logo-rule { display: none; }
    .ba-logo-mark { width: 40px; height: 40px; flex-basis: 40px; }
    .ba-logo { height: 44px; }
    .ba-logo-full { font-size: 1rem; }
}

@media (max-width: 420px) {
    .ba-wrap { width: min(1120px, calc(100% - 1rem)); }
    .ba-logo-full { display: none; }
    .ba-logo-short { display: inline; font-size: 0.98rem; }
    .ba-logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
    .ba-city-form { flex-basis: 7.4rem; }
    .ba-city-form button { padding-inline: 0.55rem; }
    .ba-header-bar { gap: 0.4rem; }
}

@media (min-width: 1280px) {
    .ba-city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ba-header-search { width: 15rem; }
}
