/* ================================================================
   The Pampered Pups — palette and type drawn from the logo:
   porcelain ivory ground, taupe ring, engraved ink, sable copper.
   ================================================================ */

:root {
  --ivory:    #FBF9F4;
  --bisque:   #F2ECE1;
  --taupe:    #A6937B;
  --taupe-soft: #CBBFAD;
  --ink:      #292019;
  --umber:    #675A4B;
  --copper:   #8C5A32;

  --display: "Marcellus", serif;
  --accent-italic: "Cormorant Garamond", serif;
  --body: "Mulish", sans-serif;

  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--umber);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

h1 em {
  font-family: var(--accent-italic);
  font-style: italic;
  font-weight: 500;
}

a { color: var(--copper); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--ink);
  padding: 1.05rem 2.4rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover { background: var(--copper); transform: translateY(-2px); }

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--taupe) 30%, transparent);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--umber);
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--copper); }

.site-nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--taupe);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(4rem, 9vw, 7rem);
}

/* the artwork is a roundel on a white square — clip to the circle */
.hero-logo {
  width: clamp(240px, 34vw, 380px);
  margin: 0 auto 2.2rem;
  border-radius: 50%;
  box-shadow: 0 24px 48px rgba(41, 32, 25, 0.14);
}

.hero h1 { margin-bottom: 1.4rem; }

.hero-sub {
  max-width: 46ch;
  margin: 0 auto 2.4rem;
  font-size: 1.1rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

/* floating bubbles — a quiet echo of the logo's bathtub */
.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bubbles span {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--taupe) 45%, transparent);
  background: radial-gradient(circle at 32% 30%,
              rgba(255, 255, 255, 0.9), rgba(203, 191, 173, 0.12));
  opacity: 0;
  animation: drift 16s linear infinite;
}

.hero-bubbles span:nth-child(1) { left: 8%;  width: 26px; height: 26px; animation-delay: 0s; }
.hero-bubbles span:nth-child(2) { left: 18%; width: 14px; height: 14px; animation-delay: 5s;  animation-duration: 13s; }
.hero-bubbles span:nth-child(3) { left: 30%; width: 20px; height: 20px; animation-delay: 9s;  animation-duration: 18s; }
.hero-bubbles span:nth-child(4) { left: 72%; width: 30px; height: 30px; animation-delay: 2s;  animation-duration: 20s; }
.hero-bubbles span:nth-child(5) { left: 84%; width: 16px; height: 16px; animation-delay: 7s;  animation-duration: 14s; }
.hero-bubbles span:nth-child(6) { left: 93%; width: 22px; height: 22px; animation-delay: 11s; animation-duration: 17s; }

@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-88vh) translateX(18px); opacity: 0; }
}

/* now playing chip */
.now-playing {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--taupe) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bisque) 70%, transparent);
}

.np-text {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--umber);
}

.np-text em {
  font-family: var(--accent-italic);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--copper);
  animation: eq 1.6s ease-in-out infinite;
}

.eq i:nth-child(1) { height: 55%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 95%; animation-delay: 0.35s; }
.eq i:nth-child(3) { height: 70%; animation-delay: 0.6s; }
.eq i:nth-child(4) { height: 40%; animation-delay: 0.15s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1); }
}

/* ---------------- philosophy ---------------- */

.philosophy {
  background: var(--bisque);
  border-top: 1px solid color-mix(in srgb, var(--taupe) 28%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--taupe) 28%, transparent);
}

.philosophy-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.philosophy-lead h2 { margin-bottom: 1.4rem; max-width: 18ch; }

.lede { font-size: 1.08rem; font-weight: 300; max-width: var(--measure); }

.principles {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-self: center;
}

.principle {
  padding-left: 1.4rem;
  border-left: 1px solid var(--taupe-soft);
}

.principle h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }

.principle p { font-size: 0.97rem; }

/* ---------------- ritual ---------------- */

.ritual-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.ritual h2 { max-width: 22ch; margin: 0 auto 0.9rem; }

.ritual-note {
  font-family: var(--accent-italic);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--taupe);
  margin-bottom: 3.2rem;
}

.ritual-list {
  list-style: none;
  text-align: left;
}

.ritual-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.9rem 0;
}

.ritual-list li + li {
  border-top: 1px solid color-mix(in srgb, var(--taupe) 30%, transparent);
}

.numeral {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--taupe);
  text-align: center;
}

.ritual-list h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }

.ritual-list p { max-width: 54ch; }

/* ---------------- menu ---------------- */

.menu { background: var(--ink); }

.menu-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 4vw, 3rem);
}

.menu .eyebrow { color: var(--taupe-soft); }

.menu h2 { color: var(--ivory); }

.menu-note {
  color: color-mix(in srgb, var(--ivory) 72%, transparent);
  font-weight: 300;
  max-width: 52ch;
  margin: 1rem 0 3rem;
}

.menu-list { list-style: none; }

.menu-list li { padding: 1.7rem 0; }

.menu-list li + li {
  border-top: 1px solid color-mix(in srgb, var(--taupe) 35%, transparent);
}

.menu-line {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.55rem;
}

.menu-line h3 { color: var(--ivory); font-size: 1.3rem; }

.leader {
  flex: 1;
  border-bottom: 1px dotted color-mix(in srgb, var(--taupe) 55%, transparent);
  transform: translateY(-4px);
}

.menu-tag {
  font-family: var(--accent-italic);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--taupe-soft);
  white-space: nowrap;
}

.menu-list p {
  color: color-mix(in srgb, var(--ivory) 66%, transparent);
  font-size: 0.97rem;
  max-width: 56ch;
}

/* ---------------- pups ---------------- */

.pups-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.pups h2 { margin-bottom: 0.9rem; }

.pups-note {
  max-width: 52ch;
  margin: 0 auto 3.5rem;
  font-weight: 300;
}

.pup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

.pup-card { text-align: center; }

.pup-card img {
  width: min(200px, 60vw);
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  border: 1px solid var(--taupe-soft);
  outline: 1px solid color-mix(in srgb, var(--taupe) 35%, transparent);
  outline-offset: 7px;
  transition: transform 0.35s ease;
}

.pup-card:hover img { transform: scale(1.04) rotate(-1.5deg); }

.pup-card h3 { font-size: 1.45rem; margin-bottom: 0.2rem; }

.pup-role {
  font-family: var(--accent-italic);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--copper);
  margin-bottom: 0.7rem;
}

.pup-card figcaption p:last-child {
  font-size: 0.95rem;
  max-width: 32ch;
  margin: 0 auto;
}

/* ---------------- book ---------------- */

.book {
  background: var(--bisque);
  border-top: 1px solid color-mix(in srgb, var(--taupe) 28%, transparent);
  padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
}

.book-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--ivory);
  border: 1px solid color-mix(in srgb, var(--taupe) 35%, transparent);
  border-radius: 6px;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: 0 30px 60px rgba(41, 32, 25, 0.08);
}

.book-card h2 { margin-bottom: 1.1rem; }

.book-card > p {
  max-width: 46ch;
  margin: 0 auto 2rem;
  font-weight: 300;
}

.book-small {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--taupe);
}

/* ---------------- footer ---------------- */

.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}

.site-footer img {
  margin: 0 auto 1rem;
  border-radius: 50%;
  opacity: 0.9;
}

.footer-motto {
  font-family: var(--display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}

.footer-small { font-size: 0.8rem; color: var(--taupe); }

/* ---------------- reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* no-JS fallback: everything visible */
.no-observer .reveal { opacity: 1; transform: none; }

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bubbles { display: none; }
  .eq i { animation: none; height: 60%; }
  .btn, .pup-card img { transition: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .philosophy-inner { grid-template-columns: 1fr; }
  .pup-cards { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 720px) {
  .site-header { position: static; flex-direction: column; gap: 0.8rem; padding-bottom: 0.9rem; }
  .site-nav { flex-wrap: wrap; justify-content: center; row-gap: 0.5rem; }
  .ritual-list li { grid-template-columns: 2.6rem 1fr; gap: 1rem; }
  .numeral { font-size: 1.5rem; }
  .menu-line { flex-wrap: wrap; }
  .leader { display: none; }
}
