:root {
  --background: #111111;
  --card: #1c1c1c;
  --card-hover: #242424;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --border: #2b2b2b;
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background: var(--background);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(100% - 32px, 620px);
  margin: 0 auto;
  padding: 42px 0 30px;
}


/* PROFILE */

.profile {
  margin-bottom: 34px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 78px;
  height: 78px;

  object-fit: cover;

  border-radius: 50%;

  border: 1px solid #333;
}

.profile-info h1 {
  margin: 0;

  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.subtitle {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 14px;
}


/* SOCIALS */

.socials {
  display: flex;
  gap: 18px;

  margin-top: 17px;
}

.socials a {
  color: var(--muted);

  font-size: 13px;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.socials a:hover {
  color: var(--text);
  transform: translateY(-1px);
}


/* LANGUAGE */

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;

  margin-top: 22px;

  font-size: 12px;
}

.language-switch button {
  padding: 0;

  border: 0;
  background: none;

  color: #777;

  font: inherit;

  cursor: pointer;

  transition: color 0.2s ease;
}

.language-switch button:hover,
.language-switch button.active {
  color: var(--text);
}

.language-switch span {
  color: #444;
}


/* CARDS */

.content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 86px;

  padding: 20px 21px;

  background: var(--card);

  border: 1px solid var(--border);
  border-radius: 14px;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.link-card:hover {
  background: var(--card-hover);

  border-color: #3a3a3a;

  transform: translateY(-2px);
}

.link-card:active {
  transform: translateY(0);
}

.card-content {
  min-width: 0;
}

.card-content h2 {
  margin: 0 0 7px;

  font-size: 16px;
  font-weight: 600;

  letter-spacing: -0.1px;
}

.card-content p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.45;
}

.arrow {
  flex-shrink: 0;

  margin-left: 18px;

  color: #777;

  font-size: 18px;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.link-card:hover .arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}


/* FEATURED */

.link-card.featured {
  background: #202020;
  border-color: #363636;
}

.link-card.featured h2 {
  font-size: 17px;
}

.link-card.featured:hover {
  background: #272727;
}


/* HIDDEN */

.hidden {
  display: none;
}


/* FOOTER */

footer {
  margin-top: 34px;

  text-align: center;

  color: #555;

  font-size: 11px;
}


/* MOBILE */

@media (max-width: 480px) {

  .container {
    width: min(100% - 24px, 620px);

    padding-top: 30px;
  }

  .profile {
    margin-bottom: 28px;
  }

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

  .profile-info h1 {
    font-size: 23px;
  }

  .link-card {
    min-height: 82px;

    padding: 17px 18px;

    border-radius: 12px;
  }

  .card-content h2 {
    font-size: 15px;
  }

  .card-content p {
    font-size: 12.5px;
  }

  .arrow {
    font-size: 16px;
  }
}