:root {
  --rp-bg: #f5f1f2;
  --rp-surface: rgba(255, 255, 255, 0.9);
  --rp-surface-strong: #ffffff;
  --rp-line: rgba(28, 28, 28, 0.1);
  --rp-line-strong: rgba(28, 28, 28, 0.18);
  --rp-text: #1c1c1c;
  --rp-muted: rgba(28, 28, 28, 0.68);
  --rp-accent: #3c50ff;
  --rp-accent-2: #ffed51;
  --rp-shadow: 0 14px 34px rgba(18, 22, 41, 0.08);
  --rp-radius-xl: 24px;
  --rp-radius-lg: 18px;
  --rp-radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--rp-text) !important;
  background: linear-gradient(180deg, #fcfafb 0%, var(--rp-bg) 58%, #f0eaec 100%);
  font-family: "Manrope Local", Arial, sans-serif !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding: 28px 0 40px;
}

.container {
  z-index: 1;
}

.avatar,
#profilePicture,
.rounded-avatar,
img[alt*="profile" i],
img[alt*="avatar" i],
.container > img:first-of-type {
  width: 104px !important;
  height: 104px !important;
  object-fit: cover;
  border-radius: 24px !important;
  border: 6px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 28px rgba(28, 28, 28, 0.1);
  overflow: hidden !important;
}

h1,
.h1,
h2,
.h2,
.title h1,
.title,
#userName,
[data-testid="username"],
[class*="user-name"],
[class*="username"],
[class*="profile-name"],
[class*="title"] {
  color: var(--rp-text) !important;
  font-family: "Instrument Serif Local", Georgia, serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em;
  font-variation-settings: "wght" 400;
  text-transform: none !important;
  font-synthesis: none;
}

h1 em,
h1 i,
.h1 em,
.h1 i,
h2 em,
h2 i,
.h2 em,
.h2 i,
.title h1 em,
.title h1 i,
#userName em,
#userName i,
[data-testid="username"] em,
[data-testid="username"] i,
[class*="user-name"] em,
[class*="user-name"] i,
[class*="username"] em,
[class*="username"] i,
[class*="profile-name"] em,
[class*="profile-name"] i,
[class*="title"] em,
[class*="title"] i {
  font-style: italic;
}

h1 + p,
.bio,
#description,
.description,
.subtitle {
  width: min(100%, 34rem);
  margin-left: auto;
  margin-right: auto;
  color: var(--rp-muted) !important;
  font-size: 1rem;
  line-height: 1.7;
}

.social-icon-div {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 24px;
}

.social-icon,
.icon.icon-social,
a .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 20px;
  color: var(--rp-text) !important;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(28, 28, 28, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.social-icon:hover,
.social-icon:focus {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(28, 28, 28, 0.12);
}

.button,
button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  min-height: 66px;
  padding: 16px 20px;
  border-radius: var(--rp-radius-lg) !important;
  text-decoration: none;
  font-family: "Manrope Local", Arial, sans-serif !important;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus,
button:hover,
button:focus {
  transform: translateY(-3px);
  outline: none;
}

.button .icon,
button .icon,
.button svg,
button svg {
  flex: 0 0 auto;
}

.button .icon,
button .icon {
  margin-right: 12px;
}

.button svg,
button svg,
.button img,
button img,
.button i,
button i {
  margin-right: 12px;
}

.icon {
  width: 22px;
  height: 22px;
  padding: 0;
  vertical-align: middle;
}

.button.button-default,
.button.button-custom,
.button[class*="button-"] {
  border: 1px solid rgba(28, 28, 28, 0.08) !important;
  box-shadow: var(--rp-shadow);
}

.button.button-default,
.button.button-custom {
  background: var(--rp-surface) !important;
  color: var(--rp-text) !important;
}

.button.button-default .icon,
.button.button-custom .icon {
  filter: none;
}

.button.button-default:hover,
.button.button-custom:hover,
.button.button-default:focus,
.button.button-custom:focus {
  color: var(--rp-text) !important;
  background: var(--rp-surface-strong) !important;
  border-color: rgba(60, 80, 255, 0.16) !important;
  box-shadow: 0 18px 36px rgba(21, 29, 66, 0.1);
  filter: none;
}

.button[class*="button-"]:not(.button-default):not(.button-custom) {
  background-color: #1c1c1c;
  border-color: transparent !important;
}

.button[class*="button-"]:not(.button-default):not(.button-custom):hover,
.button[class*="button-"]:not(.button-default):not(.button-custom):focus {
  box-shadow: 0 18px 36px rgba(21, 29, 66, 0.12);
}

.button[class*="button-"]:not(.button-default):not(.button-custom) .icon,
.button[class*="button-"]:not(.button-default):not(.button-custom) svg,
.button[class*="button-"]:not(.button-default):not(.button-custom) img {
  filter: none !important;
  opacity: 1 !important;
}

.button[class*="button-"]:not(.button-default):not(.button-custom),
.button[class*="button-"]:not(.button-default):not(.button-custom):hover,
.button[class*="button-"]:not(.button-default):not(.button-custom):focus {
  text-decoration: none !important;
}

.button.button-youtube,
.button.button-instagram,
.button.button-linkedin,
.button.button-facebook,
.button.button-tiktok,
.button.button-spotify,
.button.button-steady,
.button.button-newsletter,
.button.button-substack {
  color: #ffffff !important;
}

.button.button-steady,
.button.button-steady *,
.button.button-newsletter,
.button.button-newsletter *,
.button.button-substack,
.button.button-substack * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.button.button-youtube {
  background-color: #ff0033 !important;
}

.button.button-instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #515bd4 100%) !important;
}

.button.button-linkedin {
  background-color: #0a66c2 !important;
}

.button.button-facebook {
  background-color: #1877f2 !important;
}

.button.button-tiktok {
  background-color: #111111 !important;
}

.button.button-spotify {
  background-color: #1db954 !important;
}

.button.button-steady {
  background-color: #2f2140 !important;
}

.button.button-newsletter,
.button.button-substack {
  background-color: #ff6719 !important;
}

.button.button-youtube .icon,
.button.button-instagram .icon,
.button.button-linkedin .icon,
.button.button-facebook .icon,
.button.button-tiktok .icon,
.button.button-spotify .icon,
.button.button-newsletter .icon,
.button.button-substack .icon {
  filter: none !important;
}

.button.button-default:focus,
.button.button-custom:focus,
.button[class*="button-"]:focus {
  outline: none;
}

.sharediv {
  margin-top: 22px;
  padding-bottom: 24px;
}

.toastbox {
  background: rgba(28, 28, 28, 0.92);
  color: #ffffff;
  border-radius: 18px;
}

.credit-text,
.credit-text a {
  color: var(--rp-muted) !important;
}

.credit-text,
.credit-text a,
footer a,
.footer a,
.legal a,
.legal-links a,
[class*="legal"] a,
[class*="footer"] a {
  font-size: 0.92rem !important;
  text-decoration: none !important;
}

.credit-text,
footer,
.footer,
.legal,
.legal-links,
[class*="legal"],
[class*="footer"] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  body {
    padding-top: 18px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .button,
  button {
    min-height: 64px;
    padding: 16px 18px;
    text-align: left;
    justify-content: flex-start;
    font-size: 1.02rem;
  }

  .credit-text,
  footer,
  .footer,
  .legal,
  .legal-links,
  [class*="legal"],
  [class*="footer"] {
    gap: 14px;
  }
}
