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

:root {
  --color-bg:        #2E2836;
  --color-surface:   #424868;
  --color-surface2:  #4a5275;
  --color-cyan:      #7DD3FC;
  --color-jasmine:   #ffffff;
  --color-muted:     #8B8FA8;
  --color-text:      #f0edf6;
  --color-border:    rgba(125, 211, 252, 0.12);
  --radius-card:     14px;
  --radius-btn:      8px;
  --transition:      0.2s ease;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ──────────────────────────────────────────────────── */
.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 56px;
}

/* Avatar skeleton wrap */
.site-header .skeleton-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 2px solid var(--color-border);
}

.site-header .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.site-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.header-nav a {
  font-size: 0.95rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--color-cyan);
}

.nav-dot {
  color: var(--color-muted);
  opacity: 0.5;
  font-size: 0.95rem;
}

/* ── Section ─────────────────────────────────────────────────── */
.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Watermark ───────────────────────────────────────────────── */
.watermark {
  position: fixed;
  top: 0px;
  left: -15px;
  width: 100px;
  opacity: 1;
  mix-blend-mode: difference;
  pointer-events: none;
  user-select: none;
  z-index: 1000;
}

/* ── Skeleton loader ─────────────────────────────────────────── */
.skeleton-wrap {
  position: relative;
  overflow: hidden;
  background: var(--color-surface2);
}

.skeleton-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

.skeleton-wrap.skeleton-done::after {
  display: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Lazy image fade-in ──────────────────────────────────────── */
.img-lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
  display: block;
  width: 100%;
  height: 100%;
}

.img-lazy.img-loaded {
  opacity: 1;
}

/* ── Socials ─────────────────────────────────────────────────── */
.socials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
