/* =========================================================
   Hugo Profile Theme — style.css
   ========================================================= */

/* --- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --bg:           #0d0d0f;
  --surface:      #161619;
  --surface-alt:  #1d1d21;
  --border:       rgba(255,255,255,0.07);
  --text:         #e8e6e0;
  --text-muted:   #7a7870;
  --accent:       #c9a96e;       /* warm gold */
  --accent-dim:   rgba(201,169,110,0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --card-radius:  20px;
  --gap:          1.5rem;
}

html { font-size: 20px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  min-height: 100dvh;
}

/* --- Page shell ------------------------------------------ */
.page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1rem;
  overflow: hidden;
}

/* Decorative background blobs */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.bg-blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #c9a96e 0%, transparent 70%);
  top: -150px; left: -150px;
}
.bg-blob--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #4a6fa5 0%, transparent 70%);
  bottom: -100px; right: -100px;
}

/* --- Card ------------------------------------------------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 64px rgba(0,0,0,0.55),
    0 4px 16px rgba(0,0,0,0.35);

  /* Entrance animation */
  opacity: 0;
  transform: translateY(24px);
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Avatar ---------------------------------------------- */
.avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  border: 2px solid var(--surface-alt);
}

/* Spinning gradient ring */
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent) 0%,
    transparent 40%,
    transparent 60%,
    var(--accent) 100%
  );
  animation: spin 6s linear infinite;
  z-index: 0;
}
.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--surface);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Identity -------------------------------------------- */
.identity {
  text-align: center;
}

.identity__name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--text);
}

.identity__tagline {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Social links ---------------------------------------- */
.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.social__link:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(201,169,110,0.3);
  transform: translateY(-2px);
}

.social__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* --- Bio -------------------------------------------------- */
.bio {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  padding: 0 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: var(--gap);
  width: 100%;
}

/* --- Extra Markdown content ------------------------------ */
.content {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: var(--gap);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,0.3);
  transition: border-color 0.2s;
}
.content a:hover { border-color: var(--accent); }

/* --- Responsive ------------------------------------------ */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .card {
    padding: 2rem 1.25rem 1.75rem;
    max-width: 100%;
    border-radius: 16px;
  }

  .identity__name { font-size: 1.875rem; }

  /* Icons only — hide labels on small screens */
  .social__name { display: none; }

  .social__link {
    padding: 0.6rem;
    border-radius: 50%;
  }

  .social {
    gap: 0.6rem;
  }
}