:root {
  color-scheme: light;
  --profile-page: #fcfdff;
  --profile-ink: #4a514c;
  --profile-muted: #616161;
  --profile-accent: #017387;
  --profile-line: #eee;
}

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

html { background: var(--profile-page); }

body {
  margin: 0;
  background: var(--profile-page);
  color: var(--profile-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  overflow-x: hidden;
}

button,
a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }
a { color: inherit; }

.profile-page {
  min-height: 100vh;
  overflow: hidden;
}

@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/MaterialIcons-Regular.woff2") format("woff2");
}

.material-icons {
  font-family: "Material Icons" !important;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.profile-main {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.profile-hero {
  width: 100%;
  height: 256px;
  margin: 100px 0;
}

.profile-hero__inner {
  position: relative;
  width: min(100%, 1080px);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.profile-hero h1 {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0;
  color: var(--profile-muted);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.4;
}

.profile-hero__subtitle {
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  color: var(--profile-accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.profile-hero__description {
  position: relative;
  z-index: 1;
  width: min(100%, 526px);
  margin: 37px 0 0;
  color: var(--profile-ink);
  font-size: 15px;
  line-height: 1.4;
}

.profile-hero__art {
  position: absolute;
  z-index: 0;
  top: -81px;
  right: 86px;
  display: block;
  width: 500px;
  height: auto;
  pointer-events: none;
}

.profile-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 906px);
  margin: 0 auto 40px;
  padding: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 0 30px 10px rgba(240, 241, 247, .5);
}

.profile-details {
  width: 100%;
  margin: 0;
}

.profile-details__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  min-height: 60px;
  border-bottom: 1px solid var(--profile-line);
}

.profile-details__row:last-child { border-bottom: 0; }

.profile-details dt,
.profile-details dd {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  margin: 0;
  padding: 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.profile-details dt { font-weight: 500; }
.profile-details dd { font-weight: 400; }

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

.profile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 205px;
  padding: 60px 10px;
  background: var(--profile-page);
}

.profile-footer__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--profile-ink);
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.profile-footer__menu .material-icons { font-size: 20px; }

.profile-footer__copyright {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 30px 0 0;
  color: var(--profile-ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.profile-footer__copyright .material-icons { font-size: 16px; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid #e49600;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .profile-hero__art {
    top: 140px;
    right: 20px;
    width: 90%;
    max-width: 520px;
    opacity: .1;
  }
}

@media (max-width: 640px) {
  .profile-hero {
    height: auto;
    min-height: 330px;
    margin: 60px 0 40px;
  }

  .profile-hero__inner { padding: 40px 20px 0; }

  .profile-hero h1 {
    font-size: 30px;
    line-height: 1.4;
  }

  .profile-hero__subtitle {
    margin-top: 4px;
    font-size: 18px;
  }

  .profile-hero__description {
    width: 100%;
    margin-top: 32px;
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-hero__art {
    top: 120px;
    right: -40px;
    width: 92%;
  }

  .profile-panel {
    width: 100%;
    margin: 0;
    padding: 15px;
  }

  .profile-details__row {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .profile-details dt,
  .profile-details dd {
    padding: 16px 10px;
    font-size: 13px;
    line-height: 1.65;
  }
}

@media (max-width: 390px) {
  .profile-details__row { grid-template-columns: 88px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
