/*
Theme Name: Big Bottom
Author: Big Bottom Distilling
Description: The Big Bottom Distilling site. Two doors (Oregon and everywhere else), the release board, a field guide to the spirits, and cocktails. Bottle facts are entered once on each bottle's page.
Version: 0.1.2
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: bbd
*/

:root {
  --green-deep: #21382D; --green: #267355; --gold: #B89655; --gold-light: #D8BC83; --gold-deep: #8C6E3C;
  --cream: #F5EFE2; --cream-deep: #E8DFC9; --bone: #FBF8F0; --rule: #D7CDB8; --muted: #4B5B52;
  --wood: #2A2017; --teal: #254749; --sage: #C0BDA2; --faint: rgba(245, 239, 226, 0.18);
  --f-display: 'Big Shoulders Display', 'Oswald', sans-serif; --f-head: 'Oswald', sans-serif;
  --f-eyebrow: 'Cinzel', serif; --f-body: 'Source Serif 4', Georgia, serif;
  --gutter: 40px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* "html body" on purpose: page-builder plugins inject their own body font and size after this file, and this selector outranks them. */
html body { margin: 0; background: var(--green-deep); color: var(--green-deep); font-family: var(--f-body); font-size: 18px; line-height: 1.7; }
main { display: block; background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-deep); }
a:hover { color: var(--green); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[id] { scroll-margin-top: 16px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--cream); }

/* Type */
.eyebrow { display: block; font-family: var(--f-eyebrow); font-weight: 500; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; }
.eyebrow--lg { font-size: 13px; }
.kicker { display: block; font-family: var(--f-eyebrow); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.caps { font-family: var(--f-head); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--f-display); font-weight: 900; line-height: 1.02; text-transform: uppercase; }
.heading { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 36px; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; font-family: var(--f-head); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; }
.btn--sm { min-height: 44px; }
.btn--block { display: flex; width: 100%; }
.btn--gold { background: var(--gold); color: var(--green-deep); }
.btn--gold:hover { background: var(--gold-light); color: var(--green-deep); }
.btn--green { background: var(--green-deep); color: var(--cream); }
.btn--green:hover { background: var(--green); color: var(--cream); }
.btn--line-cream { border-color: var(--cream); color: var(--cream); }
.btn--line-cream:hover { background: var(--cream); color: var(--green-deep); }
.btn--line-gold { border-color: var(--gold); color: var(--gold-light); }
.btn--line-gold:hover { background: var(--gold); color: var(--green-deep); }
.btn--line-green { border-color: var(--green-deep); color: var(--green-deep); }
.btn--line-green:hover { background: var(--green-deep); color: var(--cream); }
.pill { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--green-deep); font-family: var(--f-head); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Top bar and masthead */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 20px; min-height: 44px; padding: 8px 24px; background: var(--green-deep); color: var(--gold-light); border-bottom: 1px solid var(--faint); font-family: var(--f-head); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.topbar a { color: var(--gold-light); }
.topbar__email { text-transform: none; letter-spacing: 0.02em; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 88px; padding: 12px var(--gutter); background: var(--green-deep); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--cream); text-decoration: none; font-family: var(--f-eyebrow); font-weight: 700; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; }
.brand:hover { color: var(--gold-light); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-family: var(--f-head); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a:not(.btn) { padding: 12px 0; color: var(--cream); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--gold-light); }

/* Hero */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 620px; padding: 48px var(--gutter) 170px; overflow: hidden; background: var(--green-deep); color: var(--cream); text-align: center; border-bottom: 1px solid var(--gold); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(33, 56, 45, 0.56); }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__inner img { width: 280px; height: 280px; }
.hero__line { margin: 0; font-family: var(--f-eyebrow); font-weight: 500; font-size: clamp(15px, 1.5vw, 20px); letter-spacing: 0.22em; line-height: 1.4; text-transform: uppercase; color: var(--gold-light); }
.hero p { max-width: 640px; font-size: 18px; line-height: 1.6; }

/* Door plaques and the board */
.board { padding: 0 var(--gutter) 72px; background: var(--wood); color: var(--cream); }
.board__inner { display: flex; flex-direction: column; gap: 24px; }
.doors { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 24px; margin: -120px 0 32px; }
.door { flex: 1 1 380px; min-width: 0; min-height: 240px; display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; background: var(--green-deep); border: 1px solid var(--gold); border-radius: 4px; }
.door .eyebrow, .board .eyebrow { color: var(--gold-light); }
.door__title { font-size: 40px; }
.door p { flex-grow: 1; font-size: 16px; line-height: 1.5; }
.door__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.door__from { font-size: 14px; color: var(--gold-light); }
.board__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.board__title { margin-top: 8px; font-size: clamp(48px, 6.4vw, 84px); line-height: 0.95; }
.board__head p { max-width: 420px; font-size: 17px; line-height: 1.6; }
.board-row { display: grid; grid-template-columns: 1fr 220px 220px; align-items: center; gap: 10px 20px; min-height: 110px; padding: 18px 0; border-bottom: 1px solid var(--faint); }
.board-row--head { min-height: 0; padding: 0 0 10px; align-items: end; border-bottom: 2px solid var(--gold); color: var(--gold-light); }
.board-row--head .caps { font-size: 13px; }
.board-row--head .eyebrow { text-align: center; letter-spacing: 0.2em; }
.board-row__main { display: flex; align-items: center; gap: 22px; min-width: 0; }
.board-row__proof { flex: 0 0 104px; font-family: var(--f-display); font-weight: 900; font-size: 64px; line-height: 1; color: var(--gold); }
.board-row__proof--word { font-family: var(--f-eyebrow); font-weight: 700; font-size: 15px; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; }
.board-row__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.board-row__name { font-family: var(--f-head); font-weight: 500; font-size: 26px; letter-spacing: 0.04em; line-height: 1.15; text-transform: uppercase; color: var(--cream); text-decoration: none; }
a.board-row__name:hover { color: var(--gold-light); }
.board-row__status { font-size: 15px; line-height: 1.4; color: var(--gold-light); }
.board-row__cell { display: flex; flex-direction: column; }
.board-row__cell .btn { min-height: 52px; padding: 0 12px; }
.board-row__none { display: flex; align-items: center; justify-content: center; min-height: 52px; font-size: 15px; font-style: italic; color: var(--gold-light); }
.board__note { font-size: 15px; font-style: italic; color: var(--gold-light); }

/* Field guide cards */
.guide { padding: 72px var(--gutter); background: var(--cream); }
.guide__head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 36px; text-align: center; }
.guide__kicker { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--bone); border: 1px solid var(--rule); border-radius: 4px; }
.card__tile { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 240px; overflow: hidden; background: var(--green-deep); }
.card__tile img { width: auto; height: 220px; }
.card__tile--sage { background: var(--sage); }
.card__tile--teal { background: var(--teal); }
.card__tile--wood { background: var(--wood); }
.card__tile--black { background: #000; }
.card__tile--black img { height: 236px; }
.card__tile--black .pill, .card__tile--wood .pill { background: var(--gold); }
.card__tile--sage .pill, .card__tile--teal .pill { background: var(--green); color: var(--cream); }
.card__body { display: flex; flex-direction: column; flex-grow: 1; gap: 8px; padding: 20px; }
.card__name { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
.card__name a { text-decoration: none; }
.card__marks { flex-grow: 1; font-size: 15px; line-height: 1.5; }
.card .caps { color: var(--muted); }
.card__price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.card__price > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.card__price > span:first-child .caps { font-size: 11px; }
.card__amount { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; }
.card__alt { font-size: 15px; font-style: italic; text-align: center; }

/* Warehouse Series and the Insider Club */
.next { padding: 72px var(--gutter); background: var(--green-deep); color: var(--cream); }
.next .eyebrow, .next__meta { color: var(--gold-light); }
.next__top { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px 56px; margin-bottom: 36px; }
.next__story { flex: 3 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.next__title { font-size: clamp(48px, 6vw, 76px); }
.next__meta { font-size: 14px; }
.next__story p { max-width: 560px; font-size: 17px; line-height: 1.6; }
.signup { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--cream); color: var(--green-deep); border-radius: 4px; }
.signup__title { margin-bottom: 4px; font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
.signup input[type="email"] { width: 100%; min-height: 48px; padding: 0 14px; background: var(--bone); color: var(--green-deep); border: 1px solid var(--rule); border-radius: 4px; font-family: var(--f-body); font-size: 16px; }
.signup__trap { position: absolute; left: -5000px; }
.signup .btn { margin-top: 6px; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 40px; }
.perks > div { padding-top: 14px; border-top: 1px solid var(--gold); }
.perks h3 { margin: 0 0 6px; font-family: var(--f-head); font-weight: 500; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.perks p { font-size: 16px; line-height: 1.5; }

/* Cocktail strip */
.strip { padding-top: 72px; background: var(--bone); }
.strip__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: 1200px; margin: 0 auto 32px; padding: 0 var(--gutter); }
.strip__head .eyebrow { margin-bottom: 10px; color: var(--muted); }
.strip__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.strip__more p { font-size: 17px; line-height: 1.6; }
.strip__tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: flex; align-items: flex-end; height: 420px; overflow: hidden; background: var(--wood); color: var(--cream); text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.03); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, rgba(33, 56, 45, 0.92), rgba(33, 56, 45, 0)); }
.tile__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; }
.tile .kicker { color: var(--gold-light); }
.tile__name { font-size: 34px; line-height: 1; color: var(--cream); }

/* Visit */
.visit { padding: 72px var(--gutter); background: var(--cream); }
.visit__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px; }
.visit__photo { flex: 1 1 320px; min-width: 0; width: 100%; max-width: 480px; height: 420px; object-fit: cover; border-radius: 4px; }
.visit__text { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.visit .eyebrow { color: var(--muted); }
.visit__text p { font-size: 17px; line-height: 1.6; }
.hours { margin: 0; border-top: 1px solid var(--rule); }
.hours > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.hours dt { font-family: var(--f-head); font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.hours dd { margin: 0; font-size: 16px; font-style: italic; color: var(--muted); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { padding: 40px var(--gutter) 32px; background: var(--green-deep); color: var(--cream); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.site-footer__where { flex: 1 1 400px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.5; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; font-family: var(--f-head); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer__links a { padding: 10px 0; }
.site-footer__legal { margin-top: 20px; font-size: 14px; color: var(--gold-light); }

/* Inner pages */
.page-head { padding: 56px var(--gutter); background: var(--green-deep); color: var(--cream); border-bottom: 1px solid var(--gold); }
.page-head .wrap { display: flex; flex-direction: column; gap: 10px; }
.page-head .eyebrow { color: var(--gold-light); }
.page-head .display { font-size: clamp(44px, 6vw, 76px); }
.page-head p { max-width: 640px; }
.prose-wrap { padding: 56px var(--gutter) 72px; background: var(--cream); }
.prose { max-width: 760px; margin: 0 auto; }
.prose > * { margin: 0 0 1.1em; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 0.5em; font-family: var(--f-head); font-weight: 500; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; }
.prose h2 { font-size: 30px; }
.prose h3 { font-size: 23px; }
.prose h4 { font-size: 19px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { border-radius: 4px; }
.prose figcaption { margin-top: 6px; font-size: 15px; font-style: italic; color: var(--muted); }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--gold); font-style: italic; }
.prose iframe { width: 100%; max-width: 100%; border: 0; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .aligncenter img { margin: 0 auto; }
.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.prose .wp-block-column { flex: 1 1 260px; min-width: 0; }
.prose .wp-block-button__link, .prose .guten-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--green-deep); color: var(--cream); border-radius: 4px; font-family: var(--f-head); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.prose .sendfox-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prose .sendfox-form p { margin: 0; }
.prose input[type="email"] { min-height: 48px; padding: 0 14px; background: var(--bone); border: 1px solid var(--rule); border-radius: 4px; font-family: var(--f-body); font-size: 16px; }
.prose button { min-height: 48px; padding: 0 22px; background: var(--green-deep); color: var(--cream); border: 0; border-radius: 4px; font-family: var(--f-head); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }

/* Bottle page */
.spirit { padding: 56px var(--gutter); background: var(--wood); color: var(--cream); border-bottom: 1px solid var(--gold); }
.spirit__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px 56px; }
.spirit__tile { position: relative; flex: 1 1 280px; max-width: 380px; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 4px; }
.spirit__tile img { width: auto; height: 400px; max-width: 100%; object-fit: contain; }
.spirit__text { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.spirit .eyebrow { color: var(--gold-light); }
.spirit__name { font-size: clamp(44px, 6vw, 80px); }
.spirit__marks { max-width: 560px; font-size: 19px; line-height: 1.5; }
.spirit__doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 10px; }
.spirit__door { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; background: var(--green-deep); border: 1px solid var(--gold); border-radius: 4px; }
.spirit__door p { flex-grow: 1; font-size: 16px; line-height: 1.5; }

/* Recipes */
.recipe { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 56px; }
.recipe__photo { flex: 1 1 320px; max-width: 460px; }
.recipe__photo img { width: 100%; border-radius: 4px; }
.recipe .prose { flex: 1 1 380px; max-width: 620px; margin: 0; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.recipe-card { display: flex; flex-direction: column; overflow: hidden; background: var(--bone); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; }
.recipe-card__img { display: block; width: 100%; height: 260px; object-fit: cover; }
.recipe-card__img--empty { display: flex; align-items: center; justify-content: center; background: var(--green-deep); }
.recipe-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.recipe-card__name { font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
.listing { padding: 56px var(--gutter) 72px; background: var(--cream); }
.listing .pagination { margin-top: 40px; font-family: var(--f-head); letter-spacing: 0.08em; text-transform: uppercase; }
.listing .nav-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.made-with { padding: 56px var(--gutter) 72px; background: var(--cream-deep); border-top: 1px solid var(--rule); }
.made-with .eyebrow { color: var(--muted); }
.made-with .heading { margin: 10px 0 28px; }
.made-with--dark { padding: 48px var(--gutter); background: var(--wood); color: var(--cream); border-top: 0; }
.made-with--dark .eyebrow { color: var(--gold-light); }
.made-with--dark .display { margin: 8px 0; font-size: clamp(36px, 4.6vw, 56px); }
.made-with--dark .display a { color: var(--cream); text-decoration: none; }
.made-with__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.made-with__doors { display: flex; flex-wrap: wrap; gap: 16px; }
.made-with__doors > div { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.made-with__doors > div::before, .board-row__cell::before { content: attr(data-door); font-family: var(--f-eyebrow); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.board-row__cell::before { display: none; margin-bottom: 6px; }
.back-link { padding: 24px var(--gutter) 56px; background: var(--cream); text-align: center; font-style: italic; }

/* Smaller screens */
@media (max-width: 900px) {
  .strip__tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { height: 340px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .topbar { font-size: 12px; }
  .topbar > span[aria-hidden], .topbar > span:nth-of-type(3) { display: none; }
  .masthead { justify-content: center; }
  .nav { justify-content: center; gap: 0 18px; font-size: 14px; }
  .hero { min-height: 0; padding-top: 32px; }
  .hero__inner img { width: 200px; height: 200px; }
  .door__title { font-size: 34px; }
  .board-row { grid-template-columns: 1fr 1fr; min-height: 0; }
  .board-row--head { display: none; }
  .board-row__main { grid-column: 1 / -1; gap: 14px; }
  .board-row__proof { flex-basis: 84px; font-size: 52px; }
  .board-row__proof--word { font-size: 13px; }
  .board-row__name { font-size: 22px; }
  .board-row__cell::before { display: block; }
  .board-row__cell .btn { font-size: 14px; }
  .heading { font-size: 30px; }
  .visit__photo { max-width: none; height: 280px; }
  .spirit__tile { max-width: none; min-height: 320px; }
  .spirit__tile img { height: 300px; }
}
@media (max-width: 520px) {
  .strip__tiles { grid-template-columns: 1fr; }
  .tile { height: 300px; }
}
