/* Aibo Arts — client profile (mobile-first tap card) */
:root {
  --accent: #c4622a;
  --accent-text: #ffffff;
  --ink: #14110e;
  --ink-soft: #1c1915;
  --paper: #f4efe6;
  --muted: #b8b0a3;
  --line: rgba(244, 239, 230, 0.14);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --script: "Great Vibes", "Allura", cursive;
  --tap: 54px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(196, 98, 42, 0.16), transparent 55%),
    var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a { color: inherit; }

/* Sample watermark */
.sample-banner {
  display: none;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #c4622a;
  color: #fff;
  padding: 8px 16px 8px;
  padding-top: max(8px, env(safe-area-inset-top));
}

.sample-banner.is-visible { display: block; }

.shell {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 20px 20px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.profile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 6px 0 16px;
}

.avatar-wrap img,
.avatar-fallback {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent);
  background: var(--ink-soft);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--paper);
}

.avatar-wrap img[hidden],
.avatar-fallback[hidden] { display: none; }

.profile h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
}

.title-line {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 450;
}

.title-line .dot {
  margin: 0 0.4em;
  color: var(--accent);
}

.bio {
  margin: 0 0 20px;
  color: #d8d1c6;
  font-size: 0.95rem;
  max-width: 34ch;
}

.actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 18px;
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--paper);
  background: var(--ink-soft);
  appearance: none;
  -webkit-appearance: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary,
.btn-wide {
  grid-column: 1 / -1;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  min-height: 54px;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.08);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  justify-content: flex-start;
  text-align: left;
  padding-left: 14px;
  padding-right: 12px;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 70%, white 10%);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-label small {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.72;
  letter-spacing: 0.02em;
}

.card-footer {
  margin-top: 22px;
  text-align: center;
}

.card-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a8276;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.card-footer a:hover { color: var(--paper); }

.card-footer img {
  width: 22px;
  height: 22px;
}

.card-hashtag {
  margin: 10px 0 0;
}

.card-hashtag .hashtag-flourish {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: #c4b29a;
  text-decoration: none;
}

.card-hashtag .hashtag-flourish:hover { color: var(--paper); }

/* Hidden fields stay out of the flow */
.is-empty { display: none !important; }

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 40px 16px;
  }

  .shell {
    min-height: auto;
    background: rgba(20, 17, 14, 0.72);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 40px 28px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  }

  .sample-banner {
    position: sticky;
    top: 0;
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
