/*
Theme Name: KaslFarm
Description: Dairy catalogue and QR-linked herd directory for KaslFarm.
Version: 2.3.1
Requires at least: 6.0
Requires PHP: 7.4
*/
:root{--green:#193c2d;--paper:#fbfaf4;--leaf:#28503d;--gold:#f5d897;--line:#d7d8c5}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--green);font:16px/1.55 system-ui,sans-serif}a{color:inherit}h1,h2,h3,.brand{font-family:Georgia,serif;line-height:1.06;margin:0;font-weight:500}h1{font-size:clamp(44px,6vw,96px);letter-spacing:-.055em}h2{font-size:clamp(32px,4vw,56px);letter-spacing:-.04em}h3{font-size:28px}p{max-width:66ch}.wide{width:min(90%,1280px);margin:auto}.nav,footer,.row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.nav{min-height:74px;padding:10px 0}.brand{font-size:32px;font-weight:bold;text-decoration:none}.nav nav{display:flex;gap:18px;align-items:center}.btn,.pill{background:var(--leaf);color:white;border:0;border-radius:30px;padding:11px 19px;text-decoration:none;font:600 15px system-ui;cursor:pointer}.hero{position:relative;isolation:isolate;background:#204433;color:white;padding:clamp(48px,6vw,88px) 0}.hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#102c1fee,#142d1da6 44%,#102a1b25),var(--pasture) center 53%/cover}.hero h1{margin:16px 0}.hero em{color:var(--gold)}.hero p{max-width:430px;margin-bottom:26px}.hero .btn{background:var(--gold);color:var(--green)}.hero a+a{margin-left:15px}.eye{font-size:13px;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.section{padding:48px 0}.section h2{margin:8px 0 18px}.muted{color:#516351}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px}.products{grid-template-columns:repeat(3,minmax(0,1fr))}.card,.panel{background:#fffef9;border:1px solid var(--line);border-radius:13px;overflow:hidden}.card{display:flex;flex-direction:column;text-decoration:none}.card:hover{border-color:#52724b}.art{display:grid;place-items:center;width:100%;height:190px;background:linear-gradient(135deg,#e5ebd9,#f0e1c1);font-size:48px;position:relative;overflow:hidden}.art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 62%}.inside,.panel{padding:22px}.inside p{margin:.45em 0}.band{background:#e6ebdc}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.pill{color:var(--green);background:transparent;border:1px solid var(--line)}.pill[aria-pressed=true]{background:var(--green);color:white}input,select{padding:10px 14px;font:inherit;border:1px solid var(--line);border-radius:8px}.layout{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-top:24px}.panel h2{font-size:30px}.panel dt{font-weight:bold}.panel dd{margin:3px 0 14px}.panel li{margin:8px 0}.qr svg{width:min(100%,190px);display:block;margin:10px 0}.notice{font-size:14px}.detailart{max-width:560px;margin:18px 0}.detailart .art{height:230px}footer{padding:28px 0;border-top:1px solid var(--line)}[hidden]{display:none!important}a:focus-visible,button:focus-visible{outline:3px solid #ac731e;outline-offset:3px}@media(max-width:700px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}.nav nav{gap:10px}.layout{grid-template-columns:1fr}.art{height:145px}.inside{padding:13px}.inside h3{font-size:23px}}@media(max-width:400px){.products{grid-template-columns:1fr}}@media print{body *{visibility:hidden}.qr,.qr *{visibility:visible}.qr{position:absolute;top:0;left:0;width:65mm}.qr button,.qr a{display:none}}
.farmpages{display:flex;list-style:none;gap:12px;margin:0;padding:0}
.kf-guide{max-width:900px}.kf-guide h2{margin:32px 0 12px}.kf-guide h1{margin:12px 0 20px}.kf-guide .btn{display:inline-flex;margin-top:16px}.nav nav{flex-wrap:wrap}

.brand{display:inline-flex;align-items:center}
.brand img{display:block;width:clamp(150px,20vw,218px);height:auto}
.herd-gallery{padding:clamp(48px,6vw,84px) 0;background:#edf0e5}
.herd-gallery h2{margin:0 0 26px}
.herd-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,26px)}
.herd-card>img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center 34%;background:#dce3d3}
.herd-card .inside{padding:clamp(15px,2vw,25px)}
.herd-card .herd-type{margin:0 0 9px;color:#486449;font-size:.86rem;font-weight:650}
.herd-card h3{margin-bottom:.45em}
.herd-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}
.herd-footer small{color:#516351}
.herd-footer a{font-weight:650;text-underline-offset:4px}
@media(max-width:800px){.herd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.herd-grid{grid-template-columns:1fr}.hero a{display:inline-block}.hero a+a{margin:12px 0 0}}
