:root {
  color-scheme: light;
  font-family: Tahoma, "MS Sans Serif", Geneva, sans-serif;
  --background-image: none;
  --desktop-color: #008080;
  --window-gray: #c0c0c0;
  --title-blue: #000080;
  --title-blue-light: #1084d0;
  --card-width: 34rem;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  color: #000;
  background-color: var(--desktop-color);
  background-image: var(--background-image);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  font-size: 13px;
}

.card {
  position: relative;
  width: min(100%, var(--card-width));
  padding: 38px 12px 12px;
  text-align: center;
  background: var(--window-gray);
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow:
    inset 1px 1px #dfdfdf,
    inset -1px -1px #808080,
    3px 3px 0 rgba(0, 0, 0, 0.35);
}

/* Classic blue window title bar. */
.card::before {
  content: "My Profile";
  position: absolute;
  top: 3px;
  right: 3px;
  left: 3px;
  height: 25px;
  display: flex;
  align-items: center;
  padding: 0 75px 0 7px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--title-blue), var(--title-blue-light));
  font-weight: 700;
  line-height: 25px;
  text-align: left;
  white-space: nowrap;
}

/* Minimize, maximize, and close buttons. */
.card::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 65px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='65' height='20' viewBox='0 0 65 20' shape-rendering='crispEdges'%3E%3Cg%3E%3Cpath fill='%23c0c0c0' stroke='%23fff' stroke-width='2' d='M1 1h18v18H1zM23 1h18v18H23zM46 1h18v18H46z'/%3E%3Cpath fill='none' stroke='%23404040' stroke-width='2' d='M2 19h18V1M24 19h18V1M47 19h18V1'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='M5 15h10M27 5h11v10H27zM50 5l10 10m0-10L50 15'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.avatar {
  width: 112px;
  height: 112px;
  padding: 3px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  border-radius: 0;
  background: #fff;
  object-fit: cover;
}

h1 {
  margin: 10px 0 4px;
  font-size: 20px;
  line-height: 1.2;
}

.description {
  margin: 0 auto 14px;
  padding: 8px;
  color: #000;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  line-height: 1.4;
}

.links {
  display: grid;
  gap: 7px;
}

.link {
  position: relative;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 38px;
  color: #000;
  background: var(--window-gray);
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
  text-decoration: none;
  font-weight: 400;
}

.link-icon {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: invert(1);
}

.link:hover {
  background: #d4d4d4;
}

.link:active {
  padding: 8px 37px 6px 39px;
  border-color: #404040 #fff #fff #404040;
  box-shadow: inset 1px 1px #808080;
}

.link:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -6px;
}

.error {
  padding: 10px;
  color: #000;
  background: var(--window-gray);
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  body {
    padding: 10px;
  }

  .card {
    padding-right: 9px;
    padding-left: 9px;
  }
}
