@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/raleway/raleway-400.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/raleway/raleway-500.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/raleway/raleway-600.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/raleway/raleway-700.woff2") format("woff2");
}

:root {
  --font: "Raleway", system-ui, sans-serif;
  --page-bg: #000000;
  --surround-bg: #000000;
  --link-bg: #2a2a2a;
  --page-fg: #ffffff;
  --page-fg-muted: rgba(255, 255, 255, 0.72);
  --link-fg: #ffffff;
  --link-fg-muted: rgba(255, 255, 255, 0.72);
  --link-border: rgba(255, 255, 255, 0.22);
  --link-hover-bg: rgba(255, 255, 255, 0.1);
  --column-max: 480px;
  --thumb-size: 44px;
  --link-card-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  background: var(--surround-bg);
  color: var(--page-fg);
  -webkit-font-smoothing: antialiased;
}

.surround {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: var(--surround-bg);
}

.page-column {
  width: 100%;
  max-width: var(--column-max);
  background: var(--page-bg);
  color: var(--page-fg);
  padding: 2.5rem 1.25rem 2.75rem;
}

.page-status {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--page-fg-muted);
}

.page-status--error {
  color: #ff8a8a;
}

.profile {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile--left {
  flex-direction: row;
  align-items: center;
  text-align: left;
}

.profile--right {
  flex-direction: row-reverse;
  align-items: center;
  text-align: right;
}

.profile__image-wrap {
  flex: 0 0 auto;
}

.profile__image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--link-bg);
}

.profile__headline {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--page-fg);
}

.bio {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--page-fg-muted);
  white-space: pre-wrap;
  text-align: center;
}

.profile--left .bio,
.profile--right .bio {
  text-align: inherit;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--page-fg);
  opacity: 0.85;
  transition: opacity 0.15s ease;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.social-link:hover {
  opacity: 1;
}

.social-link img {
  width: 22px;
  height: 22px;
  display: block;
}

.theme-page-dark .social-link img {
  filter: brightness(0) invert(1);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.section-heading {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--page-fg-muted);
  text-align: center;
}

.section-heading:first-child {
  margin-top: 0;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--link-card-height);
  min-height: var(--link-card-height);
  padding: 0.45rem 1rem;
  padding-left: 1rem;
  border-radius: 14px;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  color: var(--link-fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.link-card--has-thumb {
  padding-left: calc(var(--thumb-size) + 1.1rem);
}

.link-card:hover,
.link-card:focus-visible {
  box-shadow:
    inset 0 0 0 999px var(--link-hover-bg),
    0 1px 2px rgba(0, 0, 0, 0.08);
  outline: none;
}

.link-card:active {
  transform: scale(0.99);
}

.link-card__thumb {
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--link-fg-faint, rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 0 0 1px var(--link-border);
}

.link-card__label {
  display: -webkit-box;
  width: 100%;
  max-height: calc(0.95rem * 1.3 * 2);
  text-align: center;
  word-break: break-word;
  padding-right: 0.25rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 521px) {
  .surround {
    padding: 1.5rem 1rem 2rem;
  }

  .page-column {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }
}
