:root {
  --background: #5f97a9;
  --surface: #28afd8;
  --surface-deep: #27afd8;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.94);
  --line: rgba(255, 255, 255, 0.88);
  --line-strong: rgba(255, 255, 255, 1);
  --focus: #8ed7ff;
  --cover-url: url("./assets/gdc-cover.jpg");
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--background);
}

button,
a {
  font: inherit;
}

.page-shell {
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  padding: 0 18px;
  background: var(--background);
}

.profile-card {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  overflow: hidden;
  padding: 0 22px 34px;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #31b4dc 0%, var(--surface-deep) 100%);
  box-shadow: 0 18px 74px rgba(13, 70, 92, 0.28);
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0 0 auto;
  height: 452px;
  background:
    var(--cover-url) center top / 100% auto no-repeat,
    #ffffff;
  z-index: -2;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(211, 243, 251, 0.18) 52%, rgba(49, 180, 220, 0.82) 82%, #31b4dc 100%);
}

.language-select-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 64px;
  height: 30px;
}

.language-select-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.language-select {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(16, 42, 52, 0.1);
  border-radius: 999px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  cursor: pointer;
  outline: 0;
}

.language-select-value {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(16, 42, 52, 0.1);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(17, 34, 42, 0.74);
  background: rgba(245, 249, 250, 0.62);
  box-shadow: 0 2px 10px rgba(15, 74, 92, 0.08);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.language-select-value::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid rgba(17, 34, 42, 0.58);
  border-bottom: 1.5px solid rgba(17, 34, 42, 0.58);
  transform: rotate(45deg);
}

.language-select:hover + .language-select-value,
.language-select:focus-visible + .language-select-value {
  border-color: rgba(16, 42, 52, 0.2);
  background: rgba(245, 249, 250, 0.82);
}

.profile-header {
  min-height: 474px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 0 24px;
  text-align: center;
}

.profile-header h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(32px, 5vw, 36px);
  line-height: 1.12;
  font-weight: 700;
}

.profile-header p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.social-link:hover {
  background: transparent;
  transform: translateY(-1px);
}

.social-link svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.social-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.link-list {
  display: grid;
  gap: 13px;
}

.resource-link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 55px;
  padding: 12px 38px 12px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition:
    background 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.resource-link:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.resource-link span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.resource-link svg {
  position: absolute;
  right: 18px;
  width: 16px;
  height: 16px;
  stroke: none;
  fill: currentColor;
  opacity: 0.58;
}

.resource-link:focus-visible,
.social-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (min-width: 641px) and (max-height: 900px) {
  .profile-card {
    padding-bottom: 8px;
  }

  .hero-art {
    height: 382px;
  }

  .profile-header {
    min-height: 400px;
    gap: 7px;
    padding-bottom: 16px;
  }

  .profile-header h1 {
    font-size: 30px;
  }

  .profile-header p {
    font-size: 12px;
  }

  .social-links {
    gap: 8px;
    margin-bottom: 10px;
  }

  .social-link {
    min-height: 21px;
  }

  .social-link svg {
    width: 21px;
    height: 21px;
  }

  .link-list {
    gap: 7px;
  }

  .resource-link {
    min-height: 34px;
    padding: 6px 36px 6px 22px;
  }

  .resource-link span {
    font-size: 12px;
  }

  .resource-link svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 640px) {
  body {
    background: var(--surface-deep);
  }

  .page-shell {
    min-height: 100dvh;
    display: block;
    padding: 0;
    background: var(--surface-deep);
  }

  .profile-card {
    width: 100%;
    min-height: 100dvh;
    padding: 0 20px 24px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, #31b4dc 0%, var(--surface-deep) 100%);
  }

  .hero-art {
    height: min(124vw, 548px);
  }

  .profile-header {
    min-height: min(134vw, 602px);
    padding-bottom: 28px;
  }

  .profile-header h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .profile-header p {
    font-size: clamp(17px, 3.5vw, 20px);
  }

  .social-links {
    margin-bottom: 32px;
  }

  .social-link {
    min-width: 0;
  }

  .resource-link {
    min-height: 70px;
    padding: 13px 40px 13px 20px;
  }

  .resource-link span {
    font-size: clamp(18px, 3.8vw, 22px);
  }
}
