/* PawCard V6 design system — shared by /create, /edit and /p.
   Design tokens, base reset, the hero block, and loading/error states.
   Page-specific components live in editor.css (form pages) or inline. */

:root {
  --ink: #3f3a36;
  --ink-soft: #78716c;
  --hairline: #e7e2da;
  --paper: #fffdf8;
  --warn-bg: #fce4e4;
  --warn-border: #e8b4b4;
  --warn-ink: #7a2020;
  --warn-ink-deep: #5a1818;
  --meds-bg: #fff9e6;

  --accent-50:  #eef2ff;
  --accent-100: #e0e7ff;
  --accent-400: #818cf8;
  --accent-500: #6366f1;
  --accent-600: #4f46e5;
  --accent-700: #4338ca;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.profile {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---------- Hero ---------- */
.hero { padding: 28px 20px 6px; text-align: center; }
.hero__eyebrow {
  font-family: "Varela Round", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__name {
  font-family: "Varela Round", system-ui, sans-serif;
  font-size: 52px;
  line-height: 1;
  margin: 4px 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 400;
  word-break: break-word;
}
.hero__chip {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.hero__avatar-wrap { margin: 18px auto 4px; display: flex; justify-content: center; }
.hero__avatar {
  width: 148px; height: 148px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-600);
  box-shadow: 0 10px 24px rgba(63,58,54,0.12), 0 2px 4px rgba(63,58,54,0.08);
}
.hero__avatar svg { width: 96px; height: 96px; display: block; }

/* ---------- Loading + error states ---------- */
.state {
  padding: 80px 24px;
  text-align: center;
  color: var(--ink-soft);
}
.state__title {
  font-family: "Varela Round", system-ui, sans-serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 8px;
}
.state__msg { margin: 0 0 18px; font-size: 14px; }
.state__action {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--accent-100);
  border-top-color: var(--accent-600);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
