:root {
  --page: #e8ebe7;
  --surface: #fbfcfa;
  --surface-soft: #f2f5f1;
  --ink: #172019;
  --muted: #68726b;
  --line: #d8ded9;
  --sky: #b9ddea;
  --sky-deep: #98cbdc;
  --tyranitar: #57775a;
  --belly: #c9b96c;
  --link: #24593a;
  --status: #2f7b4b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--tyranitar);
  color: #fff;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.profile-page {
  width: min(100%, 700px);
  min-height: 100svh;
  margin-inline: auto;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(23, 32, 25, 0.04);
}

.profile-card {
  padding: 34px 50px 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 32px;
  margin-bottom: 28px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.wordmark-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.availability {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.profile-cover {
  overflow: hidden;
  aspect-ratio: 5 / 3;
  margin: 0 0 42px;
  border: 1px solid #83b7c8;
  border-radius: 4px;
  background: var(--sky-deep);
}

.profile-cover svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cover-sky {
  fill: var(--sky-deep);
}

.cover-rock {
  fill: #d5ebef;
}

.cover-rock-left {
  opacity: 0.8;
}

.cover-rock-right {
  opacity: 0.62;
}

.pokeball-shadow {
  fill: rgba(23, 32, 25, 0.16);
}

.pokeball-base {
  fill: #f8f8f3;
  stroke: var(--ink);
  stroke-width: 8;
}

.pokeball-top {
  fill: #d94b46;
}

.pokeball-band,
.pokeball-button-ring {
  fill: var(--ink);
}

.pokeball-button {
  fill: #f8f8f3;
  stroke: var(--ink);
  stroke-width: 5;
}

.pokeball-highlight {
  fill: none;
  opacity: 0.72;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 8;
}

.cover-spikes {
  fill: var(--belly);
}

h1 {
  margin: 4px 0 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.profile-role {
  color: var(--link);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-bio {
  max-width: 520px;
  margin-top: 18px;
  color: #3f4942;
  font-size: 17px;
  line-height: 1.8;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 154px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.primary-link:hover {
  background: transparent;
  color: var(--ink);
}

.location {
  color: var(--muted);
  font-size: 12px;
}

.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-meta div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.profile-meta dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.profile-meta dd {
  font-size: 13px;
}

.profile-meta a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 3px rgba(47, 123, 75, 0.12);
}

.links-section {
  margin-top: 46px;
}

.links-section h2 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.social-links {
  border-top: 1px solid var(--line);
}

.social-links a {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    padding 160ms ease;
}

.social-links a:hover {
  padding-inline: 10px;
  background: var(--surface-soft);
}

.link-note {
  color: var(--muted);
  font-size: 12px;
}

.link-arrow {
  color: var(--link);
  font-size: 15px;
}

.profile-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

a:focus-visible {
  outline: 3px solid rgba(24, 87, 201, 0.3);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .profile-card {
    padding: 28px 32px 34px;
  }
}

@media (max-width: 460px) {
  .profile-card {
    padding: 22px 20px 28px;
  }

  .site-header {
    margin-bottom: 20px;
  }

  .profile-cover {
    margin-bottom: 30px;
  }

  h1 {
    font-size: 40px;
  }

  .profile-bio {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.75;
  }

  .profile-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
  }

  .primary-link {
    width: 100%;
  }

  .profile-meta div + div {
    padding-left: 18px;
  }

  .profile-meta dd {
    overflow-wrap: anywhere;
  }

  .links-section {
    margin-top: 38px;
  }

  .social-links a {
    grid-template-columns: 104px 1fr auto;
    gap: 12px;
  }

  .profile-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
