/* Homebrew Academy Revival — brewing recipe / brew file template */
:root {
	--hba-recipe-ink:#171a16;
	--hba-recipe-green:#24372b;
	--hba-recipe-paper:#f7f2e8;
	--hba-recipe-card:#fffdf8;
	--hba-recipe-cream:#fff8e9;
	--hba-recipe-amber:#c67b2c;
	--hba-recipe-gold:#e0a647;
	--hba-recipe-line:#d9cebc;
	--hba-recipe-display:"Iowan Old Style","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
	--hba-recipe-sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
	--hba-recipe-hand:"Bradley Hand","Segoe Print","Comic Sans MS",cursive;
}

body.single-post:has(.hba-recipe) { background:var(--hba-recipe-paper); color:var(--hba-recipe-ink); }
body.single-post:has(.hba-recipe) #inner-wrap { max-width:none; padding:0; margin:0; }
.hba-recipe,.hba-recipe *{box-sizing:border-box}
.hba-recipe{font-family:var(--hba-recipe-sans);background:var(--hba-recipe-paper);color:var(--hba-recipe-ink);overflow:hidden}
.hba-recipe a{color:inherit;text-decoration:none}
.hba-recipe-wrap{width:min(1240px,calc(100% - 40px));margin-inline:auto}

.hba-recipe-hero{padding:58px 0 38px;border-bottom:1px solid var(--hba-recipe-line);background:linear-gradient(115deg,rgba(36,55,43,.035),transparent 44%),var(--hba-recipe-paper)}
.hba-recipe-crumb{font-size:10px;font-weight:900;letter-spacing:.15em;color:#8f4f17;text-transform:uppercase}
.hba-recipe-crumb span{color:#ad9d85;margin:0 8px}
.hba-recipe-title-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:56px;align-items:end;margin-top:16px}
.hba-recipe h1{font-family:var(--hba-recipe-display);font-size:clamp(48px,6vw,84px);line-height:.93;letter-spacing:-.05em;text-wrap:balance;margin:0}
.hba-recipe-meta{font-size:12px;color:#6a655d;margin-top:18px}.hba-recipe-meta span{margin:0 8px;color:#b7aa96}
.hba-recipe-note{padding:24px 25px;background:var(--hba-recipe-ink);color:var(--hba-recipe-cream);border:4px solid #22261f;box-shadow:6px 7px 0 rgba(198,123,44,.17);transform:rotate(.7deg)}
.hba-recipe-note span{display:block;font-size:9px;font-weight:900;letter-spacing:.17em;color:var(--hba-recipe-gold);margin-bottom:10px}
.hba-recipe-note strong{display:block;font-family:var(--hba-recipe-hand);font-size:25px;line-height:1.04;font-weight:700;transform:rotate(-1deg)}

.hba-recipe-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:36px;border:1px solid #cfc0aa;background:var(--hba-recipe-card);box-shadow:0 12px 34px rgba(49,35,21,.05)}
.hba-recipe-stats>div{padding:18px 20px;border-right:1px solid var(--hba-recipe-line)}.hba-recipe-stats>div:last-child{border-right:0}
.hba-recipe-stats span{display:block;font-size:9px;font-weight:900;letter-spacing:.16em;color:#8f4f17;margin-bottom:7px}
.hba-recipe-stats strong{display:block;font-family:var(--hba-recipe-display);font-size:22px;line-height:1;color:var(--hba-recipe-green)}

.hba-recipe-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.hba-recipe-actions a,.hba-recipe-actions button{appearance:none;border:1px solid #cab99f;background:transparent;color:var(--hba-recipe-ink);padding:11px 14px;font:800 11px/1 var(--hba-recipe-sans);letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
.hba-recipe-actions a:first-child{background:var(--hba-recipe-green);border-color:var(--hba-recipe-green);color:var(--hba-recipe-cream)}
.hba-recipe-actions a:hover,.hba-recipe-actions button:hover{background:var(--hba-recipe-amber);border-color:var(--hba-recipe-amber);color:#17130e}

.hba-recipe-hero-image{position:relative;margin-top:34px;margin-bottom:34px;border-radius:18px;overflow:hidden;box-shadow:0 18px 48px rgba(48,33,20,.09);aspect-ratio:16/7;background:#e7ddce}
.hba-recipe-hero-image img{width:100%;height:100%;object-fit:cover;display:block}.hba-recipe-hero-image>span{position:absolute;right:24px;bottom:19px;font-family:var(--hba-recipe-hand);font-size:18px;color:#fff8e9;text-shadow:0 1px 4px rgba(0,0,0,.75);transform:rotate(-2deg)}

.hba-recipe-layout{display:grid;grid-template-columns:minmax(0,790px) 300px;gap:48px;align-items:start;padding-bottom:90px}
.hba-recipe-article{background:var(--hba-recipe-card);border:1px solid rgba(160,136,103,.2);border-radius:18px;box-shadow:0 18px 50px rgba(44,32,19,.065);overflow:hidden}
.hba-recipe-content{padding:48px 54px 58px;font-size:18px;line-height:1.74;color:#292925}
.hba-recipe-content>p:first-of-type{font-family:var(--hba-recipe-display);font-size:22px;line-height:1.5;color:#38362f}
.hba-recipe-content p{font-size:18px;line-height:1.74}
.hba-recipe-content h2,.hba-recipe-content h3,.hba-recipe-content h4{font-family:var(--hba-recipe-display);letter-spacing:-.035em;line-height:1.06;color:var(--hba-recipe-ink);text-wrap:balance}
.hba-recipe-content h2{font-size:clamp(34px,4vw,47px);margin:1.65em 0 .55em;padding-top:.12em}
.hba-recipe-content h3{font-size:clamp(27px,3vw,35px);margin:1.5em 0 .45em}
.hba-recipe-content h4{font-size:24px}
.hba-recipe-content a{color:#8f4f17;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.hba-recipe-content li{margin-bottom:.44em}.hba-recipe-content ul,.hba-recipe-content ol{padding-left:1.4em}
.hba-recipe-content figure.wp-block-image{margin:34px 0 38px}.hba-recipe-content figure.wp-block-image img{border-radius:14px}.hba-recipe-content figcaption{font-size:12px;line-height:1.5;color:#777167;text-align:left}
.hba-recipe-content blockquote{border:0;border-left:4px solid var(--hba-recipe-amber);background:#f3eadb;padding:24px 28px;margin:30px 0;border-radius:0 12px 12px 0;font-family:var(--hba-recipe-display);font-size:24px;line-height:1.45}

/* Turn existing 'By the Numbers' and Recipe sections into recognizable brew-file landmarks. */
.hba-recipe-content #numbers,.hba-recipe-content #recipe{position:relative;background:var(--hba-recipe-green);color:var(--hba-recipe-cream);padding:24px 28px 18px;margin:42px -18px 0;border-radius:14px 14px 0 0}
.hba-recipe-content #numbers::before{content:"STYLE CARD"}.hba-recipe-content #recipe::before{content:"BREW DAY"}
.hba-recipe-content #numbers::before,.hba-recipe-content #recipe::before{display:block;font:900 9px/1 var(--hba-recipe-sans);letter-spacing:.18em;color:var(--hba-recipe-gold);margin-bottom:10px}
.hba-recipe-content #numbers + ul{background:var(--hba-recipe-green);color:rgba(255,255,255,.9);margin:0 -18px 34px;padding:4px 38px 26px 48px;border-radius:0 0 14px 14px}
.hba-recipe-content #numbers + ul strong{color:#fff}
.hba-recipe-content #recipe{margin-bottom:24px}

.hba-recipe-side{width:300px;max-width:300px}.hba-recipe-side-card{padding:22px 20px 21px;background:var(--hba-recipe-ink);color:var(--hba-recipe-cream);border-top:4px solid var(--hba-recipe-gold);margin-bottom:24px}
.hba-recipe-side-card>span{display:block;font-size:9px;font-weight:900;letter-spacing:.17em;color:var(--hba-recipe-gold);margin-bottom:10px}.hba-recipe-side-card>strong{display:block;font-family:var(--hba-recipe-hand);font-size:24px;line-height:1.05;margin-bottom:18px}.hba-recipe-side-card>a{display:block;padding:11px 0;border-top:1px solid rgba(255,248,233,.14);font-size:12px;color:rgba(255,248,233,.88)}.hba-recipe-side-card>a:hover{color:var(--hba-recipe-gold)}
.hba-recipe-widget-area .widget{border-bottom:1px solid var(--hba-recipe-line);padding:18px 0;background:transparent}

@media (max-width:1040px){.hba-recipe-title-grid{grid-template-columns:1fr;gap:26px}.hba-recipe-note{max-width:560px}.hba-recipe-layout{grid-template-columns:1fr;max-width:860px}.hba-recipe-side{width:100%;max-width:none}.hba-recipe-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.hba-recipe-stats>div:nth-child(3){border-right:0}.hba-recipe-stats>div:nth-child(n+4){border-top:1px solid var(--hba-recipe-line)}}
@media (max-width:720px){.hba-recipe-wrap{width:min(100% - 28px,1240px)}.hba-recipe-hero{padding:42px 0 30px}.hba-recipe h1{font-size:clamp(44px,13vw,62px)}.hba-recipe-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hba-recipe-stats>div{border-top:1px solid var(--hba-recipe-line)}.hba-recipe-stats>div:nth-child(-n+2){border-top:0}.hba-recipe-stats>div:nth-child(even){border-right:0}.hba-recipe-hero-image{aspect-ratio:4/3;border-radius:13px}.hba-recipe-layout{padding-bottom:60px}.hba-recipe-article{border-radius:13px}.hba-recipe-content{padding:30px 24px 42px;font-size:17px}.hba-recipe-content p{font-size:17px;line-height:1.72}.hba-recipe-content #numbers,.hba-recipe-content #recipe{margin-left:-8px;margin-right:-8px}}
@media print{.hba-site-header,.hba-site-footer,.hba-recipe-actions,.hba-recipe-side{display:none!important}.hba-recipe-layout{display:block}.hba-recipe-article{box-shadow:none;border:0}.hba-recipe-content{padding:0}.hba-recipe-hero-image{max-height:280px}.hba-recipe{background:#fff}.hba-recipe-wrap{width:100%}}
