.wisekal-error-page{background:#fffdf7;color:#203e30;padding:clamp(30px,5vw,72px) clamp(22px,5vw,70px);margin:0!important}
.wisekal-error-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:clamp(24px,5vw,72px);max-width:1160px!important;margin-inline:auto!important}
.wisekal-error-copy{min-width:0}.wisekal-error-eyebrow{font-size:12px;font-weight:700;letter-spacing:.2em;color:#80521a;text-transform:uppercase;margin:0!important}
.wisekal-error-number{font-weight:850;font-size:clamp(100px,12vw,170px);letter-spacing:-.065em;line-height:.95;margin:12px 0 20px!important;display:table;position:relative;isolation:isolate}
.wisekal-error-number:after{content:'';position:absolute;z-index:-1;bottom:-5px;left:0;right:-12px;height:10px;background:#edb83c;transform:rotate(-2deg);clip-path:polygon(1% 20%,97% 0,100% 85%,0 100%)}
.wisekal-error-title{font-family:'Wisekal Caveat','Segoe Print',cursive!important;font-weight:600;font-size:clamp(40px,4.5vw,66px)!important;letter-spacing:0;line-height:1.05;margin:0 0 20px!important;text-wrap:balance}
.wisekal-error-description{font-size:18px;line-height:1.65;max-width:450px;margin:0 0 25px!important}
.wisekal-error-actions{gap:14px!important;margin-top:24px!important}.wisekal-error-actions .wp-block-button__link{border-radius:6px;background:#254a38;color:#fffdf7;padding:13px 22px;font-size:16px;min-height:44px;text-decoration:none}
.wisekal-error-actions .wp-block-button__link:hover{background:#efb63b;color:#172c22}.wisekal-error-actions a:focus-visible{outline:2px solid #a9680d;outline-offset:4px}
.wisekal-error-secondary{font-size:16px;margin-top:15px!important}.wisekal-error-secondary a{color:#254a38;text-underline-offset:5px}
.wisekal-error-art{margin:0!important;min-width:0}.wisekal-error-art img{display:block;width:100%;height:auto;max-height:610px;object-fit:contain}
.wisekal-error-awkward .wisekal-error-art{order:-1}.wisekal-error-wrong-turn .wisekal-error-number{font-family:'Wisekal Caveat',cursive;letter-spacing:0}
@media(max-width:700px){.wisekal-error-layout{grid-template-columns:1fr;gap:24px;text-align:center}.wisekal-error-number{margin-inline:auto!important;font-size:100px}.wisekal-error-description{margin-inline:auto!important}.wisekal-error-actions{justify-content:center!important}.wisekal-error-art{max-width:450px;margin-inline:auto!important}.wisekal-error-art img{max-height:440px}.wisekal-error-awkward .wisekal-error-art{order:initial}}

/* True error pages are a single, welcoming viewport rather than a long article. */
body.error404 .wp-site-blocks{min-height:100svh;display:flex;flex-direction:column}
body.error404 .wp-site-blocks>main.wisekal-error-page{flex:1;display:flex;align-items:center;padding:18px clamp(22px,5vw,70px);min-height:0}
body.error404 .wisekal-error-layout{width:100%;gap:clamp(20px,4vw,60px)}
body.error404 .wisekal-header{padding-top:10px;padding-bottom:10px}
body.error404 .wisekal-header-autumn .wisekal-header-canopy{height:40px}
body.error404 .wisekal-error-art img{max-height:calc(100svh - 205px);width:100%;object-fit:contain}
body.error404 .wisekal-error-number{font-size:clamp(78px,10vw,138px);margin:8px 0 18px!important}
body.error404 .wisekal-error-title{font-size:clamp(36px,4.1vw,58px)!important;margin-bottom:14px!important}
body.error404 .wisekal-error-description{font-size:17px;margin-bottom:14px!important}
body.error404 .wisekal-error-actions{margin-top:16px!important}
body.error404 .wisekal-error-secondary{margin-top:12px!important}
.wisekal-error-footer{box-sizing:border-box;background:#203e30;color:#fffdf7;border-top:3px solid #e0ac32;padding:9px clamp(22px,5vw,70px);gap:8px 24px;margin:0!important;min-height:42px;font-size:12px;line-height:1.4}
.wisekal-error-footer p,.wisekal-error-footer .bwp-shell-copyright{margin:0!important;color:inherit;font-size:inherit}.wisekal-error-footer>p{font-style:italic}
@media(max-width:700px){body.error404 .wisekal-error-page{padding:16px 22px!important}body.error404 .wisekal-error-layout{gap:12px}body.error404 .wisekal-error-number{font-size:70px;margin:5px auto 12px!important}body.error404 .wisekal-error-title{font-size:38px!important;margin-bottom:10px!important}body.error404 .wisekal-error-description{font-size:16px;line-height:1.4;margin-bottom:12px!important}body.error404 .wisekal-error-actions{margin-top:12px!important}body.error404 .wisekal-error-secondary{margin-top:8px!important}body.error404 .wisekal-error-art img{max-height:clamp(110px,23svh,220px)}.wisekal-error-footer{justify-content:center;text-align:center;font-size:11px;padding:8px 16px}}
@media(min-width:701px) and (max-height:650px){body.error404 .wisekal-error-number{font-size:78px}body.error404 .wisekal-error-title{font-size:38px!important}body.error404 .wisekal-error-art img{max-height:calc(100svh - 185px)}}

body.error404 .wp-site-blocks>.wp-block-template-part{margin-block:0!important;flex-shrink:0}
body.error404 .wisekal-error-art img{max-height:calc(100svh - 240px)}
@media(max-width:700px){body.error404 .wisekal-error-art img{max-height:clamp(100px,21svh,200px)}}
@media(min-width:701px) and (max-height:650px){body.error404 .wisekal-error-art img{max-height:calc(100svh - 220px)}}

/* All three error designs share the current site background preset. */
body.wisekal-site-design-scrapbook .wisekal-error-page{background-color:var(--wisekal-linen);background-image:var(--wisekal-linen-pattern)}
