@font-face {
  font-family: 'Neue Regrade';
  src: url('/fonts/Neue-Regrade-Variable-BF65af35d87b6a7.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Radio Grotesk';
  src: url('/fonts/PPRadioGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Radio Grotesk';
  src: url('/fonts/PPRadioGrotesk-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-primary: #e63e23;
  --brand-gray-light: #d7d7d7;
  --brand-gray-dark: #484545;
  --text-primary: #484545;
  --text-light: #fff;
  --bg: #d7d7d7;
  --card-bg: #fff;
  --radius-item: 14px;
}

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

body {
  font-family: 'PP Radio Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}


#app {
  width: 100%;
  max-width: 560px;
  padding: 56px 24px 72px;
  position: relative;
  z-index: 1;
}

/* States */
.state { width: 100%; }
.hidden { display: none !important; }

/* Loading */
#state-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(72,69,69,0.2);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Entrance animation */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Profile ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  margin-bottom: 20px;
}

.avatar[src=""] { display: none; }

#profile-name {
  font-family: 'Neue Regrade', sans-serif;
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

#profile-title {
  font-family: 'PP Radio Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

#profile-bio {
  font-family: 'PP Radio Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.7;
  max-width: 400px;
  opacity: 0.8;
}

#profile-bio:empty { display: none; }

/* ── Links ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 44px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card-bg);
  border-radius: var(--radius-item);
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.15s, transform 0.12s;
}

.link-item:hover  { opacity: 0.8; transform: translateX(3px); }
.link-item:active { opacity: 1;   transform: translateX(0); }

.link-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon img,
.link-icon svg {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.link-label {
  flex: 1;
  font-family: 'PP Radio Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.link-arrow {
  flex-shrink: 0;
  color: var(--brand-primary);
  opacity: 0.6;
}

/* ── Footer ── */
.page-footer { text-align: center; }

.footer-logo {
  height: 22px;
  opacity: 0.4;
  mix-blend-mode: multiply;
  transition: opacity 0.15s;
}
.footer-logo:hover { opacity: 0.7; }

/* ── Not found / error ── */
#state-notfound,
#state-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  gap: 12px;
}

.notfound-logo { height: 36px; margin-bottom: 8px; mix-blend-mode: multiply; opacity: 0.5; }

#state-notfound h2,
#state-error h2 {
  font-family: 'Neue Regrade', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

#state-notfound p,
#state-error p { font-size: 0.9rem; opacity: 0.7; }

.btn-outline {
  margin-top: 8px;
  display: inline-block;
  padding: 11px 24px;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-item);
  color: var(--brand-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--brand-primary); color: #fff; }

@media (max-width: 400px) {
  #app { padding: 40px 18px 56px; }
}
