@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --ink: #111827;
  --muted: #6b7280;
  --panel: #f8fafc;
  --panel-hover: #ffffff;
  --stroke: rgba(255, 255, 255, 0.48);
  --shadow: 0 18px 55px rgba(0, 28, 84, 0.28);
  --radius: 14px;
  --content-width: 548px;
  --card-logo-size: 44px;
  --card-logo-inset-x: 10px;
  --card-logo-inset-y: 8px;
  --logo-radius: 14px;
  --title-font: "Fredoka", "Arial Rounded MT Bold", "Avenir Next Rounded", ui-rounded, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #04101f;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(36, 112, 226, 0.34), transparent 34rem),
    linear-gradient(180deg, #1358d8 0%, #0f49bd 36%, #082e82 68%, #021735 100%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 22px 34px;
  flex-direction: column;
  align-items: center;
}

.profile {
  display: grid;
  width: min(100%, var(--content-width));
  margin-top: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.avatar-slot {
  display: grid;
  width: 152px;
  height: 152px;
  grid-row: 1 / span 2;
  justify-self: start;
  place-items: center;
  overflow: hidden;
  color: #dbeafe;
  font-size: 1.4rem;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 10px, rgba(255, 255, 255, 0.04) 10px 20px),
    #6b7280;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 15px;
  box-shadow: 0 18px 38px rgba(0, 24, 67, 0.24);
}

.avatar-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0;
  align-self: end;
  color: #fff7f2;
  font-family: var(--title-font);
  font-size: 4.28rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 8px 22px rgba(0, 24, 80, 0.16);
  transform: translateY(-5px);
}

.socials {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  align-self: start;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.social-link svg,
.logo-slot svg {
  width: 28px;
  height: 28px;
}

.social-link .icon-brand,
.social-link .icon-solid,
.logo-slot .icon-brand {
  fill: currentColor;
  stroke: none;
}

.social-link .icon-line,
.logo-slot .icon-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.profile-topics {
  display: flex;
  width: min(100%, var(--content-width));
  margin: 18px 0 0;
  padding: 0;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  list-style: none;
  text-align: center;
  text-shadow: 0 6px 16px rgba(0, 24, 80, 0.18);
}

.profile-topics li + li::before {
  margin-right: 16px;
  color: rgba(255, 255, 255, 0.56);
  content: "|";
}

.links {
  display: grid;
  width: min(100%, var(--content-width));
  margin-top: 18px;
  gap: 11px;
}

.link-card {
  position: relative;
  display: grid;
  min-height: calc(var(--card-logo-size) + var(--card-logo-inset-y) * 2);
  padding: var(--card-logo-inset-y) 18px var(--card-logo-inset-y) var(--card-logo-inset-x);
  grid-template-columns: var(--card-logo-size) 1fr var(--card-logo-size);
  align-items: center;
  color: #111827;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.link-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 50%, rgba(56, 189, 248, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0) 58%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 30, 95, 0.18);
  transform: translateY(-1px);
}

.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 1;
}

.link-card:focus-visible,
.social-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
}

.logo-slot {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--card-logo-size);
  height: var(--card-logo-size);
  place-items: center;
  overflow: hidden;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  background: transparent;
  border: 0;
  border-radius: var(--logo-radius);
  box-shadow: none;
}

.logo-slot[data-kind="circle"] {
  border-radius: var(--logo-radius);
}

.logo-slot .icon-line {
  width: 25px;
  height: 25px;
}

.logo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  border-radius: var(--logo-radius);
  filter: none;
  opacity: 1;
}

.link-title {
  position: relative;
  z-index: 1;
  min-width: 0;
  justify-self: center;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  font-weight: 350;
  line-height: 1.25;
  text-align: center;
}

.status-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  padding: 10px 14px;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 18px 55px rgba(0, 20, 70, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.status-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 620px) {
  :root {
    --card-logo-size: 42px;
    --card-logo-inset-x: 9px;
    --card-logo-inset-y: 8px;
  }

  .page-shell {
    padding: 22px 14px 28px;
  }

  .profile {
    margin-top: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px 13px;
  }

  .avatar-slot {
    width: 104px;
    height: 104px;
  }

  h1 {
    font-size: 2.52rem;
    transform: translateY(-3px);
  }

  .socials {
    gap: 10px;
  }

  .social-link {
    width: 30px;
    height: 30px;
  }

  .social-link svg {
    width: 26px;
    height: 26px;
  }

  .profile-topics {
    gap: 8px 12px;
    margin-top: 16px;
    font-size: 0.78rem;
  }

  .profile-topics li + li::before {
    margin-right: 12px;
  }

  .links {
    margin-top: 22px;
    gap: 10px;
  }

  .link-card {
    padding-right: 12px;
  }

  .logo-slot {
    border-radius: var(--logo-radius);
  }

  .link-title {
    font-size: 0.98rem;
  }
}

@media (max-width: 380px) {
  .profile {
    gap: 10px 10px;
  }

  .avatar-slot {
    width: 90px;
    height: 90px;
  }

  h1 {
    font-size: 2.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
