/*
Theme Name: Building A Drink
Description: Building A Drink's photo backgrounds, gold script headings, and Montserrat typography for Recipe Buddy.
Version: 0.2.5
Template: twentytwentyfive
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: building-a-drink
License: GPL-2.0-or-later
*/

body { background: #000; color: #f3f3f3; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
a { text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid #c7a055; outline-offset: 4px;
}
.bad-site-header {
    background: #000 url('assets/header-glassware.webp') repeat-x center bottom;
    border-bottom: 1px solid #28251e;
}
.bad-header-inner {
    max-width: 994px; min-height: 150px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr 300px 1fr; align-items: center; gap: 12px;
}
.bad-brand { display: block; line-height: 0; }
.bad-brand img { width: 300px; height: 150px; object-fit: contain; max-width: 100%; }
.bad-tagline { margin: 0; align-self: start; padding-top: 24px; font-size: .875rem; line-height: 1.5; }
.bad-header-nav { text-align: right; font-size: 1rem; }
.bad-header-nav a { display: inline-block; padding: 12px 0; }
.bad-recipe-main { margin: 0; }
.bad-recipe-background.wp-block-cover {
    box-sizing: border-box; max-width: 994px; width: 100%; margin: 0 auto;
    min-height: calc(100svh - 150px); padding: clamp(28px, 5vw, 64px) clamp(24px, 3.2vw, 36px);
    align-items: flex-start; background: #080808;
}
.bad-recipe-background .wp-block-cover__image-background { object-position: 75% 50%; }
.bad-recipe-background > .wp-block-cover__background {
    background: linear-gradient(100deg, rgba(0,0,0,.76), rgba(0,0,0,.56)); opacity: 1;
}
.bad-recipe-background .wp-block-cover__inner-container { width: 100%; min-width: 0; }
.bad-recipe-title.wp-block-post-title {
    font-family: 'Dancing Script', cursive; font-weight: 700;
    font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.2; color: #c7a055;
    margin: 0 0 28px; overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.bad-recipe-background .wp-block-post-content {
    font-family: 'Montserrat', sans-serif; font-size: 1.166667rem; line-height: 1.5; color: #f3f3f3;
}
.bad-recipe-background .wp-block-post-content > :first-child { margin-top: 0; }
.bad-recipe-background .wp-block-post-content p { margin-block: 0 1.5rem; }
.bad-recipe-background a, .bad-directory-main a { color: #c7a055; }
.bad-recipe-background a:hover, .bad-directory-main a:hover { color: #e6c78e; }
.bad-recipe-background .tbfr-recipe {
    --tbfr-line: rgba(199,160,85,.3); --tbfr-accent: #c7a055;
    border: 0; padding: 0; margin-top: 1.5rem;
}
.bad-recipe-background .tbfr-recipe h2 {
    font: 700 1.166667rem/1.5 'Montserrat', sans-serif;
    text-transform: uppercase; color: #f3f3f3; margin-bottom: .35rem;
}
.bad-recipe-background .tbfr-recipe section + section { margin-top: 2rem; }
.bad-recipe-background .tbfr-recipe .tbfr-ingredients { list-style: disc; padding-left: 1.4rem; }
.bad-recipe-background .tbfr-ingredients li { display: list-item; border: 0; padding: .18rem 0; }
.bad-recipe-background .tbfr-shop { margin-left: .5rem; font-size: .875rem; }
.bad-recipe-background .tbfr-shop [aria-hidden] { display: none; }
.tbfr-shop:has(> .bad-amazon-shop-logo) { display: inline-flex; align-items: center; justify-content: center; padding: 5px; vertical-align: middle; line-height: 1; }
.bad-amazon-shop-logo { display: block; width: 20px; height: 20px; max-width: none; }
.bad-recipe-background .tbfr-disclosure { font-size: .875rem; line-height: 1.6; margin-top: 1rem; }
.bad-recipe-background .tbfr-steps { padding-left: 1.6rem; }
.bad-recipe-background .tbfr-steps li { margin-bottom: .45rem; padding-left: .2rem; }
.bad-page-main { max-width: 994px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 24px; min-height: 55vh; }
.bad-page-main > h1 { margin-top: 0; }
.bad-not-found { position: relative; isolation: isolate; display: grid; align-items: center; min-height: max(680px, calc(100svh - 150px)); padding: 64px 32px; box-sizing: border-box; background: #07191b; }
.bad-404-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; z-index: 0; }
.bad-not-found::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #020c10ed 0%, #020c10c9 32%, #020c1066 53%, #020c1010 78%); }
.bad-404-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; }
.bad-404-copy { max-width: 480px; color: #f3f3f3; font-size: 1.0625rem; line-height: 1.7; }
.bad-404-copy > * { margin-block: 0 24px; }
.bad-404-copy > :last-child { margin-bottom: 0; }
.bad-404-copy .bad-404-code { font-size: .875rem; font-weight: 700; letter-spacing: .14em; color: #e6c78e; }
.bad-404-copy h1 { font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.12; text-wrap: balance; color: #e6c78e; }
.bad-404-actions { gap: 12px; margin-block: 32px 24px; }
.bad-404-actions .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 12px 20px; border: 1px solid #c7a055; border-radius: 4px; font: 700 1rem/1.5 'Montserrat', sans-serif; text-decoration: none; }
.bad-404-primary .wp-block-button__link { background: #c7a055; color: #090909; }
.bad-404-primary .wp-block-button__link:hover { background: #e6c78e; border-color: #e6c78e; color: #090909; }
.bad-404-secondary .wp-block-button__link { background: #020c1080; color: #f3f3f3; }
.bad-404-secondary .wp-block-button__link:hover { background: #2b2419; color: #e6c78e; }
.bad-404-copy .bad-404-builder-link { font-size: 1rem; }
.bad-404-copy a:not(.wp-block-button__link) { color: #e6c78e; }
@media (min-width: 701px) and (max-width: 1000px) {
    .bad-404-image { object-position: 75% center; }
    .bad-not-found::before { background: linear-gradient(90deg, #020c10ed 0%, #020c10c9 38%, #020c1080 67%, #020c1010 100%); }
}
@media (max-width: 700px) {
    .bad-not-found { min-height: 800px; align-items: end; padding: 280px 24px 48px; }
    .bad-404-image { object-position: 78% top; }
    .bad-not-found::before { background: linear-gradient(180deg, #020c1010 0%, #020c1033 23%, #020c10cc 45%, #020c10f5 75%); }
    .bad-404-copy { max-width: 480px; font-size: 1rem; }
    .bad-404-copy h1 { font-size: 2.6rem; }
    .bad-404-actions .wp-block-button { width: 100%; }
    .bad-404-actions .wp-block-button__link { width: 100%; }
}
.tbfr-builder {
    --rb-bg: #000; --rb-panel: #14110d; --rb-field: #070706; --rb-text: #f3f3f3;
    --rb-muted: #d4cdc2; --rb-line: #655235; --rb-accent: #c7a055; --rb-on-accent: #090909;
}
.tbfr-builder h2 { font-family: 'Dancing Script', cursive; color: #c7a055; font-size: 2.1rem; }
.tbfr-builder .tbfr-preview h2 { font-size: 2.8rem; }
.tbfr-builder h3 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; }
.bad-guide-content { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.bad-guide-content h2 { margin: 2.5rem 0 1rem; font-size: clamp(2rem, 3.2vw, 2.6rem); }
.bad-guide-content h3 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.bad-guide-content > :first-child { margin-top: 0; }
.bad-guide-content p { margin: 0 0 1.25rem; }
.bad-guide-content li { margin-bottom: .65rem; }
.bad-guide-content li > ul, .bad-guide-content li > ol { margin-top: .5rem; }
.bad-guide-content ul, .bad-guide-content ol { padding-left: 1.5rem; }
.bad-guide-content img { max-width: 100%; height: auto; vertical-align: middle; }
.bad-guide-content a { overflow-wrap: anywhere; }
.bad-guide-content a:has(> img[width="20"]) { display: inline-block; padding: 5px; }
.bad-guide-content .bad-random-products { margin: 2rem 0; }
.bad-guide-table { max-width: 100%; overflow-x: auto; margin: 2rem 0; }
.bad-guide-table:focus-visible { outline: 2px solid #c7a055; outline-offset: 3px; }
.bad-guide-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; overflow-wrap: normal; }
.bad-guide-table caption { text-align: left; font: 700 2.5rem/1.3 'Dancing Script', cursive; color: #c7a055; padding: 0 0 18px; }
.bad-guide-table th, .bad-guide-table td { border: 1px solid #655235; padding: 14px; text-align: left; }
.bad-guide-table thead { color: #e6c78e; background: #221d14; }
.bad-guide-table tbody tr:nth-child(even) { background: #ffffff08; }
.bad-guide-book { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 32px; padding: 2.5rem 0; border-top: 1px solid #51422b; }
.bad-book-card { padding: 22px 18px; background: #fff; text-align: center; }
.bad-book-card > a { display: block; color: #0066a0; font: 400 .875rem/1.5 Arial, sans-serif; }
.bad-book-card > a:first-child { margin-bottom: 18px; }
.bad-book-card img { width: auto; max-width: 100%; height: 210px; object-fit: contain; }
.bad-book-copy, .bad-book-copy > h2:first-child { margin-top: 0; }
.bad-book-copy > h2:first-child { font-size: 2rem; }
.bad-guide-search { margin: 2rem 0; padding: 20px; background: #100e0c; border: 1px solid #51422b; }
.bad-guide-search label { display: block; margin-bottom: 8px; font-weight: 700; }
.bad-guide-search > div { display: flex; gap: 10px; }
.bad-guide-search input { flex: 1; min-width: 0; padding: 12px; color: #f3f3f3; background: #080808; border: 1px solid #84704b; font: inherit; }
.bad-guide-search button { padding: 12px 18px; border: 0; background: #c7a055; color: #090909; font: inherit; font-weight: 700; cursor: pointer; }
.bad-guide-search button:hover { background: #e6c78e; }
.tbfr-directory { --tbfr-line: #51422b; --tbfr-accent: #c7a055; }
.tbfr-filters { background: #12100c; }
.tbfr-filters input, .tbfr-filters select { color: #f3f3f3; background: #080808; border-color: #84704b; }
.tbfr-filters button { color: #090909; background: #c7a055; font-weight: 700; }
.tbfr-filters button:hover { background: #e6c78e; }
.tbfr-tile { background: #0e0d0b; }
.tbfr-tile h2 { font: 700 1.7rem/1.3 'Dancing Script', cursive; color: #c7a055; }
.bad-site-footer { background: #000 url('assets/footer-bottles.webp') no-repeat center bottom / cover; }
.bad-footer-inner { max-width: 994px; margin: 0 auto; padding: 44px 24px 54px; text-align: center; }
.bad-footer-inner .bad-brand { width: 240px; margin: 0 auto 24px; }
.bad-footer-inner .bad-brand img { width: 240px; height: 120px; }
.bad-footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 1rem; }
.bad-copyright { font-size: .875rem; margin-top: 36px; }
.bad-social-links { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.bad-social-links a { display: grid; place-items: center; width: 44px; height: 44px; color: #f3f3f3; }
.bad-social-links a:hover { color: #c7a055; }
.bad-social-links svg { width: 28px; height: 28px; fill: currentColor; }
.bad-footer-inner .bad-social-links { justify-content: center; margin-top: 28px; }
.bad-credit { font-size: .875rem; margin: 20px 0 0; }
.bad-credit + .bad-copyright { margin-top: 8px; }
.bad-menu { position: fixed; z-index: 10000; top: calc(20px + var(--wp-admin--admin-bar--height, 0px)); right: 20px; }
.bad-menu > summary {
    box-sizing: border-box; display: grid; place-items: center; width: 52px; height: 52px;
    margin-left: auto; list-style: none; border: 1px solid #c7a055; border-radius: 50%;
    color: #c7a055; background: #0d0b08; cursor: pointer; box-shadow: 0 3px 18px #0008;
}
.bad-menu > summary::-webkit-details-marker { display: none; }
.bad-menu > summary:hover { background: #241c0f; }
.bad-hamburger { display: grid; gap: 5px; width: 22px; }
.bad-hamburger span { display: block; height: 2px; background: currentColor; }
.bad-menu[open] .bad-hamburger span:first-child { transform: translateY(7px) rotate(45deg); }
.bad-menu[open] .bad-hamburger span:nth-child(2) { opacity: 0; }
.bad-menu[open] .bad-hamburger span:last-child { transform: translateY(-7px) rotate(-45deg); }
.bad-menu-panel {
    box-sizing: border-box; width: min(390px, calc(100vw - 40px)); margin-top: 12px;
    max-height: calc(100dvh - 108px - var(--wp-admin--admin-bar--height, 0px)); overflow-y: auto;
    overscroll-behavior: contain; background: #10100f; border: 1px solid #6b5733;
    border-radius: 4px; box-shadow: 0 14px 50px #000a; padding: 12px;
}
.bad-menu-links, .bad-menu-links .sub-menu { padding: 0; margin: 0; list-style: none; }
.bad-menu-links .sub-menu { padding-left: 16px; }
.bad-menu-links a { display: block; padding: 13px 14px; font-size: 1rem; line-height: 1.45; text-decoration: none; }
.bad-menu-links a:hover, .bad-menu-links a:focus-visible, .bad-menu-links [aria-current="page"] { background: #2b2419; color: #efd7a7; }
.bad-home-main, .bad-home-main .wp-block-post-content > * { margin-block: 0; }
.bad-home-hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 680px; padding: 60px 24px; box-sizing: border-box; background: #10100d; }
.bad-photo-stage { position: absolute; inset: 0; overflow: hidden; }
.bad-photo-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0007, #0005, #0007); }
.bad-photo-slide { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.bad-photo-slide.is-active { opacity: 1; }
.bad-photo-toggle { position: absolute; bottom: 16px; right: 20px; z-index: 2; padding: 9px 14px; border: 1px solid #c7a055; border-radius: 2px; font: 400 .875rem/1.4 'Montserrat', sans-serif; color: #f3f3f3; background: #000c; cursor: pointer; }
.bad-photo-toggle[hidden] { display: none; }
.bad-hero-copy { position: relative; z-index: 1; text-align: center; max-width: 850px; text-shadow: 0 2px 16px #000; }
.bad-since { font: 400 1.5rem/1.4 'Dancing Script', cursive; margin: 0 0 12px; }
.bad-eyebrow { font-size: clamp(1.2rem, 2.6vw, 2.1rem); line-height: 1.3; text-transform: uppercase; margin: 0; }
.bad-hero-copy h1 { font-size: clamp(3.3rem, 7vw, 5.6rem); margin: 10px 0 20px; }
.bad-hero-subtitle { font-size: clamp(.875rem, 1.6vw, 1.1rem); letter-spacing: .12em; text-transform: uppercase; }
.bad-hero-cta { margin-top: 44px; }
.bad-recipe-link { display: inline-block; padding: 12px 0; font-size: 1.15rem; font-weight: 700; }
.bad-home-welcome { box-sizing: border-box; max-width: 1042px; margin-inline: auto; padding: 80px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 64px; align-items: center; }
.bad-welcome-copy h2, .bad-elements-inner > h2 { font-size: clamp(2.5rem, 4vw, 3rem); margin: 0 0 12px; }
.bad-section-subtitle { font-size: 1.3rem; margin: 0 0 24px; }
.bad-welcome-copy > p:not(.bad-section-subtitle) { line-height: 1.7; }
.bad-open-sign { margin: 0; }
.bad-open-sign img { display: block; width: 100%; height: auto; aspect-ratio: 305 / 470; }
.bad-home-divider { position: relative; height: 300px; background: #10100d; }
.bad-home-divider .bad-photo-stage::after { background: #0002; }
.bad-home-elements { background: #080808 url('assets/back-wood.webp') no-repeat center / cover; }
.bad-elements-inner { box-sizing: border-box; position: relative; max-width: 1042px; margin: 0 auto; padding: 72px 24px 84px; }
.bad-elements-inner > h2 { text-align: center; margin-bottom: 50px; }
.bad-elements-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 120px; row-gap: 38px; }
.bad-cocktail-element { margin: 0; }
.bad-cocktail-element h3 { font: 700 1.1rem/1.5 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; }
.bad-cocktail-element p { margin: 0; font-size: 1.05rem; line-height: 1.7; }
.bad-elements-flourish { position: absolute; width: 60px; height: auto; left: calc(50% - 30px); top: 50%; transform: translateY(-25%); }
.bad-recipe-extras { margin-top: 3rem; }
.bad-recipe-bottom > p { margin: 0 0 1.6rem; }
.bad-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bad-product-card { min-width: 0; background: #fff; border: 1px solid #eee; }
.bad-product-card > a {
    box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
    min-height: 256px; width: 100%; padding: 26px 16px 24px;
    font: 14px/1.4 Arial, Helvetica, sans-serif; color: #0073bb; text-decoration: none;
}
.bad-product-card > a:hover { color: #b45300; }
.bad-product-card > a:focus-visible { outline-offset: -4px; }
.bad-product-card > a:hover .bad-product-title { text-decoration: underline; }
.bad-product-image { display: block; width: 150px; max-width: 100%; height: 150px; object-fit: contain; margin-bottom: 18px; }
.bad-product-title { display: block; width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.bad-product-prime {
    display: block; flex: 0 0 15px; width: 52px; height: 15px; margin-top: 8px;
    background: url('https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUIBaseCSS-sprite_2x_weblab_AUI_100106_T1-4e9f4ae74b1b576e5f55de370aae7aedaedf390d._V2_.png') no-repeat -192px -911px / 560px 938px;
}
@media (max-width: 650px) {
    .bad-header-inner { min-height: 150px; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; padding: 8px 20px; }
    .bad-tagline { display: none; }
    .bad-header-inner .bad-brand img { width: 230px; height: 115px; }
    .bad-header-nav { font-size: .875rem; }
    .bad-header-inner > .bad-social-links { padding-top: 58px; }
    .bad-menu { top: calc(14px + var(--wp-admin--admin-bar--height, 0px)); right: 14px; }
    .bad-menu-panel { width: min(390px, calc(100vw - 28px)); }
    .bad-home-hero { min-height: 560px; padding: 48px 22px 72px; }
    .bad-hero-copy h1 { font-size: 3.4rem; }
    .bad-home-welcome { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
    .bad-open-sign { width: min(100%, 260px); justify-self: center; }
    .bad-home-divider { height: 210px; }
    .bad-elements-inner { padding: 48px 24px; }
    .bad-elements-grid { grid-template-columns: 1fr; gap: 32px; }
    .bad-elements-inner > h2 { margin-bottom: 32px; }
    .bad-elements-flourish { display: none; }
    .bad-guide-book { grid-template-columns: 1fr; gap: 24px; }
    .bad-book-card { width: min(220px, 100%); box-sizing: border-box; justify-self: center; }
    .bad-guide-content { font-size: 1rem; }
    .bad-guide-search { padding: 14px; }
    .bad-guide-search > div { flex-wrap: wrap; }
    .bad-recipe-background.wp-block-cover { padding: 32px 22px; }
    .bad-recipe-background .wp-block-post-content { font-size: 1rem; line-height: 1.65; }
    .bad-recipe-background .tbfr-recipe h2 { font-size: 1rem; }
    .bad-recipe-background > .wp-block-cover__background { background: rgba(0,0,0,.72); }
    .bad-recipe-extras { font-size: 1rem; line-height: 1.65; }
    .bad-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bad-product-card > a { padding-inline: 10px; }
}
@media (min-width: 651px) and (max-width: 850px) {
    .bad-home-welcome { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
    .bad-elements-grid { column-gap: 80px; }
}
@media (prefers-reduced-motion: reduce) { .bad-photo-slide { transition: none; } }
@media print {
    body { color: #000; background: #fff; }
    .bad-site-header, .bad-site-footer, .bad-product-grid, .bad-recipe-background > .wp-block-cover__image-background,
    .bad-recipe-background > .wp-block-cover__background, .bad-menu, .bad-photo-stage { display: none; }
    .bad-recipe-background.wp-block-cover { display: block; background: #fff; min-height: 0; padding: 0; }
    .bad-recipe-background .bad-recipe-title, .bad-recipe-background .wp-block-post-content,
    .bad-recipe-background .tbfr-recipe h2, .bad-recipe-background a, .bad-recipe-bottom { color: #000; text-shadow: none; }
}
