:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7f7f5;
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 40px 12px 80px;
  color: #000;
  background-color: #f7f7f5;
  background-image: url("/assets/background.webp");
  background-repeat: repeat;
  background-position: top left;
  background-size: 1280px auto;
}

.page-shell {
  width: min(100%, 676px);
  min-height: 1044px;
  margin: 0 auto;
  padding: 52px 58px 80px;
}

.profile {
  text-align: center;
}

.avatar {
  display: block;
  width: 114px;
  height: 114px;
  margin: 0 auto;
  object-fit: cover;
  border: 2px solid #f2f2f2;
  border-radius: 50%;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.tagline {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.contact {
  margin-top: 52px;
}

.contact h2 {
  min-height: 24px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.card-frame {
  position: relative;
  width: 100%;
  height: 98px;
}

.card-frame + .card-frame {
  margin-top: 16px;
}

.card-frame::before {
  position: absolute;
  inset: 0 12px;
  border-top: 1px solid transparent;
  border-right: 2px solid #000;
  border-bottom: 1px solid transparent;
  border-left: 2px solid #000;
  content: "";
  pointer-events: none;
}

.card-frame::after {
  position: absolute;
  inset: 9px 2px;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  content: "";
  pointer-events: none;
}

.contact-card {
  position: absolute;
  top: 11px;
  right: 2px;
  bottom: 11px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 42px 8px 6px;
  color: #000;
  text-decoration: none;
  outline-offset: 4px;
  transition: transform 140ms ease, background-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-card:hover {
  background-color: rgb(255 255 255 / 38%);
  transform: translateY(-1px);
}

.contact-card:active {
  transform: translateY(0) scale(.995);
}

.contact-card:focus-visible {
  outline: 3px solid #1877f2;
}

.contact-card img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  margin-right: 6px;
  border-radius: 8px;
}

.channel-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.notification {
  position: absolute;
  right: 12px;
  font-size: 18px;
  transform-origin: 50% 10%;
  animation: bell-ring 2.8s ease-in-out infinite;
}

noscript {
  position: fixed;
  right: 12px;
  bottom: 12px;
  max-width: 360px;
  padding: 8px 12px;
  color: #222;
  background: #fff;
  border: 1px solid #ddd;
  font: 13px/1.4 system-ui, sans-serif;
}

@keyframes bell-ring {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(15deg); }
  90% { transform: rotate(-13deg); }
  94% { transform: rotate(9deg); }
  98% { transform: rotate(-5deg); }
}

@media (max-width: 720px) {
  body {
    padding: 0;
    background-size: 900px auto;
  }

  .page-shell {
    width: 100%;
    min-height: 100svh;
    padding: max(36px, env(safe-area-inset-top)) 20px max(56px, env(safe-area-inset-bottom));
  }

  .avatar {
    width: 104px;
    height: 104px;
  }

  .contact {
    margin-top: 52px;
  }

  .contact h2 {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

}

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