:root {
  --ink: #f8f3df;
  --muted: #b9ad88;
  --paper: #080808;
  --panel: rgba(20, 20, 18, 0.92);
  --line: rgba(255, 210, 64, 0.2);
  --black: #080808;
  --black-soft: #151512;
  --yellow: #ffd33d;
  --yellow-deep: #d89b00;
  --gold: #f3b61f;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 211, 61, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(216, 155, 0, 0.12), transparent 36%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 211, 61, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 211, 61, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  content: "";
}

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

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2 {
  margin: 0;
}

.page-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 30px;
}

.profile-card,
.featured-section,
.link-section,
.social-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-card {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px;
  backdrop-filter: blur(18px);
}

.profile-top {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(255, 211, 61, 0.52);
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.85rem, 10vw, 2.6rem);
  line-height: 0.95;
}

.handle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.bio {
  margin-top: 16px;
  color: #e8dfc0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.icon-link,
.featured-link,
.standard-link,
.social-link {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.icon-link:hover,
.featured-link:hover,
.standard-link:hover,
.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 211, 61, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  background: #1b1b17;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.icon-link span:first-child,
.link-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--black);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.featured-section,
.link-section,
.social-section {
  margin-top: 14px;
  padding: 16px;
}

.section-heading {
  margin-bottom: 12px;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.featured-list,
.link-list {
  display: grid;
  gap: 10px;
}

.featured-link,
.standard-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #181814;
}

.featured-link {
  min-height: 78px;
  color: var(--black);
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  border-color: rgba(255, 211, 61, 0.58);
}

.featured-link .link-icon {
  color: var(--yellow);
  background: var(--black);
}

.featured-link strong,
.standard-link strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.2;
}

.featured-link small,
.standard-link small {
  display: block;
  margin-top: 4px;
  color: inherit;
  opacity: 0.76;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.standard-link::after,
.featured-link::after {
  color: currentColor;
  font-size: 1.15rem;
  font-weight: 900;
  content: ">";
}

.standard-link[data-accent="coral"] .link-icon {
  background: var(--gold);
}

.standard-link[data-accent="gold"] .link-icon {
  color: var(--black);
  background: var(--gold);
}

.standard-link[data-accent="green"] .link-icon {
  color: var(--black);
  background: var(--yellow);
}

.standard-link[data-accent="yellow"] .link-icon {
  color: var(--black);
  background: var(--yellow);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-link {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 13px 10px;
  background: #181814;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.footer {
  padding: 22px 10px 0;
  color: rgba(248, 243, 223, 0.56);
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

@media (min-width: 760px) {
  body {
    display: grid;
    place-items: start center;
  }

  .page-shell {
    padding-top: 34px;
    padding-bottom: 44px;
  }

  .profile-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-inline: 10px;
  }

  .profile-card,
  .featured-section,
  .link-section,
  .social-section {
    padding: 14px;
  }

  .profile-top {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .avatar {
    width: 64px;
    height: 64px;
  }
}
