:root {
  --bg: #101010;
  --text: #f4f1ea;
  --muted: #aaa49a;
  --line: rgba(244, 241, 234, 0.12);
  --hover: #ffffff;
  --accent: #63d471;
  --code-font: "SF Mono", "Cascadia Code", "Cascadia Mono", "Fira Code", "IBM Plex Mono", Consolas, monospace;
  --body-font: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 68% 18%, rgba(99, 212, 113, 0.08), transparent 310px),
    radial-gradient(circle at 18% 82%, rgba(216, 198, 163, 0.05), transparent 360px),
    linear-gradient(125deg, #101211 0%, #0b0f0d 45%, #161410 100%);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 350;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(115deg, transparent 0 38%, rgba(99, 212, 113, 0.055) 38% 38.35%, transparent 38.35% 100%),
    linear-gradient(115deg, transparent 0 58%, rgba(244, 241, 234, 0.04) 58% 58.25%, transparent 58.25% 100%),
    radial-gradient(rgba(255, 255, 255, 0.065) 0.65px, transparent 0.65px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  content: "";
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 84%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url("assets/network.svg") center 38px / min(1180px, 118vw) auto no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.26) 100%);
  content: "";
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 88%);
  pointer-events: none;
}

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

.layout {
  display: grid;
  align-content: start;
  gap: 12px;
  width: min(100% - 48px, 860px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 62px 0 72px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 4px;
}

.avatar {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 1px solid #3a3834;
  border-radius: 50%;
  object-fit: cover;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: var(--code-font);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.profile p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 16px;
}

.contact-links a,
.more {
  font-family: var(--code-font);
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.contact-links img {
  width: 16px;
  height: 16px;
}

.intro-note {
  width: 100%;
  padding: 18px 24px;
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: 16px;
  background: rgba(15, 15, 14, 0.34);
  text-align: center;
}

.intro-note p {
  margin: 0;
  color: rgba(255, 255, 255, 1);
  font-size: 1rem;
  line-height: 1.6;
}

.content {
  display: grid;
  gap: 0;
  padding: 28px 32px;
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: 18px;
  background: rgba(15, 15, 14, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.group {
  position: relative;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.group::before {
  display: none;
}

.group h2 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--code-font);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.group h2 img {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 0.02em;
  opacity: 0.9;
}

.group a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0;
  font-family: var(--code-font);
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 400;
}

.group a::after {
  display: none;
}

.group a::before {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 0.68em;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  content: "";
}

.group a + a {
  margin-top: 0;
}

.group a:last-child {
  border-bottom: 0;
}

.group a:hover,
.contact-links a:hover {
  color: var(--hover);
}

.group a:hover::before {
  opacity: 1;
}

.detail-link {
  align-items: flex-start;
}

.detail-link span,
.detail-link small {
  display: block;
}

.detail-link small {
  margin-top: 2px;
  font-family: var(--body-font);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 350;
}

.detail-link:hover small {
  color: var(--text);
}

.group .more {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.group .more::before {
  display: none;
}

.group .more:hover {
  color: var(--accent);
  border-color: currentColor;
}

@media (max-width: 760px) {
  .layout {
    gap: 12px;
    width: min(100% - 28px, 980px);
    padding: 38px 0 56px;
  }

  .profile {
    text-align: center;
  }

  .avatar {
    margin-bottom: 18px;
  }

  .contact-links {
    justify-content: center;
  }

  .content {
    padding: 22px 20px;
  }

}
