/* Doggy Tails ~ playful paw
   sky, tangerine, chocolate, cream, grass. Bouncy cards, a paw trail, a bottom dock. */

:root {
  --sky: #BDE7FF;
  --tangerine: #FF8A3D;
  --choc: #4A2C1A;
  --cream: #FFF7EA;
  --grass: #6CC04A;
  --white: #FFFFFF;
  --boing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fun: "Chewy", "Comic Sans MS", "Trebuchet MS", cursive, sans-serif;
  --plain: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --dock-room: 6.75rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: var(--dock-room); }

body {
  margin: 0;
  padding-bottom: var(--dock-room);
  background: var(--cream);
  color: var(--choc);
  font-family: var(--plain);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.65;
}

h1, h2, h3 { margin: 0; font-family: var(--fun); font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { max-width: 100%; }

a { color: var(--choc); font-weight: 800; text-decoration-color: var(--tangerine); text-decoration-thickness: 3px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--grass); }
:focus-visible { outline: 4px solid var(--choc); outline-offset: 4px; border-radius: 0.75rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hop { position: absolute; left: 1rem; top: -5rem; z-index: 80; padding: 0.6rem 1.1rem; background: var(--choc); color: var(--cream); border-radius: 2rem; }
.hop:focus { top: 1rem; }

.lawn { width: min(100% - 2rem, 62rem); margin-inline: auto; }

/* ~~~ sky (page top) ~~~ */

.sky { position: relative; background: var(--sky); border-radius: 0 0 3rem 3rem; padding: 1.1rem 0 clamp(2rem, 6vw, 3.5rem); overflow: hidden; }
.sky::before, .sky::after { content: ""; position: absolute; border-radius: 50%; background: var(--white); opacity: 0.55; }
.sky::before { width: 9rem; height: 3.2rem; right: 8%; top: 1.6rem; box-shadow: 2.6rem 1rem 0 -0.4rem var(--white); }
.sky::after { width: 6rem; height: 2.2rem; left: 38%; top: 6.5rem; }
.sky > * { position: relative; z-index: 1; }

.tag { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.3rem 1.1rem 0.3rem 0.45rem; background: var(--cream); border: 3px solid var(--choc); border-radius: 3rem; font-family: var(--fun); font-weight: 400; font-size: 1.5rem; line-height: 1; text-decoration: none; box-shadow: 0 0.3rem 0 var(--choc); transition: transform 0.3s var(--boing); }
.tag:hover { transform: rotate(-3deg) scale(1.04); }
.tag svg { width: 2.3rem; height: 2.3rem; padding: 0.35rem; background: var(--tangerine); border-radius: 50%; color: var(--choc); }

.sky-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; margin-top: clamp(1.5rem, 5vw, 3rem); }
.sky-words { flex: 1 1 20rem; min-width: 0; }
.sky-art { flex: 0 1 23rem; min-width: 0; margin-inline: auto; }
.sky-art svg { display: block; width: 100%; height: auto; }
.eyebrow { display: inline-block; margin-bottom: 0.9rem; padding: 0.15rem 0.9rem; background: var(--grass); border: 3px solid var(--choc); border-radius: 2rem; font-weight: 800; font-size: 1rem; transform: rotate(-2deg); }
h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); }
h1 span { color: var(--white); text-shadow: 3px 3px 0 var(--choc), -1px -1px 0 var(--choc), 1px -1px 0 var(--choc), -1px 1px 0 var(--choc); }
.sky-lead { margin-top: 1rem; max-width: 33rem; font-size: clamp(1.15rem, 2.6vw, 1.35rem); font-weight: 600; line-height: 1.5; }
.pounces { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

.pounce { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3.25rem; padding: 0.55rem 1.5rem; background: var(--tangerine); color: var(--choc); border: 3px solid var(--choc); border-radius: 3rem; font: 800 1.125rem/1.2 var(--plain); text-decoration: none; cursor: pointer; box-shadow: 0 0.35rem 0 var(--choc); transition: transform 0.3s var(--boing), box-shadow 0.2s ease; }
.pounce:hover { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 0.6rem 0 var(--choc); }
.pounce:active { transform: translateY(3px); box-shadow: 0 0.1rem 0 var(--choc); }
.pounce.is-grass { background: var(--grass); }
.pounce.is-cream { background: var(--cream); }
.pounce svg { width: 1.4rem; height: 1.4rem; }

/* ~~~ the paw trail between sections ~~~ */

.trail { display: block; width: min(100% - 1rem, 44rem); height: auto; margin: clamp(1rem, 3vw, 1.75rem) auto; color: var(--tangerine); }
.trail.is-back { transform: scaleX(-1); color: var(--grass); }
.trail.is-choc { color: var(--choc); }

/* ~~~ park (main) ~~~ */

.park { padding-top: 0.5rem; }
.patch { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.patch-head { margin-bottom: 1.5rem; }
.patch-head h2 { font-size: clamp(2rem, 6vw, 3rem); }
.patch-head p { margin-top: 0.5rem; max-width: 38rem; font-size: 1.15rem; }
.patch.leans-right .patch-head { text-align: right; }
.patch.leans-right .patch-head p { margin-left: auto; }

.card { position: relative; min-width: 0; padding: clamp(1.25rem, 4vw, 2rem); background: var(--white); border: 3px solid var(--choc); border-radius: 2.25rem; box-shadow: 0 0.55rem 0 var(--choc); transition: transform 0.35s var(--boing); }
.card h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.card.is-sky { background: var(--sky); }
.card.is-grass { background: var(--grass); }
.card.is-tangerine { background: var(--tangerine); }
.card.is-cream { background: var(--cream); }
.card.tilts-left { transform: rotate(-1deg); }
.card.tilts-right { transform: rotate(1deg); }
a.card { display: block; font-weight: 500; text-decoration: none; }
a.card:hover, .litter .card:hover { transform: translateY(-8px) rotate(0deg) scale(1.02); }

.litter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: 1.75rem 1.5rem; }
.litter .card svg { display: block; width: 7.5rem; height: auto; margin: -0.25rem 0 0.75rem; }
.litter .go { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-weight: 800; text-decoration: underline; text-decoration-color: var(--tangerine); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.litter .card.is-tangerine .go { text-decoration-color: var(--choc); }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.75rem 1.5rem; align-items: start; }
.narrow-card { max-width: 46rem; }
.leans-right > .narrow-card { margin-left: auto; }

/* bone bullets */
.bones li { position: relative; padding: 0.45rem 0 0.45rem 2.6rem; }
.bones li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: 1.9rem; height: 0.95rem; background: var(--tangerine); border-radius: 0.5rem; clip-path: polygon(0 20%, 12% 0, 26% 18%, 74% 18%, 88% 0, 100% 20%, 92% 50%, 100% 80%, 88% 100%, 74% 82%, 26% 82%, 12% 100%, 0 80%, 8% 50%); }
.is-tangerine .bones li::before, .is-grass .bones li::before { background: var(--choc); }

/* numbered hops */
.hops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: 1.25rem; counter-reset: hop; }
.hops li { counter-increment: hop; min-width: 0; padding: 1.1rem 1.2rem 1.25rem; background: var(--cream); border: 3px dashed var(--choc); border-radius: 1.75rem; }
.hops li::before { content: counter(hop); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 0.6rem; background: var(--tangerine); border: 3px solid var(--choc); border-radius: 50%; font: 400 1.5rem/1 var(--fun); }
.hops h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.card.is-sky .hops li { background: var(--white); }

/* ~~~ pet the dog ~~~ */

.petbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem 2rem; align-items: center; }
.petbox > * { min-width: 0; }
.petdog { position: relative; display: block; width: 100%; max-width: 21rem; margin-inline: auto; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.petdog svg { display: block; width: 100%; height: auto; overflow: visible; transition: transform 0.25s var(--boing); }
.petdog:hover svg { transform: translateY(-3px); }
.petdog:active svg, .petdog.is-patted svg { transform: scale(1.04, 0.96) translateY(4px); }
.petdog:focus-visible { outline: 4px solid var(--choc); outline-offset: 6px; border-radius: 2rem; }
.hearts { position: absolute; inset: 0; pointer-events: none; }
.hearts span { position: absolute; top: 18%; font-size: 1.9rem; line-height: 1; color: var(--cream); text-shadow: 2px 2px 0 var(--choc); animation: floatup 0.95s ease-out forwards; }
@keyframes floatup { from { transform: translateY(0) scale(0.6); opacity: 1; } to { transform: translateY(-4.5rem) scale(1.3); opacity: 0; } }
.pet-hint { margin-top: 0.4rem; text-align: center; font-weight: 800; }
.meter-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; font-weight: 800; }
.meter { height: 2.1rem; padding: 0.25rem; background: var(--white); border: 3px solid var(--choc); border-radius: 2rem; overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; min-width: 0; background: var(--tangerine); border-radius: 2rem; }
.mood { margin-top: 0.8rem; font-family: var(--fun); font-size: 1.7rem; line-height: 1.2; }
.pet-note { margin-top: 0.8rem; font-size: 1.0625rem; }

/* ~~~ contact ~~~ */

.collar-rows > div { padding: 0.7rem 0; border-bottom: 3px dotted var(--choc); }
.collar-rows > div:last-of-type { border-bottom: 0; }
.collar-rows dt { font-family: var(--fun); font-size: 1.25rem; line-height: 1.2; }
.collar-rows dd { margin: 0.1rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.collar-rows { margin: 0; }
.collar-rows + p { margin-top: 1rem; }

.woof-form { display: grid; gap: 1.1rem; }
.woof-form label { display: block; margin-bottom: 0.3rem; font-weight: 800; }
.woof-form input, .woof-form select, .woof-form textarea { display: block; width: 100%; max-width: 100%; padding: 0.7rem 1rem; background: var(--cream); color: var(--choc); border: 3px solid var(--choc); border-radius: 1.25rem; font: 600 1.0625rem/1.5 var(--plain); }
.woof-form textarea { min-height: 10.5rem; resize: vertical; border-radius: 1.5rem; }
.woof-form input:hover, .woof-form select:hover, .woof-form textarea:hover { background: var(--white); }
.woof-form input:focus, .woof-form select:focus, .woof-form textarea:focus { outline: 4px solid var(--tangerine); outline-offset: 2px; background: var(--white); }
.woof-form .oops { border-style: dashed; background: #FFE9E0; }
.woof-error { margin: 0.35rem 0 0; padding: 0.2rem 0.8rem; display: inline-block; background: var(--choc); color: var(--cream); border-radius: 1rem; font-weight: 700; font-size: 1rem; }
.woof-send { display: grid; gap: 0.8rem; justify-items: start; }
.woof-send p { margin: 0; }
.woof-status { padding: 0.7rem 1rem; background: var(--grass); border: 3px solid var(--choc); border-radius: 1.25rem; font-weight: 800; }

/* ~~~ kennel (footer) ~~~ */

.kennel { margin-top: clamp(1rem, 3vw, 2rem); padding: 2.25rem 0 1.5rem; background: var(--choc); color: var(--cream); border-radius: 3rem 3rem 0 0; }
.kennel a { color: var(--cream); }
.kennel a:hover { color: var(--sky); }
.kennel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.75rem 2.5rem; }
.kennel-grid > * { min-width: 0; }
.kennel h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--tangerine); }
.kennel-name { font-family: var(--fun); font-size: 2rem; line-height: 1.1; margin-bottom: 0.4rem; }
.kennel li a { display: inline-block; padding: 0.25rem 0; }
.kennel dl { margin: 0; }
.kennel dl > div { padding: 0.25rem 0; }
.kennel dt { font-weight: 800; color: var(--sky); }
.kennel dd { margin: 0; overflow-wrap: anywhere; }

/* ~~~ bottom dock: fixed on every screen size ~~~ */

.dock { position: fixed; left: 50%; bottom: 0.6rem; z-index: 60; width: min(100% - 1rem, 35rem); padding: 0.35rem; background: var(--choc); border: 3px solid var(--cream); border-radius: 2.2rem; box-shadow: 0 0.5rem 1.4rem rgba(74, 44, 26, 0.4); transform: translateX(-50%); }
.dock ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.15rem; }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: 3.6rem; padding: 0.35rem 0.1rem; border-radius: 1.7rem; color: var(--cream); font-size: 0.8125rem; font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.dock a svg { width: 1.6rem; height: 1.6rem; transition: transform 0.35s var(--boing); }
.dock a:hover { background: rgba(255, 247, 234, 0.16); }
.dock a:hover svg { transform: translateY(-4px) rotate(-10deg) scale(1.15); }
.dock a[aria-current="page"] { background: var(--tangerine); color: var(--choc); }
.dock a:focus-visible { outline-color: var(--sky); outline-offset: -3px; border-radius: 1.7rem; }

@media (min-width: 40rem) {
  :root { --dock-room: 7.5rem; }
  .dock { bottom: 1rem; }
  .dock a { font-size: 0.9375rem; min-height: 4rem; }
  .dock a svg { width: 1.8rem; height: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card.tilts-left, .card.tilts-right { transform: none; }
}
