:root {
  color-scheme: light;
  --ink: #173533;
  --muted: #61716f;
  --cream: #f8f4eb;
  --paper: #fffdf8;
  --teal: #143c3a;
  --teal-hover: #0c2e2c;
  --coral: #ef735d;
  --coral-soft: #ffe3d9;
  --mint: #dfece4;
  --line: #e2e5df;
  --shadow: 0 22px 70px rgba(24, 58, 54, .14);
  --radius-lg: 32px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 115, 93, .15), transparent 27rem),
    radial-gradient(circle at 92% 84%, rgba(67, 126, 112, .14), transparent 30rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 50% 50% 46% 54%;
  box-shadow: 0 5px 16px rgba(239, 115, 93, .28);
}

.header-note { color: var(--muted); font-size: .86rem; font-weight: 600; }

.main-content {
  width: min(1080px, calc(100% - 40px));
  margin: auto;
  padding: 32px 0 54px;
}

.pet-card,
.status-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow);
}

.pet-card {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.photo-panel { position: relative; min-height: 680px; background: var(--mint); }

.photo-panel img { width: 100%; height: 100%; display: block; object-fit: cover; }

.found-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--teal);
  background: rgba(255, 253, 248, .94);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(16, 45, 42, .16);
  backdrop-filter: blur(8px);
}

.found-badge span { color: var(--coral); font-size: .65rem; }

.pet-content { padding: clamp(40px, 6vw, 72px); align-self: center; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.pet-message { margin: 22px 0 26px; color: #425b58; font-size: 1.08rem; line-height: 1.7; }

.pet-details { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }

.pet-details > div { padding: 9px 12px; background: #eff3ed; border-radius: 10px; }
.pet-details dt { color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.pet-details dd { margin: 1px 0 0; font-size: .92rem; font-weight: 600; }
.pet-details a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.contacts-section { padding-top: 25px; border-top: 1px solid var(--line); }

.section-heading { display: flex; align-items: flex-start; gap: 12px; }
.section-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: var(--coral-soft); border-radius: 12px; }
.section-heading h2 { margin: 0; font: 700 1rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .83rem; }

.contacts-list { display: grid; gap: 14px; margin-top: 18px; }
.contact-card { padding: 17px; background: #f5f5ef; border-radius: var(--radius-md); }
.contact-label { margin: 0; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-name { margin: 3px 0 13px; font-size: 1rem; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.action-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  color: white;
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 14px;
  font-size: .91rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}

.action-button.secondary { color: var(--teal); background: transparent; }
.action-button:hover { background: var(--teal-hover); transform: translateY(-1px); }
.action-button.secondary:hover { color: white; }
.action-button:focus-visible, .text-link:focus-visible, .brand:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.safety-note { margin: 22px 0 0; color: var(--muted); font-size: .78rem; }
.safety-note span { color: var(--coral); font-size: 1rem; }

.status-card {
  max-width: 650px;
  min-height: 470px;
  margin-inline: auto;
  padding: 65px clamp(28px, 7vw, 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-lg);
}

.status-illustration { width: 76px; height: 76px; margin-bottom: 24px; display: grid; place-items: center; color: white; background: var(--coral); border-radius: 50% 45% 52% 48%; font-size: 1.7rem; transform: rotate(-5deg); }
.status-illustration span { transform: rotate(5deg); }
.status-card h1 { max-width: 520px; font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.08; }
.status-card > p:not(.eyebrow) { max-width: 440px; margin: 18px 0 0; color: var(--muted); }
.loading-dots { display: flex; gap: 7px; margin-top: 30px; }
.loading-dots i { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; animation: bounce 1s infinite alternate; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
.text-link { margin-top: 25px; color: var(--teal); font-weight: 700; text-underline-offset: 4px; }

.site-footer { padding: 24px 0 34px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .75rem; }
.site-footer p { margin: 0; }

[hidden] { display: none !important; }

@keyframes bounce { to { transform: translateY(-8px); opacity: .55; } }

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .header-note { display: none; }
  .main-content { width: min(100% - 24px, 560px); padding: 10px 0 32px; }
  .pet-card { grid-template-columns: 1fr; border-radius: 24px; }
  .photo-panel { min-height: auto; aspect-ratio: 4 / 4.25; }
  .found-badge { top: 16px; left: 16px; }
  .pet-content { padding: 32px 22px 26px; }
  h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .pet-message { margin-top: 16px; }
  .contact-actions { grid-template-columns: 1fr; }
  .action-button { min-height: 56px; }
  .status-card { min-height: 440px; padding: 44px 24px; border-radius: 24px; }
  .site-footer { width: calc(100% - 32px); flex-direction: column; gap: 5px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
