:root {
  --bg1: #f7efff;
  --bg2: #ffeef8;
  --bg3: #eef6ff;
  --card: rgba(255, 255, 255, 0.72);
  --ink: #3a2f4a;
  --muted: #6d5f7e;
  --accent: #9b7edc;
  --accent-deep: #7a5cc4;
  --lavender: #c9b6f2;
  --pink: #f2b6d8;
  --mint: #b8e0d2;
  --shadow: 0 12px 40px rgba(123, 92, 180, 0.12);
  --radius: 22px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: var(--bg1);
  background:
    radial-gradient(1100px 600px at 20% 5%, var(--lavender), transparent 60%),
    radial-gradient(800px 500px at 80% 12%, var(--pink), transparent 55%),
    radial-gradient(800px 500px at 50% 92%, var(--mint), transparent 50%),
    linear-gradient(160deg, var(--bg1), var(--bg2) 45%, var(--bg3)) var(--bg1);
  background-attachment: fixed;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  min-height: 100dvh;
  background: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.8), 0 4px 14px rgba(155,126,220,0.35);
}
.nav-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(155,126,220,0.18);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-deep);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.hero, .panel {
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.hero {
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.avatar {
  width: min(168px, 42vw);
  height: min(168px, 42vw);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.85), 0 14px 36px rgba(155,126,220,0.35);
}
.hero h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: -0.02em;
}
.tag {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(155,126,220,0.16), rgba(242,182,216,0.22));
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.9rem;
}
.bio {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  white-space: pre-line;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d98bc0);
  color: #fff;
  box-shadow: 0 10px 24px rgba(155,126,220,0.35);
}
.btn-secondary {
  background: #fff;
  color: var(--accent-deep);
  border: 1px solid rgba(155,126,220,0.25);
}
.btn:hover { transform: translateY(-2px); }

.page-head {
  text-align: center;
  margin-bottom: 1.25rem;
}
.page-head h1 {
  margin: 0.2rem 0;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
}
.page-head p {
  margin: 0;
  color: var(--muted);
}

.links {
  display: grid;
  gap: 0.85rem;
  width: min(480px, 100%);
  margin: 0 auto;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(155,126,220,0.16);
  box-shadow: 0 8px 22px rgba(123, 92, 180, 0.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155,126,220,0.4);
  box-shadow: var(--shadow);
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(155,126,220,0.18), rgba(242,182,216,0.28));
  flex-shrink: 0;
}
.icon svg { width: 22px; height: 22px; fill: var(--accent-deep); }
.link-card strong { display: block; font-size: 1.05rem; }
.link-card span { color: var(--muted); font-size: 0.88rem; word-break: break-all; }

.profile-mini {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  text-align: center;
}
.profile-mini img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.9), 0 10px 24px rgba(155,126,220,0.3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.tile {
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.55), rgba(201,182,242,0.35)),
    repeating-linear-gradient(45deg, rgba(155,126,220,0.08) 0 10px, transparent 10px 20px);
  border: 1px dashed rgba(155,126,220,0.35);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.75rem;
}
.tile.wide { grid-column: span 2; aspect-ratio: 16/9; }
@media (max-width: 639px) {
  .tile.wide { grid-column: span 2; }
}

.footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer a { color: var(--accent-deep); font-weight: 600; }

.not-found {
  text-align: center;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}
.not-found .big {
  font-size: clamp(3.5rem, 14vw, 6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #d98bc0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 420px) {
  .nav { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .nav-links { justify-content: stretch; }
  .nav-links a { flex: 1; text-align: center; }
  .brand { justify-content: center; }
}

/* single-page layout */
.hero .links { text-align: left; margin-top: 0.6rem; }
.wrap > .hero:first-child { margin-top: clamp(1rem, 6vh, 3.5rem); }

/* Soft fade at every screen edge so the page blends into the browser's bar color (theme-color) with no visible seam */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(to right, var(--bg1) 0, transparent 7%, transparent 93%, var(--bg1) 100%),
    linear-gradient(to bottom, var(--bg1) 0, transparent 9%, transparent 91%, var(--bg1) 100%);
}
