@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("./fonts/syne-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("./fonts/syne-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("./fonts/syne-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1d232a;
  --ink: #a6adbb;
  --muted: #8f97a6;
  --line: #2a323c;
  --pill: #232a33;
  --badge: #313a45;
  --card: #232a33;
  --card-2: #1f252d;
  --footer: #8f97a6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding: 0;
}

.navbar {
  width: min(1160px, calc(100% - 2rem));
  margin: 1rem auto 0;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
}

.links {
  display: flex;
  gap: 0.6rem;
}

.links a {
  text-decoration: none;
  color: var(--ink);
  background: var(--pill);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
}

.links a:hover,
.links a:focus-visible {
  background: #2a323c;
}

.page {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 0;
  display: grid;
  grid-template-columns: 1.2fr minmax(220px, 320px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero {
  max-width: 760px;
  animation: fade-up 0.9s ease both;
}

.title {
  margin: 0;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
}

.identity {
  margin: 0.6rem 0 0;
  font-size: clamp(1.25rem, 2.9vw, 2.05rem);
  font-weight: 800;
}

.lead {
  margin: 0.5rem 0 0;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 800;
}

.headline {
  margin: 1.2rem 0 0;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 6.8vw, 5.2rem);
  line-height: 0.98;
}

.section-subtitle {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

.intro,
.support {
  margin: 1.15rem 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.profile {
  display: grid;
  gap: 1rem;
}

.avatar {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.contact-card {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 0.95rem;
  display: grid;
  gap: 0.4rem;
}

.contact-label {
  margin: 0 0 0.35rem;
  display: inline-flex;
  width: fit-content;
  background: var(--badge);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-card a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.stats-card {
  gap: 0.55rem;
}

.stats-row {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.stats-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.like-form {
  margin-top: 0.25rem;
}

.like-button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--pill);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.like-button:hover:not(:disabled),
.like-button:focus-visible:not(:disabled) {
  background: #2a323c;
  transform: translateY(-1px);
}

.like-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 2.3rem auto 1.3rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  color: var(--footer);
  font-size: 0.86rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .navbar {
    min-height: 64px;
  }

  .links a {
    font-size: 0.82rem;
  }

  .page {
    display: flex;
    flex-direction: column;
    padding-top: 1.2rem;
  }

  .profile {
    order: -1;
    align-self: center;
    justify-items: center;
    text-align: center;
  }

  .avatar {
    max-width: 210px;
  }

  .like-form {
    display: flex;
    justify-content: center;
  }
}
