:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #667085;
  --accent: #3b6ef6;
  --ok: #12805c;
  --shadow: 0 24px 60px -32px rgba(28, 39, 64, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 15% 0%, #e7edff 0%, transparent 60%),
    radial-gradient(700px 400px at 100% 100%, #eaf7f1 0%, transparent 55%),
    var(--bg);
}

.card {
  width: min(720px, 100%);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #e6e9f2;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.head {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #eef1f7;
  border: 1px solid #e6e9f2;
}

.photo-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  background: #eef1f7;
  transition: transform 220ms ease;
}

.photo-img:hover {
  transform: scale(1.01);
}

.photo-img.is-loading {
  background: linear-gradient(100deg, #eef1f7 30%, #f8faff 50%, #eef1f7 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-img,
  .photo-img.is-loading {
    animation: none;
    transition: none;
  }
}

.breed {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: #fbfcfe;
  border-top: 1px solid #eef1f7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(59, 110, 246, 0.9);
  transition: background 150ms ease, transform 150ms ease;
}

.button:hover:not(:disabled) {
  background: #2f5ee0;
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid #b9caff;
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.error {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b42318;
}

.status {
  margin: 22px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f2f5ff;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.status.is-ok {
  background: #eaf7f1;
  color: var(--ok);
}

.status.is-error {
  background: #fff1f0;
  color: #b42318;
}
