/*
Theme Name: Puppies Go to Town
Theme URI: https://example.com/puppies-go-to-town
Author: Lovable
Author URI: https://lovable.dev
Description: A warm, brown-monochromatic single-page WordPress theme featuring a whimsical puppy story and an interactive photorealistic puppy you can pet. Built as a one-page theme with optional Customizer support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: puppies-go-to-town
Tags: one-page, blog, brown, minimal, custom-colors, custom-logo, editor-style, threaded-comments
*/

/* =========================================================
   Design Tokens — Brown Monochromatic
   ========================================================= */
:root {
  --pgt-bg: #f7f1e8;
  --pgt-card: #efe5d4;
  --pgt-foreground: #3a2a1c;
  --pgt-muted: #8a6f57;
  --pgt-border: #d8c4a8;
  --pgt-primary: #5a3a22;
  --pgt-primary-foreground: #fbf6ee;
  --pgt-accent: #b07a45;
  --pgt-shadow: 0 20px 50px -20px rgba(90, 58, 34, 0.4);
  --pgt-radius: 1rem;
  --pgt-font-body: Georgia, "Times New Roman", serif;
  --pgt-font-heading: "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   Reset & Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--pgt-font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--pgt-foreground);
  background-color: var(--pgt-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--pgt-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--pgt-accent); }

h1, h2, h3, h4 {
  font-family: var(--pgt-font-heading);
  color: var(--pgt-foreground);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* =========================================================
   Layout
   ========================================================= */
.pgt-site-header {
  background-color: var(--pgt-card);
  border-bottom: 1px solid var(--pgt-border);
  padding: 4rem 1.5rem;
  text-align: center;
}

.pgt-site-header .pgt-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--pgt-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--pgt-accent);
}

.pgt-site-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  font-weight: 700;
}

.pgt-site-description {
  margin-top: 1rem;
  color: var(--pgt-muted);
  font-style: italic;
}

.pgt-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.pgt-article p { margin: 0 0 1.25rem; }

.pgt-article p:first-of-type::first-letter {
  float: left;
  font-family: var(--pgt-font-heading);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--pgt-primary);
}

.pgt-article h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
  color: var(--pgt-primary);
}

/* =========================================================
   Interactive Puppy
   ========================================================= */
.pgt-puppy-card {
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--pgt-card);
  border: 1px solid var(--pgt-border);
  border-radius: var(--pgt-radius);
  box-shadow: var(--pgt-shadow);
  text-align: center;
}

.pgt-puppy-card h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--pgt-primary);
}

.pgt-puppy-card .pgt-puppy-sub {
  margin: 0.5rem 0 1.5rem;
  color: var(--pgt-muted);
}

.pgt-puppy-stage {
  position: relative;
  display: inline-block;
}

.pgt-puppy-button {
  position: relative;
  display: block;
  width: 16rem;
  height: 16rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 9999px;
  transition: transform 0.3s ease;
  perspective: 600px;
}

.pgt-puppy-button:hover { transform: scale(1.05); }
.pgt-puppy-button:focus-visible {
  outline: 4px solid rgba(176, 122, 69, 0.5);
  outline-offset: 4px;
}

.pgt-puppy-glow {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0.5rem;
  height: 1.5rem;
  background-color: rgba(90, 58, 34, 0.3);
  border-radius: 9999px;
  filter: blur(24px);
}

.pgt-puppy-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 20px 30px rgba(58, 42, 28, 0.45));
  transition: transform 0.3s ease;
}

.pgt-puppy-img.is-bouncing { animation: pgt-bounce 0.45s ease-out; }

@keyframes pgt-bounce {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.pgt-puppy-message {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background-color: var(--pgt-primary);
  color: var(--pgt-primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-family: var(--pgt-font-heading);
  font-size: 0.9rem;
  box-shadow: var(--pgt-shadow);
  animation: pgt-fade-in 0.3s ease-out;
  z-index: 10;
}

.pgt-heart {
  position: absolute;
  top: 1rem;
  font-size: 1.5rem;
  pointer-events: none;
  animation: pgt-float-up 1.2s ease-out forwards;
  z-index: 10;
}

@keyframes pgt-fade-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes pgt-float-up {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -60px); }
}

.pgt-pet-counter {
  margin-top: 1.5rem;
}

.pgt-pet-counter .pgt-counter-label {
  display: block;
  font-family: var(--pgt-font-heading);
  font-size: 0.85rem;
  color: var(--pgt-muted);
}

.pgt-pet-counter .pgt-counter-value {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--pgt-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pgt-primary);
}

/* =========================================================
   Footer
   ========================================================= */
.pgt-site-footer {
  border-top: 1px solid var(--pgt-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-family: var(--pgt-font-heading);
  font-size: 0.9rem;
  color: var(--pgt-muted);
}

/* =========================================================
   Accessibility
   ========================================================= */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pgt-puppy-img,
  .pgt-puppy-button { transition: none; }
  .pgt-puppy-img.is-bouncing,
  .pgt-puppy-message,
  .pgt-heart { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 480px) {
  .pgt-puppy-button { width: 13rem; height: 13rem; }
  .pgt-container { padding: 2.5rem 1.25rem; }
  .pgt-site-header { padding: 3rem 1.25rem; }
}
