/* The House: a virtual-pet care site where the house is the pet.
   A bubbly yellow banner with a tab bar, the pet in its egg on the left, care boxes with blue title strips. */
.window[data-site="house"] {
  --window-ink: #2a3fae;
  --house-ink: #1d1a3a;
  --house-case: #fff;
  --house-screen: #eef3ff;
  --house-pink: #b0105e;
  --house-lemon: #ffcc00;
  --pet-blue: #2a3fae;
  --pet-orange: #ff9a00;
  border: 4px solid #2a3fae;
}
.window[data-site="house"] > .window-body {
  background-color: #ffeeb0;
  background-image: radial-gradient(circle, #ffd76a 0 3px, transparent 3.5px);
  background-size: 22px 22px;
}
.window[data-site="house"] .pet-site {
  container-type: inline-size;
  color: var(--house-ink);
  font: .9375rem/1.5 Verdana, Geneva, sans-serif;
}

.window[data-site="house"] .pet-banner {
  padding: clamp(.75rem, 3cqi, 1.4rem) clamp(.75rem, 3cqi, 1.5rem) 0;
  background: linear-gradient(#ffd600, #ff9a00);
  border-bottom: 4px solid var(--pet-blue);
  text-align: center;
}
.window[data-site="house"] .pet-banner h1 {
  font: 900 clamp(2.4rem, 10cqi, 4.6rem)/1 "Arial Black", "Arial Bold", Arial, sans-serif;
  color: #fff;
  letter-spacing: -.01em;
  text-shadow:
    3px 0 0 #6a1b9a, -3px 0 0 #6a1b9a, 0 3px 0 #6a1b9a, 0 -3px 0 #6a1b9a,
    2px 2px 0 #6a1b9a, -2px -2px 0 #6a1b9a, 2px -2px 0 #6a1b9a, -2px 2px 0 #6a1b9a,
    0 6px 0 #3d0d5c;
}
.window[data-site="house"] .pet-tagline { margin-top: .45rem; color: #3d0d5c; font-weight: 700; }
.window[data-site="house"] .pet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: .8rem;
}
.window[data-site="house"] .pet-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .2rem .9rem;
  background: var(--pet-blue);
  border: 2px solid #12206e;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.window[data-site="house"] .pet-nav a:is(:hover, :focus-visible) { background: #4a62e0; }
.window[data-site="house"] .house-caption {
  margin: .6rem auto 0;
  padding: .3rem .6rem;
  max-width: max-content;
  background: #fff;
  border: 2px dashed var(--house-pink);
  color: var(--house-pink);
  font-size: .8125rem;
  font-weight: 700;
  text-align: center;
}

.window[data-site="house"] .pet-grid {
  display: grid;
  gap: .9rem;
  padding: clamp(.6rem, 2.5cqi, 1.2rem);
}
@container (min-width: 46rem) {
  .window[data-site="house"] .pet-grid { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; }
  .window[data-site="house"] .pet-card { position: sticky; top: .75rem; }
}

/* Every box on the site: white, rounded, a blue title strip. */
.window[data-site="house"] :is(.pet-card, .house-phone, .house-device, .house-files) {
  padding: 0 .8rem .8rem;
  background: #fff;
  border: 3px solid var(--pet-blue);
  border-radius: 12px;
  color: var(--house-ink);
  overflow: hidden;
}
.window[data-site="house"] :is(.pet-card, .house-phone, .house-device, .house-files) > h2 {
  margin: 0 -.8rem .6rem;
  padding: .35rem .8rem;
  background: var(--pet-blue);
  color: #fff;
  font: 700 1.0625rem/1.3 Verdana, Geneva, sans-serif;
}
.window[data-site="house"] .pet-card { border-color: var(--pet-orange); text-align: center; }
.window[data-site="house"] .pet-card > h2 { background: var(--pet-orange); color: #2b1400; }
.window[data-site="house"] .pet-egg { display: block; width: min(10rem, 60%); margin: .2rem auto .4rem; }
.window[data-site="house"] .pet-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .1rem .6rem;
  margin: 0;
  text-align: start;
  font-size: .875rem;
}
.window[data-site="house"] .pet-facts dt { font-weight: 700; color: var(--pet-blue); }
.window[data-site="house"] .pet-facts dd { margin: 0; }
.window[data-site="house"] .pet-stats { display: grid; gap: .45rem; margin: .7rem 0 0; padding: 0; list-style: none; text-align: start; }
.window[data-site="house"] .pet-stats li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; column-gap: .4rem; font-size: .8125rem; }
.window[data-site="house"] .pet-stats span { font-weight: 700; }
.window[data-site="house"] .pet-stats meter { width: 100%; height: 14px; }
.window[data-site="house"] .pet-stats small { grid-column: 2; color: #4b4566; }
.window[data-site="house"] .pet-fine { margin-top: .6rem; color: var(--house-pink); font-size: .75rem; }

.window[data-site="house"] .pet-main { display: grid; gap: .9rem; min-width: 0; }
.window[data-site="house"] .pet-care-title {
  margin-top: .3rem;
  color: var(--pet-blue);
  font: 900 clamp(1.4rem, 4cqi, 1.9rem)/1.1 "Arial Black", Arial, sans-serif;
}
.window[data-site="house"] .pet-care-intro { margin-top: -.5rem; padding: .5rem .7rem; background: #fff; border-radius: 8px; }
.window[data-site="house"] .house-rooms { margin: 0; gap: .9rem; }

.window[data-site="house"] .house-phone { border-color: var(--house-pink); }
.window[data-site="house"] .house-phone > h2 { background: var(--house-pink); }
.window[data-site="house"] .house-phone[data-ringing] { border-color: #ff9a00; }
.window[data-site="house"] .house-transcript li { background: #fff0f7; border: 1px solid #f2b5d3; border-radius: 8px; }
.window[data-site="house"] .house-transcript b { color: var(--house-pink); }
.window[data-site="house"] .house-device h2 { color: #fff; }
.window[data-site="house"] .house-device blockquote { background: var(--house-screen); border-radius: 6px; }
.window[data-site="house"] .house-temperature { color: var(--pet-blue); }
.window[data-site="house"] .house-vacuum { border-color: #8d9bd8; background: #1d2552; box-shadow: 0 4px 0 #9aa3c7; }
.window[data-site="house"] .house-lamp { border-color: #a3812a; }
.window[data-site="house"] .house-device .house-stamp { border-color: var(--house-pink); color: var(--house-pink); }
.window[data-site="house"] .house-tree ul { border-left-color: #8d9bd8; }
.window[data-site="house"] .house-tree span { background: #eef3ff; border-color: #8d9bd8; }
.window[data-site="house"] :is(.house-offer, .house-notes) summary { color: var(--pet-blue); }
.window[data-site="house"] .house-notes { border-top: 2px dotted #8d9bd8; }
.window[data-site="house"] .house-notes pre { background: #f3f3f3; border: 1px solid #c8c8c8; color: #1d1a3a; }
.window[data-site="house"] .pet-site a { color: #1b2fa0; }
.window[data-site="house"] .pet-site .pet-nav a { color: #fff; }
.window[data-site="house"] .pet-site :focus-visible { outline: 3px solid #6a1b9a; outline-offset: 2px; }

/* Gel buttons, the period kind. */
.window[data-site="house"] [data-house-action] {
  border: 2px solid #b36b00;
  border-radius: 16px;
  background: linear-gradient(#fff3a8, #ffc400);
  color: #2b1400;
  font-family: Verdana, Geneva, sans-serif;
}
.window[data-site="house"] [data-house-action]:is([data-house-action="call"], [data-house-action="answer"]) {
  border-color: #127a3a;
  background: linear-gradient(#c9ffb8, #5fd06f);
  color: #082d14;
}
.window[data-site="house"] [data-house-action]:hover { border-style: solid; filter: brightness(1.05); }
.window[data-site="house"] .house-terms { border: 3px solid var(--pet-blue); border-radius: 12px; }

.window[data-site="house"] .house-files { margin: 0 clamp(.6rem, 2.5cqi, 1.2rem) clamp(.6rem, 2.5cqi, 1.2rem); }
.window[data-site="house"] .house-files .explorer { margin: 0; border: 2px inset #c8c8c8; }
.window[data-site="house"] .house-files .explorer a { color: #1b2fa0; }

/* The status bar is the site's footer: blue, bold, slightly too pleased with itself. */
.window[data-site="house"] > .statusbar {
  padding: 4px;
  background: var(--pet-blue);
  color: #fff;
  font: 700 .8125rem/1.4 Verdana, Geneva, sans-serif;
}
.window[data-site="house"] > .statusbar span { border: 1px solid #8fa0ff; background: #1b2a85; }

@media (prefers-reduced-motion: no-preference) {
  .window[data-site="house"] .pet-sprite { animation: pet-hop 1.2s steps(2, jump-none) infinite; }
  .window[data-site="house"] .pet-egg { animation: pet-wobble 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
}
@keyframes pet-hop { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes pet-wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
