/*
Theme Name: Apdrukai Darbnīca
Theme URI: https://apdrukai.lv/
Author: Apdrukai.lv
Description: Individuāla darbnīcas stila tēma ar divām katalogu ieejām, pielāgota datoram un telefonam.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: apdrukai-darbnica
License: GPL-2.0-or-later
*/
:root{--ink:#191815;--paper:#f7f2e9;--accent:#df8b12;--line:#bdb4a5;--body:Arial,Helvetica,sans-serif;--pad:clamp(22px,3.4vw,68px)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.55 var(--body)}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button{color:inherit;cursor:pointer}img{max-width:100%;height:auto}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #a35a00;outline-offset:5px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.05;letter-spacing:-.045em}h1{font-size:clamp(38px,5.5vw,80px)}h2{font-size:clamp(28px,3.6vw,52px)}h3{font-size:26px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed;top:10px;left:10px;width:auto;height:auto;clip:auto;padding:12px 20px;background:white;z-index:10000}
.site-header{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px var(--pad);border-bottom:1px solid rgba(25,24,21,.14);background:#f7f2e9}.home .site-header{position:absolute;left:0;right:0;top:0;background:linear-gradient(#f7f2e9f5,#f7f2e9cc,transparent);border:0;padding-bottom:30px}.admin-bar.home .site-header{top:32px}.brand-wrap{display:flex;gap:24px;align-items:center}.brand{font-size:clamp(30px,3vw,48px);font-weight:900;letter-spacing:-.065em;line-height:1}.brand-note{padding-left:24px;border-left:1px solid #8c8271;font-size:12px;font-weight:700;letter-spacing:.22em}.header-nav{display:flex;align-items:center;gap:24px;font-weight:600}.header-nav a:hover{text-decoration:underline;text-underline-offset:5px}.search-toggle,.icon-link{border:0;background:none;padding:8px;display:flex;align-items:center;gap:10px}.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.search-panel{position:absolute;top:100%;right:var(--pad);background:#fffaf2;padding:22px;box-shadow:0 12px 28px #24201a25;max-width:calc(100vw - 40px);width:430px;border:1px solid var(--line)}.search-panel[hidden]{display:none}.search-panel form{display:flex;gap:8px}.search-panel input{min-width:0;width:100%;padding:12px;border:1px solid var(--line);background:white}.search-panel button{padding:10px 14px;background:var(--ink);color:white;border:1px solid var(--ink)}
.workbench{position:relative;display:grid;grid-template-columns:1fr 1fr;min-height:680px;height:max(700px,calc(100svh - 62px));max-height:1100px;background:#e9dcc6 url('assets/darbnica.webp') center top/100% 100% no-repeat}.workbench::after{content:"";position:absolute;top:17%;bottom:32px;left:50%;border-left:1px dashed #5f554b;opacity:.6;pointer-events:none}.portal{position:relative;display:flex;align-items:flex-end;min-width:0;padding:0 clamp(30px,6.2vw,120px) 65px;isolation:isolate}.portal::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 66%,#f2e5d3bd 80%,#f2e5d3ed);z-index:-1;opacity:.65;transition:opacity .25s}.portal:hover::before{opacity:.85}.portal-copy{position:relative;width:100%}.portal h2{font-size:clamp(40px,4.7vw,76px);font-weight:850;line-height:.99;letter-spacing:-.052em;margin:0 0 16px}.portal h2::before{position:absolute;content:"";left:-29px;top:4px;width:9px;height:.9em;background:var(--accent)}.portal p{font-size:clamp(15px,1.45vw,23px);line-height:1.35;margin:0 0 22px}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:48px;border:2px solid var(--ink);border-radius:3px;background:#f8f0e4a8;padding:10px 24px;font-weight:750;line-height:1.25;text-align:center;transition:background .2s,color .2s,transform .2s}.button:hover{background:var(--ink);color:#fff;transform:translateY(-2px)}.button-solid{background:var(--ink);color:#fff}.button-solid:hover{background:#3b3329}.ruler{position:absolute;bottom:19px;left:var(--pad);right:var(--pad);height:13px;background:repeating-linear-gradient(to right,#5c5548 0 1px,transparent 1px 14px);border-bottom:1px solid #5c5548;opacity:.6;pointer-events:none}.bench-caption{display:flex;align-items:center;justify-content:center;gap:30px;min-height:62px;padding:16px var(--pad);font-size:13px;letter-spacing:.23em;font-weight:700;text-align:center}.bench-caption::before,.bench-caption::after{content:"";height:1px;background:var(--ink);flex:1}
.site-footer{padding:30px var(--pad);display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);font-size:14px;color:#655e53}.footer-links{display:flex;gap:24px;flex-wrap:wrap}.site-footer a:hover{text-decoration:underline}.main-content{max-width:1440px;padding:56px var(--pad) 80px;margin:auto;min-height:65vh}.breadcrumbs{display:flex;gap:12px;flex-wrap:wrap;font-size:14px;color:#766c5e;margin-bottom:38px}.breadcrumbs a{text-decoration:underline;text-underline-offset:4px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.2em;font-weight:750;color:#8b5712;margin-bottom:18px}.page-intro{max-width:800px;font-size:clamp(18px,1.7vw,24px);color:#5b5448;line-height:1.55;margin-bottom:40px}.page-intro p:last-child{margin-bottom:0}.catalog-heading{border-bottom:1px solid var(--line);padding-bottom:38px;margin-bottom:36px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;margin:36px 0 54px}.category-card{display:flex;flex-direction:column;border:1px solid #c9c0b2;background:#fbf7ef;overflow:hidden;transition:box-shadow .2s}.category-card:hover{box-shadow:0 8px 24px #34281618}.category-art{height:270px;background-image:url('assets/darbnica.webp');background-size:200% auto;background-position:left 32%;background-repeat:no-repeat}.category-art.apparel{background-position:right 36%}.category-art.mugs{background-size:270%;background-position:14% 37%}.category-art.supplies{background-size:240%;background-position:32% 0}.category-art.press{background-size:320%;background-position:0 7%}.category-art.paper{background-size:310%;background-position:27% 0}.category-art.hoodies{background-size:300%;background-position:100% 5%}.category-art.caps{background-size:300%;background-position:100% 62%}.category-art.shirts{background-size:235%;background-position:72% 28%}.category-label{padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.category-label h2{font-size:clamp(25px,2.5vw,38px);margin:0 0 8px}.category-label p{margin:0;color:#6d6254;font-size:15px}.category-label .enter{width:36px;height:36px;border:1px solid #ada292;display:grid;place-items:center;font-size:24px;flex-shrink:0}.quote-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:32px 0;display:flex;justify-content:space-between;align-items:center;gap:30px}.quote-strip h2{font-size:30px;margin-bottom:8px}.quote-strip p{margin:0;color:#6d6254}.editor-content{font-size:18px;max-width:850px;margin-bottom:38px}.editor-content a{text-decoration:underline}.editor-content li{margin-bottom:8px}.empty-catalog{padding:32px;border-left:5px solid var(--accent);background:#eee6d8;margin:32px 0}.empty-catalog p{margin-bottom:0}.contact-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:80px}.contact-help{font-size:19px;color:#62584a}.quote-form{display:grid;grid-template-columns:1fr 1fr;gap:22px}.quote-form label{display:block;font-size:15px;font-weight:650;margin-bottom:8px}.quote-form input,.quote-form textarea,.quote-form select{width:100%;padding:13px 15px;background:#fffdf8;border:1px solid #b8ad9c;border-radius:2px;color:var(--ink)}.quote-form textarea{resize:vertical;min-height:170px}.form-wide{grid-column:1/-1}.form-note{font-size:13px;color:#6f6456}.form-notice{padding:20px;border:1px solid #788d68;background:#edf2e7;margin-bottom:24px}.form-error{border-color:#b5543c;background:#fff0e9}.honeypot{position:absolute;left:-9999px;opacity:0}.search-results{list-style:none;padding:0}.search-results li{padding:26px 0;border-bottom:1px solid var(--line)}.search-results h2{font-size:30px;margin-bottom:10px}.search-results a:hover{text-decoration:underline}.woocommerce .woocommerce-breadcrumb{font-size:14px}.woocommerce ul.products li.product .button,.woocommerce button.button.alt,.woocommerce a.button.alt{background:var(--ink);color:white;border-radius:2px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:22px}.woocommerce div.product .product_title{font-size:42px}
@media(min-width:1700px){.workbench{background-size:cover;background-position:center 45%}}
@media(max-width:1100px){.brand-note{display:none}.header-nav{gap:18px}.portal{padding-left:50px;padding-right:32px}.portal h2{font-size:clamp(38px,5vw,62px)}.contact-layout{gap:40px}.workbench{min-height:650px}.category-art{height:230px}}
@media(max-width:767px){.site-header{padding:19px 22px;gap:10px}.home .site-header{position:relative;padding:20px 22px;background:var(--paper);border-bottom:1px solid var(--line)}.admin-bar.home .site-header{top:0}.brand{font-size:33px}.header-nav{gap:11px;font-size:14px}.search-toggle{padding:7px 0 7px 7px}.search-toggle span{display:none}.header-nav .icon-link{display:none}.workbench{display:block;height:auto;max-height:none;min-height:0;background:none}.workbench::after{display:none}.portal{min-height:630px;padding:0 30px 54px 48px;background-image:url('assets/darbnica.webp');background-repeat:no-repeat;background-size:200% 100%;background-position:left top}.portal-apparel{background-position:right top;border-top:1px dashed #756957}.portal::before{background:linear-gradient(transparent 58%,#f2e5d3c9 76%,#f2e5d3f5);opacity:1}.portal h2{font-size:clamp(39px,9vw,58px);max-width:450px;line-height:1.02;margin-bottom:13px}.portal h2::before{left:-23px;width:7px;top:3px}.portal p{font-size:16px;margin-bottom:20px}.portal .button{font-size:17px;padding:12px 22px}.ruler{display:none}.portal::after{content:"";position:absolute;left:22px;right:22px;bottom:17px;height:11px;background:repeating-linear-gradient(to right,#5c5548 0 1px,transparent 1px 12px);border-bottom:1px solid #5c5548;opacity:.5}.bench-caption{font-size:11px;letter-spacing:.12em;gap:16px;padding:20px;min-height:64px}.main-content{padding-top:34px;padding-bottom:50px}.breadcrumbs{margin-bottom:28px}.catalog-heading{padding-bottom:26px}.catalog-grid{grid-template-columns:1fr;gap:22px}.category-art{height:240px}.category-label{padding:22px}.category-label h2{font-size:30px}.quote-strip{align-items:flex-start;flex-direction:column;gap:22px}.quote-strip h2{font-size:28px}.site-footer{align-items:flex-start;flex-direction:column;font-size:13px}.footer-links{gap:16px}.contact-layout{grid-template-columns:1fr;gap:25px}.quote-form{grid-template-columns:1fr}.form-wide{grid-column:auto}.page-intro{font-size:19px}.search-panel{right:20px}.header-nav .home-link{display:none}}
@media(max-width:380px){.brand{font-size:29px}.portal{min-height:580px;padding-left:38px;padding-right:20px}.portal h2{font-size:38px}.portal p{font-size:15px}.header-nav{gap:7px;font-size:13px}}
.mobile-categories{display:none}
@media(max-width:767px){.mobile-categories{display:grid;grid-template-columns:1.3fr 1fr;border-bottom:1px solid var(--line);background:#eee4d5;font-size:14px;font-weight:700}.mobile-categories a{padding:14px 10px;text-align:center}.mobile-categories a+a{border-left:1px dashed #9c8d77}.mobile-categories a:hover{background:#e2d2ba}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}


/* Apdrukai.lv: the story and the enquiry desk. */
.header-nav .about-link[aria-current="page"],.header-nav .contact-link[aria-current="page"]{text-decoration:underline;text-underline-offset:6px}
.mobile-site-menu{display:none}
.ap-story,.ap-contact{--warm:#e8a541;--soft-ink:#5d5549}
.ap-story .eyebrow,.ap-contact .eyebrow{font-size:14px;letter-spacing:.12em}
.story-opening{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center;padding:8px 0 76px}
.story-opening h1,.contact-opening h1{font-size:clamp(44px,5.8vw,83px);line-height:1.02;letter-spacing:-.055em;margin-bottom:28px}
.story-opening h1 span,.contact-opening h1 span{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-style:italic;letter-spacing:-.055em}
.story-lead,.contact-lead{font-size:clamp(20px,2vw,27px);line-height:1.42;max-width:620px;margin-bottom:24px}
.story-intro{font-size:17px;color:var(--soft-ink);line-height:1.7;max-width:540px;margin-bottom:28px}
.text-link{display:inline-block;font-size:16px;font-weight:700;line-height:1.5;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.text-link:hover{text-decoration-thickness:2px}
.story-still{margin:0;position:relative;padding:18px;background:#e5d8c3;transform:rotate(1.4deg)}
.story-still::before{content:"";position:absolute;z-index:1;width:110px;height:30px;background:#e8a541db;top:2px;left:35%;transform:rotate(-5deg)}
.story-still-image{height:515px;background:#e7d9c5 url('assets/darbnica.webp') 20% 42%/220% auto no-repeat}
.story-still figcaption{position:absolute;bottom:38px;right:-14px;left:48px;background:#fffaf1;border-left:5px solid var(--accent);padding:22px 26px;box-shadow:3px 6px 0 #46371e18;transform:rotate(-3deg)}
.story-still figcaption span{display:block;font-size:17px;color:var(--soft-ink)}
.story-still figcaption strong{display:block;font-size:clamp(24px,2.5vw,35px);letter-spacing:-.04em;line-height:1.2}
.story-statement{display:grid;grid-template-columns:.6fr 1fr;gap:68px;padding:68px 0 78px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.story-statement h2{font-size:clamp(33px,4vw,55px);margin-bottom:25px}
.story-statement p:not(.eyebrow){font-size:19px;line-height:1.7;max-width:720px;color:var(--soft-ink)}
.story-statement p:last-child{margin-bottom:0}
.story-directions{padding:76px 0;scroll-margin-top:30px}
.section-heading{margin-bottom:34px}
.direction-pair{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.direction-sheet{background:#fffbf4;border:1px solid #c9c0b2;transition:box-shadow .2s}
.direction-sheet:hover{box-shadow:0 8px 0 #dacebb}
.direction-photo{height:250px;background-image:url('assets/darbnica.webp');background-repeat:no-repeat;background-size:210% auto}
.direction-mugs{background-position:7% 38%}
.direction-textile{background-position:100% 35%}
.direction-copy{padding:30px}
.material-tag{font-size:14px;font-weight:650;color:#74501c;display:block;margin-bottom:14px}
.direction-copy h3{font-size:clamp(27px,3vw,39px);margin-bottom:16px}
.direction-copy p{font-size:17px;line-height:1.65;color:var(--soft-ink);margin-bottom:25px}
.story-note{position:relative;margin:0 0 20px;padding:48px 54px 52px;background:#e9ac4e;background-image:linear-gradient(#1918150d 1px,transparent 1px);background-size:100% 32px;max-width:960px;box-shadow:10px 10px 0 #dccdb4}
.note-head{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.note-cross{font-size:36px;line-height:1;font-weight:300}
.note-head .eyebrow{color:#4f3716;margin:0}
.story-note h2{font-size:clamp(38px,5vw,64px);margin-bottom:22px}
.story-note>p{font-size:20px;line-height:1.6;max-width:680px;margin-bottom:28px}
.contact-opening{padding:8px 0 46px;border-bottom:1px solid var(--line);margin-bottom:48px}
.contact-opening h1{margin-bottom:22px}
.contact-opening .contact-lead{max-width:760px;margin-bottom:0}
.contact-desk{display:grid;grid-template-columns:.7fr 1.3fr;gap:60px;align-items:start}
.contact-brief{padding:28px 0}
.contact-brief h2{font-size:clamp(30px,3vw,43px);margin-bottom:38px}
.brief-row{padding:21px 0;border-top:1px dashed #aa9b85;display:grid;grid-template-columns:100px 1fr;gap:18px}
.brief-row>span{font-size:16px;font-weight:700}
.brief-row p{font-size:17px;line-height:1.6;color:var(--soft-ink);margin:0}
.brief-note{padding:25px;margin:30px 0;background:#e9ac4e;transform:rotate(-1.2deg)}
.brief-note p{font-size:20px;font-weight:700;margin:0 0 8px;letter-spacing:-.025em}
.brief-note span{font-size:17px;line-height:1.6;display:block}
.request-sheet{position:relative;background:#fffdf8;border:1px solid #cbbfae;padding:40px;box-shadow:8px 8px 0 #e2d7c6;scroll-margin-top:42px}
.request-sheet::before{content:"";position:absolute;top:-1px;right:24px;width:42px;height:10px;border:2px solid #9e8b6f;border-top:0;border-radius:0 0 5px 5px}
.request-sheet-heading{border-bottom:1px solid #d5c9b6;padding-bottom:25px;margin-bottom:28px}
.sheet-tab{display:inline-block;font-size:14px;background:#efd6aa;padding:6px 12px;margin-bottom:22px;font-weight:700}
.request-sheet-heading h2{font-size:clamp(30px,3.5vw,46px);margin-bottom:17px}
.request-sheet-heading p{font-size:16px;color:var(--soft-ink);margin:0}
.desk-form{gap:24px 20px}
.desk-form input,.desk-form textarea{background:#f7f2e9;font-size:16px;border-color:#b9aa94;min-width:0}
.desk-form textarea{min-height:155px}
.desk-form label{font-size:16px}
.desk-form>div{min-width:0}
.desk-form input::placeholder,.desk-form textarea::placeholder{color:#72685b;opacity:1}
.interest-choices{padding:0;margin:0 0 4px;border:0;min-width:0}
.interest-choices legend{font-size:16px;font-weight:650;margin-bottom:12px}
.interest-choices>div{display:flex;flex-wrap:wrap;gap:8px}
.interest-choices label{position:relative;margin:0;font-size:14px;font-weight:600;cursor:pointer}
.interest-choices input{position:absolute;opacity:0;width:1px;height:1px;padding:0;min-height:0}
.interest-choices span{display:block;border:1px solid #b9aa94;padding:9px 13px;min-height:42px;background:#fffdf8}
.interest-choices input:checked+span{background:#191815;color:#fffdf8;border-color:#191815}
.interest-choices input:focus-visible+span{outline:3px solid #a35a00;outline-offset:3px}
.desk-form .form-note{font-size:14px;line-height:1.6;margin:0}
.request-send{display:flex;flex-direction:column;align-items:flex-start;gap:13px}
.request-send>span{font-size:14px;color:var(--soft-ink)}
.contact-after{display:grid;grid-template-columns:.7fr 1.3fr;gap:60px;margin-top:65px;padding:32px 0 0;border-top:1px solid var(--line)}
.contact-after h2{font-size:30px}
.contact-after p{font-size:17px;line-height:1.65;color:var(--soft-ink)}
@media(max-width:1050px){
.story-opening{gap:35px}.story-still-image{height:440px}.contact-desk{gap:32px;grid-template-columns:.75fr 1.25fr}.request-sheet{padding:28px}.brief-row{grid-template-columns:1fr;gap:8px}.contact-after{gap:32px}
}
@media(max-width:767px){
.header-nav>a{display:none}.header-nav{gap:13px}.mobile-site-menu{display:block;font-size:14px;position:relative;font-weight:600}.mobile-site-menu summary{cursor:pointer;list-style:none;padding:8px 0;min-height:40px;display:flex;align-items:center;gap:7px}.mobile-site-menu summary::-webkit-details-marker{display:none}.mobile-site-menu summary::after{content:"+";font-size:23px;font-weight:400;line-height:1}.mobile-site-menu[open] summary::after{content:"×"}.mobile-site-menu nav{position:absolute;right:0;top:calc(100% + 12px);width:260px;max-width:calc(100vw - 44px);display:flex;flex-direction:column;background:#fffbf4;border:1px solid var(--line);box-shadow:5px 6px 0 #dacebb;z-index:10}.mobile-site-menu nav a{display:block;padding:14px 20px;border-bottom:1px solid #e1d7c7;font-size:16px}.mobile-site-menu nav a:last-child{border-bottom:0}.mobile-site-menu nav a[aria-current="page"]{background:#efd6aa}.search-panel{z-index:11}
.story-opening{grid-template-columns:1fr;padding-bottom:48px;gap:42px}.story-opening h1,.contact-opening h1{font-size:clamp(40px,10.5vw,65px)}.story-lead,.contact-lead{font-size:21px}.story-intro{font-size:17px}.story-still{margin:0 9px 0 2px;padding:12px}.story-still-image{height:380px}.story-still figcaption{left:25px;right:-8px;bottom:28px;padding:18px 20px}.story-statement{grid-template-columns:1fr;gap:14px;padding:42px 0}.story-statement>.eyebrow{margin-bottom:12px}.story-statement p:not(.eyebrow){font-size:18px}.story-directions{padding:44px 0}.direction-pair{grid-template-columns:1fr;gap:25px}.direction-photo{height:225px}.direction-copy{padding:24px}.story-note{padding:30px 25px 35px;margin-right:7px;box-shadow:6px 6px 0 #dccdb4}.story-note>p{font-size:18px}.note-head{gap:10px}.note-head .eyebrow{font-size:12px}.contact-opening{padding-bottom:32px;margin-bottom:28px}.contact-desk{grid-template-columns:1fr;gap:30px}.contact-brief{padding:0}.contact-brief h2{font-size:34px;margin-bottom:26px}.brief-row{grid-template-columns:83px 1fr;gap:14px;padding:17px 0}.brief-note{margin:22px 0}.request-sheet{padding:27px 21px;box-shadow:5px 5px 0 #e2d7c6;margin-right:5px}.request-sheet-heading h2{font-size:34px}.desk-form{grid-template-columns:1fr;gap:22px}.desk-form .form-wide{grid-column:1/-1}.interest-choices>div{gap:8px}.interest-choices span{padding:9px 10px}.contact-after{grid-template-columns:1fr;gap:6px;margin-top:43px;padding-top:27px}.contact-after h2{font-size:28px;margin-bottom:16px}.ap-story .eyebrow,.ap-contact .eyebrow{line-height:1.6}
}
@media(max-width:380px){.header-nav{gap:9px}.mobile-site-menu{font-size:13px}.brand{font-size:28px}.story-opening h1,.contact-opening h1{font-size:39px}.request-sheet{padding:24px 17px}.brief-row{grid-template-columns:1fr;gap:6px}}

