/*
Theme Name: Stippple
Theme URI: https://stippple.com/
Author: STIPPPLE
Author URI: https://stippple.com/
Description: The STIPPPLE studio theme: a dotted, linocut-flavoured site for a digital product and marketing agency. Animated dot-art hero, sticky service stack, enquiry basket, community gallery, team strip, three ink colourways, plus page templates for Services, Service detail, About, Community, Contact, Brand guidelines and Logo options. Go to Appearance → Stippple setup after activating to create the pages, menu and demo posts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stippple
Tags: custom-menu, custom-logo, featured-images, one-column, portfolio, blog
*/

/* The design itself lives in assets/css/main.css (ported unchanged from the static redesign).
   This file only adds what WordPress needs on top of it. */

/* admin bar: push the floating top bar down */
.admin-bar .bar{top:46px}
@media (max-width:782px){.admin-bar .bar{top:60px}}
.admin-bar .menu{padding-top:150px}

/* accessibility helpers WordPress expects */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;left:16px;top:16px;z-index:100000;padding:12px 18px;background:var(--purple);color:var(--on-p);border-radius:99px;font-weight:800}

/* custom logo (when one is set in the Customizer) */
.logo .custom-logo-link,.logo img{display:block}
.bar .custom-logo{max-height:38px;width:auto}

/* editor content inside .post (blog posts and default pages) */
.post>*:last-child{margin-bottom:0}
.post h2,.post h3,.post h4{font-family:var(--display);letter-spacing:-.03em;line-height:1.05;margin:1.6em 0 .6em}
.post h2{font-size:clamp(1.8rem,3.4vw,2.6rem);font-variation-settings:normal}
.post h3{font-size:clamp(1.4rem,2.4vw,1.9rem)}
.post h4{font-size:1.25rem}
.post ul,.post ol{font-size:1.15rem;line-height:1.75;margin:0 0 1.3em 1.4em}
.post li{margin-bottom:.4em}
.post a:not(.btn):not(.chips-link){color:var(--purple);border-bottom:2px dotted var(--coral)}
.post a:not(.btn):not(.chips-link):hover{color:var(--coral)}
.post img,.post figure{max-width:100%;height:auto;border-radius:24px}
.post figure{margin:2em 0}
.post figcaption{font:400 .78rem var(--mono);color:var(--muted);margin-top:10px;letter-spacing:.06em}
.post hr{border:0;border-top:2px dotted var(--line);margin:2.4em 0}
.post table{width:100%;border-collapse:collapse;margin:0 0 1.4em}
.post th,.post td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left}
.post code{font-family:var(--mono);font-size:.9em;background:var(--bg2);padding:2px 6px;border-radius:6px}
.post .alignleft{float:left;margin:0 1.6em 1em 0}
.post .alignright{float:right;margin:0 0 1em 1.6em}
.post .aligncenter{margin-left:auto;margin-right:auto}
.post .alignwide{margin-left:-6vw;margin-right:-6vw;max-width:none}
.post .alignfull{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw;border-radius:0}
.p-sec .post{padding:0}
.page-body{padding-bottom:10vh}

/* blog listing extras */
.bgrid-empty{max-width:640px;font-size:1.15rem;color:var(--muted)}
.pagination{display:flex;justify-content:center;margin-top:6vh}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.pagination .page-numbers{display:grid;place-items:center;min-width:46px;height:46px;padding:0 14px;border-radius:99px;border:1.5px solid var(--line);font-weight:800;transition:background .2s,color .2s,border-color .2s}
.pagination .page-numbers.current,.pagination a.page-numbers:hover{background:var(--purple);border-color:var(--purple);color:var(--on-p)}
.search-form{display:flex;gap:10px;margin-top:26px;max-width:520px}
.search-form input{flex:1;font:inherit;padding:14px 20px;border-radius:99px;border:1.5px solid var(--line);background:var(--card);color:var(--text)}
.search-form button{padding:0 22px;border-radius:99px;background:var(--purple);color:var(--on-p);font-weight:800}

/* contact form states coming back from the server */
.mad .err-msg{display:none;margin-top:12px;color:var(--coral);font-weight:800}
.mad.failed .err-msg{display:block}
.sub-form .err{display:none}
.sub-form.failed .err{display:block;position:absolute;left:0;top:calc(100% + 8px);color:var(--coral);font-size:.85rem;font-weight:800}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
