/*
Theme Name: BEEEEER — Version 2
Author: BEEEEER.COM
Description: The approved BEEEEER design with supplied illustrations and BEEEEER Core integration.
Version: 2.3.24
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: beeeeer-v2
*/
@font-face { font-family: 'Patrick Hand'; src: url('assets/fonts/patrick-hand.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/barlow-condensed-regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('assets/fonts/barlow-condensed-semibold.ttf') format('truetype'); font-style: normal; font-weight: 600; font-display: swap; }

:root {
    --ink: #11151a;
    --yellow: #ffda32;
    --paper: #fffef8;
    --blue: #e6f7fc;
    --cream: #fffbe6;
    --green: #effbed;
    --pink: #fff0f5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 20px; line-height: 1.45; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #16658b; outline-offset: 4px; }
.wrap { max-width: 1280px; margin: auto; padding: 20px 32px; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 8px; background: #fff; z-index: 10; padding: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.brand { display: block; width: 440px; flex: 0 1 440px; min-width: 230px; }
.brand img { width: 100%; height: auto; }
.site-header nav { min-width: 0; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 16px; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover, .footer-nav a:hover { text-decoration: underline; }
.button, button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; background: var(--yellow); border: 2px solid var(--yellow); padding: 10px 21px; border-radius: 10px; font-weight: 600; text-decoration: none; color: #111; cursor: pointer; line-height: 1.3; }
.button:hover, button:hover { background: #ffe568; border-color: #ffe568; }
.button.outline { border-color: #111; background: transparent; }
.button.outline:hover { background: #fff; }
.site-header > .button { white-space: nowrap; font-size: 17px; padding: 10px 15px; flex-shrink: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero { display: grid; grid-template-columns: 43% 57%; align-items: center; gap: 0; margin-bottom: 34px; }
.hero > *, .grid > *, .trade-content > * { min-width: 0; }
.eyebrow { font-family: 'Patrick Hand', cursive; font-weight: bold; font-size: 20px; text-transform: uppercase; display: inline-block; border-bottom: 5px solid var(--yellow); padding-bottom: 2px; }
h1, h2, h3 { font-family: 'Patrick Hand', cursive; color: #080a0b; line-height: 1.08; }
h1 { font-size: clamp(52px, 6.2vw, 80px); letter-spacing: -1.5px; margin: 10px 0 22px; }
h1 mark { display: inline-block; background: var(--yellow); border-radius: 19px; padding: 0 10px 7px; font-size: .84em; transform: rotate(-1.5deg); }
h2 { font-size: 32px; margin: 0 0 16px; }
h2 span { display: inline; background: linear-gradient(transparent 86%, var(--yellow) 86%); padding-bottom: 5px; }
h3 { font-size: 29px; margin: 6px 0 12px; }
p { margin: 10px 0; }
.hero-intro { max-width: 450px; font-size: 22px; }
.hero .button { font-size: 19px; padding: 11px 16px; }
.hero-art { width: 100%; height: auto; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border-radius: 22px; padding: 26px; background: var(--cream); margin-bottom: 18px; }
.blue { background: var(--blue); }
.green { background: var(--green); }
.pink { background: var(--pink); }
.trade-content { display: grid; grid-template-columns: 44% 1fr; gap: 18px; align-items: center; }
.trade-content .art { width: 100%; height: auto; object-fit: contain; }
.trade-content h3 { font-size: 27px; overflow-wrap: anywhere; }
.section-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.section-head small { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; white-space: nowrap; }
.guess-layout { display: flex; gap: 18px; align-items: center; }
.guess-number { font-family: 'Patrick Hand', cursive; font-size: 42px; }
.muted { font-size: 17px; color: #414953; }
.section-heading { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { margin: 0 0 10px; }
.journey-current { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 12px 0 22px; }
.journey-current h3 { overflow-wrap: anywhere; }
.journey-current .eyebrow { font-size: 17px; border: 0; }
.history-title { font-size: 24px; }
.journey-panel ol { margin-bottom: 0; padding-left: 25px; }
.journey-panel li { padding: 6px 0; }
.teaser-grid .panel { display: flex; flex-direction: column; align-items: flex-start; }
.teaser-grid .actions { margin-top: auto; padding-top: 14px; }
.join { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.join p { max-width: 700px; }
.join .actions { flex-shrink: 0; margin-top: 0; }
.join > div > .actions { margin-top: 20px; }
.site-footer { font-size: 17px; display: flex; justify-content: space-between; gap: 24px; padding: 24px 4px 12px; }
.footer-tagline { font-family: 'Patrick Hand', cursive; font-size: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; padding: 0; }
.footer-nav a { text-decoration: none; }
.content { max-width: 850px; margin: 30px auto; min-height: 50vh; overflow-wrap: anywhere; }
.content h1 { font-size: 60px; }
.content h2 { margin-top: 28px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.badge { display: inline-block; border: 1px solid #777; border-radius: 20px; padding: 2px 12px; font-size: 16px; }
.form { display: grid; gap: 12px; max-width: 580px; }
.form label { display: grid; gap: 4px; }
.form input, .form textarea, .form select { width: 100%; padding: 10px; border: 1px solid #92958b; border-radius: 8px; background: #fff; }
.form textarea { min-height: 130px; }
.trap { position: absolute; left: -10000px; }
.notice { padding: 14px; border: 2px solid #688467; border-radius: 10px; margin: 15px 0; }
.empty { border: 1px dashed #93978d; padding: 18px; border-radius: 12px; }
.wp-block-image img { height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (max-width: 1050px) {
    .site-header { flex-wrap: wrap; gap: 12px 24px; }
    .brand { flex: 0 1 440px; width: 440px; max-width: calc(100% - 125px); }
    .site-header nav { order: 3; width: 100%; }
    .nav { justify-content: center; gap: 14px 24px; font-size: 18px; }
    .hero-intro { font-size: 21px; }
    .hero .actions { gap: 10px; }
    .hero .button { font-size: 18px; padding: 10px 12px; }
    .trade-content { grid-template-columns: 40% 1fr; }
    .trade-content h3 { font-size: 24px; }
}
@media (max-width: 760px) {
    .wrap { padding: 16px 20px; }
    .site-header { margin-bottom: 30px; }
    .hero { grid-template-columns: 1fr; gap: 26px; }
    h1 { font-size: 65px; }
    .hero-intro { max-width: 100%; }
    .hero-art { max-width: 640px; margin: auto; }
    .grid { grid-template-columns: 1fr; gap: 0; }
    .trade-content { grid-template-columns: 42% 1fr; }
    .journey-current, .join { align-items: flex-start; flex-direction: column; }
    .journey-current { gap: 10px; }
    .site-footer { flex-direction: column; gap: 6px; }
    .section-heading { gap: 0; display: block; }
}
@media (max-width: 440px) {
    .wrap { padding: 12px 16px; }
    .brand { min-width: 0; max-width: 100%; width: 100%; flex-basis: 100%; }
    .site-header { justify-content: center; }
    .site-header nav { order: 0; }
    .nav { gap: 12px 16px; font-size: 17px; }
    h1 { font-size: 54px; }
    h1 mark { font-size: .8em; max-width: 100%; }
    h2 { font-size: 30px; }
    .panel { padding: 22px; }
    .trade-content { grid-template-columns: 1fr; gap: 14px; }
    .trade-content .art { width: 100%; max-width: 330px; margin: auto; }
    .trade-content h3 { font-size: 28px; }
    .guess-layout { flex-direction: column; align-items: flex-start; }
    .listing-grid { grid-template-columns: 1fr; }
    .content h1 { font-size: 48px; }
}

/* V2 refinements: the original colors, artwork and content remain intact. */
body { font-size: 21px; line-height: 1.55; }
.wrap { max-width: 1360px; }
.brand { width: 520px; flex: 0 0 520px; }
.site-header { gap: 24px; margin-bottom: 24px; }
.nav { font-size: 18px; gap: 16px; }
.nav a { display: inline-block; padding: 8px 0; }
.nav ul { list-style: none; padding-left: 16px; }
.site-header .site-navigation { flex: 1; }
.hero { grid-template-columns: 42% 58%; margin-bottom: 32px; }
.hero-intro { max-width: 470px; font-size: 22px; line-height: 1.5; }
.hero-intro p { margin: 0 0 12px; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-copy .actions { align-items: stretch; }
.hero-copy .actions .button { max-width: 100%; text-align: center; }
.hero h1 { font-size: clamp(52px, 5.9vw, 80px); }
.grid { gap: 20px; }
.panel { padding: 28px; margin-bottom: 20px; }
.trade-content { grid-template-columns: 34% minmax(0, 1fr); gap: 24px; }
.trade-content p { margin: 14px 0; }
.trade-content .actions { margin-top: 22px; gap: 10px; }
.trade-content h3 { font-size: 28px; }
.teaser-grid p { max-width: 58ch; }
.join p { max-width: 65ch; }
.content { max-width: 820px; }
.form { gap: 14px; }
.form input, .form select, .form button { min-height: 46px; }
.menu-toggle { display: none; }
@media (min-width: 761px) {
    .nav li { position: relative; }
    .nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 210px; padding: 12px; background: var(--paper); border: 1px solid var(--yellow); border-radius: 10px; z-index: 5; }
    .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: block; }
    .nav .sub-menu .sub-menu { left: 100%; top: 0; }
    .nav .sub-menu a { white-space: normal; }
}
@media (min-width: 1251px) {
    .trade-grid { grid-template-columns: minmax(0, calc(50% + 22px)) minmax(0, 1fr); }
    .trade-grid .trade-content { grid-template-columns: 230px minmax(0, 1fr); }
}
@media (max-width: 1250px) and (min-width: 761px) {
    .site-header { flex-wrap: wrap; gap: 8px 24px; }
    .site-header .brand { width: 470px; flex: 0 1 470px; max-width: calc(100% - 140px); }
    .site-header .site-navigation { order: 3; flex-basis: 100%; }
    .nav { justify-content: center; gap: 8px 24px; }
    .trade-content { grid-template-columns: 32% minmax(0, 1fr); gap: 18px; }
    .trade-content h3 { font-size: 26px; }
}
@media (max-width: 900px) {
    .trade-grid { grid-template-columns: 1fr; gap: 0; }
    .trade-content { grid-template-columns: 32% minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
    .wrap { padding: 16px 20px; }
    .site-header { flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
    .site-header .brand { width: 100%; max-width: 480px; flex: 0 1 100%; min-width: 0; margin: 0 auto; }
    .has-menu-js .menu-toggle { display: inline-flex; min-height: 46px; min-width: 90px; }
    .site-header .site-navigation { order: 4; flex: 0 0 100%; width: 100%; }
    .has-menu-js .site-navigation:not(.is-open) { display: none; }
    .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; font-size: 20px; }
    .nav a { display: block; padding: 10px 12px; min-height: 46px; white-space: normal; }
    .nav .sub-menu { padding-left: 16px; }
    .hero { grid-template-columns: 1fr; gap: 24px; }
    .hero h1 { font-size: 60px; }
    .hero-intro { font-size: 21px; max-width: 100%; }
    .panel { padding: 24px; }
    .trade-content { grid-template-columns: 32% minmax(0, 1fr); gap: 20px; }
    .join .actions { flex-shrink: 1; }
    .content { max-width: 100%; }
}
@media (max-width: 480px) {
    body { font-size: 20px; }
    .wrap { padding: 12px 16px; }
    .hero h1 { font-size: 54px; }
    .panel { padding: 22px; }
    .trade-content { grid-template-columns: 1fr; gap: 18px; }
    .trade-content .art { width: 72%; max-width: 250px; }
    .trade-content h3 { font-size: 28px; }
    .actions { gap: 12px; }
    .button, button { min-height: 46px; }
}

/* The percentage game stays inside the existing cream card. */
.beer-game [hidden] { display: none !important; }
.beer-game-form label { display: block; margin-bottom: 8px; }
.beer-game-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.beer-game-controls input { width: 160px; max-width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; font: inherit; background: #fff; }
.beer-game-controls button { white-space: normal; }
.beer-game button:disabled { opacity: .65; cursor: wait; }
.beer-game input:focus-visible, .beer-game button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.beer-game-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.beer-game-results p { margin: 10px 0; }
.beer-game.has-guess-results .beer-game-message { display: none; }
.beer-game-results .beer-guess-average { margin: 14px 0 0; line-height: 1.1; }
.beer-guess-average strong { font-family: 'Patrick Hand', sans-serif; font-weight: 400; font-size: clamp(44px, 5vw, 68px); overflow-wrap: anywhere; }
.beer-game-results .beer-guess-caption { margin: 6px 0 20px; color: #555; }
.beer-game-results .beer-guess-count { margin: 0 0 10px; }
.beer-guess-count strong { font-weight: 600; }
.beer-game-results .beer-guess-own { margin: 0 0 18px; color: #555; font-size: .95em; }
.beer-guess-own strong { font-weight: 400; }
@media (max-width: 480px) { .beer-game-controls { flex-direction: column; } .beer-game-controls input, .beer-game-controls button { width: 100%; } }

/* Hall of Fame: reuse the existing content width, cards, palette and fonts. */
.hof-intro { margin-bottom: 32px; }
.hof-intro > p { font-size: 23px; }
.hof-section { margin-bottom: 36px; scroll-margin-top: 24px; }
.hall-of-fame .section-head { margin-bottom: 16px; }
.hof-tagline { margin-bottom: 20px; }
.hof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hof-card { margin: 0; min-width: 0; }
.hof-card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: 8px; }
.hof-card h3 { margin: 0 0 12px; font-size: 30px; overflow-wrap: anywhere; }
.hof-card p { margin: 0 0 20px; }
.hof-story-link { margin-top: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hof-card a:hover .hof-story-link { text-decoration-thickness: 2px; }
.hof-image, .hof-story-image { width: 100%; height: auto; margin-bottom: 20px; border-radius: 12px; }
.hof-empty { padding: 18px 22px; }
.hof-pagination { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.hof-story h1 { overflow-wrap: anywhere; }
.hof-story-content { line-height: 1.6; }
@media (max-width: 600px) { .hof-grid { grid-template-columns: 1fr; } .hof-intro > p { font-size: 21px; } }

/* Homepage route: additional stops can be inserted as list items. */
.journey-panel .home-journey-route { display: flex; list-style: none; margin: 28px 0 24px; padding: 0; }
.journey-panel .home-journey-stop { position: relative; flex: 1; min-width: 0; padding: 48px 16px 0 0; }
.home-journey-stop:not(:last-child)::after { content: ''; position: absolute; left: 16px; right: 0; top: 15px; border-top: 3px dashed var(--ink); opacity: .45; }
.home-journey-marker { position: absolute; top: 0; left: 0; z-index: 1; width: 32px; height: 32px; border: 3px solid var(--ink); border-radius: 48% 52% 46% 54%; background: var(--cream); transform: rotate(-7deg); }
.home-journey-stop--current .home-journey-marker { background: var(--yellow); }
.home-journey-stop--future .home-journey-marker { border-style: dashed; }
.home-journey-stop--goal .home-journey-marker { border: 0; border-radius: 0; }
.home-journey-marker svg { display: block; width: 32px; height: 32px; fill: var(--yellow); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.home-journey-label { font-size: 17px; text-transform: uppercase; }
.home-journey-stop h3 { overflow-wrap: anywhere; margin: 8px 0; }
.home-journey-stop p { margin: 0; }
@media (min-width: 761px) {
    .journey-panel .home-journey-route { position: relative; display: grid; grid-template-columns: 38% minmax(0, 1fr) max-content; }
    .home-journey-route::before { content: ''; position: absolute; left: 16px; right: 16px; top: 15px; border-top: 3px dashed var(--ink); opacity: .45; }
    .home-journey-stop:not(:last-child)::after { display: none; }
    .journey-panel .home-journey-stop--goal { padding-right: 0; text-align: right; }
    .home-journey-stop--goal .home-journey-marker { left: auto; right: 0; }
}
@media (max-width: 760px) {
    .journey-panel .home-journey-route { flex-direction: column; }
    .journey-panel .home-journey-stop { padding: 0 0 32px 50px; }
    .journey-panel .home-journey-stop:last-child { padding-bottom: 0; }
    .home-journey-stop:not(:last-child)::after { left: 15px; right: auto; top: 30px; bottom: 0; border-top: 0; border-left: 3px dashed var(--ink); }
}

/* Secondary website action in the homepage Current Trade card only. */
.trade-content .trade-project-link { border-color: rgba(17, 21, 26, .35); }

@media (min-width: 761px) {
    .trade-content .actions { flex-wrap: nowrap; }
    .trade-content .actions .button { min-width: 0; padding-inline: 8px; gap: 6px; }
}
