:root {
  --ink: #0b1021;
  --subtle: #4b5565;
  --panel: #ffffff;
  --line: #dfe3ec;
  --muted-bg: #f5f7fb;
  --accent: #4976f5;
  --chip: #eef1f6;
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, #eef2ff 0, rgba(238, 242, 255, 0) 35%), radial-gradient(circle at 80% 0, #dcf5ff 0, rgba(220, 245, 255, 0) 30%), #f7f8fb;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: var(--subtle);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(73, 118, 245, 0.08);
}

.nav-links a.is-active {
  color: var(--ink);
  background: #e9eeff;
}

.pill {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: #c7cdd8;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.25);
}

.pill.ghost {
  background: rgba(73, 118, 245, 0.08);
  border-color: #d3dcfb;
  color: #2d3a66;
}

.profile-card {
  margin: 28px 0 60px;
  background: var(--panel);
  border: 1px solid #dfe2ea;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px -45px rgba(0, 0, 0, 0.35);
  position: relative;
}

.cover {
  position: relative;
  height: 280px;
  background-image: url("../images/ens-profile.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.22) 100%);
  mix-blend-mode: multiply;
}

.avatar-row {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  padding: 0 30px 18px;
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

.avatar-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avatar-wrap {
  width: 132px;
  height: 132px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, #9fb3ff, #6ecbf5);
  border: 6px solid #f7f8fb;
  box-shadow: 0 18px 40px -25px rgba(0, 0, 0, 0.4);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.identity {
  padding-bottom: 10x;
}

.label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
}

.ens-name {
  margin: 0 0 2px;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ens-bio {
  margin: 0 0 12px;
  color: #1f2937;
  max-width: 740px;
}
.ens-nick {
  margin: 0;
  color: var(--subtle);
  font-size: 0.95rem;
}

.avatar-col .ens-bio {
  margin: 0;
  max-width: 340px;
}

.avatar-col .ens-name {
  margin: 0;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--chip);
  border-radius: 999px;
  font-size: 0.9rem;
  color: #0f172a;
}

.meta-chip.muted {
  color: var(--subtle);
}

.profile-body {
  padding: 10px 30px 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.info-block {
  padding: 14px 16px;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.info-value {
  margin: 4px 0 0;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.helper {
  margin-top: 16px;
}

.muted {
  color: var(--subtle);
}

.error {
  color: #c0392b;
}

@media (max-width: 720px) {
  .site-header .shell {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    margin: 8px 0 0;
  }

  .avatar-row {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -72px;
    padding: 0 22px 16px;
  }

  .ens-name {
    font-size: 1.7rem;
  }

  .profile-body {
    padding: 10px 22px 22px;
  }
}
