:root {
  --bg-red: #b90f16;
  --bg-yellow: #f0c938;
  --bg-green: #157a36;
  --panel: rgba(13, 13, 10, 0.86);
  --panel-soft: rgba(18, 18, 13, 0.92);
  --line: rgba(255, 255, 255, 0.16);
  --text: #fff8ea;
  --muted: #d7d0bf;
  --accent: #f0c938;
  --green: #1faa59;
  --red: #e73535;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-red) 0%, var(--bg-yellow) 50%, var(--bg-green) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

.page {
  width: min(100% - 32px, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 120px 0 56px;
}

.profile-card {
  width: 100%;
  padding: 30px 24px 24px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.avatar {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  margin: 0 auto 20px;
  padding: 6px;
  border-radius: 50%;
  background: conic-gradient(from -40deg, var(--red), var(--accent), var(--green), var(--red));
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border: 4px solid #0c0f0a;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f1e8;
}

.tagline {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 12vw, 68px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.about {
  max-width: 390px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.58;
}

.contact {
  display: block;
  padding: 15px 18px;
  color: var(--text);
  background: rgba(73, 57, 12, 0.72);
  border: 1px solid rgba(240, 201, 56, 0.78);
  border-radius: 8px;
}

.contact span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact strong {
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 201, 56, 0.74);
  background: rgba(26, 26, 18, 0.96);
}

.link-button span {
  font-size: 16px;
  font-weight: 900;
}

.link-button strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #10120e;
  font-size: 12px;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
}

.link-button:nth-child(2) strong {
  color: var(--text);
  background: var(--green);
}

.link-button:nth-child(3) strong {
  color: var(--text);
  background: var(--red);
}

.link-button:nth-child(4) strong {
  color: var(--text);
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

footer {
  margin-top: 18px;
  color: #f6f1df;
  text-align: center;
  font-size: 13px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

footer span {
  margin: 0 10px;
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 24px, 460px);
    padding-top: 44px;
  }

  .profile-card {
    padding: 24px 18px 20px;
  }

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

  .about {
    font-size: 15px;
  }
}
