/*
Theme Name: Cēsu Heritage
Theme URI: https://www.cesualus.lv/
Author: Cēsu redesign project
Description: Modern heritage design with an offline content installer for the Cēsu alus website.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: cesu
License: GPL-2.0-or-later
*/
@font-face{font-family:Cormorant;src:url(assets/fonts/cormorant.ttf) format('truetype');font-weight:300 700;font-display:swap}
@font-face{font-family:DM;src:url(assets/fonts/dm-sans.ttf) format('truetype');font-weight:100 1000;font-display:swap}
:root{--paper:#f4efe5;--red:#bf1734;--ink:#241e1a;--muted:#655f58;--line:#d4c5ae;--green:#233c31;--serif:Cormorant,Georgia,serif;--sans:DM,Arial,sans-serif;--gutter:clamp(24px,6.3vw,100px)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 var(--sans)}img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--red);outline-offset:5px}button:disabled{cursor:wait;opacity:.65}h1,h2,h3,p{margin:0 0 22px}h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:.98;letter-spacing:-.035em}h1{font-size:clamp(58px,7vw,108px)}h2{font-size:clamp(38px,4.7vw,70px)}h3{font-size:30px}p{max-width:65ch}small{font-size:13px}main{min-height:65vh}.wrap{max-width:1600px;margin:auto;padding-inline:var(--gutter)}.skip-link{position:absolute;left:12px;top:-70px;background:var(--red);color:white;padding:12px;z-index:99}.skip-link:focus{top:12px}.eyebrow{font-size:11px;letter-spacing:.25em;text-transform:uppercase;font-weight:600;margin-bottom:28px}.red{color:var(--red)}.button{display:inline-flex;align-items:center;justify-content:center;gap:28px;background:var(--red);color:white;border:1px solid var(--red);padding:16px 26px;font-size:14px;font-weight:600;line-height:1.3;min-height:50px;transition:background .2s,color .2s}.button:hover{background:#96112a;border-color:#96112a}.button.outline{background:transparent;color:var(--red)}.button.outline:hover{background:var(--red);color:white}.arrow{width:19px;height:19px;object-fit:contain;filter:brightness(0) invert(1)}.outline .arrow,.text-link .arrow{filter:brightness(0) saturate(100%) invert(17%) sepia(72%) saturate(2780%) hue-rotate(330deg)}.text-link{display:inline-flex;gap:22px;align-items:center;border-bottom:1px solid currentColor;padding:7px 0;font-size:14px;font-weight:600;color:var(--red)}.text-link:hover{color:var(--ink)}.site-header{background:var(--paper);position:relative;z-index:20}.header-inner{height:118px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:block;width:150px;flex-shrink:0}.brand img{width:100%;height:78px;object-fit:contain;filter:brightness(0) saturate(100%) invert(17%) sepia(72%) saturate(2780%) hue-rotate(330deg)}.primary-menu{display:flex;gap:38px;align-items:center;list-style:none;padding:0;margin:0;font-size:14px;font-weight:600}.primary-menu a{padding-block:14px;display:block}.primary-menu a:hover,.primary-menu .current-menu-item>a{color:var(--red)}.header-tools{display:flex;align-items:center;gap:18px}.language{font-size:12px;border-left:1px solid var(--line);padding-left:24px;color:var(--muted)}.language strong{color:var(--red)}.menu-toggle{display:none;border:1px solid var(--line);background:transparent;padding:10px 16px}.hero{display:grid;grid-template-columns:1fr 1.04fr;min-height:780px}.hero-copy{padding:75px 55px 75px max(var(--gutter),calc((100vw - 1400px)/2));display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.hero h1{color:var(--red);font-size:clamp(72px,8.3vw,127px);line-height:.9;margin-bottom:32px;max-width:8ch}.hero-copy p:not(.eyebrow){max-width:35ch;margin-bottom:30px;color:var(--muted);font-size:18px}.hero-image{width:100%;height:100%;max-height:900px;object-fit:cover}.heritage-rule{display:flex;gap:22px;align-items:center;text-align:center;margin:40px 0 54px;font-size:10px;text-transform:uppercase;letter-spacing:.3em;color:var(--muted)}.heritage-rule:before,.heritage-rule:after{content:'';height:1px;flex:1;background:var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:48px;margin-bottom:40px}.section-heading p{max-width:41ch;color:var(--muted);font-size:15px}.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:44px}.product-card{min-width:0}.product-visual{display:block;height:365px;margin-bottom:18px;overflow:hidden}.product-visual img{width:100%;height:100%;object-fit:contain;transition:transform .4s}.product-card:hover .product-visual img{transform:translateY(-6px)}.product-card h3{font-size:27px;line-height:1.04;letter-spacing:-.025em;margin-bottom:12px}.product-card p{font-size:14px;color:var(--muted);margin-bottom:10px}.products-section{padding-bottom:75px}.story{display:grid;grid-template-columns:1.12fr 1fr;margin-top:15px}.story>img{width:100%;height:540px;object-fit:cover}.story-copy{padding:54px 70px 45px 56px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.story-copy .year{font:600 clamp(90px,10vw,155px)/.9 var(--serif);color:var(--red);letter-spacing:-.06em}.story-copy h2{font-size:clamp(44px,4.4vw,68px);margin-top:12px}.story-copy p{font-size:15px;color:var(--muted)}.nature{position:relative;min-height:350px;background:var(--green);color:white}.nature>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.nature-copy{position:relative;padding:55px var(--gutter);max-width:650px;background:rgba(15,34,24,.62);min-height:350px}.nature h2{font-size:62px}.nature .eyebrow{margin-bottom:18px}.nature p{font-size:15px}.nature a{color:white}.horeca{display:grid;grid-template-columns:1fr 1.1fr}.horeca-copy{padding:65px var(--gutter)}.horeca>img{width:100%;height:100%;min-height:360px;object-fit:cover}.horeca h2{font-size:58px}.horeca p{font-size:15px;color:var(--muted)}.site-footer{background:var(--red);color:white;padding:44px 0 26px}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:35px;margin-bottom:32px}.site-footer .brand img{filter:brightness(0) invert(1)}.footer-links{display:flex;flex-wrap:wrap;gap:14px 30px;font-size:13px}.footer-links a:hover{text-decoration:underline}.footer-bottom{border-top:1px solid rgba(255,255,255,.28);padding-top:22px;display:flex;justify-content:space-between;gap:25px;font-size:11px;color:#f7dce2}.breadcrumb{font-size:11px;letter-spacing:.12em;text-transform:uppercase;display:flex;flex-wrap:wrap;gap:10px;color:var(--muted);padding-top:22px;margin-bottom:48px}.page-intro{padding-block:30px 38px;max-width:900px}.page-intro h1{color:var(--red)}.page-intro p{max-width:48ch;color:var(--muted);font-size:18px}.category-tabs{display:flex;gap:30px;overflow:auto;border-bottom:1px solid var(--line);margin:20px 0 40px;scrollbar-width:thin}.category-tabs a{white-space:nowrap;padding:20px 0;border-bottom:2px solid transparent;font-size:14px}.category-tabs a.active{color:var(--red);border-color:var(--red);font-weight:600}.catalog-layout{display:grid;grid-template-columns:230px 1fr;gap:45px;padding-bottom:75px}.filters{border-right:1px solid var(--line);padding-right:30px}.filters h2{font-size:36px}.filters label{font-size:13px}.filters fieldset{border:0;padding:20px 0;margin:0}.filters legend{font-family:var(--serif);font-weight:600;font-size:24px}.filters input[type=search],select,textarea,input[type=email],input[type=text]{width:100%;padding:12px;background:transparent;border:1px solid var(--line);border-radius:0;color:var(--ink)}.filters select{font-size:13px}.filters .button{width:100%;margin:18px 0}.catalog-bar{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:25px}.catalog-bar h2{font-size:38px;margin:0}.catalog-bar p{font-size:12px;color:var(--muted);margin:0}.catalog-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:42px 30px}.catalog-products .product-visual{height:330px}.catalog-products h3{font-size:26px}.pagination{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:45px}.pagination a,.pagination span{border:1px solid var(--line);padding:9px 16px}.pagination .current{background:var(--red);color:white;border-color:var(--red)}.empty-state{padding:65px 0}.product-detail{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:70px;margin-bottom:65px}.detail-photo{min-height:620px;display:flex;justify-content:center;background:#eee6d8;padding:36px}.detail-photo img{height:550px;max-width:100%;object-fit:contain}.detail-info h1{color:var(--red);font-size:clamp(58px,6vw,92px);line-height:.92}.detail-info .lead{font-size:19px;color:var(--muted)}.specs{display:flex;gap:45px;margin:36px 0}.specs div+div{border-left:1px solid var(--line);padding-left:45px}.specs strong{font:600 58px/.95 var(--serif);color:var(--red);display:block}.specs small{color:var(--muted);display:block;margin-top:10px}.detail-content{border-top:1px solid var(--line);padding:55px 0;display:grid;grid-template-columns:1fr 1.1fr;gap:70px}.detail-content h2{font-size:48px}.nutrition table{width:100%;border-collapse:collapse;font-size:14px}.nutrition td{padding:10px 0;border-bottom:1px solid var(--line)}.nutrition td:last-child{text-align:right}.rating-row{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:14px 0;font-size:14px}.rating-row meter{accent-color:var(--red);width:48%;height:20px}.entry-content{padding-bottom:70px;max-width:1000px;margin:auto;font-size:17px;overflow-wrap:anywhere}.entry-content h2{font-size:48px;line-height:1.05;margin-top:50px}.entry-content h3{font-size:32px;line-height:1.1;margin-top:30px}.entry-content a{color:var(--red);text-decoration:underline;text-underline-offset:4px}.entry-content p{margin:0 0 22px}.entry-content ul,.entry-content ol{padding-left:25px}.entry-content li{margin-bottom:12px}.entry-content img{max-height:650px;width:auto;margin:25px auto;object-fit:contain}.entry-content img[src$=".svg"]{max-width:150px}.entry-content figure{margin:28px 0}.entry-content div:empty,.entry-content p:empty{display:none}.entry-content table{border-collapse:collapse;width:100%;font-size:15px}.entry-content td,.entry-content th{padding:12px;border-bottom:1px solid var(--line);text-align:left}.page-cover{width:100%;max-height:520px;object-fit:cover;margin-bottom:55px}.page-cover.product-cover{object-fit:contain}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:45px 30px;padding:30px 0 70px}.post-card img{width:100%;height:230px;object-fit:cover;margin-bottom:20px}.post-card h2{font-size:34px;line-height:1.05;margin:15px 0}.post-card p{font-size:14px;color:var(--muted)}.post-card small{color:var(--red)}.post-card>a:hover h2{color:var(--red)}.article-title{max-width:1100px;font-size:clamp(45px,5vw,78px);line-height:1.02}.contact-panel{padding:35px 0 70px;display:grid;grid-template-columns:1fr 1fr;gap:70px}.contact-panel h2{font-size:48px}.contact-form label{display:block;margin-bottom:20px;font-size:14px}.contact-form label input,.contact-form textarea{display:block;margin-top:8px}.contact-form textarea{height:150px}.notice{padding:20px;border:1px solid var(--line);margin-bottom:25px}.honeypot{position:absolute;left:-9999px}.age-dialog{width:min(570px,calc(100% - 40px));padding:55px;border:1px solid var(--line);background:var(--paper);color:var(--ink);text-align:center}.age-dialog::backdrop{background:rgba(26,22,18,.83);backdrop-filter:blur(6px)}.age-dialog h2{font-size:52px}.age-dialog .brand{margin:0 auto 30px}.age-actions{display:flex;justify-content:center;gap:20px;margin-bottom:25px}.age-dialog small{display:block;line-height:1.5;color:var(--muted)}.cookie-note{position:fixed;bottom:18px;left:18px;right:18px;max-width:550px;background:var(--paper);border:1px solid var(--line);padding:20px;z-index:40;font-size:12px;box-shadow:0 4px 25px #0001}.cookie-note button{float:right;border:0;background:var(--red);color:white;padding:9px 15px;margin:0 0 10px 15px}.cookie-note a{text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.filter-toggle{display:none}body.admin-bar .site-header{top:32px}
.detail-photo.scene{padding:0;background:transparent}.detail-photo.scene img{width:100%;height:620px;object-fit:cover}.hero-copy{justify-content:flex-start}.hero h1{font-weight:700}.section-heading h2{font-weight:700}.detail-content meter::-webkit-meter-optimum-value{background:var(--red)}
@media(min-width:761px){.product-detail{margin-inline:calc(-1 * var(--gutter));grid-template-columns:1.1fr 1fr}.detail-info{padding-right:var(--gutter)}.detail-info h1{font-size:clamp(80px,9vw,140px);font-weight:700}.detail-info h3{font-size:39px}.detail-photo.scene img{height:800px}.story-copy .year{font-size:clamp(130px,13vw,190px)}.story-copy h2{font-size:clamp(48px,5.2vw,76px)}.story>img{height:100%;min-height:540px}}
@media(min-width:1700px){.hero{max-width:1600px;margin:auto}.hero-copy{padding-left:100px}}
@media(max-width:1100px){.primary-menu{gap:21px}.header-inner{gap:20px}.brand{width:120px}.hero{min-height:680px}.hero-copy{padding-right:35px}.products{gap:26px}.product-visual{height:310px}.story-copy{padding:35px}.story>img{height:500px}.catalog-layout{grid-template-columns:195px 1fr;gap:30px}.catalog-products{gap:35px 20px}.catalog-products .product-visual{height:270px}.catalog-products h3{font-size:23px}.product-detail{gap:35px}.specs{gap:25px}.specs div+div{padding-left:25px}.specs strong{font-size:48px}.detail-photo{min-height:530px}.detail-photo img{height:460px}}
@media(max-width:760px){body{font-size:15px}.header-inner{height:88px}.brand{width:105px}.brand img{height:58px}.menu-toggle{display:block;font-size:12px}.language{padding-left:14px}.primary-nav{display:none;position:absolute;top:88px;left:0;right:0;padding:25px var(--gutter);background:var(--paper);border-block:1px solid var(--line)}.primary-nav.is-open{display:block}.primary-menu{display:block}.primary-menu a{font-size:19px;padding:13px 0}.hero{display:flex;flex-direction:column;min-height:0}.hero-copy{padding:42px var(--gutter) 45px}.hero .eyebrow{font-size:9px;margin-bottom:24px}.hero h1{font-size:clamp(70px,18vw,100px);max-width:8ch;margin-bottom:25px}.hero-copy p:not(.eyebrow){font-size:16px}.hero-image{height:470px;object-position:center 48%}.heritage-rule{font-size:8px;letter-spacing:.15em;gap:12px;margin:30px 0 40px}.section-heading{display:block;margin-bottom:30px}.section-heading h2{font-size:45px}.section-heading p{font-size:14px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 22px}.product-visual{height:260px;margin-bottom:14px}.product-card h3{font-size:25px}.product-card p{font-size:12px}.products-section{padding-bottom:45px}.story{display:flex;flex-direction:column}.story>img{height:320px}.story-copy{padding:35px var(--gutter) 40px}.story-copy .year{font-size:110px}.story-copy h2{font-size:52px}.nature,.nature-copy{min-height:350px}.nature-copy{padding:40px var(--gutter);max-width:85%}.nature h2{font-size:48px}.horeca{display:flex;flex-direction:column}.horeca-copy{padding:40px var(--gutter)}.horeca h2{font-size:48px}.horeca>img{min-height:0;height:270px}.site-footer{padding:32px 0}.footer-top{align-items:start;flex-direction:column;gap:25px}.footer-links{gap:16px 24px}.footer-bottom{display:block}.footer-bottom span{display:block;margin-bottom:12px}.breadcrumb{font-size:9px;letter-spacing:.08em;gap:8px;margin-bottom:26px;padding-top:15px}.page-intro{padding-top:20px;padding-bottom:15px}.page-intro h1{font-size:64px}.page-intro p{font-size:16px}.category-tabs{gap:25px;margin-bottom:25px}.category-tabs a{font-size:13px;padding:15px 0}.catalog-layout{display:block;padding-bottom:45px}.filter-toggle{display:inline-flex;margin-bottom:22px}.filters{display:none;border:1px solid var(--line);padding:22px;margin-bottom:25px}.filters.is-open{display:block}.catalog-bar h2{font-size:30px}.catalog-bar{gap:10px;align-items:end}.catalog-bar p{font-size:11px}.catalog-products .product-visual{height:245px}.catalog-products{gap:35px 20px}.catalog-products h3{font-size:23px}.catalog-products .text-link{font-size:12px}.product-detail{display:flex;flex-direction:column;gap:28px;margin-bottom:40px;align-items:stretch}.detail-photo{min-height:0;padding:20px}.detail-photo img{height:420px}.detail-info h1{font-size:64px}.detail-info .eyebrow{margin-bottom:15px}.detail-info .lead{font-size:17px}.specs{gap:30px;margin:25px 0}.specs strong{font-size:48px}.specs small{font-size:11px}.detail-content{display:block;padding:30px 0}.detail-content h2{font-size:40px}.nutrition{margin-top:35px}.entry-content{font-size:16px;padding-bottom:40px}.entry-content h2{font-size:39px}.entry-content h3{font-size:29px}.entry-content table{display:block;overflow:auto;font-size:13px}.page-cover{max-height:300px;margin-bottom:30px}.post-grid{grid-template-columns:1fr;gap:35px;padding-bottom:45px}.post-card img{height:240px}.post-card h2{font-size:36px}.article-title{font-size:46px;overflow-wrap:break-word}.contact-panel{display:block;padding-bottom:45px}.contact-panel h2{font-size:40px}.contact-form{margin-top:35px}.age-dialog{padding:35px 25px}.age-dialog h2{font-size:42px}.age-actions{gap:12px}.age-actions .button{padding:14px 24px}.cookie-note{font-size:11px;padding:15px}.text-link{gap:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
@media(max-width:760px){.detail-photo.scene img{height:410px}.hero-copy{padding-top:38px}.entry-content a{overflow-wrap:anywhere}}
/* 1.1: compact content rhythm and an in-flow header (including the WP toolbar). */
body.admin-bar .site-header{top:0}.site-header{position:relative;top:auto}.header-inner{height:100px}.brand{width:130px}.brand img{height:66px}
.breadcrumb{position:relative;padding-top:20px;margin:0 0 18px;line-height:1.6;min-height:38px}.page-intro{padding:8px 0 20px;max-width:1100px}.page-intro .eyebrow{font-size:11px;margin-bottom:14px}.page-intro h1{font-size:clamp(48px,5.5vw,80px);margin-bottom:14px}.page-cover{max-height:420px;margin-bottom:28px}
.entry-content{max-width:1100px;padding-bottom:40px;font-size:16px;line-height:1.6}.entry-content h2{font-size:40px;margin-top:30px;margin-bottom:16px}.entry-content h3{font-size:28px;margin-top:22px;margin-bottom:14px}.entry-content p{margin-bottom:16px}.entry-content li{margin-bottom:7px}.entry-content figure{margin:20px 0}.entry-content img{max-height:480px;margin:18px auto}.entry-content>p{max-width:78ch}
.cesu-icon-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:20px;margin:28px 0;padding:24px 0;border-block:1px solid var(--line)}.cesu-icon-card{text-align:center}.entry-content .cesu-icon-card img{height:78px;width:78px;margin:0 auto 12px}.cesu-icon-card p{margin:0;max-width:none;font-weight:600}
.entry-content div:has(>div>a h2){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.entry-content div>a:has(h2){display:flex;flex-direction:column;height:100%;text-decoration:none}.entry-content div>a:has(h2) h2{font-size:32px;margin-top:0}.entry-content div>a:has(h2) img[src$=".svg"]{display:none}.entry-content div>a:has(h2) img{width:100%;height:160px;object-fit:cover}.entry-content div>a:has(h2)>div:has(img[src$=".svg"]){display:none}
.hero{min-height:620px}.hero-copy{padding-top:50px;padding-bottom:50px}.hero-image{max-height:720px}.heritage-rule{margin:26px 0 32px}.section-heading{margin-bottom:26px}.products-section{padding-bottom:45px}.product-visual{height:310px}.story-copy{padding:35px 45px}.story>img{min-height:400px;height:100%}.horeca-copy{padding-block:40px}.catalog-layout{padding-bottom:45px}.category-tabs{margin:12px 0 26px}.post-grid{gap:30px 24px;padding:20px 0 40px}.contact-panel{padding:24px 0 40px;gap:40px}.detail-content{padding:35px 0}.detail-photo.scene img{height:620px}.detail-info h1{font-size:clamp(65px,7vw,105px)}
@media(max-width:760px){.header-inner{height:80px}.brand{width:100px}.brand img{height:54px}.primary-nav{top:80px}.breadcrumb{padding-top:14px;margin-bottom:12px;font-size:10px}.page-intro{padding:4px 0 14px}.page-intro h1{font-size:48px}.page-cover{max-height:250px;margin-bottom:22px}.entry-content h2{font-size:34px;margin-top:26px}.entry-content img{max-height:380px}.cesu-icon-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.entry-content .cesu-icon-card img{width:60px;height:60px}.entry-content div:has(>div>a h2){grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.entry-content div>a:has(h2) h2{font-size:27px}.entry-content div>a:has(h2) img{height:120px}.hero{min-height:0}.hero-copy{padding:28px var(--gutter) 32px}.hero-image{height:380px}.product-visual{height:230px}.story>img{min-height:0;height:280px}.story-copy{padding:28px var(--gutter)}.detail-photo.scene img{height:340px}.detail-info h1{font-size:58px}}
.entry-content>figure:has(>img[src$=".svg"]):has(figcaption){display:grid;grid-template-columns:72px minmax(0,1fr);gap:24px;align-items:start;border-top:1px solid var(--line);padding-top:20px}.entry-content>figure:has(>img[src$=".svg"]):has(figcaption)>img{width:64px;height:64px;margin:0}.entry-content>figure:has(>img[src$=".svg"]):has(figcaption) ul{margin-top:0}
