:root {
    --byow-ink: #21171a;
    --byow-muted: #66575c;
    --byow-red: #7a1731;
    --byow-red-deep: #45101f;
    --byow-rose: #d97a91;
    --byow-white-wine: #f3cf72;
    --byow-cream: #fff8ed;
    --byow-paper: #fdf6f0;
    --byow-line: #ead8cf;
    --byow-green: #315145;
    --byow-white: #ffffff;
}

.byow-body {
    margin: 0;
    color: var(--byow-ink);
    background: var(--byow-paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.byow-body a {
    color: inherit;
}

.byow-body a,
.byow-body button {
    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease,
        opacity .18s ease;
}

.byow-body a:focus-visible,
.byow-body button:focus-visible,
.byow-filters input:focus-visible,
.byow-filters select:focus-visible {
    outline: 3px solid rgba(217, 122, 145, .62);
    outline-offset: 3px;
}

.byow-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem clamp(1rem, 4vw, 3.5rem);
    background: rgba(253, 246, 240, .94);
    border-bottom: 1px solid var(--byow-line);
    backdrop-filter: blur(14px);
}

.byow-brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
}

.byow-brand:hover {
    color: var(--byow-red-deep);
}

.byow-brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--byow-cream);
    background: var(--byow-red);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(122, 23, 49, .18);
    transition:
        background-color .18s ease,
        box-shadow .18s ease,
        transform .22s ease;
}

.byow-brand-mark svg {
    width: 28px;
    height: 28px;
}

.byow-brand:hover .byow-brand-mark {
    background: var(--byow-red-deep);
    box-shadow: 0 14px 30px rgba(69, 16, 31, .24);
    transform: rotate(-4deg) scale(1.04);
}

.byow-brand strong {
    display: block;
    font-size: clamp(1.08rem, 2vw, 1.42rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.byow-language-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .75rem;
    border: 1px solid var(--byow-line);
    border-radius: 8px;
    color: var(--byow-red-deep);
    background: var(--byow-white);
    font-weight: 900;
    text-decoration: none;
}

.byow-language-link:hover {
    border-color: rgba(122, 23, 49, .42);
    color: var(--byow-red);
    background: #fff2f4;
    box-shadow: 0 12px 26px rgba(33, 23, 26, .1);
    transform: translateY(-2px);
}

.byow-hero,
.byow-why,
.byow-photo-band,
.byow-guide,
.byow-articles,
.byow-cta,
.byow-address-hero,
.byow-listing {
    padding-inline: clamp(1rem, 4vw, 3.5rem);
}

.byow-hero {
    display: grid;
    grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr);
    gap: clamp(1.35rem, 3vw, 3rem);
    align-items: center;
    min-height: auto;
    padding-block: clamp(1.15rem, 2.6vh, 2.1rem);
}

.byow-hero-media {
    --byow-hero-media-max-height: calc(100svh - 7.25rem);
    display: grid;
    gap: .55rem;
    max-width: 500px;
    max-height: var(--byow-hero-media-max-height);
}

.byow-hero-main,
.byow-hero-stack img,
.byow-photo-band img,
.byow-restaurant-image img {
    width: 100%;
    object-fit: cover;
}

.byow-hero-main {
    aspect-ratio: 16 / 6.8;
    max-height: calc(65svh - 5rem);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(69, 16, 31, .2);
}

.byow-hero-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
}

.byow-hero-stack img {
    aspect-ratio: 16 / 6.8;
    max-height: calc(35svh - 2.8rem);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(69, 16, 31, .12);
}

.byow-hero-copy {
    padding-top: clamp(1rem, 4.5vh, 3.25rem);
}

.byow-kicker {
    margin: 0 0 .85rem;
    color: var(--byow-red);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.byow-hero h1 {
    max-width: 860px;
    margin: 0;
    color: var(--byow-red-deep);
    font-size: clamp(2.25rem, 5.2vw, 5.1rem);
    font-weight: 950;
    line-height: .96;
    letter-spacing: 0;
}

.byow-lead {
    max-width: 740px;
    margin: 1rem 0 0;
    color: #433338;
    font-size: clamp(1.1rem, 1.8vw, 1.32rem);
    line-height: 1.65;
}

.byow-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.15rem;
}

.byow-button,
.byow-button-secondary,
.byow-filter-actions button,
.byow-filter-actions a,
.byow-pagination a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.byow-button {
    border: 1px solid var(--byow-red-deep);
    color: #fff8ed !important;
    background: var(--byow-red-deep);
}

.byow-button:visited,
.byow-button i {
    color: #fff8ed !important;
}

.byow-filter-actions button,
.byow-pagination a {
    border: 1px solid var(--byow-red);
    color: var(--byow-white);
    background: var(--byow-red);
}

.byow-button-secondary,
.byow-filter-actions a {
    border: 1px solid var(--byow-line);
    color: var(--byow-red-deep);
    background: var(--byow-white);
}

.byow-button,
.byow-button-secondary {
    padding: .72rem 1.05rem;
}

.byow-button:hover {
    border-color: #2f0a14;
    color: #fff8ed !important;
    background: #2f0a14;
    box-shadow: 0 16px 34px rgba(69, 16, 31, .24);
    transform: translateY(-2px);
}

.byow-filter-actions button:hover,
.byow-pagination a:hover {
    border-color: var(--byow-red-deep);
    color: var(--byow-white);
    background: var(--byow-red-deep);
    box-shadow: 0 16px 34px rgba(69, 16, 31, .24);
    transform: translateY(-2px);
}

.byow-button i {
    color: currentColor;
}

.byow-button-secondary:hover,
.byow-filter-actions a:hover {
    border-color: var(--byow-rose);
    color: var(--byow-red);
    background: #fff2f4;
    box-shadow: 0 14px 30px rgba(217, 122, 145, .14);
    transform: translateY(-2px);
}

.byow-count {
    margin: 1rem 0 0;
    color: #8b304a;
    font-weight: 900;
}

.byow-why,
.byow-articles,
.byow-guide,
.byow-listing {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.byow-section-heading {
    max-width: 980px;
    margin-bottom: 1.35rem;
}

.byow-section-heading h2,
.byow-photo-band h2,
.byow-cta h2 {
    margin: 0;
    color: var(--byow-red-deep);
    font-size: clamp(1.85rem, 3.2vw, 3.5rem);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: 0;
}

.byow-story-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.byow-story-grid article,
.byow-wine-grid article,
.byow-empty {
    border: 1px solid var(--byow-line);
    border-radius: 8px;
    background: var(--byow-white);
    box-shadow: 0 8px 24px rgba(33, 23, 26, .04);
}

.byow-story-grid article {
    min-height: 250px;
    padding: 1rem;
}

.byow-story-grid span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--byow-red-deep);
    background: #fde7ec;
    border-radius: 8px;
    margin-bottom: .85rem;
}

.byow-bottle-icon {
    width: 25px;
    height: 25px;
}

.byow-story-symbol {
    font-style: normal;
    font-weight: 950;
    font-size: 1.3rem;
    line-height: 1;
}

.byow-story-grid h3,
.byow-wine-grid h3,
.byow-empty h2 {
    margin: 0;
    color: var(--byow-red-deep);
    font-size: 1.25rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.byow-story-grid p,
.byow-wine-grid p,
.byow-article-card p,
.byow-photo-band p,
.byow-cta p,
.byow-empty p {
    margin: .75rem 0 0;
    color: var(--byow-muted);
    line-height: 1.65;
}

.byow-article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.byow-article-card {
    overflow: hidden;
    border: 1px solid var(--byow-line);
    border-radius: 8px;
    background: var(--byow-white);
    box-shadow: 0 10px 28px rgba(33, 23, 26, .05);
}

.byow-article-image {
    display: block;
    overflow: hidden;
    background: #ead8cf;
}

.byow-article-image img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    transition: transform .2s ease;
}

.byow-article-card:hover .byow-article-image img {
    transform: scale(1.035);
}

.byow-article-content {
    display: grid;
    gap: .55rem;
    padding: .85rem;
}

.byow-article-content h3 {
    margin: 0;
    color: var(--byow-red-deep);
    font-size: 1.08rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.byow-article-content h3 a,
.byow-article-link {
    text-decoration: none;
}

.byow-article-content h3 a:hover,
.byow-article-link:hover {
    color: var(--byow-red);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.byow-article-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--byow-red);
    font-weight: 900;
}

.byow-photo-band {
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding-block: clamp(3rem, 6vw, 5rem);
    color: var(--byow-cream);
    background: var(--byow-red-deep);
}

.byow-photo-band img {
    aspect-ratio: 16 / 11;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.byow-photo-band h2 {
    color: var(--byow-cream);
}

.byow-photo-band p {
    max-width: 780px;
    color: rgba(255, 248, 237, .84);
    font-size: 1.08rem;
}

.byow-wine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.byow-wine-grid article {
    min-height: 190px;
    padding: 1.1rem;
    position: relative;
    overflow: hidden;
}

.byow-wine-grid article::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
}

.byow-wine-grid h3,
.byow-wine-grid p {
    position: relative;
}

.byow-white::before {
    background: linear-gradient(135deg, var(--byow-white-wine), transparent 60%);
}

.byow-rose::before {
    background: linear-gradient(135deg, var(--byow-rose), transparent 60%);
}

.byow-red::before {
    background: linear-gradient(135deg, var(--byow-red), transparent 60%);
}

.byow-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 2.5rem;
    border-top: 1px solid var(--byow-line);
    background: var(--byow-cream);
}

.byow-cta div {
    max-width: 850px;
}

.byow-address-hero {
    padding-block: clamp(2.5rem, 6vw, 5rem) 1.5rem;
}

.byow-address-hero h1 {
    max-width: 980px;
    margin: 0;
    color: var(--byow-red-deep);
    font-size: clamp(2.1rem, 5vw, 4.6rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
}

.byow-address-hero p:not(.byow-kicker) {
    max-width: 760px;
    margin: 1rem 0 0;
    color: var(--byow-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.byow-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(145px, 1fr)) auto;
    gap: .75rem;
    align-items: end;
    padding: 1rem;
    border: 1px solid var(--byow-line);
    border-radius: 8px;
    background: var(--byow-white);
}

.byow-filters label {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.byow-filters span {
    color: var(--byow-muted);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.byow-filters input,
.byow-filters select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--byow-line);
    border-radius: 8px;
    padding: .55rem .7rem;
    color: var(--byow-ink);
    background: #fff;
}

.byow-filter-actions {
    display: flex;
    gap: .5rem;
}

.byow-filter-actions button,
.byow-filter-actions a {
    padding-inline: .9rem;
    white-space: nowrap;
}

.byow-active-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin-top: 1rem;
    padding: .75rem .9rem;
    border: 1px solid #f0ccd5;
    border-radius: 8px;
    background: #fff1f4;
}

.byow-active-filter span {
    color: var(--byow-red-deep);
    font-weight: 900;
    text-transform: capitalize;
}

.byow-active-filter a {
    color: var(--byow-red);
    font-weight: 900;
    text-decoration: none;
}

.byow-results-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin: 1.35rem 0;
    color: var(--byow-muted);
}

.byow-results-meta strong {
    color: var(--byow-red-deep);
}

.byow-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.byow-restaurant article {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--byow-line);
    border-radius: 8px;
    background: var(--byow-white);
}

.byow-restaurant-image {
    display: block;
    overflow: hidden;
    background: #ead8cf;
}

.byow-restaurant-image img {
    aspect-ratio: 16 / 10.5;
    transition: transform .2s ease;
}

.byow-restaurant article:hover img {
    transform: scale(1.035);
}

.byow-restaurant-content {
    display: grid;
    gap: .72rem;
    padding: 1rem;
}

.byow-restaurant-location {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    color: var(--byow-red);
    font-size: .86rem;
    font-weight: 900;
}

.byow-restaurant h2 {
    margin: 0;
    color: var(--byow-red-deep);
    font-size: 1.35rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.byow-restaurant h2 a,
.byow-active-filter a {
    text-decoration: none;
}

.byow-restaurant h2 a:hover,
.byow-active-filter a:hover {
    color: var(--byow-red);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.byow-address,
.byow-summary {
    margin: 0;
    color: var(--byow-muted);
    line-height: 1.5;
}

.byow-rating {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #b88715;
    font-weight: 900;
}

.byow-rating span:last-child {
    color: var(--byow-muted);
}

.byow-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.byow-badges span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .55rem;
    border: 1px solid #f0ccd5;
    border-radius: 999px;
    color: var(--byow-red-deep);
    background: #fff1f4;
    font-size: .82rem;
    font-weight: 900;
}

.byow-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding-top: .25rem;
}

.byow-card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    min-height: 40px;
    padding: .48rem .72rem;
    border: 1px solid var(--byow-red);
    border-radius: 8px;
    color: var(--byow-white);
    background: var(--byow-red);
    font-size: .9rem;
    font-weight: 900;
    text-decoration: none;
}

.byow-card-actions a:nth-child(2) {
    border-color: var(--byow-green);
    background: var(--byow-green);
}

.byow-card-actions a:hover {
    border-color: var(--byow-red-deep);
    background: var(--byow-red-deep);
    box-shadow: 0 12px 26px rgba(33, 23, 26, .16);
    transform: translateY(-2px);
}

.byow-empty {
    padding: 2rem;
}

.byow-empty p {
    color: var(--byow-muted);
}

.byow-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.byow-pagination a {
    padding: .65rem .95rem;
}

.byow-pagination span {
    color: var(--byow-muted);
    font-weight: 800;
}

.byow-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.2rem clamp(1rem, 4vw, 3.5rem);
    color: rgba(255, 248, 237, .82);
    background: var(--byow-ink);
}

.byow-footer a {
    color: var(--byow-cream);
    font-weight: 800;
    text-decoration: none;
}

.byow-footer a:hover {
    color: var(--byow-white-wine);
    text-decoration: underline;
    text-underline-offset: .22em;
}

@media (prefers-reduced-motion: reduce) {
    .byow-body a,
    .byow-body button,
    .byow-brand-mark,
    .byow-article-image img,
    .byow-restaurant-image img {
        transition: none;
    }

    .byow-brand:hover,
    .byow-brand:hover .byow-brand-mark,
    .byow-language-link:hover,
    .byow-button:hover,
    .byow-button-secondary:hover,
    .byow-article-card:hover .byow-article-image img,
    .byow-card-actions a:hover,
    .byow-filter-actions button:hover,
    .byow-filter-actions a:hover,
    .byow-pagination a:hover {
        transform: none;
    }
}

@media (max-width: 1100px) {
    .byow-hero,
    .byow-photo-band {
        grid-template-columns: 1fr;
    }

    .byow-story-grid,
    .byow-article-grid,
    .byow-restaurant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .byow-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .byow-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .byow-nav {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .byow-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 2.5rem;
    }

    .byow-hero-copy {
        padding-top: 0;
    }

    .byow-hero-media,
    .byow-hero-main,
    .byow-hero-stack img {
        max-height: none;
    }

    .byow-hero h1 {
        font-size: clamp(2.25rem, 12vw, 4rem);
    }

    .byow-hero-stack,
    .byow-story-grid,
    .byow-wine-grid,
    .byow-article-grid,
    .byow-restaurant-grid,
    .byow-filters {
        grid-template-columns: 1fr;
    }

    .byow-story-grid article,
    .byow-wine-grid article {
        min-height: 0;
    }

    .byow-filter-actions,
    .byow-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .byow-filter-actions a,
    .byow-filter-actions button,
    .byow-cta a {
        width: 100%;
    }
}
