:root {
  --cyan: #3df0e0;
  --teal: #0aaebb;
  --navy: #16273e;
  --mint: #b1eae3;
  --pink: #c90751;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #0d1520;
  background: #f5faf9;
}

button {
  font: inherit;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 24px 10px;
}

.phone {
  width: min(100%, 430px);
  min-height: 920px;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 22px 54px rgba(22, 39, 62, .14);
}

.ig-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 6px;
  height: 54px;
  padding: 0 10px;
  background: var(--white);
  border-bottom: 1px solid #edf0f3;
}

.ig-topbar strong {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.ig-topbar button,
.ig-tabs button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.ig-topbar button {
  font-size: 24px;
}

.profile {
  padding: 14px 14px 10px;
}

.profile-row {
  display: grid;
  grid-template-columns: 92px repeat(3, 1fr);
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(var(--pink), var(--cyan), var(--teal), var(--pink));
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 11px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--teal);
}

.stat {
  text-align: center;
  line-height: 1.12;
}

.stat strong {
  display: block;
  font-size: 17px;
}

.stat span {
  font-size: 12px;
}

.bio {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.32;
}

.bio strong,
.bio p,
.bio a {
  display: block;
  margin: 0 0 3px;
}

.bio a {
  color: #064f90;
  font-weight: 700;
  text-decoration: none;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.profile-actions button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #eef1f4;
  color: #121820;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.profile-actions button:first-child {
  background: var(--teal);
  color: var(--white);
}

.highlights {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 14px 14px;
  scrollbar-width: none;
}

.highlights::-webkit-scrollbar {
  display: none;
}

.highlights article {
  flex: 0 0 66px;
  text-align: center;
}

.highlights span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 5px;
  border: 2px solid var(--mint);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.highlights p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.ig-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
}

.ig-tabs button {
  height: 42px;
  color: #8a929b;
  font-size: 18px;
}

.ig-tabs .active {
  color: #111820;
  border-bottom: 2px solid #111820;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #ffffff;
}

.ig-post {
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #edf8f6;
}

.ig-post::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 39, 62, .04), rgba(22, 39, 62, .58));
}

.ig-post img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-post.fact {
  background: var(--mint);
}

.ig-post.fact::before {
  background: linear-gradient(180deg, rgba(177, 234, 227, .02), rgba(177, 234, 227, .88));
}

.ig-post.text {
  background: linear-gradient(135deg, #edf8f6, var(--mint));
}

.ig-post.text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 7px;
  background: var(--teal);
}

.ig-post.cta {
  background: linear-gradient(135deg, var(--pink), #f2dbe5);
}

.post-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 9%;
}

.post-copy small {
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: clamp(7px, 2.1vw, 9px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.post-copy strong {
  color: var(--navy);
  font-size: clamp(15px, 4.1vw, 20px);
  line-height: .98;
  letter-spacing: 0;
}

.ig-post.fact .post-copy small,
.ig-post.fact .post-copy strong {
  color: var(--navy);
}

.ig-post:not(.fact):not(.text):not(.cta) .post-copy strong,
.ig-post.cta .post-copy strong,
.ig-post.cta .post-copy small {
  color: var(--white);
}

.post-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  color: var(--white);
  font-size: 13px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .6);
}

@media (max-width: 460px) {
  .stage {
    display: block;
    padding: 0;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
