/* Light, bare-bones design for Main's page and its bounce page (18 Nov 2026). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f6f6f7;
  color: #111;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.lp-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding:
    max(28px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.lp {
  width: min(100%, 480px);
  text-align: center;
}

.lp__head {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.lp__avatar {
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px #0000001f;
}

.lp__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lp__verified {
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

.lp__handle {
  margin: 0;
  color: #777;
  font-size: 14px;
}

.lp__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 12px;
}

.lp__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #222;
  transition: transform 160ms ease;
}

.lp__icon .brand-icon {
  width: 20px;
  height: 20px;
}

.lp__icon--of {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 2px 8px #00aff04d;
}

.lp__of-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.lp__icon:active {
  transform: scale(0.94);
}

.lp__followers {
  margin: 4px auto 14px;
  color: #555;
  font-size: 14px;
}

.lp--bounce .lp__followers {
  margin-top: 12px;
}

.lp__followers strong {
  color: #111;
}

details.lp__followers summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

details.lp__followers summary::-webkit-details-marker {
  display: none;
}

details.lp__followers svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 160ms ease;
}

details.lp__followers[open] svg {
  transform: rotate(180deg);
}

details.lp__followers ul {
  display: grid;
  gap: 6px;
  width: min(100%, 260px);
  margin: 10px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 6px #0000000f;
  list-style: none;
  text-align: left;
}

details.lp__followers li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.lp__bio {
  margin: 0 auto 16px;
  color: #333;
  font-size: 15px;
}

.lp__cards {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.lp__card {
  display: grid;
  gap: 8px;
  transition: transform 160ms ease;
}

.lp__card:active {
  transform: scale(0.985);
}

.lp__card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #e9e9ec;
  box-shadow: 0 6px 22px #00000017;
  aspect-ratio: 1.45;
}

.lp__card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp__card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0004;
}

.lp__card-badge--youtube {
  display: grid;
  place-items: center;
  background: #fff;
  color: #ff0033;
}

.lp__card-badge--youtube .brand-icon {
  width: 20px;
  height: 20px;
}

.lp__card-label {
  color: #111;
  font-size: 15px;
  font-weight: 650;
}

.lp__card--plain {
  padding: 18px;
  border-radius: 16px;
  background: #111;
}

.lp__card--plain .lp__card-label {
  color: #fff;
}

.lp__footer {
  padding: 36px 0 8px;
  color: #999;
  font-size: 12px;
}

.lp__footer p {
  margin: 0;
}

@keyframes lp-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .lp__intro,
  .lp__links {
    animation: lp-reveal 700ms cubic-bezier(0.4, 0, 0.2, 1) backwards;
  }

  .lp__links {
    animation-delay: 200ms;
  }

  .lp:has(:focus-visible) :is(.lp__intro, .lp__links) {
    opacity: 1 !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .lp__icon:hover,
  .lp__card:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp__icon,
  .lp__card,
  details.lp__followers svg {
    animation: none;
    transition: none;
  }
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 8px;
}

.lp__link-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.lp__icon[aria-busy="true"] .brand-icon {
  display: none;
}

.lp__icon[aria-busy="true"]::after,
.lp__card[aria-busy="true"] .lp__card-label::after {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
}

.lp__card[aria-busy="true"] .lp__card-label::after {
  margin-inline-start: 8px;
  vertical-align: -2px;
}

@keyframes lp-link-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .lp__icon[aria-busy="true"]::after,
  .lp__card[aria-busy="true"] .lp__card-label::after {
    animation: lp-link-spin 700ms linear infinite;
  }
}
