/*
Theme Name: Maggie Snuggles
Description: A playful, premium theme for My Dog Maggie. Collar navigation, sticker outlines, and photos in paw, heart and doghouse shapes.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: maggie-snuggles
*/

:root {
	--cocoa: #2f1b14;
	--cocoa-2: #5b4034;
	--cream: #fff8ea;
	--butter: #ffeec9;
	--honey: #ffc861;
	--gold: #f5a32f;
	--tongue: #ff6f61;
	--tongue-dark: #b83226;
	--harness: #5c2d91;
	--harness-deep: #43206b;
	--grass: #2f6b4a;
	--line: 3px solid var(--cocoa);
	--sticker: 5px 7px 0 var(--cocoa);
	--ms-font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--ms-font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
	--ms-font-script: "Caveat", "Segoe Print", cursive;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--cocoa);
	font: 400 clamp(1.05rem, .98rem + .3vw, 1.2rem)/1.7 var(--ms-font-body);
	overflow-x: clip;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--harness); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tongue-dark); }
h1, h2, h3, h4 { font-family: var(--ms-font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--harness); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; }
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text, .pawform__treat {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--cocoa); color: var(--cream); padding: .5em 1em; border-radius: 99px; }
.skip-link:focus { top: 12px; color: var(--cream); }

/* ---------- Collar navigation ---------- */
.collar { position: sticky; top: 0; z-index: 40; padding-top: 10px; pointer-events: none; }
.admin-bar .collar { top: 32px; }
.collar__band {
	pointer-events: auto;
	position: relative;
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	min-height: 62px;
	padding: 0 var(--gutter) 0 calc(var(--gutter) + 118px);
	background: var(--harness);
	border-block: var(--line);
	box-shadow: 0 6px 0 rgb(47 27 20 / .16);
}
.collar__band::after { /* stitching */
	content: ""; position: absolute; inset: 7px 0; pointer-events: none;
	border-block: 2px dashed rgb(255 248 234 / .42);
}
.nametag {
	position: absolute; z-index: 2; left: var(--gutter); top: 18px;
	display: block; width: 104px; text-align: center; text-decoration: none; color: var(--cocoa);
	transform-origin: 50% 0; animation: tag-swing 5s ease-in-out infinite;
}
.nametag:hover { color: var(--cocoa); animation-duration: .9s; }
.nametag__ring { display: block; width: 22px; height: 22px; margin: 0 auto -9px; border: 4px solid var(--cocoa); border-radius: 50%; background: transparent; }
.nametag__disc {
	display: grid; place-items: center; width: 92px; height: 92px; margin-inline: auto;
	background: radial-gradient(circle at 34% 28%, #ffe9b3, var(--honey) 58%, var(--gold));
	border: var(--line); border-radius: 50%; box-shadow: var(--sticker);
}
.nametag__disc img { width: 66px; height: 66px; }
.nametag__name {
	display: block; width: max-content; margin: 8px auto 0; padding: 0 12px;
	font: 600 .92rem/1.7 var(--ms-font-display);
	background: var(--cream); border: var(--line); border-radius: 99px;
}
.collar__nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-left: auto; }
.collar__menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; list-style: none; }
.collar__menu a {
	display: block; padding: .28em .8em; border-radius: 99px;
	color: var(--cream); font: 500 1.02rem/1.6 var(--ms-font-display); text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s, transform .2s;
}
.collar__menu a:hover, .collar__menu .current-menu-item > a, .collar__menu .current_page_item > a {
	background: var(--honey); color: var(--cocoa); transform: rotate(-2deg);
}
.collar__menu :focus-visible, .collar__toggle:focus-visible { outline-color: var(--honey); }
.collar__toggle {
	display: none; position: relative; z-index: 1; margin-left: auto; align-items: center; gap: .4em;
	padding: .2em .9em; background: var(--honey); color: var(--cocoa);
	border: var(--line); border-radius: 99px; font: 600 1rem/1.6 var(--ms-font-display); cursor: pointer;
}
.sniffbox { display: flex; align-items: center; background: var(--cream); border: var(--line); border-radius: 99px; overflow: hidden; }
.sniffbox input { width: 96px; min-width: 0; padding: .2em .1em .2em .9em; border: 0; background: none; font: 600 .95rem/1.6 var(--ms-font-body); color: var(--cocoa); transition: width .25s; }
.sniffbox input:focus { width: 150px; outline: 0; }
.sniffbox:focus-within { box-shadow: 0 0 0 3px var(--honey); }
.sniffbox input::placeholder { color: var(--cocoa-2); opacity: 1; }
.sniffbox button { display: grid; place-items: center; width: 38px; height: 34px; border: 0; background: none; color: var(--cocoa); font-size: 1rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn-bone, .gwolle-gb input[type="button"], .gwolle-gb input[type="submit"], .comments input[type="submit"] {
	--c: var(--tongue);
	position: relative; display: inline-block; isolation: isolate;
	margin: 12px 18px; padding: .46em 1.15em;
	background: var(--c); color: var(--cocoa);
	border: var(--line); border-radius: 12px;
	font: 600 1.08rem/1.35 var(--ms-font-display); text-decoration: none; cursor: pointer;
	transition: transform .2s cubic-bezier(.3,1.6,.6,1);
}
.btn-bone::before, .btn-bone::after { /* bone knobs */
	content: ""; position: absolute; z-index: -1; top: 50%; width: 30px; height: calc(100% + 20px);
	transform: translateY(-50%);
	background:
		radial-gradient(circle at 50% 13px, var(--c) 10px, var(--cocoa) 10.5px 13px, transparent 13.5px),
		radial-gradient(circle at 50% calc(100% - 13px), var(--c) 10px, var(--cocoa) 10.5px 13px, transparent 13.5px);
}
.btn-bone::before { left: -16px; }
.btn-bone::after { right: -16px; }
.btn-bone:hover, .btn-bone:focus-visible { color: var(--cocoa); transform: rotate(-3deg) scale(1.05); }
.btn-text { color: var(--cocoa); font-family: var(--ms-font-display); font-weight: 500; }

/* ---------- Shapes ---------- */
.shape { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--honey); }
.shape img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.9,.3,1); }
.shape--paw { clip-path: url(#shape-paw); }
.shape--heart { clip-path: url(#shape-heart); }
.shape--house { clip-path: url(#shape-house); }
.shape--scallop { clip-path: url(#shape-scallop); }
.shape--blob { clip-path: url(#shape-blob); }
.shape--bubble { clip-path: url(#shape-bubble); }
.shape--tag { clip-path: url(#shape-tag); }
.shape-frame { /* a sticker outline that follows any clipped shape */
	display: block;
	filter: drop-shadow(3px 0 0 var(--cocoa)) drop-shadow(-3px 0 0 var(--cocoa)) drop-shadow(0 3px 0 var(--cocoa)) drop-shadow(0 -3px 0 var(--cocoa)) drop-shadow(5px 7px 0 var(--honey));
}

/* ---------- Hero ---------- */
.hero, .pagehead {
	position: relative; overflow: hidden; isolation: isolate;
	margin-top: -84px; padding-top: 170px;
	background:
		radial-gradient(circle at 12% 18%, rgb(255 255 255 / .55), transparent 28%),
		radial-gradient(circle at 92% 8%, rgb(255 111 97 / .2), transparent 26%),
		var(--honey);
}
.hero { padding-bottom: clamp(110px, 12vw, 170px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero__woof {
	display: inline-block; margin: 0 0 14px; padding: 0 16px;
	font: 600 1.7rem/1.45 var(--ms-font-script); background: var(--cream); border: var(--line); border-radius: 22px 22px 22px 4px;
	transform: rotate(-4deg); animation: woof 3.2s ease-in-out infinite;
}
.hero__title { margin: 0; font-size: clamp(2.7rem, 1.5rem + 5.2vw, 5.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.hero__tag { margin: .55em 0 0; font: 600 clamp(1.8rem, 1.4rem + 1.5vw, 2.7rem)/1.1 var(--ms-font-script); color: var(--harness-deep); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 26px 0 0; }
.hero__photo { position: relative; width: min(100%, 560px); justify-self: center; }
.shape--hero { position: relative; }
.hero__photo .shape { filter: none; }
.hero__photo::before { content: ""; position: absolute; inset: -3.5%; z-index: -1; border-radius: 50%; background: var(--cream); border: var(--line); box-shadow: 8px 11px 0 var(--cocoa); }
.hero__ear { position: absolute; z-index: -2; top: 2%; width: 30%; height: 54%; background: var(--gold); border: var(--line); }
.hero__ear--l { left: -8%; border-radius: 70% 30% 45% 55% / 28% 22% 78% 72%; transform: rotate(16deg); transform-origin: 80% 0; animation: ear 4.5s ease-in-out infinite; }
.hero__ear--r { right: -8%; border-radius: 30% 70% 55% 45% / 22% 28% 72% 78%; transform: rotate(-16deg); transform-origin: 20% 0; animation: ear-r 4.5s ease-in-out infinite; }
.hero__ball { position: absolute; right: -2%; bottom: 3%; width: 21%; height: 21%; filter: drop-shadow(4px 6px 0 rgb(47 27 20 / .9)); animation: bounce 2.4s cubic-bezier(.3,0,.6,1) infinite; }
.hero__print { position: absolute; z-index: -1; width: 62px; height: 62px; color: rgb(47 27 20 / .1); }
.hero__print--1 { left: 3%; top: 58%; transform: rotate(-22deg); }
.hero__print--2 { left: 10%; top: 75%; transform: rotate(8deg); }
.hero__print--3 { left: 20%; top: 66%; transform: rotate(-16deg); }
.hero__toy { position: absolute; z-index: -1; }
.hero__toy--bone { right: 4%; top: 136px; width: 92px; height: 46px; color: var(--cream); transform: rotate(-20deg); }
.hero__toy--heart { left: 45%; top: 150px; width: 40px; height: 38px; color: var(--tongue); transform: rotate(12deg); animation: beat 1.8s ease-in-out infinite; }
.hero__edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 110px); color: var(--cream); }
.edge { display: block; }

.pagehead { padding-bottom: clamp(90px, 10vw, 130px); }
.pagehead__grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.pagehead__title { margin: 0; font-size: clamp(2.5rem, 1.6rem + 4vw, 4.6rem); font-weight: 700; line-height: 1.04; text-wrap: balance; }
.pagehead__meta { margin: .4em 0 0; font-weight: 800; }
.pagehead__photo { width: clamp(170px, 24vw, 300px); transform: rotate(3deg); }

/* ---------- Content ---------- */
.about { padding-block: 20px clamp(60px, 8vw, 100px); }
.about__grid { display: grid; gap: clamp(36px, 5vw, 60px); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); align-items: start; gap: clamp(28px, 4vw, 56px); padding-block: 12px clamp(70px, 8vw, 110px); }
.cloud {
	position: relative; padding: clamp(24px, 4vw, 52px);
	background: #fff; border: var(--line);
	border-radius: 58px 38px 62px 34px / 42px 60px 36px 58px;
	box-shadow: 7px 9px 0 var(--honey), 7px 9px 0 3px var(--cocoa);
}
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p img, .entry-content > img {
	display: block; margin: 1.4em auto .4em; padding: 10px; background: var(--cream);
	border: var(--line); border-radius: 44px 28px 48px 26px / 30px 46px 28px 44px;
	box-shadow: 6px 8px 0 var(--tongue), 6px 8px 0 3px var(--cocoa);
	transform: rotate(-1.2deg);
}
.taglist a { display: inline-block; padding: 0 .7em; background: var(--butter); border-radius: 99px; }

/* ---------- Side widgets: collar tags ---------- */
.jar { display: grid; gap: 34px; }
.jar--row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.jar .widget {
	position: relative; padding: 42px 18px 20px; text-align: center;
	background: var(--butter); border: var(--line);
	border-radius: 34px 34px 80px 80px / 34px 34px 62px 62px;
	box-shadow: 5px 7px 0 var(--cocoa);
}
.jar .widget:nth-child(3n+1) { transform: rotate(-1.2deg); }
.jar .widget:nth-child(3n+2) { background: #ffe0dc; transform: rotate(1deg); }
.jar .widget:nth-child(3n) { background: #eadff7; transform: rotate(-.6deg); }
.jar .widget::before { /* tag hole */
	content: ""; position: absolute; left: 50%; top: 12px; width: 20px; height: 20px; margin-left: -10px;
	background: var(--cream); border: var(--line); border-radius: 50%;
}
.widget-title { font-size: 1.28rem; font-weight: 600; }
.jar .widget img { border-radius: 26px; }
.jar .media_image img, .widget_media_image img { background: #fff; padding: 8px; }

/* ---------- Sniff around ---------- */
.sniff { position: relative; padding-block: clamp(30px, 5vw, 60px) clamp(90px, 10vw, 130px); background: var(--butter); }
.sniff__edge { position: absolute; left: 0; bottom: 100%; width: 100%; height: clamp(26px, 4vw, 48px); margin-bottom: -1px; color: var(--butter); }
.sniff__title { text-align: center; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 700; }
.sniff__list { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 3.4vw, 44px); margin: 28px 0 0; padding: 0; list-style: none; }
.sniff__item { width: clamp(136px, 21vw, 245px); }
.sniff__item:nth-child(odd) { margin-top: 26px; }
.sniff__item a { display: block; color: var(--cocoa); text-align: center; text-decoration: none; }
.sniff__item a:hover .shape img { transform: scale(1.09); }
.sniff__item .shape-frame { transition: transform .3s cubic-bezier(.3,1.6,.6,1); }
.sniff__item:nth-child(2n) a:hover .shape-frame { transform: rotate(4deg) scale(1.04); }
.sniff__item:nth-child(2n+1) a:hover .shape-frame { transform: rotate(-4deg) scale(1.04); }
.sniff__label { display: inline-block; margin-top: 14px; font: 600 1.2rem/1.25 var(--ms-font-display); }
.sniff__item a:hover .sniff__label { text-decoration: underline wavy var(--tongue) 2px; text-underline-offset: 5px; }
.js .will-hop { opacity: 0; transform: translateY(28px) scale(.92); }
.js .will-hop.is-in { opacity: 1; transform: none; transition: opacity .4s, transform .6s cubic-bezier(.3,1.7,.6,1); }

/* ---------- Envira galleries: keep the plugin's layout and lightbox ---------- */
.envira-gallery-wrap { margin-block: 1.4em; }
.envira-gallery-item-inner { transition: transform .28s cubic-bezier(.3,1.6,.6,1); }
.envira-gallery-item-inner:hover { transform: rotate(-2deg) scale(1.03); z-index: 2; }
.envira-gallery-item:nth-child(2n) .envira-gallery-item-inner:hover { transform: rotate(2deg) scale(1.03); }
.envira-gallery-public .envira-gallery-image { border-radius: 40% 34% 44% 30% / 34% 44% 30% 42%; background: var(--butter); }
.envira-gallery-public .envira-gallery-item:nth-child(4n+2) .envira-gallery-image { border-radius: 30% 44% 32% 42% / 44% 30% 42% 34%; }
.envira-gallery-public .envira-gallery-item:nth-child(4n+3) .envira-gallery-image { border-radius: 50%; }
.envira-gallery-public .envira-gallery-item:nth-child(9n) .envira-gallery-image { clip-path: url(#shape-heart); border-radius: 0; }
.envira-gallery-public .envira-gallery-item:nth-child(9n+5) .envira-gallery-image { clip-path: url(#shape-scallop); border-radius: 0; }
.jar .envira-gallery-public .envira-gallery-image { border-radius: 40% 34% 44% 30% / 34% 44% 30% 42% !important; clip-path: none; }

/* ---------- Videos ---------- */
.entry-content .videopack-wrapper, .entry-content .kgvid_wrapper, .entry-content .wp-video {
	margin-block: 1.3em; overflow: hidden; border: var(--line);
	border-radius: 34px 26px 38px 24px / 26px 36px 24px 34px;
	box-shadow: 5px 7px 0 var(--honey), 5px 7px 0 3px var(--cocoa);
}

/* ---------- Forms: contact, guestbook, comments ---------- */
.pawform { display: grid; gap: 4px; }
.pawform__row { margin: 0 0 12px; }
.pawform label, .comment-form label, .gwolle-gb .label label { display: block; font: 500 1.08rem/1.5 var(--ms-font-display); color: var(--cocoa); }
.pawform__req { font: 600 .84rem var(--ms-font-body); color: var(--cocoa-2); }
.pawform input, .pawform textarea, .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea, .gwolle-gb input[type="text"], .gwolle-gb input[type="email"], .gwolle-gb input[type="url"], .gwolle-gb textarea {
	width: 100%; max-width: 100%; padding: .62em 1em; background: var(--cream); color: var(--cocoa);
	border: var(--line); border-radius: 24px; font: 400 1rem/1.5 var(--ms-font-body);
}
.pawform input:focus, .pawform textarea:focus, .comment-form input:focus, .comment-form textarea:focus, .gwolle-gb input:focus, .gwolle-gb textarea:focus { outline: 0; box-shadow: 0 0 0 4px var(--honey); }
.pawform .btn-bone { justify-self: start; }
.pawform__note { margin: 0 0 16px; padding: .7em 1.1em; border: var(--line); border-radius: 22px; font-weight: 800; }
.pawform__note--ok { background: #d5f2dc; }
.pawform__note--bad { background: #ffd9d4; }

.gwolle-gb { font-size: 1rem; }
.gwolle-gb input[type="button"], .gwolle-gb input[type="submit"] { margin: 8px 0; border-radius: 99px; }
.gwolle-gb .gb-entry, .gwolle-gb .gb-entry-admin-reply { position: relative; }
.gwolle-gb .gb-entry {
	margin: 26px 0 34px !important; padding: 18px 24px !important;
	background: var(--butter) !important; border: var(--line) !important;
	border-radius: 34px 34px 34px 6px !important;
	box-shadow: 4px 5px 0 var(--cocoa);
}
.gwolle-gb .gb-entry:nth-of-type(even) { background: #ffe0dc !important; border-radius: 34px 34px 6px 34px !important; }
.gwolle-gb .gb-author-info { font-family: var(--ms-font-display); font-weight: 500; }
.gwolle-gb .gb-entry-content { margin-top: .4em; }
.gwolle-gb .gb-author-avatar img, .gwolle-gb .avatar { border: var(--line); border-radius: 50%; }
.gwolle-gb form.gwolle-gb-write { background: var(--cream); border: var(--line); border-radius: 34px; padding: 22px; }

/* ---------- Comments and listings ---------- */
.comments { padding-bottom: 90px; max-width: 860px; }
.comments__list { margin: 0 0 34px; padding: 0; list-style: none; }
.bubble { margin: 18px 0; padding: 18px 24px; background: var(--butter); border: var(--line); border-radius: 30px 30px 30px 6px; box-shadow: 4px 5px 0 var(--cocoa); }
.bubble__who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bubble__who img { border: var(--line); border-radius: 50%; }
.bubble__who time { font-size: .86rem; }
.comment-reply-title { font-size: 1.6rem; }
.comments input[type="submit"] { margin-inline: 0; border-radius: 99px; }
.cards { display: grid; gap: 28px; }
.card { padding: 26px 32px; background: #fff; border: var(--line); border-radius: 40px 30px 44px 26px / 30px 42px 28px 40px; box-shadow: 5px 7px 0 var(--honey), 5px 7px 0 3px var(--cocoa); }
.card h2 { font-size: 1.6rem; }
.lost { text-align: center; }
.lost__dog { width: min(100%, 300px); margin-inline: auto; }
.lost .sniffbox { width: min(100%, 320px); margin: 16px auto; }
.lost .sniffbox input { flex: 1; width: auto; }

/* ---------- Footer: the backyard ---------- */
.yard { position: relative; margin-top: 110px; padding-bottom: 28px; background: var(--grass); color: #fff8ea; isolation: isolate; }
.sniff + .yard, main:has(.sniff) + .yard { margin-top: 0; }
main:has(.sniff) + .yard { background: var(--grass); }
.yard__edge { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(50px, 7vw, 100px); color: var(--grass); }
.yard__peek { position: absolute; z-index: -1; left: 50%; bottom: calc(100% + clamp(4px, 3vw, 40px)); width: clamp(130px, 17vw, 210px); transform: translateX(-50%); }
.peek { display: block; width: 100%; height: auto; overflow: visible; }
.peek__pupils { transition: transform .12s ease-out; }
.peek__eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.peek__tongue { transform-box: fill-box; transform-origin: 50% 0; animation: pant .7s ease-in-out infinite alternate; }
.peek__ear { transform-box: fill-box; }
.peek__ear--l { transform-origin: 90% 10%; animation: ear 4.5s ease-in-out infinite; }
.peek__ear--r { transform-origin: 10% 10%; animation: ear-r 4.5s ease-in-out infinite; }
.yard__inner { width: min(100%, 1240px); margin-inline: auto; padding: 36px var(--gutter) 0; }
.yard__cols { display: grid; grid-template-columns: 1.2fr .8fr 1.1fr; align-items: start; gap: clamp(26px, 5vw, 70px); }
.yard .widget + .widget { margin-top: 30px; }
.yard .widget-title { color: var(--honey); font-size: 1.45rem; }
.yard .widget-title:empty, .yard .widget_media_image .widget-title { display: none; }
.yard ul { margin: 0; padding: 0; list-style: none; }
.yard li { position: relative; padding: .18em 0 .18em 1.6em; }
.yard li::before { /* paw bullet */
	content: ""; position: absolute; left: 0; top: .62em; width: 1em; height: 1em; background: var(--honey);
	clip-path: url(#shape-paw);
}
.yard a { color: #fff8ea; font-weight: 600; }
.yard a:hover { color: var(--honey); }
.yard .widget_media_image { text-align: center; }
.yard .widget_media_image img { width: min(100%, 240px); border: 4px solid var(--cocoa); border-radius: 50%; box-shadow: 5px 7px 0 var(--honey); }
.yard__credit { margin: 42px 0 0; padding-right: 90px; font-size: .92rem; }
.yard__credit .ico { color: var(--honey); }
.yard__house { position: absolute; z-index: -1; right: var(--gutter); bottom: calc(100% + 2px); width: clamp(70px, 9vw, 120px); height: clamp(64px, 8.200vw, 110px); }
.yard__bowl { position: absolute; z-index: -1; left: 7%; bottom: calc(100% + 18px); width: clamp(52px, 6vw, 84px); height: clamp(36px, 4vw, 56px); color: var(--tongue); }

/* ---------- Little extras ---------- */
.fetch {
	position: fixed; z-index: 30; right: 16px; bottom: 16px; display: grid; place-items: center;
	width: 58px; height: 58px; padding: 0; background: none; border: 0; cursor: pointer;
	font-size: 54px; opacity: 0; visibility: hidden; transform: translateY(20px) rotate(-90deg);
	transition: opacity .25s, transform .4s cubic-bezier(.3,1.6,.6,1), visibility .25s;
}
.fetch.is-out { opacity: 1; visibility: visible; transform: none; }
.fetch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pop-heart { position: fixed; z-index: 90; width: 24px; height: 22px; margin: -11px 0 0 -12px; color: var(--tongue); pointer-events: none; animation: pop .7s ease-out forwards; }

@keyframes tag-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes woof { 0%, 88%, 100% { transform: rotate(-4deg); } 92% { transform: rotate(-9deg) scale(1.06); } 96% { transform: rotate(1deg) scale(1.03); } }
@keyframes ear { 0%, 84%, 100% { rotate: 0deg; } 90% { rotate: -5deg; } 95% { rotate: 3deg; } }
@keyframes ear-r { 0%, 80%, 100% { rotate: 0deg; } 87% { rotate: 5deg; } 93% { rotate: -3deg; } }
@keyframes bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -24px; } }
@keyframes beat { 0%, 100% { scale: 1; } 15% { scale: 1.18; } 30% { scale: 1; } 45% { scale: 1.12; } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97.500% { transform: scaleY(.08); } }
@keyframes pant { from { transform: scaleY(.88); } to { transform: scaleY(1.06); } }
@keyframes pop { from { opacity: 1; transform: translateY(0) scale(.5); } to { opacity: 0; transform: translateY(-46px) scale(1.15) rotate(12deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
	.collar__toggle { display: inline-flex; }
	.collar__band { padding-left: calc(var(--gutter) + 110px); }
	.collar__nav {
		display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 76px);
		flex-direction: column; align-items: stretch; margin: 0; padding: 18px;
		background: var(--harness); border: var(--line); border-radius: 34px; box-shadow: var(--sticker);
	}
	.js .collar__nav.is-open { display: flex; }
	html:not(.js) .collar__nav { display: flex; position: static; }
	.collar__menu { flex-direction: column; }
	.collar__menu a { font-size: 1.15rem; padding: .3em 1em; }
	.sniffbox input, .sniffbox input:focus { flex: 1; width: auto; }
}
@media (max-width: 900px) {
	.layout, .jar--row, .hero__grid { grid-template-columns: minmax(0, 1fr); }
	.jar--row, .jar { max-width: 460px; margin-inline: auto; width: 100%; }
	.hero__photo { width: min(84%, 460px); }
	.hero__toy--heart { left: 76%; top: 130px; }
	.hero__toy--bone { display: none; }
	.yard__cols { grid-template-columns: minmax(0, 1fr); }
	.yard .widget_media_image img { width: 180px; }
}
@media (max-width: 600px) {
	.nametag { width: 84px; top: 14px; }
	.nametag__disc { width: 66px; height: 66px; }
	.nametag__disc img { width: 46px; height: 46px; }
	.nametag__name { font-size: .78rem; padding: 0 8px; }
	.collar__band { min-height: 56px; padding-left: calc(var(--gutter) + 86px); }
	.hero, .pagehead { padding-top: 158px; }
	.pagehead__grid { grid-template-columns: minmax(0, 1fr); }
	.pagehead__photo { width: 190px; justify-self: center; }
	.cloud { border-radius: 40px 28px 44px 26px / 30px 42px 26px 40px; }
	.sniff__item { width: calc(50% - 14px); }
	.sniff__list { gap: 20px 18px; }
	.btn-bone { font-size: 1rem; }
	.yard__bowl { display: none; }
}
@media (max-width: 782px) { .admin-bar .collar { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .will-hop { opacity: 1; transform: none; }
}
