/*
Theme Name: Greencastle Studio
Version: 1.0.0
Description: Editorial cabinetry catalog and resource library.
Requires PHP: 8.0
*/
:root{--paper:#f5f4ee;--ink:#182a23;--pine:#203c31;--moss:#ccd4b9;--white:#fff;--line:#d7ded1;--max:1392px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 "DM Sans",Arial,sans-serif}
a{color:inherit;text-underline-offset:.22em} a:hover{text-decoration-thickness:2px}
a:focus-visible,summary:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #937b42;outline-offset:4px}
img{display:block;max-width:100%;height:auto}
.wrap{width:min(var(--max),calc(100% - 7vw));margin-inline:auto}
.utility{background:#152b21;color:#e7eddf;font-size:.82rem}.utility .wrap{display:flex;justify-content:flex-end;gap:1.5rem;padding:.4rem 0}.utility a{text-decoration:none}
.masthead{background:var(--paper)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:84px}
.brand{display:flex;align-items:center;gap:.65rem;text-decoration:none;font-weight:750;line-height:1.07;letter-spacing:-.055em;font-size:1.55rem;white-space:nowrap}
.brand small{display:block;font:600 .68rem/1.5 "DM Sans",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.brand-mark{display:grid;grid-template-columns:repeat(2,9px);gap:3px;padding:7px;border:1px solid currentColor}.brand-mark i{height:13px;background:currentColor}.brand-mark i:nth-child(2){height:20px}.brand-mark i:nth-child(3){margin-top:-7px;height:20px}
.nav nav{display:flex;align-items:center;gap:clamp(.8rem,2vw,2.2rem);font-weight:600;font-size:.94rem}.nav nav a{text-decoration:none}.nav nav a:hover{text-decoration:underline}
.action,.woocommerce a.button,.woocommerce button.button{display:inline-block;background:var(--pine);color:white;text-decoration:none;font-weight:650;padding:.8rem 1.25rem;border:0;border-radius:0;line-height:1.5}
.action.light{background:var(--moss);color:var(--ink)}.action:hover{filter:brightness(1.12)}
.hero{display:grid;grid-template-columns:minmax(0,.81fr) minmax(0,1.25fr);background:var(--pine);color:white;min-height:560px}
.hero-copy{align-self:center;padding:clamp(2rem,5vw,5.4rem)}.hero-copy p{color:#e8edde;max-width:30rem;margin:1.15rem 0 1.8rem;font-size:1.07rem}.hero-photo{position:relative;min-height:100%;margin:0}.hero-photo img{width:100%;height:100%;position:absolute;object-fit:cover}
h1,h2,h3{font-family:"Instrument Serif",Georgia,serif;font-weight:400;line-height:1.02;letter-spacing:-.025em;margin:0 0 .55em}
h1{font-size:clamp(3.2rem,7.3vw,7.9rem)}.hero h1{font-size:clamp(3.2rem,6.25vw,7rem);margin:0}
h2{font-size:clamp(2.4rem,4.5vw,4.8rem)}h3{font-size:clamp(1.65rem,2.75vw,2.6rem)}
.label{font-size:.82rem;letter-spacing:.07em;font-weight:700}
.section{padding-block:clamp(3rem,7vw,7rem)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.section-head h2{margin:0}
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.9rem,2vw,2rem)}
.collection{display:block;text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:.85rem}.collection img{aspect-ratio:1.22;object-fit:cover;width:100%;background:#dde2d6}.collection span{display:flex;justify-content:space-between;align-items:center;font:2rem/1.1 "Instrument Serif",Georgia,serif;padding-top:.7rem}.collection:hover span{text-decoration:underline;text-decoration-thickness:1px}
.resource-band{background:#e3e7d7}.resources{display:grid;grid-template-columns:1fr 1fr;gap:3rem}.resources ul{list-style:none;padding:0;margin:0}.resources li{border-bottom:1px solid #aebba4}.resources li a{display:flex;justify-content:space-between;gap:1rem;padding:.8rem 0;text-decoration:none}.resources li a:hover{text-decoration:underline}
.page-head{padding:clamp(2rem,5vw,5rem) 0 1.5rem;border-bottom:1px solid var(--line);margin-bottom:2rem}.page-head h1{font-size:clamp(3rem,6vw,6.5rem);margin:0}
.entry{padding-bottom:4rem;overflow-wrap:anywhere}.entry p,.entry ul,.entry ol{max-width:77ch}.entry h2,.entry h3{margin-top:.7em}.entry table{display:block;overflow-x:auto;border-collapse:collapse;max-width:100%}.entry td,.entry th{padding:.5rem;border:1px solid var(--line)}.entry img{max-height:750px;object-fit:contain}
.entry .av-masonry-container,.entry .avia-gallery,.legacy-home{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1.25rem}.entry .ls-slide{border:1px solid var(--line);background:#fff;padding:.9rem}
.entry .avia-button{display:inline-block;margin:.25rem 0}.entry .av_toggle_section,.entry .tab_content{padding:1rem;border-bottom:1px solid var(--line)}
.site-footer{background:#152b21;color:#f1f4e9;padding:3rem 0}.foot-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2rem}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer h3{margin:0 0 .75rem}.site-footer .brand{margin-bottom:1rem}
.woocommerce .woocommerce-breadcrumb,.woocommerce-breadcrumb{margin-top:1.2rem}.woocommerce ul.products li.product a img{aspect-ratio:1.1;object-fit:contain;background:#fff}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.65rem}.woocommerce div.product div.images img{background:white}.woocommerce div.product .product_title{font-size:clamp(2.7rem,5vw,5.5rem)}.woocommerce .price{color:var(--pine)!important}
.archive-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.75rem;padding-bottom:2rem}.archive-list article{border-top:1px solid var(--line);padding-top:1rem}.archive-list h2{font-size:2rem}.searchform input{padding:.6rem;margin:.3rem 0}
@media(max-width:840px){.nav{flex-wrap:wrap;padding:1rem 0;gap:.8rem}.nav nav{width:100%;order:3;flex-wrap:wrap}.hero{grid-template-columns:1fr;min-height:auto}.hero-photo{min-height:clamp(250px,63vw,520px)}.hero-copy{padding:2.4rem}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.wrap{width:calc(100% - 28px)}.utility .wrap{gap:.6rem;justify-content:space-between;font-size:.73rem}.collection-grid,.resources,.foot-grid{grid-template-columns:1fr}.section-head{display:block}.section-head h2{margin-bottom:.45rem}.nav>.action{padding:.55rem .65rem}.brand{font-size:1.35rem}}
.catalog-tools{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;margin:1rem 0 2rem;padding-block:1rem;border-block:1px solid var(--line)}
.catalog-tools nav{display:flex;flex-wrap:wrap;gap:.65rem 1.2rem}.catalog-tools nav a{font-weight:600}.catalog-tools input,.catalog-tools button{padding:.5rem .65rem;border:1px solid var(--line);background:white}.catalog-tools button{background:var(--pine);color:white}
.collection-cover{margin:0 0 2rem}.entry .collection-cover img{width:min(100%,900px);max-height:540px;object-fit:cover}
